Manuscript Offprint
arXiv:2610.11737Uncovering and Fixing Collider Bias in Bayesian PINNs
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Bayesian physics-informed neural networks (B-PINNs) are a popular framework for parameter and state inference from sparse or noisy observations. They are commonly formulated via a collider structure, in which physical and trajectory parameters are assumed to be a priori independent and become coupled through virtual likelihoods on differential-equation residuals that enforce physical consistency. We show that this modeling choice can induce severe systematic bias in the posterior over physical parameters: even when the prior is favorably centered on the ground-truth parameters, the resulting posterior can drift away and concentrate far from them. As a remedy, we advocate a hierarchical chain model in which physics generates trajectories, which in turn generate observations. The chain model does not suffer from this posterior bias, but it poses a harder, so-called doubly intractable, inference problem due to a physics-dependent normalization constant. This challenge can be resolved by discretizing the underlying stochastic dynamics, after which the chain posterior can be sampled exactly with particle MCMC. We identify two distinct mechanisms characterizing the collider bias, derive analytical approximations of their magnitudes, and establish diagnostic criteria for predicting when standard B-PINNs remain reliable. Experiments confirm the predicted bias and show that the chain formulation successfully avoids it.
1 INTRODUCTION
Inferring unknown physical parameters from dynamical systems is a fundamental challenge across science and engineering. Physics-informed neural networks (PINNs) [22] tackle this inverse problem by training neural trajectory surrogates to jointly minimize data
Robert Peharz
TU Graz

(a) Collider (B-PINN)

(b) Chain (ours)
Figure 1: Modeling choices for physics-informed Bayesian inference. (a) Collider (B-PINN): Physics parameters and trajectory parameters are a priori independent, interacting only when conditioned on equation residuals . (b) Chain (ours): Physics directly generates trajectories , which in turn generate data .
mismatch and physical law violations. Under limited and noisy data, a Bayesian treatment naturally quantifies uncertainty over trajectories and parameters. Yet, their assumed dependency structure requires careful consideration, which is the focus of this paper.
Bayesian PINNs (B-PINNs) [29] assume the factorization
Here and are the priors over physics and trajectory parameters, respectively, and is the observation likelihood. Residuals serve as “virtual observations” of zero measuring physics violations at collocation points, typically under a narrow zero-mean Gaussian likelihood . Thus, and are a priori independent and coupled only upon conditioning on . In graphical-model terms [13], this forms a collider at (Fig. 1a), a structure widely adopted in the literature [14, 20, 25, 26].
Alternatively, one might use a hierarchical model, in which physics is equipped with a prior, trajectories depend on and observations depend on :
Prior Likelihood Likelihood

Chain Model (Ours)
B-PINN
Ground Truth
Prior
Figure 2: Posterior marginals for the damped linear oscillator. System governed by with white noise , mass , damping and spring constant , ground-truth parameters , residual scale fixed at , and 40 noisy observations ( ). Posteriors are sampled via NUTS (24,000 samples) for B-PINN and PMMH [2] (14,000 samples) for our proposed chain model. Although all three physical parameters are inferred jointly, only the ratios and are identifiable; we therefore display their corresponding marginal posteriors. Despite initialization at the ground truth and identical priors centered at the ground truth, only the chain model accurately recovers the true values. In contrast, B-PINN exhibits a systematic collider bias, underestimating dissipation ( ) and stiffness ( ). The bias is reproducible over resampled datasets. Full experimental details are provided in Section 5.
Here the dependency structure between and forms a chain (head-to-tail node) [13], as illustrated in Fig. 1b. Unlike the collider (1), depends directly on through the trajectory likelihood rather than indirectly through residual likelihood .
Which of the two formulations is preferable? The collider offers practical convenience: its factors are straightforward Gaussian priors and likelihoods. By contrast, specifying in the chain is less straightforward; it requires describing a distribution over trajectory parameters that may vary substantially with the physics . An intuitive construction is to start from the prior , similar as in the collider formulation, reweight it according to the exponential of the negative squared residual error, and renormalize the result. As detailed in Section 2, this renders the chain model (2) nearly identical to the collider model (1), up to a physics-dependent normalization constant whose calculation requires an intractable marginalization over .
Despite the computational simplicity of the collider, the chain should be preferred. Conceptually, the residuals r in the collider formulation act merely as auxiliary variables to couple physics and trajectories , rather than quantities of substantive interest. The chain avoids this artificial construction by modeling trajectory dependence directly via . Furthermore, forward-sampling the collider yields an implausible generative process—typically generating incompatible pairs of and that demand unlikely residuals. By contrast, the chain follows the natural hierarchy in which physics generates trajectories , which in turn generate observations y.
Crucially, the collider systematically biases the posterior over physical parameters. To demonstrate this, we sample synthetic data from a damped linear oscillator with known ground truth, center prior modes at the true values, and sample the collider posterior with NUTS [12], using Fourier features to prevent spectral bias [27]. Despite these favorable conditions, the collider marginals drift substantially from the ground truth (Fig. 2), by about two posterior standard deviations in c/m. This is alarming, as the collider model can return confidently wrong estimates of the underlying physics. By contrast, our proposed chain inference exhibits the expected behavior: its posterior concentrates at the ground truth.
As shown in Section 2, this bias stems directly from the physics-dependent normalization constant , which systematically favors less restrictive physics in the collider setting. While the chain formulation eliminates this bias, it yields a challenging, doubly-intractable problem [17]. Despite the prevalence of collider-based approaches in physics-informed neural inference, this structural bias remains largely unaddressed. To our knowledge, the only exceptions are Alberts, Hao, and Bilionis [1, 10, 11], who employ a similar chain structure and trace the posterior bias to ; however, they address the doubly-intractable problem via computationally demanding nested inference without further analyzing the bias. Still, their formulation has gained little traction in the community and the collider formulation remains the default in B-PINN practice [16, 24].
where and denote the first and second time derivatives, is an invertible generalized mass matrix, and is a force field driving the system, both parameterized by unknown physical parameters . Equation (3) is the general form of a broad class of second-order dynamical systems arising in classical mechanics, structural dynamics, and robotics [8, 18].
In practice, the trajectory is rarely observed directly and is therefore treated as latent. Instead, we only have access to sparse, noisy observations at times , governed by a Gaussian measurement model
with known observation covariance .
Beyond the measurement, the dynamics themselves are typically uncertain: simplifications and unmodeled degrees of freedom inevitably perturb the ideal dynamics (3). We account for these discrepancies by introducing process noise on the velocity . With this, the phase-space state evolves according to an Itô stochastic differential equation (SDE)
driven by standard Brownian motion . Here, is the acceleration field and the drift. The physical disturbances are modeled as constant white noise with covariance , and the invertible, possibly state- and parameter-dependent matrix maps them into velocity increments.
The choice of determines how process noise enters the dynamics: setting injects white noise directly into the accelerations, whereas setting models the perturbations as stochastic forces. The latter is more realistic for many mechanical systems, where physical disturbances act as fluctuating generalized forces or torques. As we show in Section 3, parameter dependence in is one of the factors contributing to collider bias in the inferred physical parameters.
With process noise present ( ), particular physics parameters induce a distribution over trajectories rather than a single deterministic trajectory. Our primary goal is to infer the marginal posterior distribution over the physical parameters given sparse observations of the trajectory:
Following standard B-PINN practice, we fix the residual scale as a hyperparameter rather than inferring it alongside [14, 29].
2.1 Physics-Informed Residuals and Energy
To connect the trajectory distribution induced by the stochastic dynamics (5) with physics-informed inference, we express deviations from the governing dynamics through a residual energy. In physics-informed machine learning, the continuous trajectory is represented by a differentiable surrogate parameterized by (e.g., neural network weights). At a set of collocation points , we define the physics residual
where . To relate these pointwise residuals to the process-noise model, suppose the collocation points are uniformly spaced with step size . Over an interval of width , the Brownian increment driving (5) has covariance . Equivalently, the corresponding average stochastic forcing over that interval has covariance . This motivates modeling the residuals at the collocation points as Gaussian deviations with covariance , yielding the quadratic residual energy
Thus, the stochastic dynamics induce a natural quadratic energy measuring the compatibility between a trajectory and physical parameters . This residual energy is the common ingredient underlying the probabilistic formulations considered next.
2.2 Probabilistic Models: Collider vs. Chain
We can now define the two probabilistic models—collider (1) and chain (2)—in a parallel manner and using similar components. Both factorizations share the same prior over physical parameters and the same observational likelihood,
The key difference between them is how the residual energy (8) is used to couple the trajectory parameters and the physical parameters .
Collider formulation. Standard Bayesian PINNs [14, 25, 26, 29] place an independent prior on the trajectory parameters and enforce the physical law through auxiliary residuals treated as pseudo-observations equipped with a narrow zero-mean Gaussian:
(10)
where the Gaussian normalization constant depends on , but is invariant to and . Because and are assumed a priori independent and interact only via conditioning on , the residual acts as a collider node in the underlying directed acyclic graph (Fig. 1a).
Chain formulation. In contrast, the hierarchical chain formulation follows the generative direction (Fig. 1b) by defining a conditional distribution over trajectories,
Here, is interpreted as a reference density over the trajectory parametrization, which can encode preferences for certain trajectories. Unlike in the collider formulation, it is not a prior over ; instead, the exponential factor tilts this reference density toward trajectories that are compatible with the . Normalizing the resulting conditional distribution requires the normalization constant
which generally depends on the physical parameters .
Model Difference and The Collider Bias. The two formulations differ only through their normalization factors and we can write:
Since is constant with respect to , this difference carries directly to the posterior over the physical parameters:
where we call the model difference the collider bias. It is the mechanism underlying the posterior drift observed in Fig. 2. The term bias is deliberate: displaces the posterior from the data-generating parameters, so that the collider's credible intervals miss the ground truth, not merely the chain posterior (Section 5). The partition function measures the amount of trajectory space, weighted by the reference density , that is compatible with the dynamics under . The collider formulation therefore reweights the desired posterior by , favoring that admit a larger volume of low-residual trajectories, that is, less restrictive physics.
3 ANALYSIS OF THE COLLIDER BIAS
For B-PINNs with a neural trajectory surrogate, the collider bias decomposes into two distinct mechanisms. In Section 4.2, we show that adopting a Markovian state-space latent model eliminates one mechanism and renders the other analytically tractable.
Laplace approximation of the collider bias. Because the partition function (12) is analytically intractable for neural surrogates, we place a Gaussian prior on the weights and apply a Laplace expansion around the data-free mode . The collider bias (14) evaluates to
where is the Gauss–Newton curvature of the residual energy (8) at . The residual constrains directions. Evaluating this curvature along the nominal trajectory over decomposes (15) into:
where are the eigenvalues of the drift Jacobian along (full derivation in Appendix A.1). Eq. (16) explains the origin and direction of the bias.
Derivation Assumptions. This decomposition relies on four simplifying assumptions (Appendix A.1): (i) the surrogate closely satisfies the ODE at , with the prior penalty depending only weakly on ; (ii) is evaluated along a single nominal trajectory; (iii) the residual loss dominates the prior along constrained directions ( locally constant); and (iv) the residual metric and drift decouple additively. We also treat and as piecewise constant in time, and assume the surrogate bandwidth exceeds the system's characteristic dynamical rates.
Mechanism 1: Residual metric bias. Because normalizes over residual space, it omits the Jacobian determinant of the acceleration-to-residual mapping, whereas accounts for it along all constrained directions. Consequently, acceleration residuals ( ) avoid this bias, whereas force residuals ( ) add , shifting posterior mass toward vanishing mass determinants. The residual metric is dictated by where the noise enters the dynamics (Section 2.1); switching to acceleration residuals for convenience changes the noise model and is therefore not a free choice.
This pathology worsens along drift-invariant parameter directions where jointly scaling masses and forces preserves drift. Because the bias grows with while the data only constrain scale via finite observations, the artifact can overwhelm the likelihood and collapse the posterior toward vanishing masses (Appendix A.2).
Mechanism 2: Dissipation bias. Lacking Markovian temporal structure, the neural surrogate couples perturbations through the operator nonlocally over , generating the second term in (16).
When all perturbations decay (Re ), the spectral sum reduces to phase-space divergence: . The dissipation bias simplifies to
whose leading term matches the Onsager–Machlup path-action correction [19]. In dissipative systems ( ), spuriously penalizes dissipation, underestimating friction, damping, or drag. Crucially, this penalty scales as , so that the B-PINN's error grows with the record length relative to its own posterior width (Section 5.2). In the presence of growing modes, it analogously penalizes stronger instability (Appendix A.1).
4 TRACTABLE INFERENCE IN THE CHAIN MODEL
With a global surrogate, the chain model yields a doubly intractable posterior [17], usually requiring expensive inner-loop re-estimation of via variational inference or Langevin dynamics that often diverges (Appendix A.4). Instead of attempting global integration, we discretize the generative SDE [23]. This factorizes into analytic per-step normalizers (21), enabling asymptotically exact inference via particle MCMC.
4.1 The Chain Model as a State-Space Model
Discretizing into intervals of width defines states at and applying a semi-implicit Euler–Maruyama scheme to (5) yields:
(18)
with independent increments . This discretization induces a Markovian trajectory prior over :
(19)
where and is evaluated at . Unlike (11), this prior admits analytic, per-step normalization. Combined with the prior and observations at , this completes the chain model (2) over to target the exact marginal posterior .
4.2 Exact Collider Bias on the State-Space Latent
On the Markovian latent state , the collider bias can be evaluated in closed form. The velocity update in (18) corresponds to the discrete residual
making the transition kernel (19) proportional to , which matches the summand of (8) for . Because is affine in , each one-step transition normalizes analytically:
(21)
The drift acts merely as a mean shift and drops out of the integral, causing the dissipation bias to vanish.
Substituting for in (13) and subtracting gives the exact collider bias:
Only the residual metric bias remains: under acceleration residuals ( ), is independent of and both posteriors coincide; under force residuals ( ), biases the collider posterior toward vanishing mass determinants.
4.3 Exact Parameter Inference via Particle MCMC
For nonlinear dynamics, the marginal likelihood lacks an analytic form. Rather than approximating it variationally [3], we exploit its Markovian structure, which admits sequential Monte Carlo estimation via a bootstrap particle filter [9]. We propagate P particles forward under (18), reweight by at observation times , and adaptively resample [15]. The resulting estimator costs and is strictly unbiased. By the pseudo-marginal property [2], substituting into the Metropolis–Hastings acceptance ratio guarantees Particle Marginal Metropolis–Hastings (PMMH) targets the exact posterior for any , where P governs only chain mixing. Sampling a trajectory alongside each accepted additionally yields exact joint samples from .
5 EXPERIMENTS
We test the analysis of Section 3 on three systems that isolate its bias mechanisms, and compare our inference scheme with nested inference.
5.1 Systems and Setup
Data are generated from the SDE (5) with isotropic process noise fixed at ground truth; physics priors are log-normal with medians at the truth. Jointly scaling masses and forces by leaves the drift invariant; this drift-invariant direction is only weakly identifiable via process noise.
Damped oscillator (d = 1): mass m, stiffness k, linear damping c, drift , truth , and . Because only c/m and k/m enter the drift, the invariant direction is . We observe position K = 40 times over ( ). Dissipation bias is active ( ).
Double pendulum (d = 2): masses on massless rods of lengths , with vertical angles . The drift is with state-dependent mass matrix and forces :
with , , and . Truth: , . Linearity in masses yields the invariant direction . Both angles are observed times over ( rad). The conservative divergence integrates to a bounded boundary term (38), but chaos yields a surrogate determinant term (Appendix A.3.6).
Relativistic particle (d = 1): rest mass , charge q, accelerated by up to 0.5c. Drift: with Lorentz factor ; truth: , . As only governs the drift, the invariant direction is . Position is observed K = 20 times over ( ). The divergence integrates to a bounded boundary term but alternates sign, so grows with (Appendix A.3.6).
Evaluation grid. We evaluate two residual metrics—acceleration ( , metric bias off) and force/torque ( , metric bias on)—across four inference schemes: Chain (state space): our method (Section 4; PMMH, 1,000–2,000 particles, 24,000 iterations). Collider (state space): differs from Chain solely by omitting the normalizer. Collider B-PINN: standard model (Section 2.2) with a Fourier-feature MLP (dim , ), jointly sampled over via NUTS (4 chains, 9,000 steps). Chain (Fourier MLP): augments the B-PINN with the closed-form correction (16) to restore . We run this only on the oscillator, where state-independent and allow closed-form evaluation at each NUTS step; in the other systems, state dependence makes it prohibitive (Appendix A.4). Details and code: Appendix A.3 and https://github.com/obermm/ColliderBias.
5.2 Collider Bias and Its Removal
In Table 1, the chain model recovers the truth throughout: ( posterior SDs) and identified parameters within 1.3 SDs (Appendix A.3.3). The collider fails as predicted.
Null condition. With acceleration residuals ( ) on the Markovian state-space latent, both biases
Table 1: The chain model recovers the truth in every system; the collider fails where Section 3 predicts. : posterior mean of the log scale factor along the weakly identified drift-invariant direction (Eq. (37); correct: ). Other columns: posterior mean of an identified quantity divided by its true value (correct: 1.00). Bold: off by more than a factor of two. †: chains did not converge or stalled; median of the draws, for both columns of the system. ‡: exact Kalman likelihood, since PMMH cannot reach this posterior. All parameters in Appendix A.3.3.
| Model (latent) | Oscillator | Double Pendulum | Relativistic Particle | |||
|---|---|---|---|---|---|---|
| Acceleration residuals (): metric bias inactive | ||||||
| Chain (state space) | -0.01 | 0.99 | -0.03 | 0.99 | -0.02 | 0.89 |
| Collider (state space) | -0.01 | 0.99 | -0.03 | 0.99 | -0.02 | 0.89 |
| Chain (Fourier MLP) | -0.00 | 1.00 | — | — | — | — |
| Collider B-PINN (Fourier MLP) | -0.00 | 0.61 | 0.94 | +0.00 | 1.78 | |
| Force / torque residuals (): metric bias active | ||||||
| Chain (state space) | -0.01 | 1.01 | +0.04 | 1.00 | -0.18 | 0.89 |
| Collider (state space) | 27 | 0.30 | ||||
| Chain (Fourier MLP) | +0.29 | 0.74 | — | — | — | — |
| Collider B-PINN (Fourier MLP) | -0.93 | 2.05 | -2.79 | 0.54 | -1.88 | 1.61 |

Figure 3: Longer records amplify the dissipation bias (oscillator, acceleration residuals). Posterior mean of minus its true value, with posterior standard deviation. The chain stays near the truth on both latents, and its posterior contracts as grows; on the state-space latent the collider coincides with it (open rings). The B-PINN drifts further from the truth while its posterior width stays constant, so its error grows from 1.55 to 2.67 standard deviations.
are inactive: in Eq. (22) is constant, yielding bit-identical chain and collider draws.
Mechanism 1: residual metric bias. Under force residuals, the metric term in Eq. (16) rewards small masses by adding to the state-space log-density and to the B-PINN, opposed along the invariant ray only by process noise (Appendix A.2). On state-space latents ( for the oscillator), this reward dominates: the Kalman posterior collapses to , and PMMH drifts toward zero mass until Euler integration fails. Measured values match Eq. (22) to machine precision (Appendix A.3.8). On the B-PINN, a weaker reward () is checked by noise, yet mass scales are still underestimated by factors of 2.5 to 16. The damage is not confined to the drift-invariant direction: since also rewards short rods, the pendulum B-PINN shrinks and to 0.14 and 0.27 of their true values, so removing the scale ambiguity by reparameterization would not remove the bias.
Mechanism 2: dissipation bias. Omitting divergence (17) biases B-PINNs toward underestimating dissipation. On the oscillator with acceleration residuals, B-PINN underestimates damping ( vs. true 1.20; Fig. 2). This is systematic: across ten dataset resamples, B-PINN underestimates by and lies below the truth on every dataset, with credible intervals that cover the truth in only 4 of 10 cases, whereas our chain's intervals always do (Appendix A.3.4). With matched to the data, the bias persists for four tested (Appendix A.3.5). For the relativistic particle, B-PINN overestimates the speed of light ( vs. 1.00): although the divergence integral vanishes, its absolute path integral does not, penalizing smaller by 9.5 nats per e-fold (Appendix A.3.6). The pendulum is unassessed, as its B-PINN does not converge.
Longer records amplify dissipation bias. As the penalty scales as , longer horizons () push B-PINN damping estimates further from the truth without posterior contraction (Fig. 3). Reweighting the chain posterior by predicts the bias's direction, growth, and 60–75% of its size (Appendix A.3.8).
Restoring the normalizer on the surrogate. Chain (Fourier MLP) adds to an otherwise identical B-PINN. Under acceleration residuals on the oscillator, it removes 97.5% of the bias. Under force residuals, where metric correction uses approximate , it eliminates two-thirds of the mass bias (overshooting slightly; Appendix A.3.7). Thus, the missing normalizer, not the neural surrogate, causes the pathology.
Comparison with nested inference. PMMH is up to faster than the B-PINN, depending on the system state size (Appendix A.3.1). We further benchmark PMMH against unmodified public reimplementations of NSVI [10] and NPSGLD [11] on Euler–Maruyama latents with closed-form (Appendix A.4). PMMH converges across all settings (0.51–6.71 s/ESS). NPSGLD fails to converge, requiring more compute per ESS while underestimating posterior SDs by up to . NSVI converges to a biased damping ratio on the oscillator ( vs. 1.20) and raising its compute by a factor of 100 does not remove this bias.
6 CONCLUSIONS
B-PINNs suffer from an overlooked structural defect: conditioning on virtual residual observations turns physical parameters and trajectory surrogates into colliders. This implicitly neglects the parameter-dependent normalizing constant , systematically biasing posterior inference. Even when initialized at the ground truth, standard B-PINNs underestimate damping and mass, and grow increasingly overconfident with longer observation records.
We approximated two bias mechanisms in closed form, confirmed them across three systems, yet showed that analytical corrections can remain insufficient. To eliminate collider bias entirely, we reformulate the trajectory as a Markovian state-space model. This enables an asymptotically exact particle MCMC scheme that avoids both the computational overhead of nested Langevin dynamics [11] and the variational gap of nested VI [10].
When are B-PINNs safe? Collider B-PINNs yield unbiased posteriors if two null conditions hold simultaneously (Section 3; Appendix Table 2): (i) the residual metric is parameter-independent (e.g., measuring acceleration rather than force); and (ii) the dissipation bias (17) is negligible, with remaining roughly constant across posterior support. Otherwise, practitioners must adopt a Markovian chain formulation or, when and are state-independent, apply the closed-form correction directly.
Limitations and Future Work. Our particle MCMC scheme targets only stochastic ODEs ( ) in low-to-moderate dimensions; particle filters degenerate as and face weight collapse on finely discretized PDEs. Because collider bias persists in PDE systems, extending our framework to spatial domains will require scalable alternatives such as ensemble Kalman or score-based filtering. Furthermore, selecting to prevent residual misspecification remains open. Ideally would be inferred jointly with , but this introduces a third collider-bias mechanism that we leave to future work.
Implications. Although standard B-PINNs rely on collider structures, the resulting bias has gone largely unnoticed, as they appear well-behaved when the null conditions approximately hold. When violated, MCMC still converges cleanly to confidently wrong posteriors whose error is undetectable without ground truth. Crucially, this distortion peaks in weakly identified regimes and long horizons with sparse data—precisely when Bayesian rigor matters most. Practitioners should therefore check these null conditions and prefer a chain formulation.
ACKNOWLEDGEMENTS
This research was funded by the Austrian Research Promotion Agency (FFG) via the project VENTUS (910263) under the FFG AI for Green program.
References
[1] Alex Alberts and Ilias Bilionis. Physics-informed information field theory for modeling physical systems with uncertainty quantification. Journal of Computational Physics, 486:112100, 2023. doi:10.1016/j.jcp.2023.112100.
[2] Christophe Andrieu, Arnaud Doucet, and Roman Holenstein. Particle Markov chain Monte Carlo methods. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 72(3):269–342, 2010. doi: 10.1111/j.1467-9868.2009.00736.x.
[3] Cédric Archambeau, Manfred Opper, Yuan Shen, Dan Cornford, and John Shawe-Taylor. Variational inference for diffusion processes. In J. Platt, D. Koller, Y. Singer, and S. Roweis, editors, Advances in Neural Information Processing Systems, volume 20. Curran Associates, Inc., 2007. URL https://proceedings.neurips.cc/paper_files/paper/2007/file/818f4654ed39a1c147d1e51a00ffb4cb-Paper.pdf.
[4] Eli Bingham, Jonathan P. Chen, Martin Jankowiak, Fritz Obermeyer, Neeraj Pradhan, Theofanis Karaletsos, Rohit Singh, Paul A. Szerlip, Paul Horsfall, and Noah D. Goodman. Pyro: Deep universal probabilistic programming. Journal of Machine Learning Research, 20(28):1–6, 2019.
[5] Maxwell Bolt. niff-replication: A JAX reimplementation of the Neural Information Field Filter. https://github.com/BoltMaxwell/niff-replication, 2026. Commit dab4403.
[6] James Bradbury, Roy Frostig, Peter Hawkins, Matthew James Johnson, Chris Leary, Dougal Maclaurin, George Necula, Adam Paszke, Jake VanderPlas, Skye Wanderman-Milne, and Qiao Zhang. JAX: composable transformations of Python+NumPy programs. https://github.com/jax-ml/jax, 2018.
[7] Detlef Dürr and Alexander Bach. The Onsager–Machlup function as Lagrangian for the most probable path of a diffusion process. Communications in Mathematical Physics, 60(2):153–170, 1978. doi: 10.1007/BF01609446.
[8] Herbert Goldstein, Charles Poole, and John Safko. Classical Mechanics. Addison Wesley, third edition, 2002.
[9] Neil J. Gordon, David J. Salmond, and Adrian F. M. Smith. Novel approach to nonlinear/non-Gaussian Bayesian state estimation. IEE Proceedings F (Radar and Signal Processing), 140(2): 107–113, 1993. doi: 10.1049/ip-f-2.1993.0015.
[10] Kairui Hao and Ilias Bilionis. An information field theory approach to Bayesian state and parameter estimation in dynamical systems. Journal of Computational Physics, 512:113139, 2024. doi: 10.1016/j.jcp.2024.113139.
[11] Kairui Hao and Ilias Bilionis. Neural information field filter. Mechanical Systems and Signal Processing, 226:112253, 2025. doi: 10.1016/j.ymssp.2024.112253.
[12] Matthew D. Hoffman and Andrew Gelman. The No-U-Turn sampler: Adaptively setting path lengths in Hamiltonian Monte Carlo. Journal of Machine Learning Research, 15(47):1593–1623, 2014. URL http://jmlr.org/papers/v15/hoffman14a.html.
[13] Daphne Koller and Nir Friedman. Probabilistic Graphical Models: Principles and Techniques. MIT Press, Cambridge, MA, 2009.
[14] Kevin Linka, Amelie Schäfer, Xuhui Meng, Zongren Zou, George Em Karniadakis, and Ellen Kuhl. Bayesian physics-informed neural networks for real-world nonlinear dynamical systems. Computer Methods in Applied Mechanics and Engineering, 402:115346, 2022. doi: 10.1016/j.cma.2022.115346.
[15] Jun S. Liu and Rong Chen. Sequential Monte Carlo methods for dynamic systems. Journal of the American Statistical Association, 93(443):1032–1044, 1998. URL http://www.jstor.org/stable/2669847.
[16] Hyeonbin Moon, Hanbin Cho, Wabi Demeke, Byungki Ryu, and Seunghwa Ryu. Thermal conductivity estimation of thermoelectric materials with uncertainty quantification using Bayesian physics-informed neural networks, 2025. arXiv:2510.16723.
[17] Iain Murray, Zoubin Ghahramani, and David J. C. MacKay. MCMC for doubly-intractable distributions. In Proceedings of the Twenty-Second Conference on Uncertainty in Artificial Intelligence, pages 359–366. AUAI Press, 2006.
[18] Richard M. Murray, Zexiang Li, and S. Shankar Sastry. A Mathematical Introduction to Robotic Manipulation. CRC Press, 1994.
[19] Lars Onsager and Stefan Machlup. Fluctuations and irreversible processes. Physical Review, 91(6): 1505–1512, 1953. doi: 10.1103/PhysRev.91.1505.
[20] Andrew Pensoneault and Xueyu Zhu. Efficient Bayesian physics informed neural networks for inverse problems via ensemble Kalman inversion. Journal of Computational Physics, 508:113006, 2024. doi: 10.1016/j.jcp.2024.113006.
[21] Du Phan, Neeraj Pradhan, and Martin Jankowiak. Composable effects for flexible and accelerated probabilistic programming in NumPyro, 2019. arXiv:1912.11554.
[22] Maziar Raissi, Paris Perdikaris, and George Em Karniadakis. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics, 378:686–707, 2019. doi: 10.1016/j.jcp.2018.10.045.
[23] Simo Särkkä and Arno Solin. Applied Stochastic Differential Equations, volume 10 of Institute of Mathematical Statistics Textbooks. Cambridge University Press, 2019. doi: 10.1017/9781108186735.
[24] Khemraj Shukla, Zongren Zou, Theo Kaeufer, Michael Triantafyllou, and George Em Karniadakis. Uncertainty quantification in PINNs for turbulent flows: Bayesian inference and repulsive ensembles, 2026. arXiv:2604.17156.
[25] Simon Stock, Jochen Stiasny, Davood Babazadeh, Christian Becker, and Spyros Chatzivasileiadis. Bayesian physics-informed neural networks for robust system identification of power systems. In 2023 IEEE Belgrade PowerTech, pages 1–6. IEEE, 2023. doi: 10.1109/PowerTech55446.2023.10202692.
[26] Luning Sun and Jian-Xun Wang. Physics-constrained Bayesian neural network for fluid flow reconstruction with sparse and noisy data. Theoretical and Applied Mechanics Letters, 10(3):161–169, 2020. doi: 10.1016/j.taml.2020.01.031.
[27] Sifan Wang, Hanwen Wang, and Paris Perdikaris. On the eigenvector bias of Fourier feature networks: From regression to solving multi-scale PDEs with physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering, 384:113938, 2021. doi: 10.1016/j.cma.2021.113938.
[28] Eugene Wong and Moshe Zakai. On the convergence of ordinary integrals to stochastic integrals. The Annals of Mathematical Statistics, 36(5):1560–1564, 1965. doi: 10.1214/aoms/1177699916.
[29] Liu Yang, Xuhui Meng, and George Em Karniadakis. B-PINNs: Bayesian physics-informed neural networks for forward and inverse PDE problems with noisy data. Journal of Computational Physics, 425:109913, 2021. doi: 10.1016/j.jcp.2020.109913.
A SUPPLEMENTARY MATERIAL
A.1 Laplace Approximation of the Collider Bias for Global Surrogates
This appendix derives the two-term decomposition (16) for a global surrogate such as a neural network. Step 1 approximates by Laplace's method, Step 2 identifies the two factors through which enters the resulting curvature, Steps 3 and 4 differentiate with respect to these factors, and Step 5 collects the terms; a worked example for the oscillator follows. Along drift-invariant directions, the metric bias admits exact statements, derived in Appendix A.2.
Setup. We write the residual (7) in continuous time,
so that ; since is the derivative of , only the acceleration equation can be violated. The surrogate carries the weight prior of Section 3, where corresponds to a flat reference measure. Chain and collider share this prior and the energy (8) and differ only in their normalizers, in (12) and in (10), so that by (14). Only depends on ; since is fixed, is a constant.
Step 1: Laplace approximation. Let minimize , the negative logarithm of the data-free integrand of . A second-order expansion around gives
where the constant does not depend on . We drop the first two terms, assuming that the surrogate (nearly) solves the ODE, , and that follows an ODE solution rather than the prior mode, so that \frac{1}{2} \theta^*^\top P \theta^* depends only weakly on . This is exact for linear, unforced dynamics and a surrogate with at , where for every . Since the residuals vanish at , so does the part of that is proportional to them, which leaves with the Gauss–Newton curvature
Since is constant, this gives Eq. (15); the remaining steps evaluate its first term.
Step 2: Two factors of the curvature. Let be the tangent map of the surrogate at , and the drift Jacobian along the fitted trajectory . By the chain rule,
where denotes the velocity block. The position block of vanishes because , and the term containing the derivative of multiplies the residual, which vanishes at . Stacking over the collocation points gives
The stacked tangent map depends on only through , which we hold fixed. Since is fixed, enters through two factors: the residual metric and the drift operator . Since these factors are rectangular, does not split into a sum over them; we therefore differentiate it with respect to each factor in turn, holding the other fixed.
Step 3: Residual metric (Mechanism 1). Let with a scalar and a -independent , e.g., for the oscillator. Then the metric scale factors out of (27),
(28) where , and does not depend on . Since , Jacobi's formula gives
When is constant? For , let be the eigenvalues of . Then , so that
Each summand lies in and is nonzero only for , so whenever . Once the physics dominates the prior on every direction it constrains , saturates at and no longer depends on ; we call this the saturated regime. For and full-rank (which requires ), for every .
Mechanism 1 (residual metric). Since does not depend on , Eq. (29) gives . With , this integrates, for constant , to the metric term of (16). For a state-dependent , the term holds locally: on time windows that are short compared with the variation of but long compared with the resolution of the surrogate, is nearly constant, and if the constrained directions are spread uniformly over time and components, each window contributes its share of the local sum of . This neglects the coupling between windows and the anisotropy of relative to , both absent in the scalar case.
State-space latent. On the Markovian latent of Section 4, consists of the velocities under a flat prior , and is block lower-triangular with invertible diagonal blocks . Hence exactly, and the metric term becomes the exact collider bias (22).
Step 4: Drift operator (Mechanism 2). We set , so that enters (27) only through . We assume that the span of the surrogate's tangent map is approximately invariant under , with a -independent Gram determinant, and that the physics dominates on the resolved modes. Then equals restricted to the resolved modes, up to -independent terms. On the position component, acts as , whose matrix symbol at frequency has, by the Schur complement, the same determinant as . For constant (relaxed below), a surrogate with effective bandwidth on resolves real Fourier modes at density , so that
The eigenvalue integral. Let be the eigenvalues of , so that . The integral (31) diverges as , but at a rate independent of ; differentiating with respect to the eigenvalues isolates the -dependent part. For a complex pair with ( damped, growing), satisfies
where the boundary terms at cancel. Up to , the damping rate thus enters with weight and the frequency not at all, so each pair contributes . A real eigenvalue gives , i.e., a contribution . Every eigenvalue therefore contributes , and multiplying by the mode density gives
Without growing modes ( for all ), , and inserting (34) into (15) gives
Otherwise, is not determined by the divergence alone: growing modes are penalized like damped ones, and a divergence that changes sign along the orbit enters through its absolute value. Appendix A.3.6 discusses both cases for conservative systems.
Nonlinear drift. For nonlinear dynamics, we treat as constant on windows that are short compared with but long compared with the correlation time of the surrogate and the relaxation times . Summing over windows replaces by and gives Eq. (17). Its leading term is the Onsager–Machlup correction to the path action [7, 19], obtained here as the fluctuation determinant of a band-limited surrogate. The remainder collects the tails of (32) and (33), the residual floor of a finite-capacity fit, and the windowing. Since all of these grow with at the same rate as the leading term, their relative size is set by compared with the time scales of the system, not by the length of the record.
State-space latent. Under the Euler–Maruyama transition (18), depends only on the noise increments up to step , so the Jacobian of is block lower-triangular with diagonal blocks , which do not involve the drift. This is why the exact collider bias (22) has no dissipation term: the Markovian latent normalizes the path density step by step (the Itô pre-point form), whereas a global surrogate, which imposes no ordering, yields the midpoint (Onsager–Machlup) form, consistent with the Wong–Zakai limit of smooth approximations to Brownian paths [28].
Step 5: Collecting the terms. Adding the metric term of Step 3 and the dissipation term of Step 4 gives Eq. (16); without growing modes, its dissipation term is the divergence integral (17). Of the four simplifications listed in Section 3, three need a caveat in practice. Simplification (i) fails when the data-free integrand of is dominated by the prior rather than the physics; the terms dropped from (24) then depend on . For (ii), when solves the ODE, , where the tangent map of a neural surrogate degenerates; we therefore evaluate the curvature at a representative state on the solution manifold (Appendix A.3.7). Since the factors in (27) are rectangular, the additivity (iv) holds only to first order. Eq. (16) thus captures the dominant dependence of on and shows where the collider bias is large, but adding to the log-posterior of a B-PINN need not recover the chain posterior exactly. Table 2 summarizes both mechanisms.
Table 2: Taxonomy of structural biases in collider B-PINNs. Scaling denotes the asymptotic rate of the collider bias . Null conditions indicate when is invariant to inferred parameters; are eigenvalues of .
| Mechanism | Physical Origin | Scaling | Null Condition |
|---|---|---|---|
| Residual Metric | State-space map depends on | or | invariant to |
| Dissipation | Phase-space volume contraction | Markovian latent, or invariant to |
Worked example: the damped linear oscillator. For with force residuals (, ), the drift has the constant Jacobian with divergence . Its eigenvalues are with and if underdamped, and real and negative if overdamped; in both cases . No windowing is needed, and (16) reads
The dissipation term penalizes large in proportion to , so the collider underestimates damping. The stiffness enters only through , which by (33) contributes no leading-order term; the remainder, however, still grows with and rewards smaller , so restoring only the leading-order terms leaves part of the stiffness bias (Appendix A.3.7). Along the drift-invariant rescaling , only the metric term varies, : the collider is rewarded without bound for shrinking the mass scale, opposed only by the prior and by the process-noise level, which identifies . On the state-space latent, the same holds exactly with , since (22) gives ; Appendix A.2 discusses its effect on the collider posterior.
A.2 Exact Collider Bias along Drift-Invariant Directions
While the decomposition derived in Appendix A.1 is generally approximate, the metric bias (Mechanism 1) admits exact statements along drift-invariant directions.
Consider a drift-invariant direction parameterized by jointly scaling masses and forces by a factor . Suppose the scaled components follow independent log-normal priors with log-scale standard deviations . Measuring relative to the prior medians via the precision-weighted mean
the prior factorizes into independent components along and the identified directions, with a Gaussian marginal of standard deviation along .
Under acceleration residuals, the residuals themselves remain invariant under this scaling. Consequently, neither the residual energy (8) nor the observational likelihood depends on , and is independent of . Both the chain and the collider joint then depend on solely through the prior, so both posteriors leave the distribution of exactly at its prior, for any latent representation.
Under force residuals, scales with while is fixed, so the process noise on the velocities scales with : the data constrain through the noise level, and the chain posterior of differs from its prior. On top of this, the collider joint acquires an additional explicit -dependence: on the state-space latent, exactly by Eq. (22), and on a global surrogate, by the metric term of Eq. (16). The collider posterior of is therefore the chain posterior reweighted by (respectively ). This reward grows with the number of time steps (respectively constrained directions), whereas the constraint from the noise level is set by the finitely many observations; on the oscillator, where the exact Kalman likelihood is available, it places the state-space collider at (Table 1).
A.3 Experimental Details and Full Results
This appendix supports Section 5 and follows its order. Appendix A.3.1 specifies the setup, and Appendix A.3.2 verifies that our method samples the chain posterior correctly, since every bias in this paper is measured against it. Appendix A.3.3 reports all parameters of the runs summarized in Table 1, and Appendix A.3.4 shows that the bias on the oscillator is reproducible across datasets, and Appendix A.3.5 how it depends on the residual scale. The next two subsections support the discussion of individual mechanisms in Section 5.2: the dissipation term on the two conservative systems (Appendix A.3.6) and the closed-form correction of the neural surrogate (Appendix A.3.7). Appendix A.3.8 details the scaling-law experiments of Figs. 3 and 4.
A.3.1 Setup
Evaluation grid. Each of the three systems is combined with two residual metrics (acceleration and force/torque residuals) and with the inference variants listed below. In every configuration, the process noise is isotropic, , with fixed at its true value. Within a system, all runs share the dataset, ground truth and prior, the time discretization, number of particles, sampler budget and random seed, and the network and collocation grid of the surrogate. Two runs that differ in a single factor of the grid therefore isolate the effect of that factor, for instance of the residual metric.
Systems and data. Table 3 lists the settings that differ between systems. The data are simulated with the same semi-implicit Euler–Maruyama scheme (18) that the inference uses, but on a finer time grid: finer for the oscillator and about finer for the pendulum and the relativistic particle (Appendix A.3.2 shows that the results do not rely on this match). The number of Euler–Maruyama steps T used for inference and the number of particles were chosen per system by a convergence study, and are identical across all state-space runs of that system, so that chain and collider remain comparable.
Table 3: Per-system settings. The MLP surrogate maps a Fourier-feature embedding of dimension 33 through two hidden layers of width 24 to the output coordinates. is the number of residual components, i.e., collocation points times dimension.
| Oscillator | Double pendulum | Relativistic particle | |
|---|---|---|---|
| ground truth | |||
| residual scale (fixed) | |||
| horizon | |||
| observations | |||
| observation noise | |||
| Euler-Maruyama steps | |||
| particles | |||
| MLP layer widths | |||
| dim | |||
| residual components |
Inference variants.
-
Chain (state space) is our method (Section 4). Its latent is the Euler–Maruyama path with the normalized transition kernel (19); a bootstrap particle filter estimates the marginal likelihood , and PMMH samples .
-
Collider (state space) uses the same latent, particle filter and sampler, but omits . It is a control that differs from our method only in the normalizer.
-
Collider B-PINN is the standard formulation of Section 2.2: a Fourier-feature MLP surrogate with a Gaussian weight prior, sampled with NUTS jointly over .
-
Chain (Fourier MLP) is the Collider B-PINN with the closed-form correction for the missing normalizer added to its log-density (Appendix A.3.7). It is run on the oscillator only (Section 5.1).
Because the oscillator is linear, the marginal likelihood of its state-space latent is also available exactly from a Kalman filter. We use this in one place. Under force residuals, PMMH cannot reach the posterior of the state-space collider (see below), so on the oscillator we sample it with an adaptive random-walk Metropolis sampler instead, targeting the exact chain likelihood multiplied by from Eq. (22) (4 chains, ). These entries are marked with . Applied to the chain model, the same sampler reproduces the PMMH posterior (e.g., against ).
Priors. All physical parameters have log-normal priors with median at the ground truth. The standard deviations of the log-parameters are 0.4 for masses, charges and the damping coefficient of the oscillator, and 0.25 for lengths, stiffnesses and the light speed of the relativistic particle. The Gaussian weight prior of the B-PINN follows LeCun scaling at unit gain: each weight of a layer with inputs has variance , and each bias has variance 1.
Samplers. PMMH runs for 24,000 iterations. The first 4,000 adapt the proposal, and the first 30% of the remaining 20,000 are discarded as burn-in, which leaves 14,000 draws. NUTS runs 4 chains, each with 3,000 warm-up iterations and 6,000 draws at a maximum tree depth of 11, which gives 24,000 draws in total. All samplers use random seed 0. Each run uses a single GPU (NVIDIA Quadro RTX 8000 or NVIDIA L40) on an internal compute cluster. On the oscillator, for instance, PMMH takes 442 s and the B-PINN 5,834 s (NUTS) for these budgets.
Software and licenses. All methods are implemented in JAX [6]; NUTS and the autocorrelation-based effective sample sizes use NumPyro [4, 21]. The nested baselines of Appendix A.4 use the public reimplementation of Bolt [5], which additionally depends on Optax. JAX, NumPyro and Optax are released under the Apache License 2.0; the reimplementation does not state a license. We release our code under the MIT license.
Reporting conventions. Unless stated otherwise, tables report the posterior mean divided by the ground truth, so that 1.00 means no error. There are two exceptions. Table 1 reports the drift-invariant direction as the precision-weighted log scale factor of Eq. (37). Tables 7 and 9 report displacements in log space, i.e., the posterior mean of the log parameter minus the log of its true value. Since the mean of a logarithm is not the logarithm of the mean, these displacements are not exactly the logarithms of the ratios reported elsewhere; for instance, the damping ratio of the Collider B-PINN under acceleration residuals has a displacement of -0.526 (Table 9), and , whereas Table 1 reports the ratio 0.61.
Runs without valid posterior samples (†). Two kinds of runs do not yield valid posterior samples. The first is the state-space collider under force residuals. Along the drift-invariant direction, its log-density gains , which rewards small masses. Together with the log-normal prior, this still defines a proper posterior, but its mode lies far outside the range the sampler can represent; for the oscillator, where the exact Kalman likelihood locates it, at . PMMH moves toward it until the Euler–Maruyama recursion becomes numerically unstable; from then on, the particle filter returns non-finite likelihoods for a large fraction of the proposals, and only a handful of the 20,000 post-adaptation proposals are accepted. The second kind are B-PINN runs whose chains have not mixed ( ). For both kinds, we report the median of the draws, which describes where the sampler stopped rather than the posterior. Marginal plots show such runs as an arrow at the edge of the axis, labelled with the value reached.
A.3.2 Validation of the Reference Posterior
All biases in this paper are measured against the chain posterior that our method samples. Three checks confirm that this reference is correct: the first tests the likelihood estimator, the second the simulation of the data, and the third the sampler.
Particle filter against the exact likelihood. For the linear oscillator, the Kalman filter gives the exact log-likelihood . At three points along the drift-invariant direction, the particle-filter estimate deviates from it by +0.14, -0.10 and +0.27 nats, against Monte Carlo standard deviations of 0.27, 0.38 and 0.38 across five independent filter runs. The likelihood estimator underlying PMMH thus shows no bias at the resolution relevant for our comparisons.
Simulation step. Because the data are simulated with the same scheme that the inference uses, the chain model could benefit from a matched discretization. To rule this out, we regenerated ten datasets of the oscillator configuration at a finer step and computed the exact (Kalman) chain posterior on each. Its displacement from the truth is in and in (mean standard error over datasets), and its 90% credible intervals contain the truth in 8 or 9 of the 10 datasets for every identified parameter.
A different sampler. On the double pendulum and the relativistic particle, we also sampled both models on the state-space latent with NUTS instead of PMMH. NUTS runs jointly over , where are the standardized noise increments of Eq. (18). The path is a deterministic function of these variables, and the standard normal prior on does not depend on . In this non-centred parameterization, the chain model therefore needs no explicit normalizer, while the collider differs from it by in (22). The resulting posteriors agree with those obtained with PMMH, and the collapse of the collider under torque residuals is reproduced; neither result is therefore an artefact of the particle filter. NUTS is thus a valid alternative to PMMH for the chain model, but a more expensive one on fine time grids: per effective sample of the drift-invariant scale, it takes 4.9s against 2.7s for PMMH on the pendulum (1,235 steps), and about 1,800s against 6s on the relativistic particle (12,160 steps; 51 h of NUTS in total).
Table 4: Oscillator. The three inference legs under both residual metrics, on one dataset and one prior, with held at its true value. Posterior mean standard deviation over 14000 draws (state space) and 24000 draws (B-PINN). : a walk at the Euler map's stability boundary, not a posterior; its median is quoted; : chains that have not merged (), likewise a median rather than a posterior.
| residual | leg | |||||
|---|---|---|---|---|---|---|
| force residual | Chain (state space) | |||||
| Collider (state space) | ||||||
| Collider (B-PINN) | ||||||
| acceleration residual | Chain (state space) | |||||
| Collider (state space) | ||||||
| Collider (B-PINN) |
Table 5: Double pendulum. The three inference legs under both residual metrics, on one dataset and one prior, with held at its true value. Posterior mean standard deviation over 14000 draws (state space) and 24000 draws (B-PINN). : a walk at the Euler map's stability boundary, not a posterior; its median is quoted; : chains that have not merged (), likewise a median rather than a posterior.
| residual | leg | ||||||
|---|---|---|---|---|---|---|---|
| force residual | Chain (state space) | ||||||
| Collider (state space) | |||||||
| Collider (B-PINN) | |||||||
| acceleration residual | Chain (state space) | ||||||
| Collider (state space) | |||||||
| Collider (B-PINN) |
A.3.3 Full Posterior Results
Tables 4–6 report the posterior of every parameter for every inference variant, including the parameters and parameter combinations that Table 1 omits. They show the same pattern as Table 1. The chain model keeps the drift-invariant scale near the truth and recovers every identified quantity to within 1.3 posterior standard deviations. The errors of the collider, in contrast, concentrate where Eq. (16) predicts: under force residuals on the parameters that enter the residual metric, and on the parameters that enter the dissipation term (the damping of the oscillator, the light speed of the relativistic particle).
A.3.4 Replication over Datasets
All runs above use a single dataset per system. On one dataset, a posterior can lie away from the truth by chance; a bias means that it does so systematically, on average over datasets. To distinguish the two, we repeat the oscillator configuration of Fig. 2 (acceleration residuals) on independent datasets, each with a new SDE path and new observation noise. We do this in two complementary ways.
Sampled posteriors. We rerun the B-PINN (NUTS) and our chain model (state space, PMMH) with the settings of Appendix A.3.1 on ten datasets, including the one of Fig. 2. All B-PINN runs reach .
Exact posteriors. To remove sampling error and convergence issues altogether, we use ten further datasets and replace the neural network by a surrogate on which all posteriors can be computed exactly. The collider is a B-PINN on a linear cosine basis (65 coefficients with prior standard deviation 0.3, collocation residuals). Because the residual is linear in the coefficients, they can be integrated out in closed form, and can be restored exactly on the same basis, which gives a chain model on the surrogate. The exact Kalman likelihood of the Euler–Maruyama latent gives the state-space chain. We evaluate all three posteriors on a grid over the identified coordinates , with the log-normal prior of Appendix A.3.1; less than of each posterior's mass lies at the boundary of the grid.
Table 6: Relativistic particle. The three inference legs under both residual metrics, on one dataset and one prior, with held at its true value. Posterior mean standard deviation over 14000 draws (state space) and 24000 draws (B-PINN). : a walk at the Euler map's stability boundary, not a posterior; its median is quoted; : chains that have not merged (), likewise a median rather than a posterior.
| residual | leg | (1.00) | (1.00) | (1.00) | (1.00) |
|---|---|---|---|---|---|
| force residual | Chain (state space) | ||||
| Collider (state space) | |||||
| Collider (B-PINN) | |||||
| acceleration residual | Chain (state space) | ||||
| Collider (state space) | |||||
| Collider (B-PINN) |
Table 7: Replication of the oscillator configuration over datasets (acceleration residuals). Top: the neural B-PINN and our chain model, sampled as in the main text, on ten datasets. Bottom: exactly computed posteriors on a linear surrogate, on ten further datasets. displ.: mean over datasets of the posterior mean of the log parameter minus the log truth, its standard error. sd: mean posterior standard deviation. cov.: number of datasets whose central credible interval contains the truth.
| Model (latent) | ||||||
|---|---|---|---|---|---|---|
| displ. | sd | 90% cov. | displ. | sd | 90% cov. | |
| Sampled posteriors, ten datasets | ||||||
| Chain (state space) | 0.17 | 0.11 | ||||
| Collider B-PINN (MLP) | 0.24 | 0.11 | ||||
| Exact posteriors on a linear surrogate, ten datasets | ||||||
| Chain (state space) | 0.17 | 0.11 | ||||
| Chain (linear surrogate) | 0.18 | 0.09 | ||||
| Collider (linear surrogate) | 0.23 | 0.10 | ||||
Results. Table 7 confirms that the displacements reported in the main text are a systematic bias. Over ten datasets, the B-PINN underestimates by log units and by , and it lies below the truth on every dataset in both coordinates. Measured relative to the chain model on the same dataset, which removes the variation between datasets, the displacements are and . The B-PINN posterior is not narrower than the chain's (mean standard deviation 0.24 against 0.17 in ), but it is displaced by almost two of its own standard deviations, so its credible intervals contain the truth in only 4 and 7 of the ten datasets, whereas those of the chain model contain it in all ten. The dataset of Fig. 2 lies at the upper end: its displacement in () is the third largest of the ten, against a median of .
The exact posteriors on the linear surrogate show the same picture, with displacements of and and coverage in 1 and 7 of ten datasets. Restoring exactly on the same surrogate removes the bias in both coordinates and restores nominal coverage, as does the state-space chain. The bias is therefore reproducible across datasets, and it is caused by the missing normalizer rather than by the particular dataset or by the limited expressiveness of the surrogate.
A.3.5 Sensitivity to the Residual Scale
All experiments above fix at the value that generated the data. To test how the bias depends on this value, we repeat the exact-posterior comparison of Appendix A.3.4 on the same ten oscillator datasets (acceleration residuals), varying in the data and in the models. For , we evaluate the posteriors on a finer grid, since they are narrower than its original spacing.
Table 8: Sensitivity to the residual scale (oscillator, acceleration residuals, exact posteriors, ten datasets). Displacement of from the truth (mean over datasets standard error) and number of datasets whose central credible interval contains the truth. Top: matched to the data. Bottom: misspecified.
| Chain (state space) | Chain (linear surrogate) | Collider (linear surrogate) | |||||
|---|---|---|---|---|---|---|---|
| data | model | displ. | 90% cov. | displ. | 90% cov. | displ. | 90% cov. |
| 0.05 | 0.05 | 9/10 | 9/10 | 7/10 | |||
| 0.1 | 0.1 | 9/10 | 9/10 | 7/10 | |||
| 0.3 | 0.3 | 8/10 | 9/10 | 1/10 | |||
| 1.0 | 1.0 | 8/10 | 9/10 | 0/10 | |||
| 0 | 0.3 | 0/10 | 1/10 | 10/10 | |||
| 0.3 | 0.9 | 0/10 | 0/10 | 10/10 | |||
With matched to the data, the collider bias is present at every scale and grows with it, from to in , while both chain models remain close to the truth (Table 8, top). At small , the displacement is small in absolute terms but still about one posterior standard deviation, and coverage remains below nominal.
A misspecified residual scale introduces a different bias, which affects the chain model as well. For noise-free data, or for a residual scale three times too large, the chain overestimates the damping, and its intervals miss the truth (Table 8, bottom). The downward collider bias then partly offsets this error, so that the collider's wider intervals cover the truth; this reflects two biases of opposite sign cancelling, not a correct model.
Ideally, the residual scale is therefore matched to the data. When it is unknown, a natural remedy is to infer jointly with , as noted in Section 6. For the chain model, this is a direct extension of PMMH, since the per-step normalizers (21) remain analytic in . For the collider, however, the bias then also depends on , which gives rise to a further bias mechanism; we leave its analysis to future work.
A.3.6 The Dissipation Term on the Conservative Systems
The double pendulum and the relativistic particle are both conservative, yet the dissipation term of a global surrogate need not vanish for them. We first explain why, and then evaluate the term for each system.
Why conservative systems can retain a dissipation term. Suppose that the forces derive from a (possibly time-dependent) potential and that is the velocity Hessian of the Lagrangian . Then the flow is Hamiltonian in the canonical coordinates with , and divergence-free in these coordinates (Liouville's theorem). Since the change of variables has Jacobian determinant ,
a boundary term that does not grow with . On a global surrogate, however, depends on (Eq. (34)) rather than on the divergence, and the two can differ in two ways. First, the eigenvalues of a Hamiltonian linearization come in pairs : oscillatory pairs () contribute nothing, but hyperbolic pairs () contribute although their divergence vanishes, so a chaotic system can retain a -dependent term that grows with . Second, if has a single eigenvalue with nonzero real part, as for a one-dimensional system with velocity-dependent inertia, then pointwise, and the windowed dissipation term becomes . This grows linearly in whenever the divergence changes sign along the orbit, although stays bounded. The pendulum is an instance of the first case and the relativistic particle of the second. We evaluate both quantities along the noise-free trajectory at the ground truth; this explains why the dissipation term leaves the pendulum results in Table 1 unaffected but biases the relativistic particle.
Double pendulum. The time average of over is 0.508, so the surrogate retains a term of nats at , although the mean divergence is only . This term does not affect the shift along the drift-invariant direction reported in Table 1: scaling leaves the acceleration , and hence , unchanged, and indeed the time average agrees to six digits at
, 1 and 2. Off the direction, it is negligible as well: it varies by less than over in , i.e., nats per unit of , which is small against a prior with log-standard deviation 0.25.
Relativistic particle. The drive returns the particle to rest at both ends of the record ( ), so to machine precision: the divergence term is not merely bounded but absent. The drift Jacobian , however, has the eigenvalues 0 and , which changes sign twice per drive period. Hence , and , so that nats at the truth, a term that grows linearly in . Differentiating with respect to the light speed at a fixed trajectory gives nats per unit of . The collider is thus rewarded for a larger , because a larger keeps closer to one and thereby flattens the divergence. This reward has the sign and the order of magnitude of the observed error, and it is too strong for a prior with log-standard deviation 0.25 to counteract. The B-PINN reports ( displaced by +0.569), against 0.89 for the chain. We do not derive a quantitative prediction from these numbers, because is strongly nonlinear in (roughly ) over the range that the posterior covers.
A.3.7 Restoring the Normalizer on the Neural Surrogate
In principle, the bias could stem from the probabilistic model (collider or chain), the latent (state space or neural surrogate), or the estimator (PMMH or NUTS). On the state-space latent, the model alone decides: chain and collider share latent and estimator and coincide exactly whenever is constant (Section 5.2), and NUTS reproduces the PMMH results (Appendix A.3.2). Here, we hold the neural surrogate fixed and change only the model.
Construction. Chain (Fourier MLP) adds the term to the log-density of the oscillator B-PINN. By Eq. (13), this turns the collider into the chain, up to the approximations of Appendix A.1. For the oscillator, Eq. (16) at , with under force residuals and under acceleration residuals, gives
Everything else (architecture, weight prior, data, collocation grid, sampler and seed) is identical to the B-PINN.
Effective number of constraints. The correction requires . We compute it once, from the Gauss–Newton curvature at , and keep it fixed during sampling. This is the idealization under which the closed forms are derived (assumption (iii) in Appendix A.1): by Eq. (30), depends on only through and is constant in the saturated regime. We evaluate the curvature at the final network weights of the corresponding B-PINN run rather than at the data-free mode , where solves the ODE but the network Jacobian is degenerate (assumption (ii)). With and , this gives for force residuals. For acceleration residuals, only the dissipation term is active and no is needed.
This value depends only moderately on but strongly on the network weights. Evaluating the curvature at the chain's posterior mean instead of changes it by less than 0.5%, and over draws from the chain posterior it varies by about (98–116 around 110.2). At the final state of the acceleration-residual B-PINN, by contrast, it is 99.9, and at a MAP fit of the network it drops to 44. Moreover, is not constant along the B-PINN's own posterior (55–78, where the B-PINN has collapsed the mass scale), so the saturated regime of assumption (iii) holds only approximately. This sensitivity to the expansion point is the main source of the overcorrection discussed below.
Results. Table 9 reports two configurations, each of which activates a different subset of the terms in (39). All runs converge ( over 24,000 draws), so these are valid posteriors. How much of the bias the correction removes follows how accurate the closed forms are in each configuration:
- With acceleration residuals, only the dissipation term is active and no enters. The correction removes 97.5% of the displacement of .
Table 9: Restoring the normalizer on the neural surrogate (oscillator). Displacements from the truth in log space (posterior mean of the log parameter minus the log truth) for the Collider B-PINN and for Chain (Fourier MLP), and the fraction of the displacement removed by the correction, . Active terms are the terms of Eq. (39) that depend on the inferred parameters in that configuration. The last configuration is the run of the horizon study in Fig. 3.
| Configuration | Active terms | Direction | Collider | Chain (MLP) | Removed |
|---|---|---|---|---|---|
| force residuals | metric, dissipation | ||||
| acceleration residuals | dissipation |

Figure 4: Exact closed form of the residual metric bias against measurements on the oscillator (Eq. (22)). Closed form in grey, the collider on the Markovian state-space latent in dark red, the chain in blue. On the state-space latent, along the drift-invariant direction matches to within nats for each number of time steps shown (, omitted for clarity, agrees equally), whereas the chain’s profile stays flat.
- With force residuals, the approximate matters, and the correction can overshoot. The collider’s becomes ( against a truth of 1.00): the correction crosses the truth and leaves a displacement of about one third of the original on the other side. A term linear in with a fixed coefficient replaces a function of and can therefore overcorrect.
As cautioned at the end of Appendix A.1, the closed forms thus locate the bias and remove most of it, but they do not calibrate it exactly.
Remaining stiffness bias. The correction also leaves part of the stiffness bias: with acceleration residuals, Chain (Fourier MLP) reports , against 3.16 for the B-PINN and 3.93 for the chain on the state-space latent (truth 4.00). This remainder is still collider bias rather than a representation error of the surrogate. On the linear cosine surrogate of Appendix A.3.4, where can be restored exactly, the collider displaces from the truth by (mean standard error over ten datasets), whereas the exactly restored chain and the state-space chain are unbiased. The leading-order correction misses this part because enters only through the remainder of Eq. (33).
A.3.8 Details on the Scaling-Law Experiments
Figs. 3 and 4 use the oscillator configuration of Appendix A.3.1, in each case with the mechanism that is not under test switched off. Fig. 4 checks the metric term of in a setting where its closed form is exact; Fig. 3 tests the approximate dissipation term on the neural surrogate.
Residual metric bias (Fig. 4). The figure shows along the drift-invariant direction on the state-space latent, for force residuals; the Markovian latent switches off the dissipation term. We use four discretizations, . The measured matches to within nats, i.e., to machine precision, as expected since Eq. (22) is exact on this latent. Over the swept range of , varies by 225, 449, 899 and 1797 nats, doubling with the number of steps, whereas the chain's log-posterior varies by only 6.0 nats over the same range.
Dissipation bias (Fig. 3). Unlike the metric term, the dissipation term is not a property of the latent alone, so we measure its effect on the posterior rather than itself. We use acceleration residuals, which switch off the metric bias, and vary the horizon over ; the run at is the standard oscillator configuration. Across horizons, we keep the surrogate's bandwidth per unit time and the Euler step fixed and scale , and with , so that only the amount of data changes. The panel shows the posterior mean of minus its true value for Chain (state space), Chain (Fourier MLP) and the Collider B-PINN, each with a bar of posterior standard deviation. The state-space collider is not plotted separately, since under acceleration residuals is constant and its draws are identical to the chain's.
The B-PINN lies at -0.377, -0.526 and -0.669, i.e., at 1.55, 2.08 and 2.67 of its own posterior standard deviations, which barely change (0.243, 0.253, 0.251). The chain stays near the truth, both on the state-space latent (-0.086, -0.022, +0.041, with standard deviations 0.198, 0.176, 0.143) and on the surrogate with the correction (-0.095, -0.013, +0.141). The chain's posterior thus contracts as the record grows, whereas the B-PINN's does not, so the B-PINN's error grows relative to its own stated uncertainty.
To compare with the closed form (36), we reweight the chain posterior of , approximated as Gaussian, by . This predicts shifts relative to the chain of -0.21, -0.32 and -0.41, whereas the B-PINN is shifted by -0.29, -0.50 and -0.71. The leading-order term thus predicts the direction of the bias and its growth with the record, but only between three quarters and three fifths of its size; it also predicts a posterior that contracts with , which the B-PINN's does not.
A.4 Comparison with Nested Inference
To our knowledge, the only prior work that adopts the chain model, by Alberts, Hao, and Bilionis [1, 10, 11], handles the unknown normalizer by nested inference: an inner loop estimates the gradient anew at every step of an outer loop over the joint state. We compare our method, the particle filter with PMMH (Section 4.3), against the two nested schemes that target the same chain posterior.
• NSVI [10] (nested stochastic variational inference) fits an outer Gaussian guide over path coefficients, physical parameters and initial state by maximizing an ELBO. The normalizer gradient in this ELBO is supplied by a second, persistent inner guide, which is re-fitted at every outer step.
• NPSGLD [11] (nested preconditioned stochastic-gradient Langevin dynamics) replaces both guides by preconditioned Langevin chains: a persistent auxiliary chain over the path supplies the normalizer gradient to a main chain over the joint state.
We use the public JAX reimplementation of both methods by Bolt [5] (commit dab4403), which is not by the original authors; we run it unmodified and supply only the problem definition and the evaluation. To isolate the inference algorithm, all methods use the Euler–Maruyama path as latent, on which is in fact available in closed form. The comparison therefore measures how expensive and how accurate nested estimation of is where it could be avoided. The baselines were designed for latents without a closed-form normalizer, a setting we do not test.
Setup. We use two systems in the configurations of Section 5.1: the damped oscillator under both residual metrics, and the double pendulum under torque residuals. All methods share the model, the latent ( Euler–Maruyama steps for the oscillator and for the pendulum), the observations, and the log-normal priors with median at the truth. As in all experiments, is fixed at its true value. Instead of tuning a single run per baseline, we sweep their hyperparameters. For NSVI, we vary the outer learning rate in and the number of inner iterations from 8 to 256, with budgets of up to iterations. For NPSGLD, we vary the step size in , use 4 or 16 chains and both of its preconditioners (rmsprop and dense_fisher), and switch step-size annealing on or off, with budgets of up to iterations. This amounts to 23 runs on the oscillator and 21 on the pendulum. All runs, including those of our method, use the same Quadro RTX 8000 GPU, so that run times are directly comparable.
Evaluation metrics. Wall-clock time alone favours samplers that have not mixed, since they produce many draws that carry little information. We therefore measure cost in seconds per effective sample, i.e., wall-clock time divided by the effective sample size (ESS), and report the split- alongside it. As in Table 1, runs with do not yield a valid posterior; we report their median and mark them with a dagger. For our method, the ESS is the smallest over the components of ; for NPSGLD, it is the ESS of the drift-invariant scale. This choice favours the baseline: on the drift-invariant scale alone, the ESS of our method on the pendulum is about 870 rather than 343, which would lower its cost from 6.71 to 2.6s per effective sample. The cost and of our method refer to a single PMMH chain. To check its mixing, we additionally ran four independent chains (sampler seeds 0–3) per configuration; they give split- for all parameters, and their posterior means of the drift-invariant scale agree to within 0.02 (oscillator) and 0.003 (pendulum). NSVI draws independent samples from a fitted guide, so and ESS do not apply to it; we assess it by its bias instead. Finally, the width of a run is the ratio of its posterior standard deviation to that of our method. It measures what matters for uncertainty quantification: a method can locate the posterior correctly and still misrepresent its uncertainty.
Table 10: Nested inference compared with our particle filter with PMMH. Ranges are over the hyperparameter sweep of each method. Location is the drift-invariant scale ( for the oscillator, for the pendulum), reported as posterior mean standard deviation where and as a daggered median otherwise. Width is the posterior standard deviation divided by that of our method; 1.00 is correct, and 0.03 means thirty-fold overconfidence. Cost is in seconds per effective sample. A run counts as diverged if its location is off by more than a factor of 100 or its spread exceeds 100 reference standard deviations.
| System | Method | Runs | Location | ESS | Width | Cost | |
|---|---|---|---|---|---|---|---|
| Oscillator | PF + PMMH (ours) | 1 | 1.00 | 604 | 1.00 | ||
| force residuals | NSVI | 8 | — | — | — | ||
| NPSGLD | 10 | 1.3–3.0 | 3–32 | 56–2385 | |||
| Oscillator | PF + PMMH (ours) | 1 | 1.00 | 875 | 1.00 | ||
| accel. residuals | NSVI | 2 | — | — | — | ||
| NPSGLD | 3 | 1.1–1.5 | 6–86 | 21–190 | |||
| Double pendulum | PF + PMMH (ours) | 1 | 1.00 | 343 | 1.00 | ||
| torque residuals | NSVI | 16 | — | — | — | ||
| NPSGLD | 5 | , diverged | 2.5–277 | 3–4 | 141–495 |
Cost. Our method produces one effective sample every 0.5–6.7 s. NPSGLD, the only baseline that produces MCMC samples, needs 21 to 2,385 s per effective sample, i.e., to more, depending on the configuration. Its cheapest pendulum run finishes about five times sooner than our method, but it is more expensive per effective sample, since its 423 s yield only three effective samples. A larger budget does not improve its mixing either: the longest NPSGLD run, with iterations over 11,444 s, yields five effective samples.
NSVI converges to a biased posterior. On the oscillator, NSVI is fast, and most of its settings agree on the drift-invariant scale; but the posterior they agree on is the wrong one. In six of its eight force-residual runs, the damping ratio lies at , whereas the truth is 1.20 and our method gives , an underestimate of about 1.8 reference standard deviations. The other two runs, both with outer iterations, end at and 0.94. More computation does not reduce the bias: raising the outer iterations from to and the inner iterations from 32 to 256 increases the run time 113-fold, from 128 s to 14,474 s, but moves only from 0.790 to 0.800. The bias is therefore a property of the converged approximation, not of insufficient computation. On the chaotic pendulum, NSVI does not converge at all: across 16 settings, the mass scale ranges from 0.17 to 1.58, so its final estimate reflects where the budget ran out rather than the posterior. It is also strongly overconfident there: its posterior standard deviations are only 0.03–0.10 times that of our method (Table 10), i.e., ten to thirty times too small, so that its scattered estimates come with misleadingly narrow uncertainty.
NPSGLD misrepresents the uncertainty. None of the 18 NPSGLD runs, on either system and in any configuration, reaches . Because its chains do not mix, its narrow posteriors reflect insufficient exploration rather than precision. On the pendulum, NPSGLD reports with a standard deviation fourteen times too small; on the oscillator with force residuals, it reports with a standard deviation thirty times too small. At the same time, its posteriors over the identified ratios are up to too wide. The NPSGLD posterior is therefore not only mislocated but also misshapen. Our method, in contrast, converges in every configuration ( over four independent chains) and is asymptotically exact.
Why the two systems differ. Both baselines perform considerably better on the oscillator than on the pendulum, for structural reasons. The oscillator is linear, so its path posterior is close to Gaussian, and the Gaussian outer guide of NSVI is nearly well specified. Moreover, with force residuals, the comparatively large process noise ( ) determines the drift-invariant scale, which is the direction that nested schemes find most difficult. The pendulum, in contrast, is chaotic, its mass matrix depends on the state, and its path posterior over 1,235 steps and two degrees of freedom is strongly non-Gaussian. Nested inference therefore does not fail everywhere, but it succeeds only where the problem is close to what its approximations assume, and even there NPSGLD costs more than as much per effective sample as our method.