arXiv:2610.11737cs.LGOct 2026

Manuscript Offprint

arXiv:2610.11737

Uncovering and Fixing Collider Bias in Bayesian PINNs

Michael Obermayr, Robert Peharz

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

Figure

(a) Collider (B-PINN)

Figure

(b) Chain (ours)

Figure 1: Modeling choices for physics-informed Bayesian inference. (a) Collider (B-PINN): Physics parameters λ\lambda and trajectory parameters θ\theta are a priori independent, interacting only when conditioned on equation residuals rr. (b) Chain (ours): Physics λ\lambda directly generates trajectories θ\theta, which in turn generate data yy.

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

pcollider(λ,θ,r,y)=p(λ)⏟PhysicsTraj.p(θ)⏟Priorp(r∣λ,θ)⏟Residualp(y∣θ)⏟Observ..(1)p_{\mathrm{collider}}(\lambda,\theta,r,y)=\underbrace{p(\lambda)}_{\mathrm{Physics Traj.}}\underbrace{p(\theta)}_{\mathrm{Prior}}\underbrace{p(r\mid\lambda,\theta)}_{\mathrm{Residual}}\underbrace{p(y\mid\theta)}_{\mathrm{Observ.}}. \tag{1}

Here p(λ)p(\lambda) and p(θ)p(\theta) are the priors over physics and trajectory parameters, respectively, and p(y∣θ)p(y \mid \theta) is the observation likelihood. Residuals rr serve as “virtual observations” of zero measuring physics violations at collocation points, typically under a narrow zero-mean Gaussian likelihood p(r∣λ,θ)p(r \mid \lambda, \theta). Thus, λ\lambda and θ\theta are a priori independent and coupled only upon conditioning on r=0r = \mathbf{0}. In graphical-model terms [13], this forms a collider at rr (Fig. 1a), a structure widely adopted in the literature [14, 20, 25, 26].

Alternatively, one might use a hierarchical model, in which physics λ\lambda is equipped with a prior, trajectories θ\theta depend on λ\lambda and observations yy depend on θ\theta:

pchain(λ,θ,y)∝p(λ)⏟Physicsp(θ∣λ)⏟Trajectoryp(y∣θ)⏟Observation.(2)p_{\mathrm{chain}}(\lambda,\theta,y)\propto\underbrace{p(\lambda)}_{\mathrm{Physics}}\underbrace{p(\theta\mid\lambda)}_{\mathrm{Trajectory}}\underbrace{p(y\mid\theta)}_{\mathrm{Observation}}. \tag{2}

Prior Likelihood Likelihood

Figure

Chain Model (Ours)

B-PINN

Ground Truth

Prior

Figure 2: Posterior marginals for the damped linear oscillator. System governed by x¨=−cmx˙−kmx+σrξ(t)\ddot{x} = -\frac{c}{m} \dot{x} - \frac{k}{m} x + \sigma_r \xi(t) with white noise ξ(t)\xi(t), mass mm, damping cc and spring constant kk, ground-truth parameters {m,c,k}={1.0,1.2,4.0}\{m, c, k\} = \{1.0, 1.2, 4.0\}, residual scale fixed at σr=0.3\sigma_r = 0.3, and 40 noisy observations ( σobs=0.02\sigma_{\text{obs}} = 0.02). 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 c/mc/m and k/mk/m 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 ( c/mc/m) and stiffness ( k/mk/m). The bias is reproducible over resampled datasets. Full experimental details are provided in Section 5.

Here the dependency structure between λ\lambda and θ\theta forms a chain (head-to-tail node) [13], as illustrated in Fig. 1b. Unlike the collider (1), θ\theta depends directly on λ\lambda through the trajectory likelihood p(θ∣λ)p(\theta \mid \lambda) rather than indirectly through residual likelihood p(r∣λ,θ)p(r \mid \lambda, \theta).

Which of the two formulations is preferable? The collider offers practical convenience: its factors are straightforward Gaussian priors and likelihoods. By contrast, specifying p(θ∣λ)p(\theta \mid \lambda) in the chain is less straightforward; it requires describing a distribution over trajectory parameters θ\theta that may vary substantially with the physics λ\lambda. An intuitive construction is to start from the prior p(θ)p(\theta), 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 ZλZ_{\lambda} whose calculation requires an intractable marginalization over θ\theta.

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 λ\lambda and trajectories θ\theta, rather than quantities of substantive interest. The chain avoids this artificial construction by modeling trajectory dependence directly via p(θ∣λ)p(\theta \mid \lambda). Furthermore, forward-sampling the collider yields an implausible generative process—typically generating incompatible pairs of λ\lambda and θ\theta that demand unlikely residuals. By contrast, the chain follows the natural hierarchy in which physics λ\lambda generates trajectories θ\theta, 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 ZλZ_{\lambda}, 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 ZλZ_{\lambda}; 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].

References (28)