ELVIA.Evidence Atlas
ICML 2025ELVIA assessment Major

Do Bayesian Neural Networks Actually Behave Like Bayesian Models?

Gábor Pituk, Vik Shirvaikar, Tom Rainforth

ELVIA analysis

Independent review pending

The population sequential and predictive-coherence identities are valid. However, the central significance argument compares a finite initial model average with an interval accounting only for retrained ensembles. An exact Bayesian null exhibits frequent false rejection under this procedure. The specified Laplace curvature also squares an aggregate gradient, which vanishes at a stationary MAP rather than measuring curvature. These support Major assessments of the affected inference and method construction, without establishing that all reported empirical differences disappear. Three local defects are documented separately. Adjudication is pending.

P1 — Martingale significance diagnostic omits initial-BMA integration uncertainty — Counterevidence: Proposition6.1 correct; whole-groupbootstrap andjointlabel generation correct; probabilitiesaveraged aftersoftmax. Actual empiricalgap maypersist; no measuredcorrection.

Problem 1. Martingale significance diagnostic omits initial-BMA integration uncertainty

Major
Evidence and reasoning

Problem statement

Deviations of the initial Bayesian model average outside the bootstrapped retrained-ensemble interval, or improved predictive performance after retraining, demonstrate failure of Bayesian predictive coherence.

The released VI path uses an initial average of 2020 stochastic predictions and 2020 groups of 2020 retrained posterior samples. Its bootstrap resamples retrained groups, without resampling the initial model average. The exact-null diagnostic uses independent initial and retrained posterior draws; it is a calibration example, not a reconstruction of the classification experiment.

Proof

Section 6, p. 8, infers failure of Bayesian updating from deviations outside the bootstrapped martingale-posterior interval; Figure 7, p. 9, treats improved performance as falsifying coherence. Appendix E.1, p. 20, resamples only the imputed/retrained posterior groups. It does not include Monte Carlo uncertainty in the initial model average.

For VI the reported construction uses n=20n=20 groups and k=20k=20 samples per retrained posterior. The released `r02/bnn_hmc/run_martingale_vi_pretrain.sh` sets `vi_ensemble_size=20`. The evaluation in `r02/bnn_hmc/run_vi.py` averages that many stochastic predictions. The default in `ensemble_checkpoints.py` is also 20;20; `run_ensemble_retrained_vi.sh` resamples only retrained checkpoints (100100 bootstrap replicates). No corresponding initial BMA resampling was found in that path. Thus the actual finite baseline cannot be treated as its exact expectation merely by increasing the number of retrained groups.

Take Θ∼Bernoulli⁡(1/2).\Theta\sim\operatorname{Bernoulli}(1/2). At every pseudo-data input let Y∣Θ∼Bernoulli⁡(1/2)Y\mid\Theta\sim\operatorname{Bernoulli}(1/2) independently of Θ.\Theta. At the test input let the success probability be h(Θ)=0.2+0.6Θ.h(\Theta)=0.2+0.6\Theta. All probabilities are valid and bounded; the pseudo-label likelihood is identical at both parameter values, so every exact updated posterior is exactly the original posterior. Joint predictive sampling, normalization and the displayed formula all hold. Independent exact posterior draws are permitted.

Write AA for a 20-draw mean of Θ,\Theta, and MM for the mean of 2020 groups of 2020 exact draws. Then EA=EM=12,Var⁡(A)=180,Var⁡(M)=11600,Var⁡(A−M)=211600.\mathbb EA=\mathbb EM=\tfrac12,\quad \operatorname{Var}(A)=\tfrac1{80},\quad \operatorname{Var}(M)=\tfrac1{1600},\quad \operatorname{Var}(A-M)=\tfrac{21}{1600}. An interval estimating uncertainty of MM alone omits the dominant term. The normal approximation gives coverage 2Φ(1.96/21)−1=0.3311,2\Phi(1.96/\sqrt{21})-1=0.3311, rather than 0.95.0.95. This is a diagnostic approximation, not an assertion of exact finite coverage.

The independently written `check.py` uses the actual discrete group-resampling rule: 10,00010{,}000 independent null trials, 2020 groups of 2020 draws, 1,0001{,}000 bootstrap replicates per trial, seed 224,224, percentile endpoints 0.0250.025 and 0.975.0.975. It records a false-rejection rate 0.6775,0.6775, with Monte Carlo standard error 0.00467.0.00467. Its bootstrap replicate count differs from the released 100;100; the analytical missing-variance defect does not depend on that choice. The affine map from Θ\Theta to hh preserves interval exclusion. For a positive-label test case, the monotone log score does as well.

Improved expected log score can arise under this null without any update error: exact binomial summation gives −0.70239651-0.70239651 for 20-draw integration and −0.69359779-0.69359779 for 400400 independent draws. This follows from averaging and concavity, despite identical posteriors.

The error is in the inference from the finite comparison to non-Bayesian updating, not in Proposition 6.1 or in an interval for MM alone. Resampling whole groups correctly preserves within-group dependence. The released classification path averages probabilities after softmax; its pseudo-label generator samples one parameter vector for the entire label vector. Neither operation is a defect.

The null is a calibration counterexample to the diagnostic, not a simulation of CIFAR or a claim that the observed gap is Monte Carlo noise. The experiment may still show a real incoherence or a useful ensemble gain. A corrected comparison must estimate the initial integration error as well, propagate covariance if samples are coupled, and use a confidence interval for the difference, or make the baseline integration error demonstrably negligible. Matched-budget exact-update controls would test the complete procedure. These repairs have not been run on the published experiment.

□\square

Possible revision

Estimate uncertainty of the difference using both finite estimators and any coupling covariance, or demonstrate that baseline integration error is negligible. Add matched-budget exact-update calibration controls.

The exact-null failure and finite score calculations were checked in the retained report. These repairs were not run on the published experiment.

Problem 2. Laplace method substitutes squared aggregate MAP gradient for curvature

Major
Evidence and reasoning

Problem statement

The squared coordinate gradients of the total loss at the MAP, {(∂L/∂θi)2}i,\{(\partial L/\partial\theta_i)^{2}\}_i, provide diagonal curvature for the Laplace covariance after adding shrinkage and inverting.

Use a differentiable total objective LL and an interior stationary MAP θ^,\widehat\theta, with shrinkage λ>0.\lambda>0. The scalar diagnostic has prior θ∼N(0,1)\theta\sim N(0,1) and independent observations y1=−1,y_1=-1, y2=1y_2=1 from N(θ,1).N(\theta,1).

Proof

Appendix G.4, p. 24, calls {(∂l/∂θi)2}i\{(\partial l/\partial\theta_i)^{2}\}_i the diagonal curvature at MAP, then adds λ\lambda and inverts it. This quantity is neither the Hessian diagonal nor the usual sum of per-observation score squares.

For a differentiable total loss LL at an interior stationary MAP, ∇L(θ^)=0.\nabla L(\widehat\theta)=0. The specified rule therefore gives Σrule=λ−1I\Sigma_{\rm rule}=\lambda^{-1}I regardless of the local likelihood curvature. Adding shrinkage does not recover the lost information.

For a complete one-dimensional diagnostic, take θ∼N(0,1)\theta\sim N(0,1) and independent y1=−1,y2=1y_1=-1,y_2=1 from N(θ,1).N(\theta,1). The negative log posterior is L(θ)=32θ2+const;L(\theta)=\tfrac32\theta^{2}+\mathrm{const}; the MAP is zero, its Hessian is 3,3, and the summed per-observation likelihood-score squares are 2.2. The aggregate gradient square is zero. With λ=1,\lambda=1, the stated rule gives variance 1,1, while adding the same regularizer to the posterior Hessian gives 1/4.1/4. The exact unregularized posterior variance is 1/3.1/3. This illustrates an operator failure, not a measured neural-network score.

The static release corroborates the literal reading: `r01/experiments/src/experiment.py`, lines 819819–828,828, passes the full-data `TraceMeanField_ELBO` loss to `optax.fisher_diag` and adds shrinkage; the callback includes the prior and has no per-observation loop. The inspected official current Optax implementation squares the flattened gradient of that entire scalar callback [optax]. Its exact bytes and URL are preserved in `ox0.txt`/`deps.json`. The historical dependency version is not established. The paper’s printed formula independently specifies the same erroneous curvature substitution.

This affects the method used to support central claims about Laplace functional variability, information retention and tails (Sections 4–5). A covariance determined by optimizer residuals and arbitrary shrinkage cannot isolate failures of a correctly constructed diagonal curvature approximation. The disclosure of shrinkage and reports of full-rank experiments are relevant counterevidence, but do not make squared total gradient a curvature matrix. The scope is this construction and its evidentiary attribution; it does not invalidate VI/SGLD experiments, prove all historical figures used this commit, or quantify how corrected Laplace results would change. A repair requires a specified Hessian/GGN or per-observation Fisher with proper prior curvature and scaling, followed by the affected comparisons.

□\square

Possible revision

Specify a Hessian, generalized Gauss–Newton matrix, or per-observation Fisher construction with appropriate prior curvature and scaling, then rerun the affected Laplace comparisons.

The stationary-point argument and scalar diagnostic were checked. No complete implementation repair or corrected neural-network comparison was performed.

Problem 3. Printed SGLD score drift is reversed

Minor
Evidence and reasoning

Problem statement

The printed Langevin diffusion and Euler formulas use drift −∇log⁡π-\nabla\log\pi while claiming stationary target π.\pi.

Take target π=N(0,1),\pi=N(0,1), initial law Θ0∼N(0,1),\Theta_0\sim N(0,1), and interpret the printed noise as the usual Brownian differential.

Proof

Appendix B.5, p. 17, specifies −∇log⁡π-\nabla\log\pi in its diffusion and discretizations while claiming stationarity at π.\pi. For π=N(0,1),\pi=N(0,1), even interpreting its noise as the usual Brownian differential, this gives dΘt=Θt dt+2 dBt.d\Theta_t=\Theta_t\,dt+\sqrt2\,dB_t. Starting in the claimed stationary law yields Var⁡(Θt)=2e2t−1,\operatorname{Var}(\Theta_t)=2e^{2t}-1, rather than 1.1. At step size 0.10.1 the printed Euler step increases variance from 11 to 1.41.1.41. The correct score sign is positive; its continuous diffusion preserves variance 11 (Euler still has discretization bias).

The release uses the correct positive score: `r02/bnn_hmc/core/sgmcmc.py`, lines 9898–104,104, adds the likelihood/prior gradient produced by `utils/train_utils.py`, lines 104104–130.130. Thus the error changes the mathematical sampler description, but is not evidence that the SGLD experiments used an explosive process.

□\square

Possible revision

Use +∇log⁡π,+\nabla\log\pi, equivalently the negative potential gradient, in the diffusion and discretizations. The released code already has this sign; the reported correction is analytic and does not certify a new experiment.

Problem 4. Atomic-to-continuous KL illustration and claimed mixing optimum invalid

Minor
Evidence and reasoning

Problem statement

The illustration plots a finite KL divergence from truth P=(δ−1+δ1)/2P=(\delta_{-1}+\delta_1)/2 to continuous Gaussian posterior predictions with fixed σ>0,\sigma>0, and identifies mixing mass at μ=±1\mu=\pm1 as optimal.

Keep the atomic true law, positive fixed Gaussian standard deviation, and the notebook's unsmoothed continuous predictive measure; no unreported binning or smoothed truth is assumed.

Proof

Appendix K.2 and Figure 24, pp. 35–36, use truth P=(δ−1+δ1)/2P=(\delta_{-1}+\delta_1)/2 and continuous Gaussian posterior predictions with fixed σ>0,\sigma>0, but plot a finite KL divergence.

Every such predictive QQ assigns mass zero to {−1,1},\{-1,1\}, while PP assigns mass one. Hence P≪̸QP\not\ll Q and DKL(P∥Q)=+∞.D_{\rm KL}(P\|Q)=+\infty. The archived notebook `r01/experiments/misspecification/classical_misspecification.ipynb`, cells 77–10,10, instead computes log⁡(1/2)−12{log⁡q(1)+log⁡q(−1)}:\log(1/2)-\tfrac12\{\log q(1)+\log q(-1)\}: a finite expected log-density score plus a constant, not this KL. It specifies no binning or smoothed true law.

Even under that charitable scoring interpretation, the claimed optimal mixing distribution at μ=±1\mu=\pm1 is not exact. For equal Gaussian components centered at ±a,\pm a, ddalog⁡qa(1)=tanh⁡(a/σ2)−aσ2<0(a=1).\frac{d}{da}\log q_a(1) =\frac{\tanh(a/\sigma^{2})-a}{\sigma^{2}}<0\quad(a=1). At the notebook’s σ=0.5,\sigma=0.5, the derivative is −0.00268280;-0.00268280; moving to a=0.999a=0.999 improves the log score from −0.91860313-0.91860313 to −0.91860243.-0.91860243. Relabeling the axis and correcting the optimizer would repair these local claims, not prove a general misspecification result. The notebook also uses prior standard deviation 1/31/3 rather than the text’s 1,1, balanced deterministic observations, and samples observations as the `mu` values for its zero-data baseline; these further limit exact Figure 24 reconstruction. No author notebook was executed. The main coherence identities and classification experiments do not depend on this illustrative KL calculation.

□\square

Possible revision

Relabel the finite score, correct the mixing optimization and zero-data prior-predictive baseline, and recompute the specified illustration. Alternatively define a smoothed true law or a consistent discretization before claiming a finite KL divergence. These local corrections were not implemented in the author notebook.

Problem 5. Released 40804080-example launch conflicts with prediction batching assertion

Minor
Evidence and reasoning

Problem statement

Released setup inspected

The preserved VI pretraining launch requests 40804080 training examples, while setup requires both an even device partition and a per-device prediction count divisible by 1024.1024.

Keep the published launch flags and a positive integer device count P,P, without dropping training examples or changing the intended data split.

Proof

The released VI pretraining script requests 4,0804{,}080 training examples. `utils/data_utils.py` requires that this size divide evenly across devices; `utils/train_utils.py`, lines 6262–65,65, then requires each device’s training count to be divisible by 1,024.1{,}024.

If both assertions held for PP devices, 4080/P=1024m4080/P=1024m for an integer m,m, forcing 40804080 to be divisible by 1024.1024. It is not (4080 mod 1024=10084080\bmod1024=1008). Thus the preserved configuration cannot pass both setup assertions. This is a static reproducibility defect in this release, not an observed execution or evidence against historical scores. A compatible prediction batching routine would avoid changing the intended data split; no such repair was executed.

□\square

Possible revision

Implement compatible prediction batching while preserving the intended training data and split. The integer contradiction was checked, but no batching repair was implemented or executed.

Supporting record & provenance

Work status

Current version

Version 1

Minhao Liu · Initial report · Version 1

Independent review pending

Original claim and review scope

For both VI and SGLD, individual imputed posteriors underperform the initial BMA, but their martingale ensemble outperforms it.

Published ICML 2025 proceedings PDF (PMLR 267); PDF p. 9

Actual review scope

The recorded inspection concerns these source locations: Section 6, PDF p. 8; Figure 7, p. 9; Appendix E.1, p. 20; r02/bnn_hmc/run_martingale_vi_pretrain.sh, run_vi.py, ensemble_checkpoints.py and run_ensemble_retrained_vi.sh; Appendix G.4, PDF p. 24; r01/experiments/src/experiment.py, lines 819–840; factory.py, lines 144–146 and 237–239; inspected current Optax implementation, lines 118–120; Appendix B.5, PDF p. 17; r02/bnn_hmc/core/sgmcmc.py, lines 98–104; utils/train_utils.py, lines 104–130; Appendix K.2 and Figure 24, PDF pp. 35–36; r01/experiments/misspecification/classical_misspecification.ipynb, cells 7–10; r02/bnn_hmc/run_martingale_vi_pretrain.sh; utils/data_utils.py, truncation and sharding; utils/train_utils.py, lines 62–65.

Submit an author revisionContribute a review