WorksPhysics and Astronomy
When precision exceeds fidelity: systematic error quantification for inference with misspecified simulators
Abstract
As scientific datasets grow in complexity and precision, the primary source of uncertainty in parameter inference shifts from measurement noise to systematic errors within the simulators themselves. In this setting, Bayesian evidence concentrates on whichever misspecified model best approximates the data. Evidence-weighted model averaging can then underestimate systematic uncertainty when one model component compensates for the misspecification of another component. We posit that in this case, the key question is how each model responds to discrepancies between simulator and data. We show that the local response of an inferred parameter to perturbations in the data — the model's influence map — can be estimated efficiently from forward evaluations of the simulator at existing posterior samples. Propagating discrepancy residuals through these influence maps enables individual sources of systematic bias to be isolated. Applied to independent observations used to infer the mass of a supermassive black hole, we find that the error is dominated by model systematics. We identify a simplification shared by all models, propagate the discrepancies through each model's influence map, and apply a first-order correction of the resulting biases. This substantially improves the cross-observation consistency of the inferred black-hole mass within each model while preserving the between-model spread that represents remaining systematics.
Introduction
Many scientific applications rely on parameter inference in which a forward model is combined with a noise model into a likelihood, whether that likelihood is evaluated explicitly, as we consider here, or learned from simulations as in simulation-based inference [e.g., 6]. Every simulator is a simplification, and growing datasets raise the stakes of simulator misspecification: posterior widths shrink with the number of independent measurements while the simplifications built into the models remain. In our application (– independent constraints) the statistical uncertainty on our parameter of interest is 2–20 times smaller than the dispersion across our candidate models.
Evidence-weighted Bayesian model averaging (BMA) [15] is not designed to treat a misspecified set of simulators as an empirical systematic-error ensemble. In the -open setting, posterior model weights concentrate on the candidate closest to the data-generating distribution in Kullback–Leibler divergence [2, 26]. The between-model component of the BMA variance can often become negligible even though the selected candidate remains misspecified and its physical parameter estimate may be biased due to compensation between various components of the simulator.
This shifts the question from identifying the best-fitting candidate to quantifying how each candidate responds to discrepancies between simulator and data. We characterize this response using influence functions [5, 14, 19]. For a Gaussian likelihood, the derivative of a posterior mean with respect to the whitened data—which we call the model’s influence map—is a posterior covariance between the parameter of interest and the whitened simulator output [13]. It can therefore be estimated from forward evaluations at existing posterior samples, without simulator gradients or inversion of a Fisher matrix. We contribute (i) a sample-based influence-map estimator and a variance-consistency diagnostic comparing locally propagated noise variance with posterior variance; (ii) a first-order separation of noise-induced and persistent between-model scatter, together with the null-calibrated propagation of an externally estimated discrepancy into model-specific parameter shifts; and (iii) an application to a supermassive black hole (SMBH) mass inferred from multi-resolution ALMA data.
Influence maps for an ensemble of misspecified simulators
Setting. Let be the data and the simulator of candidate model with parameters . With independent Gaussian noise of known standard deviations , we write for the whitened data () and for the whitened simulator output, so that Nested sampling yields the posterior and the evidence . For a scalar quantity of interest (here ), and denote its posterior mean and variance under model . With BMA weights and , the law of total variance gives
In the -open regime the differences in grow linearly with : the weights asymptotically collapse onto a single , and the systematic term becomes zero. Predictive stacking [26] instead chooses weights to optimize held-out predictive performance. Although stacking is well suited to prediction in the -open setting, predictive fit also rewards biases introduced via compensation by multiple model components. A misspecification in one component of the simulator can be compensated by whichever other component is flexible enough to absorb it; if that component is degenerate with the parameter of interest, the compensation biases the estimate while improving the fit. We therefore do not weight by fit at all, but use equal weights, , within families of models whose members use the same external information. The resulting between-model dispersion measures how much the estimate depends on the choice of model within the ensemble; the equal weights express no preference among models and are not posterior model probabilities. The two terms of Eq. (1) then become the statistical variance and the observed spread about the family mean . The influence map methodology described below helps us interpret the observed spread.
Definition and estimation from posterior samples. The influence map of model is the derivative of with respect to the whitened data. For any likelihood, [12, 13]; for the Gaussian likelihood (see Appendix § 6 for a full derivation). The whitened data () is a constant and thus uncorrelated with the parameters , leaving
the posterior covariance between and the whitened simulator output over parameter vectors drawn from the posterior of model . This identity is exact for both linear and nonlinear simulators with fixed Gaussian noise and a data-independent prior. To first order, the parameter of interest then responds to a whitened data perturbation —which could be a noise realization or a deterministic misspecification residual—as . In the linear-Gaussian, flat-prior limit Eq. (2) reduces to the Fisher form [1, 7, 10], with the whitened Jacobian and selecting . However, this latter form requires an invertible Fisher matrix. For the flexible models we use in Section 3, the Fisher matrix is near-singular along degeneracies which are broken only by the prior and by posterior curvature. Thus, we adopt Eq. (2) throughout and estimate it via Monte Carlo over equal-weight posterior draws , one simulator evaluation each:
with the value of at draw , and bars denoting means over draws.
Monte Carlo error and the consistency ratio. Linear functionals of are unbiased by its Monte Carlo scatter and carry a standard error from the per-draw terms; quadratic functionals are biased upward by and are debiased with per-component variances from the same draws (Appendix § 7). We also compute from the debiased norm the variance-consistency ratio , which compares the locally propagated noise variance of the posterior mean with the posterior variance. Equality is expected only under likelihood-dominated linear-Gaussian conditions, so serves as a consistency diagnostic for our influence map-derived functionals.
Decomposing the ensemble spread. To separate persistent between-model differences from variation induced by the particular noise realization, we first introduce , the theoretical parameter mean which we would measure if we observed noiseless data (a practical impossibility). To first order, , where is a unit-covariance noise realization. Substituting into and averaging over ,
with the family-mean influence map. The noise-induced term follows from the influence maps alone (Appendix § 7), which allows us to calculate and the persistent between-model spread . We note here that a shared misspecification residual biases the family mean through , to which the spread is blind, and leaks into the apparent model spread through ; quantifying either requires estimating explicitly, as follows.
Propagating an externally estimated discrepancy residual. In order to quantify the effect of a single model misspecification, we fix the parameters of interest to their best-fit values and re-fit a more flexible parametrization of the misspecified model component [a modular or cut construction: [17, 22]]. From there, we calculate how much the resulting shift in predicted model could have biased the parameters of interest. For a deterministic whitened residual , each model’s bias is to first order. In our application, the refitted pixelated (nonparametric) component enters model linearly at fixed remaining parameters, . Starting from the fitted parametric profile , we solve while holding the remaining parameters at . Non-negativity stabilizes the inversion (see Appendix § 8). We define the model-specific data-space discrepancy and estimate the corresponding shift in the parameter of interest as . Because the refit acts nonlinearly on noise, we calibrate this statistic using 200 parametric Monte Carlo mocks [11, 16]. We adopt a mock noise scaling to match the initial reduced of the mocks to that of the observed fit; we then optimize and calculate the data-space discrepancy in the same way as above. We then estimate the bias in the parameter of interest as , where is the average bias among the mocks.
Application: a black hole mass from multi-resolution ALMA data
The mass of a supermassive black hole can be inferred from molecular-gas kinematics within its gravitational sphere of influence [8]. Here the gas is traced by CO(2–1) emission observed with the Atacama Large Millimeter Array (ALMA) in two independent observations of the elliptical galaxy NGC 4697 [9], at lower (″) and higher (″) angular resolution. We analyse the observations separately and jointly (referred to as the “combined” dataset). Interferometry data from telescopes such as ALMA are taken in Fourier space. In the Fourier domain, the thermal-noise contribution is approximately Gaussian; our non-overlapping data gridding procedure ensures no overlap-induced covariance between cells [25]. The three datasets contain real-valued likelihood terms. Our simulator, SuperMAGE [25] renders a thin circular gas disc whose velocity is set by a stellar mass profile and a central point mass , then transforms the resulting spectral cube into model Fourier-plane data (see Appendix § 11 for all simulator settings). All models use an exponential gas-emissivity profile [8] as a common baseline approximation. We compare two imaging-based stellar profiles, which differ in whether the innermost AGN-contaminated MGE Gaussian is retained (MGE+AGN) or removed (MGE), with three imaging-free profiles (Sérsic, Nuker, and Core-Sérsic) inferred from the kinematics. This comparison tests whether imaging-free models recover black hole masses consistent with conventional imaging-anchored models.
Model dependence dominates the statistical error budget. Across every dataset and model family, the observed between-model spread of 0.08–0.10 dex exceeds the mean within-model posterior width of 0.004–0.052 dex, by factors of 2–20 (see Table 1). Differential responses to the realized noise contribute dex to the between-model spread, so most of the model dependence persists after accounting for noise. Bayesian evidence, meanwhile, strongly favours different models at different angular resolutions (see Appendix § 9).
| Dataset | Family | |||
| lower-res | imaging-based | 0.007 | 0.002 | 0.085 |
| lower-res | imaging-free | 0.052 | 0.026 | 0.101 |
| high-res | imaging-based | 0.005 | 0.001 | 0.082 |
| high-res | imaging-free | 0.018 | 0.009 | 0.081 |
| combined | imaging-based | 0.004 | 0.001 | 0.082 |
| combined | imaging-free | 0.022 | 0.016 | 0.084 |
Table 1. Uncertainty budget of (dex) per dataset and model family: mean within-model posterior width , noise-induced between-model spread , and persistent non-noise spread , Eq. (4); .
Flexible stellar profiles compensate for emissivity misspecification at low resolution. We estimate the effect of the shared exponential-emissivity approximation by replacing it with a non-negative pixelated refit under the cut construction of § 2 (visualized in Appendix § 10). Propagating the resulting data-space discrepancies through the influence maps gives estimated black-hole-mass biases that depend strongly on both the stellar parametrization and the angular resolution (Table 2). The shifts are dex and consistent with the null for the imaging-based models in every dataset. They are also consistent with the null for the imaging-free models fitted to the high-resolution and combined data. In the lower-resolution data, however, all three imaging-free models bias high by 0.086–0.221 dex, corresponding to 2.5–4.7 standard deviations of their null distributions.
| Model | lower-res | high-res | combined |
| MGE | |||
| MGE+AGN | |||
| Sérsic | |||
| Nuker | |||
| Core-Sérsic |
Table 2. Null-calibrated emissivity-induced bias of , (dex), the standard deviation of the 200-mock null distribution; this is the quantity subtracted in Figure 1. Uncalibrated values, null means and Monte Carlo standard errors ( dex) are listed in Appendix § 8. Bold: more than two null standard deviations from zero.
We interpret this bias pattern as compensation for the misspecification of the exponential emissivity model through the stellar mass component. Misspecification of the gas-emissivity distribution can be partly accommodated by changing the inferred stellar profile. At lower resolution, the inner part of an imaging-free stellar profile is inferred from the same kinematics as , so the stellar mass in the unresolved central region remains degenerate with the black hole. Thus, a slight change in the stellar mass profile can significantly affect its extrapolation into the unresolved central region and thereby change the partition of the enclosed mass between stars and the black hole. This results in a biased black-hole mass while improving the fit to the lower-resolution data. The externally constrained imaging-based profiles restrict this compensation route, while the high-resolution observation better separates the dynamical signature of the central black-hole from the surrounding stellar mass.
After removing the coherent bias. Subtracting the null-calibrated biases from the measured black hole mass brings each imaging-free model into statistical agreement with itself across datasets (Figure 1) by correcting the discrepant lower-resolution masses. The variance-consistency ratios are 0.93–1.44 except for the lower-resolution Sérsic fit, for which (for a full list, see Table 4), so the correction to the Sérsic model’s black hole mass may be unreliable. Another caveat is that we do not propagate the uncertainty in the shifts into the resulting credible intervals. For the high-resolution and combined datasets, the dex between-model spread that remains after correction exceeds the statistical uncertainty by factors of 3–20 (for all corrected spreads, see Table 3). For the lower-resolution imaging-free family the correction reduces the spread from 0.10 to 0.03 dex, below its statistical width of 0.05 dex, so model systematics are no longer dominant there. Using Eq. (1), for the combined dataset, our corrected black hole mass measurement yields (stat) (sys) for the imaging-free models and for the imaging-based models. Thus, the two different types of stellar mass models lead to black hole masses that are consistent to within the measured systematic uncertainty.
Figure 1. Posterior distributions of before (left) and after translation by the null-calibrated first-order emissivity shifts (right). Error bars show the 15.86th and 84.14th percentiles and exclude uncertainty in the estimated shifts.
| Dataset | Family | |||||||
| lower-res | imaging-based | 0.0073 | 0.0847 | 0.0018 | 0.0847 | 8.008 | 8.007 | 0.0845 |
| lower-res | imaging-free | 0.0524 | 0.1040 | 0.0263 | 0.1006 | 8.093 | 7.960 | 0.0325 |
| high-res | imaging-based | 0.0052 | 0.0822 | 0.0007 | 0.0822 | 8.022 | 8.022 | 0.0812 |
| high-res | imaging-free | 0.0178 | 0.0811 | 0.0093 | 0.0806 | 7.971 | 7.962 | 0.0794 |
| combined | imaging-based | 0.0043 | 0.0822 | 0.0008 | 0.0822 | 8.022 | 8.022 | 0.0819 |
| combined | imaging-free | 0.0223 | 0.0856 | 0.0156 | 0.0842 | 7.969 | 7.979 | 0.0777 |
Table 3. Uncertainty budget of per dataset and family: statistical width , observed cross-model spread , its noise-induced part and the genuine parametrization systematic (§ 2 and Eq. (4)); equal-weight family means before () and after () removing the null-calibrated emissivity bias of Table 2, and the parametrization systematic after correction, , computed from the corrected means with the same subtracted. Entries in dex.
Table 4: Full-precision version of Table 2: per model and dataset, the emissivity-induced bias (, Monte Carlo standard error from Eq. (14)), the null distribution () obtained by propagating random noise through the same pipeline, and the consistency ratio of Eq. (18). is the observed black hole mass minus what it would be with the correct emissivity; values of far outside the null indicate significant biases, and values significantly above one indicate that the linear approximation may not hold. Biases in dex.
| Dataset | Model | () | Null () | |
| lower-res | MGE | 1.4108 | ||
| lower-res | MGE+AGN | 1.3450 | ||
| lower-res | Sérsic | 3.3245 | ||
| lower-res | Nuker | 1.2955 | ||
| lower-res | Core-Sérsic | 1.1625 | ||
| high-res | MGE | 1.1940 | ||
| high-res | MGE+AGN | 0.9527 | ||
| high-res | Sérsic | 0.9946 | ||
| high-res | Nuker | 1.4350 | ||
| high-res | Core-Sérsic | 1.4415 | ||
| combined | MGE | 1.1032 | ||
| combined | MGE+AGN | 0.9284 | ||
| combined | Sérsic | 1.0301 | ||
| combined | Nuker | 1.4154 | ||
| combined | Core-Sérsic | 1.4273 |
Table 4.
Discussion and conclusions
Our application illustrates a consequential failure mode of inference with misspecified simulators: one model component can compensate for an error in another, improving the fit while biasing the physical parameter of interest. In the lower-resolution observation, the imaging-free models compensate for the shared exponential-emissivity approximation through changes in the inferred inner stellar mass profile. Because the kinematics constrain the combined enclosed mass of the stars and black hole, this compensation biases . The effect is suppressed when the stellar profile is constrained externally by imaging or when the central kinematics are observed at higher angular resolution. Propagating the emissivity discrepancies through model-specific influence maps substantially improves the cross-observation consistency of every imaging-free model.
The influence maps and spread decomposition require simulator evaluations per model and dataset (compared with approximately evaluations for the original inference) and require neither simulator gradients nor an invertible Fisher matrix. They can therefore be evaluated for black-box simulators, prior-regularized posteriors, and amortized posteriors. Propagating a particular discrepancy additionally requires a flexible representation of the suspected component, a modular refit that prevents feedback into the scientific parameters, and null calibration of the resulting statistic.
The principal limitations are the first-order and modular nature of the calculation. The variance-consistency ratio is sensitive to posterior geometry in addition to nonlinear conditions. Thus, neither validates a finite first-order shift nor uniquely diagnoses nonlinearity. Large discrepancy shifts should ultimately be checked by re-inference in which the flexible component is marginalized [23] or represented in a discrepancy-aware likelihood [3, 18]. The ensemble spread is also conditional on the selected parametrization; it is therefore not a complete systematic uncertainty. Here we propagate the gas-emissivity approximation but not other shared assumptions such as circular motion in a thin disc. Future work will also investigate improved consistency tests using simulated observations and apply the influence map methodology to additional science cases.
Acknowledgements
This work is partially supported by Schmidt Sciences, a philanthropic initiative founded by Eric and Wendy Schmidt as part of the Virtual Institute for Astrophysics (VIA). This work is in part supported by computational resources provided by Calcul Quebec and the Digital Research Alliance of Canada. M.J.Y.B. acknowledges support from Mitacs through the Globalink program and from the Balzan Centre for Cosmological Studies at New College, University of Oxford via the Balzan Fellowship. M.J.Y.B also acknowledges support from UdeM through the Bourse d’excellence du centenaire, Bourse du passage accéléré, and the Bourse Gilles Beaudet. M.J.Y.B acknowledges technical support from Claude Pascal Duquette and Luc Turbide. H.Z. acknowledges support from a Science and Technology Facilities Council (STFC) DPhil studentship under grant ST/X508664/1 and the Balliol College J. T. Hamilton Scholarship in physics. M.B. was supported by STFC consolidated grant ‘Astrophysics at Oxford’ ST/K00106X/1 and ST/W000903/1. Y.H. and L.P. acknowledge support from the Canada Research Chairs Program, the Natural Sciences and Engineering Research Council of Canada through grants RGPIN-2020-05073 and 05102.
Derivation of the posterior-covariance identity
Let denote the parameters of model , and let be the scalar parameter of interest. The posterior distribution and its mean are
where
We assume that the prior, parameter support, and quantity of interest are independent of the data, that the whitening transformation is held fixed, and that differentiation may be interchanged with integration. All expectations and covariances below are taken under the posterior of model at the observed data.
Define the likelihood score with respect to the data as
Since , differentiating the normalization gives
Consequently, the derivative of the normalized posterior is
Differentiating the posterior mean therefore yields
For the whitened Gaussian likelihood,
the score is
Because the observed data are constant within the posterior expectation, their covariance with vanishes, giving
Monte Carlo error of influence-map functionals
The influence-map estimate of Eq. (3) is an average over posterior draws and therefore carries Monte Carlo noise, which affects linear and quadratic functionals differently.
Linear functionals. Any propagated perturbation is linear in and hence unbiased by random scatter in ; its Monte Carlo scatter is measured directly by rewriting the estimate as the mean over draws of one scalar per draw,
and quoting . Every propagated bias carries this standard error (Table 4).
Quadratic functionals. Writing with , and with the index running over the components of the whitened data vector,
because the noise cannot cancel in a square. We estimate the per-component variance from the same draws via the variance-of-a-sample-mean formula,
with the per-draw centred products of Eq. (3), and obtain the debiased norm
Debiasing centres the estimator but does not remove its scatter; the residual uncertainty of Eq. (17) is quantified by a jackknife over sixteen 32-draw shards of the samples. All products are accumulated in double precision.
Consistency ratio. Since the linear response (§ 2) is only accurate to first order, a large propagated shift is likely to be affected by higher-order effects. The consistency ratio,
is the ratio of the noise-induced variance of the reported mean to the posterior variance. In the linear, data-dominated limit ; we use , per model and dataset (Table 4), to delimit where the linear propagation is more trustworthy.
Noise-induced spread. The same inflation affects the noise-induced term of Eq. (4). Because the Monte Carlo draws are independent across models, the inflation of is , where is the family mean of the per-model totals . We subtract it (clipping at zero),
and obtain the genuine parametrization systematic as
These are the quantities and of Table 3. In practice the constraints on come from the same high-velocity channels regardless of the model, so the differential noise-induced shift in is significantly smaller than the noise-driven shift shared by all models within a family.
Cross-check against the Fisher form. For the two imaging-based models, whose dynamical parameters are likelihood-driven and whose Fisher matrices are well conditioned, the whitened Jacobians can be computed exactly by forward-mode automatic differentiation through the simulator, and the Fisher form provides an independent estimate of the influence map. It matches Eq. (3) at cosine similarity 0.87–0.88 and under-predicts the overall amplitude by per cent, reflecting non-Gaussian posterior structure that the linearized form omits; the differences between the two estimates produce a negligible ( dex) shift in every functional quoted in the main text. For the imaging-free profiles the Fisher form is numerically intractable, because the degeneracies between and the inner stellar profile are regularized by the priors and by the curvature of the degeneracy rather than by the unregularized likelihood 1; Eq. (2) is therefore adopted as the definition throughout.
Non-negative emissivity refit, null calibration and consistency ratios
Solver. Holding all kinematic and stellar parameters of model at their best-fitting values, the model visibilities are linear in the sky-plane emissivity, , and we solve
on the pixel grid of the simulator, initialized at the best-fitting exponential emissivity. At the constrained optimum the Karush–Kuhn–Tucker conditions hold pixel by pixel: where the gradient vanishes, and where it is non-negative, i.e. any further reduction of at that pixel would require negative flux. Unconstrained, has a large near-null space at sub-resolution scales and the minimizer would fit noise with oscillating positive and negative flux; non-negativity is what makes the refit stable. We solve Eq. (21) by conjugate-gradient iteration on the normal equations. A step that would drive a pixel negative is clipped at the boundary; that pixel joins the active set and the conjugate directions restart. A projected-gradient fallback completes the solve when repeated restarts stall the conjugate iteration. Iterations terminate at the discrepancy target , at a KKT point, or—in practice, since the data’s excess noise power is not flux-driven and the discrepancy target need not be attainable—at a plateau. The identical stopping rule is applied to the observed data and to every null-calibration mock.
Because the gas is a massless tracer of the potential in this system and the model visibilities are linear in the sky-plane emissivity at fixed kinematics, the refit can target the emissivity misspecification without altering the dynamical model. The modular construction [17, 22] prevents the refit from feeding back into the kinematic parameters, and its effect on is instead propagated through the influence map, evaluated per posterior draw (Eq. (14)) so that every quoted bias carries its Monte Carlo standard error.
Null calibration. We generate mock datasets from the best-fitting model visibilities,
each with the same realization shared by all models within a mock to preserve the cross-model correlation structure. The per-model noise scaling (a per cent inflation over the nominal uncertainties) ensures that the optimizer starts as far from the stopping criteria for a mock as it does for the real data. The same operator, initialization, solver and stopping rule are applied to each mock, and each mock records the propagated bias of every model. The observed biases are then contextualized with respect to the null distribution through its mean and standard deviation and through a two-sided empirical -value, whose resolution floor at 200 mocks is . Because the same is used for the observed and the mock perturbations, the null-calibrated percentiles are independent of the Monte Carlo noise of the influence maps. Table 3 gives the uncertainty budget and the family means before and after correction, including the observed biases with their Monte Carlo standard errors, the null means and standard deviations at full precision, and the consistency ratios of Eq. (18).
Bayesian Evidence
The Bayesian evidence ranking changes significantly between observations (Table 5). For example, for the lower-resolution data, the MGE+AGN model is ranked worst and the Nuker is ranked best; meanwhile, for the higher-resolution dataset, the MGE+AGN model is ranked best and the Nuker is ranked worst. The combined dataset chooses the Core-Sérsic as the best model, despite it not being ranked first by either of the other datasets. Furthermore, for the combined dataset, evidence-weighted model averaging would assign approximately 99.6% of the weight to the Core-Sérsic, thereby potentially artificially shrinking the systematic uncertainty on the black hole mass.
Table 5: Log-evidence relative to the best model of each dataset (comparable only within a dataset).
| Model | lower-res | high-res | combined |
| MGE | |||
| MGE+AGN | 0.00 | ||
| Sérsic | |||
| Nuker | 0.00 | ||
| Core-Sérsic | 0.00 |
Table 5.
Additional figures
In this section, we provide a visualization of the impact of re-fitting the gas emissivity according to Appendix § 8. In Figure 2 and Figure 3, we demonstrate how the inferred gas emissivity changes as a function of radius after re-fitting: the corrected gas distribution shows stronger emission for distances near and reduced emission for distances above .
Figure 2. Discrepancy residual (lower-resolution data): azimuthally averaged ratio of the refit to the exponential emissivity , one curve per stellar model.
Figure 3. As Figure 2, for the combined-resolution dataset. The equivalent plot for the high-resolution dataset is nearly identical.
Similarly, we plot the data-model residuals before and after re-fitting the gas emissivity to demonstrate the improvement in fit. We plot the residuals using position-velocity diagrams (PVDs). A PVD is produced by extracting (from the spectral cube, whose dimensions are position, position, velocity) a slice in position situated along the kinematic major axis of the galaxy. The resulting PVD plots the position along the slice on the x axis and the velocity on the y axis. This allows simple visualization of the main kinematic features of a 3-dimensional data cube. The gas emissivity correction brings the PVD residuals down to the noise floor for all stellar mass models.
Figure 4. Position–velocity residuals (data minus model, in units of the empirical noise) along the kinematic major axis of the lower-resolution dataset for the five stellar mass models, before (top row) and after (bottom row) replacing the exponential emissivity by the refit of Eq. (21). The velocity-symmetric residual structures, identical for all stellar models, are removed by the emissivity correction, confirming that they arise from the shared emissivity model rather than from the stellar parametrizations.
Datasets, models and inference settings
Data. Both observations target the line of NGC 4697 with the ALMA 12-m array in a compact (lower-resolution) and an extended (high-resolution) configuration; the combined dataset concatenates their visibilities. After calibration and continuum subtraction, the visibilities are regridded to a common spectral grid of 80 channels of 10 km s, Hermitian-augmented, and gridded onto a regular Fourier grid with non-overlapping cells using a Kaiser–Bessel window, so that each measured visibility contributes to exactly one cell and no inter-cell covariance is introduced. Per-cell uncertainties are estimated from the empirical weighted scatter within densely populated cells and from time-differenced per-baseline noise estimates in sparse cells. Only the non-redundant Hermitian half-plane enters the likelihood, so each independent complex visibility is counted once. Table 6 lists the resulting data volumes.
| Setting | Lower resolution | High resolution | Combined |
| Fourier grid side, | 135 | 1097 | 1097 |
| Fourier cell size, () | 10313 | 10313 | 10313 |
| Image pixel scale (arcsec) | 0.1481 | 0.01823 | 0.01823 |
| Longest occupied gridded baseline () | |||
| Model image grid, | 69 | 549 | 549 |
| Occupied half-plane cells, | 51 219 | 776 898 | 803 134 |
| Number of likelihood terms, | 102 438 | 1 553 796 | 1 606 268 |
Table 6. Dataset-dependent numerical settings of the simulator and likelihood.
Simulator. The simulator evaluates the circular velocity of an oblate axisymmetric stellar mass distribution represented as a Multi-Gaussian Expansion [4] plus a Plummer-softened point mass , renders a thin gas disc of exponential emissivity with a Gaussian line-of-sight velocity dispersion into a spatially and spectrally oversampled cube by a deterministic inverse mapping from sky pixels to the disc plane, and transforms the cube to model visibilities (primary-beam attenuation, flux normalization, zero-padding, the image-plane taper of the gridding window, FFT and sampling of the occupied cells). The imaging-free profiles (Sérsic, Nuker, Core-Sérsic) are converted to Multi-Gaussian Expansions at every likelihood evaluation by a precomputed linear projection onto a fixed bank of 64 Gaussians (reconstruction error per cent), which makes the entire forward model differentiable via its implementation in PyTorch [21]; the Jacobians used to cross-check Eq. (3) against the Fisher form for the imaging-based models are obtained by forward-mode automatic differentiation through this pipeline. Full details of the data reduction, simulator and priors are given in Yantovski-Barth et al. [25].
| Quantity | Symbol | Value |
| Physical and observational | ||
| Distance | 11.4 Mpc | |
| Scale | – | 55.27 pc arcsec |
| Line rest frequency | 230.538 GHz | |
| Antenna diameter | 12 m | |
| Primary-beam FWHM coefficient | – | |
| SMBH softening length | 0.01 pc | |
| Circular-velocity quadrature | ||
| Quadrature nodes | 128 | |
| Rotation-curve lookup radii | 4096 | |
| Profile-to-MGE projection | ||
| Gaussian basis size | 64 | |
| Radial sampling points | 100 | |
| Radial sampling range | – | 1 pc–10 kpc |
| Initial ridge parameter | ||
| Cube rendering | ||
| Velocity sub-channels per pixel | 5 | |
| Uncertainty inflation factor | – | 1 (none) |
| Sampler (Nautilus) | ||
| Live points | 2000 | |
| Networks per bound | – | 4 |
| Target effective sample size | ||
| Random seed | – | 42 |
Table 7. Quantities held fixed in all dynamical models and datasets.
Parameters and priors. All models share nine parameters with uniform priors: the black hole mass, ; the gas-disc scale length, inclination, position angle, gas velocity dispersion, systemic velocity, two kinematic-centre offsets and the total line flux. The imaging-based models add a single mass-to-light ratio; the imaging-free models add the shape and normalization parameters of their profile (Sérsic: index, effective radius, normalization; Nuker: inner and outer slopes, break radius, transition sharpness, normalization; Core-Sérsic: index, core slope, break and effective radii, transition sharpness, normalization) and a shared intrinsic axis ratio, with priors spanning the ranges observed in galaxy photometry. Tables 7 through 12 give the full parameter settings and priors for each model.
Sampling and compute resources. Each posterior is sampled with Nautilus [20] using 2000 live points, four neural networks per bound, a target of effective posterior samples and a fixed random seed, discarding the exploration phase; live points are distributed over the GPUs of a single node, each holding an independent copy of the simulator. The forward model runs in single precision with the accumulated in double precision. Inference maps require additional forward evaluations per model and dataset; the null calibration requires constrained refits per model and dataset.
All nested-sampling fits were run on national academic HPC clusters (nodes with A100 40 GB; nodes with H200 141 GB). Data products total roughly 0.7 TB on local storage (roughly 640 GB raw and gridded visibilities; roughly 73 GB posterior and analysis products). Each reported fit took 0.6–12.9 node-hours of wall-clock time depending on model complexity (– likelihood evaluations); counting additional models that were tested, the fits total about 63 node-hours
Notes. denotes a uniform distribution on . The black hole mass prior corresponds to . The gas disk scale length prior corresponds to at the adopted distance. The offsets and are measured with respect to the phase centre of the observations (in ICRS coordinates, RA 12:48:35.8990, Dec -05:48:02.4210). The position angle is treated as a periodic parameter by the sampler.
| () | (arcsec) | (pc) | ||
| 1 | 5.579 | 0.052 | 2.9 | 0.932 |
| 2 | 4.783 | 0.187 | 10.3 | 1.000 |
| 3 | 4.445 | 0.456 | 25.2 | 0.863 |
| 4 | 4.239 | 0.986 | 54.5 | 0.726 |
| 5 | 4.061 | 2.328 | 128.7 | 0.541 |
| 6 | 3.698 | 4.624 | 255.6 | 0.683 |
| 7 | 3.314 | 6.442 | 356.0 | 0.318 |
| 8 | 3.538 | 15.524 | 858.0 | 0.589 |
Table 9. Parameters of the optically-derived MGE stellar mass model for the model which retains the innermost Gaussian containing the AGN signal (“MGE with AGN”). For the model with the innermost (AGN) Gaussian removed (“MGE”), we remove the first row from the table below.
| Parameter | Sampled quantity | Prior |
| Sérsic index | ||
| Effective radius | ||
| Normalisation | ||
| Intrinsic axis ratio |
Table 10. Priors on the free parameters of the Sérsic stellar mass model.
Notes. The effective-radius prior corresponds to , i.e. at the adopted distance. . The shared parameters of Table 8 apply in addition.
| Parameter | Symbol | Sampled quantity | Prior |
| Black hole mass | |||
| Gas disk scale length | [pc] | ||
| Inclination | [deg] | ||
| Position angle | [deg] | ||
| Gas velocity dispersion | [km/s] | ||
| Systemic velocity | [km/s] | ||
| Kinematic centre offset (RA) | [arcsec] | ||
| Kinematic centre offset (Dec.) | [arcsec] | ||
| Total line flux | [Jy km/s] |
Table 8. Priors on the free parameters shared by all dynamical models.
| Parameter | Sampled quantity | Prior |
| Transition sharpness | ||
| Inner slope | ||
| Slope difference | ||
| Break radius | ||
| Normalisation | ||
| Intrinsic axis ratio |
Table 11. Priors on the free parameters of the Nuker stellar mass model.
Notes. The break-radius prior corresponds to , i.e. at the adopted distance. The outer slope follows as and therefore satisfies by construction. . The shared parameters of Table 8 apply in addition.
| Parameter | Sampled quantity | Prior |
| Sérsic index | ||
| Transition sharpness | ||
| Core slope | ||
| Break radius | ||
| Effective radius | ||
| Normalisation | ||
| Intrinsic axis ratio |
Table 12. Priors on the free parameters of the Core-Sérsic stellar mass model.
Notes. The break-radius prior corresponds to , i.e. pc at the adopted distance. The effective radius is sampled under a prior conditional on , uniform in between and (10 kpc at the adopted distance). . The shared parameters of Table 8 apply in addition.
(about 108 A100-h + roughly 287 H200-h). Null-calibration mocks (which repeat the flux solve 200 times per dataset) add about 20 A100-hours, and Jacobians, flux re-optimization, and influence-map harvesting add GPU-hours, for GPU-hours of cluster compute in total.
The complete research project used substantially more compute than the reported experiments—about 5,000 additional GPU-hours—on preliminary and failed campaigns, including the following: MALA/parallel-tempering MCMC experiments ( GPU-h), an UltraNest production campaign that failed due to a float32 likelihood-quantization bug and its float64 rerun ( GPU-h), sampler benchmarking and prior/parametrization studies ( GPU-h), and a superseded nested-sampling generation replaced after a code review ( GPU-h).
LLM-based tools were used for project organization/planning, language editing, code debugging assistance, and drafting code (supervised by the authors). All resulting code, derivations, citations, figures, and prose were independently reviewed and validated by the authors. LLMs were not components of the inference method evaluated in this work. All generative AI code and text have been verified by the authors and have been saved with version control to ensure reproducibility. The authors of this work accept final responsibility for all published results.
References
- [1]Adam Amara and Alexandre Réfrégier. Systematic bias in cosmic shear: extending the Fisher matrix. MNRAS, 391(1):228–236, November 2008. doi: 10.1111/j.1365-2966.2008.13880.x.DOI
- [2]José M. Bernardo and Adrian F. M. Smith. Bayesian Theory. Wiley Series in Probability and Statistics. John Wiley & Sons, 1994. ISBN 9780470316870.
- [3]Jenný Brynjarsdóttir and Anthony O’Hagan. Learning about physical parameters: the importance of model discrepancy. Inverse Problems, 30(11):114007, 2014. doi: 10.1088/0266-5611/30/11/114007.DOI
- [4]Michele Cappellari. Efficient multi-Gaussian expansion of galaxies. MNRAS, 333(2):400–410, June 2002. doi: 10.1046/j.1365-8711.2002.05412.x.DOI
- [5]R. Dennis Cook. Assessment of local influence. Journal of the royal statistical society series b-methodological, 48:133–155, 1986. doi: 10.1111/j.2517-6161.1986.tb01398.x.DOI
- [7]Curt Cutler and Michele Vallisneri. LISA detections of massive black hole inspirals: Parameter extraction errors due to inaccurate template waveforms. Phys. Rev. D, 76(10):104018, November 2007. doi: 10.1103/PhysRevD.76.104018.DOI
- [8]Timothy A. Davis, Martin Bureau, Michele Cappellari, Marc Sarzi, and Leo Blitz. A black-hole mass measurement from molecular gas kinematics in NGC4526. Nature, 494(7437):328–330, February 2013. doi: 10.1038/nature11819.DOI
- [9]Timothy A. Davis, Martin Bureau, Kyoko Onishi, Michele Cappellari, Satoru Iguchi, and Marc Sarzi. WISDOM Project - II. Molecular gas measurement of the supermassive black hole mass in NGC 4697. MNRAS, 468(4):4675–4690, July 2017. doi: 10.1093/mnras/stw3217.DOI
- [10]Éanna É. Flanagan and Scott A. Hughes. Measuring gravitational waves from binary black hole coalescences. II. The waves’ information and its extraction, with and without templates. Phys. Rev. D, 57(8):4566–4587, April 1998. doi: 10.1103/PhysRevD.57.4566.DOI
- [11]Andrew Gelman, Xiao-Li Meng, and Hal Stern. Posterior predictive assessment of model fitness via realized discrepancies. Statistica Sinica, 6(4):733–760, 1996. ISSN 10170405, 19968507. URL http://www.jstor.org/stable/24306036.
- [12]Ryan Giordano and Tamara Broderick. The Bayesian Infinitesimal Jackknife for Variance. arXiv e-prints, art. arXiv:2305.06466, May 2023. doi: 10.48550/arXiv.2305.06466.DOI
- [13]Ryan Giordano, Tamara Broderick, and Michael I. Jordan. Covariances, robustness, and variational bayes. Journal of Machine Learning Research, 19(51):1–49, 2018. URL http://jmlr.org/papers/v19/17-670.html.arxiv.org/abs/1709.02536
- [14]Frank R. Hampel. The influence curve and its role in robust estimation. Journal of the American Statistical Association, 69(346):383–393, 1974. ISSN 01621459, 1537274X. URL http://www.jstor.org/stable/2285666.DOI
- [15]Jennifer A. Hoeting, David Madigan, Adrian E. Raftery, and Chris T. Volinsky. Bayesian model averaging: a tutorial. Statistical Science, 14(4):382 – 417, 1999. doi: 10.1214/ss/1009212519. URL https://doi.org/10.1214/ss/1009212519.
- [16]Adery C. A. Hope. A simplified monte carlo significance test procedure. Journal of the Royal Statistical Society: Series B (Methodological), 30(3):582–598, 1968. doi: https://doi.org/10.1111/j.2517-6161.1968.tb00759.x. URL https://www.onlinelibrary.wiley.com/doi/abs/10.1111/j.2517-6161.1968.tb00759.x.
- [17]Pierre E. Jacob, Lawrence M. Murray, Chris C. Holmes, and Christian P. Robert. Better together? Statistical learning in models made of modules. arXiv e-prints, art. arXiv:1708.08719, August 2017. doi: 10.48550/arXiv.1708.08719.DOI
- [18]Marc C. Kennedy and Anthony O’Hagan. Bayesian calibration of computer models. Journal of the Royal Statistical Society Series B: Statistical Methodology, 63(3):425–464, 09 2001. ISSN 1369-7412. doi: 10.1111/1467-9868.00294. URL https://doi.org/10.1111/1467-9868.00294.
- [19]Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In Doina Precup and Yee Whye Teh, editors, Proceedings of the 34th International Conference on Machine Learning, volume 70 of Proceedings of Machine Learning Research, pages 1885–1894. PMLR, 06–11 Aug 2017. URL https://proceedings.mlr.press/v70/koh17a.html.arxiv.org/abs/1703.04730
- [20]Johannes U. Lange. NAUTILUS: boosting Bayesian importance nested sampling with deep learning. MNRAS, 525(2):3181–3194, October 2023. doi: 10.1093/mnras/stad2441.DOI
- [21]Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Köpf, Edward Yang, Zach DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An Imperative Style, High-Performance Deep Learning Library. arXiv e-prints, art. arXiv:1912.01703, December 2019. doi: 10.48550/arXiv.1912.01703.
- [22]Martyn Plummer. Cuts in bayesian graphical models. Statistics and Computing, 25(1):37–43, January 2015. ISSN 0960-3174. doi: 10.1007/s11222-014-9503-z. URL https://doi.org/10.1007/s11222-014-9503-z.
- [23]S. H. Suyu, P. J. Marshall, M. P. Hobson, and R. D. Blandford. A Bayesian analysis of regularized source inversions in gravitational lensing. MNRAS, 371(2):983–998, September 2006. doi: 10.1111/j.1365-2966.2006.10733.x.DOI
- [24]Michele Vallisneri. Use and abuse of the fisher information matrix in the assessment of gravitational-wave parameter-estimation prospects. Phys. Rev. D, 77:042001, Feb 2008. doi: 10.1103/PhysRevD.77.042001. URL https://link.aps.org/doi/10.1103/PhysRevD.77.042001.
- [25]M. J. Yantovski-Barth, Hengyue Zhang, Aris Amvrosiadis, Nolan Smyth, Connor Stone, Martin Bureau, Yashar Hezaveh, and Laurence Perreault-Levasseur. GLAMOR – I. A supermassive black hole mass measurement using visibility-space modelling of molecular gas dynamics and imaging-free stellar mass parametrizations. in prep., 2026.
- [26]Yuling Yao, Aki Vehtari, Daniel Simpson, and Andrew Gelman. Using Stacking to Average Bayesian Predictive Distributions (with Discussion). Bayesian Analysis, 13(3):917 – 1007, 2018. doi: 10.1214/17-BA1091. URL https://doi.org/10.1214/17-BA1091.



