Bayesian Backprop as Belief Propagation: Single-Pass Predictive Uncertainty
Wen Dong
TL;DR. Backprop can carry Bayesian uncertainty messages, not just gradients. Our method propagates means and variances forward and local posterior updates backward, giving one-pass predictive uncertainty.
Abstract. Modern ML systems increasingly use uncertainty to decide when to abstain, route to a fallback, retrieve more context, or spend additional computation. Yet many strong Bayesian deep-learning recipes make uncertainty expensive on the serving path: ensembles, posterior samples, and MC dropout require repeated forward passes, while fast deterministic confidence heads are not generally posterior-predictive computations over parameter beliefs. We introduce \emph{Bayesify}, a message-passing view that turns a deterministic neural computation graph into a single-pass posterior-predictive moment graph. Trainable tensors become Gaussian beliefs, activations carry selected moments, and prediction is one deterministic forward propagation of those moments. Theoretically, we show that exact belief propagation is natural-gradient message passing in exponential-family mean space, and that projected EP is implemented by reverse-mode adjoints followed by local Fisher moment updates. This yields a practical wrapper for dense, convolutional, residual, and adapter modules. Experiments evaluate calibrated uncertainty, selective prediction, and OOD behavior at one-pass inference cost, comparing against deterministic calibration, ensembles, dropout, Laplace, SWAG, and variational baselines.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 4 reviews · OpenReview
Updated 25 Nov 2026, 03:43 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
Overview
The paper replaces selected parameter tensors with diagonal Gaussian beliefs and propagates activation means and variances through a deterministic moment graph. Training differentiates an observation-head scalar backward and uses each parameter belief's Fisher matrix to convert the gradients into moment updates; inference propagates predictive moments forward. The exact result applies to compatible exponential-family junction trees, whereas the neural construction uses diagonal projections, approximate nonlinear moments, loopy or shared structures, and a surrogate classification head.
Issues
The major issues raised by the reviewers are:
- Unclear Bayesian specifications (Reviewer_PS41, Reviewer_TvRp): The prior and posterior being approximated, the classification observation head, and the way site-free updates incorporate evidence across minibatches and epochs are insufficiently specified. These gaps make the Bayesian interpretation and reproducibility difficult to assess.
- Limited justification for the approximations (Reviewer_TvRp, Reviewer_KpCo): The exact result concerns junction trees, whereas the neural method discards correlations, projects nonlinear moments, and may operate on loopy graphs. Approximation errors are not quantified empirically or theoretically, so the theory does not establish posterior-predictive fidelity for generic neural networks.
- Theory–implementation mismatch (additional AC concern, related to Reviewer_TvRp): On my reading, the LoRA implementation uses an EMA empirical-Fisher precision update and tuned logit-variance correction rather than Algorithm 1's covariance-matching moment update; the vision implementation is also not specified sufficiently. The experiments may therefore validate a related Laplace-style method rather than the proposed projected-EP method.
- Unclear novelty relative to moment propagation (Reviewer_PS41, Reviewer_TvRp): The technical and empirical distinctions from Probabilistic Backpropagation, feed-forward uncertainty propagation, and other recent single-pass moment methods are not made precise, and the closest approaches are not compared directly.
- Practical advantage not adequately demonstrated (Reviewer_PS41, Reviewer_TvRp, Reviewer_LP5b): A single Bayesify pass may still cost more than a standard deterministic forward pass because it computes and stores both means and variances; actual latency, memory use, and FLOPs are not reported.
The authors should rebut these reservations individually if any are factually incorrect, particularly by showing whether and where the experimental implementations realize Algorithm 1. A precise factual reconciliation of the theory and implementation could materially impact the final assessment. If the reservations are correct, however, addressing them would require substantial revision, likely most cleanly handled in a resubmission.
Final justification
I have read the authors’ response and the full reviewer discussion. The response addressed several concerns from my initial meta-review and provided useful clarification and additional evidence. The reviewers responded positively: two explicitly raised their ratings after considering the response, and all reviewers are now supportive of the work.
Some uncertainty remains about how fully the theory supports the approximate neural implementation, and the manuscript should ensure that its algorithmic description matches the reported experiments. Nevertheless, these issues appear addressable through revision and do not undermine the central contribution. Given the reviewers’ acknowledgments and revised scores, I recommend acceptance.
Read meta-review
Meta-review
Overview
The paper replaces selected parameter tensors with diagonal Gaussian beliefs and propagates activation means and variances through a deterministic moment graph. Training differentiates an observation-head scalar backward and uses each parameter belief's Fisher matrix to convert the gradients into moment updates; inference propagates predictive moments forward. The exact result applies to compatible exponential-family junction trees, whereas the neural construction uses diagonal projections, approximate nonlinear moments, loopy or shared structures, and a surrogate classification head.
Issues
The major issues raised by the reviewers are:
- Unclear Bayesian specifications (Reviewer_PS41, Reviewer_TvRp): The prior and posterior being approximated, the classification observation head, and the way site-free updates incorporate evidence across minibatches and epochs are insufficiently specified. These gaps make the Bayesian interpretation and reproducibility difficult to assess.
- Limited justification for the approximations (Reviewer_TvRp, Reviewer_KpCo): The exact result concerns junction trees, whereas the neural method discards correlations, projects nonlinear moments, and may operate on loopy graphs. Approximation errors are not quantified empirically or theoretically, so the theory does not establish posterior-predictive fidelity for generic neural networks.
- Theory–implementation mismatch (additional AC concern, related to Reviewer_TvRp): On my reading, the LoRA implementation uses an EMA empirical-Fisher precision update and tuned logit-variance correction rather than Algorithm 1's covariance-matching moment update; the vision implementation is also not specified sufficiently. The experiments may therefore validate a related Laplace-style method rather than the proposed projected-EP method.
- Unclear novelty relative to moment propagation (Reviewer_PS41, Reviewer_TvRp): The technical and empirical distinctions from Probabilistic Backpropagation, feed-forward uncertainty propagation, and other recent single-pass moment methods are not made precise, and the closest approaches are not compared directly.
- Practical advantage not adequately demonstrated (Reviewer_PS41, Reviewer_TvRp, Reviewer_LP5b): A single Bayesify pass may still cost more than a standard deterministic forward pass because it computes and stores both means and variances; actual latency, memory use, and FLOPs are not reported.
The authors should rebut these reservations individually if any are factually incorrect, particularly by showing whether and where the experimental implementations realize Algorithm 1. A precise factual reconciliation of the theory and implementation could materially impact the final assessment. If the reservations are correct, however, addressing them would require substantial revision, likely most cleanly handled in a resubmission.
Final justification
I have read the authors’ response and the full reviewer discussion. The response addressed several concerns from my initial meta-review and provided useful clarification and additional evidence. The reviewers responded positively: two explicitly raised their ratings after considering the response, and all reviewers are now supportive of the work.
Some uncertainty remains about how fully the theory supports the approximate neural implementation, and the manuscript should ensure that its algorithmic description matches the reported experiments. Nevertheless, these issues appear addressable through revision and do not undermine the central contribution. Given the reviewers’ acknowledgments and revised scores, I recommend acceptance.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 4/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This work describes an approach that converts a deterministic computation graph into a "moment graph", where Gaussian distributions are propagated (approximately) through deterministic operations. The authors connect his approach to message-passing and belief propagation.
The result is a training procedure that uses a forward-backward pass to update the mean and diagonal covariances over parameters on receipt of a data batch. At test time, uncertainty quantification is achieved through a single pass through the moment graph. This is compelling since many methods (e.g. ensembles) require multiple model passes at test time.
However, I believe the description of the approach is not suitably clear to the reader and the work is not adequately tied to existing work on moment propagation. If the authors can adequately address my questions and concerns then I would be open to increasing my score.
Strengths and weaknesses
Belief propagation notation and terminology can be difficult/rich perhaps for good reason. But I found the technical contribution parts of the paper difficult to read. With many concepts mentioned without definition (e.g. junction trees, mean-form Bethe objective, natural gradient, ....). I appreciate there is the 7 page Appendix D to help but I feel that is suboptimal in aiding the reader's understanding.
Relatedly, I am struggling to validate the informal theorems 3.1 and 3.2 without clearer messaging on what it means for e.g. mean parameters to be "locally consistent". However, the method is generally interesting and results encouraging. I just think the work has higher potential for impact if the mechanisms are explained in simpler terms. Of particular note is Figure 1 which contains notation () which is not defined as far as I can tell. In my opinion, the paper would be greatly strengthened by simplification of Sections 2, 3 and Figure 1, including better highlighting the sequence of operations applied and how they differ in training and at test time as well as how they differ to a deterministic computation graph.
I believe the method can be significant and results impactful for the community. Since the experimental evidence is impressive and the fact it only requires a single forward pass at test time. Although I would like more discussion of how expensive in terms of time and memory a forward pass of a moment graph is vs a deterministic graph. As well as comparison to a pure deterministic baseline (without temperature scaling) or justification as to why that isn't appropriate.
With regards to originality, the related work should not simply mention related methods but describe how the introduced moment propagation differs. Particularly similar work includes:
Li, Rui, et al. "Streamlining prediction in Bayesian deep learning." International Conference on Learning Representations. Vol. 2025. 2025.
Hernández-Lobato, José Miguel, and Ryan Adams. "Probabilistic backpropagation for scalable learning of bayesian neural networks." International conference on machine learning. PMLR, 2015.
Shekhovtsov, Alexander, Boris Flach, and Michal Busta. "Feed-forward uncertainty propagation in belief and neural networks." arXiv preprint arXiv:1803.10590 (2018).
Questions
As mentioned above I'd like to understand the core differences between the introduced moment propagation approach and the references above.
Relatedly, where appropriate the authors would be encouraged to include the most relevant existing moment propagation approaches in their experiments.
How much more expensive in terms of time and memory is the introduced moment propagations vs deterministic training? And at test time?
To what extend is the "Bayesify" method Bayesian? I think this should be clarified. What Bayesian posterior(s) is it approximating?
Limitations
I think the limitations of the work are not adequately discussed, and the justification in the checklist is insufficient. The authors should be clear on the computational cost of the approach compared to baselines, sensitivity to hyperparameters as well as what benefits the approach brings and doesn't bring.
Final justification
The authors provided a good rebuttal with clarifications to my concerns and an improved literature review. I have increased my score from 2 to 4 assuming these will be reflected in any revision.
Formatting concerns
No major formatting concerns
3 comments
Part 2/2 - continued
Relation to the closest moment-propagation work. PBP is the closest training ancestor: it already propagates Gaussian moments forward and differentiates an approximate normalizer backward to update a factorized BNN. Our claim is therefore not that the scalar gradient-to-moment identity or forward/backward pattern is new. Bayesify lifts that idea into a graph-level theorem and implementation abstraction: given a module’s forward moment map, autodiff plus the local Fisher map generates its reverse projected-EP update, including shared-variable residual/concatenation rules and Conv/adapter modules. In this sense Bayesify automates the backward Bayesianization of a declared forward moment graph.
| Method | Posterior learning | One-pass predictive role |
|---|---|---|
| PBP | specialized ADF/EP-style learning of a factorized feed-forward BNN | analytic predictive approximation |
| Feed-forward Uncertainty Propagation | propagates uncertain inputs/hidden variables/noise; not Bayesify’s persistent parameter-belief update | forward analytic uncertainty |
| Streamlining Prediction | assumes a learned posterior from VI/Laplace/etc. | general sampling-free prediction, including richer architectures/covariances |
| PFP | uses a Gaussian SVI posterior | efficient analytic probabilistic forward pass |
| Bayesify | reverse projected-EP updates generated from module moment maps | the same learned belief is served by one moment pass |
We will make this separation between posterior learning and posterior-predictive execution explicit in Related Work, and document the direct PFP and single-pass baseline protocols in the appendix.
A direct Dirty-MNIST comparison under the same one-pass constraint gives:
| Architecture | PFP Acc./AUROC/AURC | Bayesify Acc./AUROC/AURC |
|---|---|---|
| MLP | ||
| LeNet-5 |
Bayesify matches or improves accuracy and AUROC; AURC improves for the MLP and is comparable for LeNet-5. Against MC prediction from the same learned , the Bayesify moment pass has probability JS divergence and absolute NLL/OOD-AUROC gaps , isolating a small prediction-side projection gap. Because original PBP benchmarks scalar regression, we are verifying a faithful native-protocol comparison rather than labeling an ad hoc softmax adaptation as PBP.
Pure deterministic baseline and measured cost. Temperature scaling was included to compare calibrated probabilities, but it is not required for the method; the additional WRN-28-10 results include the unscaled deterministic model:
| Method | NLL/ECE | cNLL/cECE | C100 AUROC | Batch-1 latency | Peak memory |
|---|---|---|---|---|---|
| Deterministic | |||||
| SNGP | |||||
| DUE | |||||
| Bayesify |
A fully Bayesified affine/conv block stores mean and variance ( parameter state) and evaluates approximately three dominant linear operations ( FLOPs); the measured training-step ratio is . Thus “one pass” means one moment-graph traversal, not one ordinary deterministic pass. Bayesify is more expensive than deterministic uncertainty heads, but below a serial five-member ensemble ( batch-1 latency) and MC-dropout-20 (), while providing competitive one-pass calibration, corruption robustness, OOD detection, and selective risk.
Bounded claims and limitations. Bayesify does not represent arbitrary posterior multimodality, full cross-block dependence, or every weight–activation coupling; nonlinear modules use analytic Gaussian moments where available and declared projections otherwise. Damping and prior scale remain hyperparameters, and we do not claim a universal convergence theorem for the outer nonlinear stochastic dynamics. The method also has real constant-factor compute and memory overhead. Its narrower operational benefit is that one modular graph learns explicit parameter beliefs, transports their selected moments through modern architectures, and exposes posterior-predictive uncertainty without test-time sampling.
The concise takeaway is: Bayesify keeps the normal neural computation graph and training workflow, but replaces point activations and Euclidean point-weight gradients by retained moments and locally Fisher-converted projected-EP updates. That is the mechanism we will foreground in the revised presentation.
I think the changes and clarifications suggested by the authors would greatly improve the paper and communicate the method to readers. The observed increased latency and memory is also important and the authors should be clear about it, as mentioned it's not necessarily a dealbreaker since calibrated uncertainty does not come for free and is their method is still generally cheaper than e.g. ensembling. The authors rebuttal also provides significantly better placing of the method in existing literature. I have increased my score from 2 to 4.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper introduces Bayesify, a message-passing framework that transforms deterministic neural computation graphs into single-pass posterior-predictive moment graphs. By representing weights as Gaussian beliefs and propagating selected moments, Bayesify enables a deterministic forward pass to compute predictive moments, while its reverse pass uses adjoints combined with local Fisher blocks to implement projected Expectation Propagation and natural-gradient moment updates. Theoretically, the work demonstrates that exact belief propagation on junction trees is equivalent to natural-gradient message passing in exponential-family mean space, and that reverse-mode adjoints through the moment graph yield projected-EP updates. Empirically, Bayesify achieves single-pass inference costs while delivering well-calibrated uncertainty and highly competitive out-of-distribution and selective performance on vision and NLP tasks, outperforming standard baselines such as ensembles, SWAG, MC dropout, Laplace, and Variational Inference.
Strengths and weaknesses
Strengths
-
Recasting belief propagation as natural-gradient message passing in mean space (Theorem 3.1) is conceptually elegant and clarifies why a forward/backward pipeline suffices for local Bayesian updates.
-
The projected EP result (Theorem 3.2) operationally bridges autodiff adjoints and EP moment corrections, yielding a site-free, module-local update rule with clear Fisher geometry.
-
The development of a unified, practical wrapper that bayesifies dense, convolutional, residual, and adapter modules, as well as shared-tensor graph operations (residuals, concatenation) with explicit forward/backward moment rules, is highly well engineered.
-
The diagonal-Gaussian message rules (Eq. 2–5) make the method concrete and readily implementable.
Weaknesses
-
The approach relies heavily on diagonal Gaussian approximations and local first/second-moment projections. Under strong non-Gaussianity, multimodality, or strong weight–activation coupling, the method may misestimate epistemic uncertainty.
-
The scheduling of EP-style updates in loopy or high-treewidth graphs lacks convergence guarantees. Practical stability is discussed but not formally analyzed.
-
The observation head for classification is described as a differentiable surrogate without precise specification. Mapping uncertain logits to calibrated class probabilities is nontrivial and may materially affect results.
-
Priors and their role in controlling posterior variances are not specified in the main text. Without explicit priors, variances could collapse or drift.
-
Wall-clock latency and memory overheads relative to strong single-pass baselines are not quantified; “equivalent forward passes” serves as an incomplete proxy for serving cost.
-
Main tables show results from only three seeds and lack error bars. Ablations are deferred to the supplement and not summarized.
-
LLM/PEFT experiments are limited with small margins. Broader LLM coverage or stronger OOD stress-tests would strengthen claims.
-
Equations 2 and 3 use for elementwise operations, but Equation 3 states “ denotes elementwise division,” which conflicts with standard usage and Equation 2. This should be corrected to avoid confusion.
-
Table text contains typographical artifacts (e.g., “ог,” “mn/Un,” “ep details”), and the classification head details are underspecified.
-
Prior deterministic, single-pass probabilistic forward pass or moment-propagation approaches are cited but not compared empirically. A head-to-head comparison would better contextualize the gains.
-
Recent formalizations of EP as natural-gradient descent could be discussed more deeply to situate Theorem 3.2 relative to prior theory.
-
Modern evidential and possibilistic single-pass methods are omitted from empirical comparisons, even though they target the same deployment niche despite conceptual differences.
Questions
-
Can you provide wall-clock latency and memory measurements at inference for Bayesify compared to SNGP, DUE, and evidential baselines on CIFAR-10 and CLINC? Please include the FLOPs overhead incurred from variance propagation.
-
How stable are EP-style updates in loopy graphs containing residual or dense connections? Do you observe divergence or oscillations without damping, and how sensitive is the system to the tuning of ? Could you report ablations comparing diagonal versus limited block-covariance moments?
-
How do first-order approximations compare to analytic nonlinear moment transforms? What is the specific impact of the residual first-order covariance () on calibration and out-of-distribution metrics?
-
How does Bayesify compare empirically to Probabilistic Backpropagation (PBP) and recent Probabilistic Forward-Pass (PFP) implementations on shared single-pass constraints (e.g., CIFAR-10/C, Dirty-MNIST)?
-
In the LLM/PEFT setting, can you expand the evaluation to a wider range of GLUE tasks? Please provide selective-prediction curves (AURC versus coverage) and OOD robustness metrics under domain shifts beyond the IMDb and HANS datasets.
Limitations
Yes
Final justification
The paper provides a novel, elegant, and practical integration of belief propagation and automatic differentiation. It translates the natural-gradient geometry of EP into custom VJPs across complex deep learning primitives (including residual paths and adapters), outperforming existing single-pass uncertainty baselines on corruption and OOD metrics.
Formatting concerns
No concerns
2 comments
Part 1/2
Thank you for the technically precise review and for recognizing the exact-tree result, the projected-EP bridge, and the graph-generic implementation. Bayesify’s central contribution is the reverse-mode projected-EP update and graph-generic wrapper that the review identifies as elegant and implementable. The remaining questions are whether the neural approximation is sufficiently specified, faithful, and useful relative to the closest single-pass methods.
Implementation correspondence. Appendix C.2 inadvertently retained the description of an early EMA-Fisher adapter prototype, from before the mean-space gradient-to-moment implementation used in the reported experiments. In the reported LoRA runs, both inserted factors are diagonal-Gaussian beliefs; moments propagate through and ; the custom VJP carries cavity-accounted EP target-moment messages; and the persistent beliefs apply Eq. (4) in coordinates. The vision Dense/Conv path uses the same projected-moment construction. Thus Tables 2–3 evaluate Algorithm 1 rather than an EMA-Fisher/Laplace learner.
Approximation scope and fidelity. The diagonal Gaussian family is Bayesify’s deliberate tractability boundary, not an exact-posterior claim. Eq. (5) exactly retains local means and marginal variances under the stated independent Gaussian beliefs, including . It does not retain posterior dependence between and , off-diagonal covariance, higher moments, or multiple modes; strong coupling or multimodality can therefore bias epistemic uncertainty. Residual paths are nevertheless not made independent: their common activation is propagated through before diagonal projection.
Analytic Gaussian nonlinear moments are used when available; otherwise
which is most accurate in a locally linear, small-variance regime. Additional diagnostics quantify the approximation:
| Diagnostic | Result |
|---|---|
| Moment pass vs. MC from the same | mean/variance correlation ; probability JS ; ; |
| Analytic vs. first-order ReLU | analytic mean/variance error ; near-threshold first-order error |
| Shared residual vs. independence | , , , |
Theorem 3.2 guarantees projected EP for the declared moment map, not equality with the exact BNN posterior. The diagnostics show close same- MC agreement, a clear local advantage for analytic ReLU moments near the threshold, and small favorable effects from preserving residual covariance. Limited covariance blocks are permitted by replacing the diagonal family/Fisher block with a tractable block family, but were not evaluated in the submission.
Classification observation head. “Differentiable surrogate” was too compressed. For
the implemented local model is
Gaussian conditioning gives
The custom VJP sends as the terminal EP target, retaining full local class coupling through before diagonal projection. The scalar exposed to training is used for reporting/model selection; the backward payload is this observation-site target. At inference no label-conditioning update is run: binary tasks use logistic-probit and multiclass tasks use ID-dev-calibrated variance-aware logit scaling, fixed for ID/OOD evaluation. This downstream readout does not replace Eq. (4).
Prior anchoring. Each Bayesian block has a fixed Gaussian prior with canonical field ; it is not used only at initialization. Without re-anchoring, repeated epochs would increase accumulated likelihood evidence while the prior appeared once. Each normalized stochastic target therefore includes the same fixed field: $$ The field is reused, not accumulated as another prior factor: preserves the intended one-prior/one-dataset balance independently of epoch count, and Eq. (4) applies the combined target. A Gaussian canonical field contains both mean and precision components, anchoring posterior variances as well as means. Each minibatch supplies a stochastic approximation to the full-data projected-moment direction for the same persistent ; we do not store one EP site per example. Thus repeated epochs refine a prior-balanced stochastic projected-EP target rather than performing exact stored-site replacement.
Part 2/2 - continued
Stability and scheduling. Bayesify does not run an inner loopy-EP solver. Each minibatch performs one forward moment sweep and one reverse VJP on the feed-forward DAG; residual/DenseNet branches share one activation state, so messages accumulate at one cavity before one damped Eq. (4) update. On compatible trees, Thm. 3.1 is exact in one sweep; on neural moment graphs, Thm. 3.2 identifies the finite projected update. Eq. (4) preserves valid Gaussian moments while tempering large corrections. We do not claim a universal convergence theorem for the outer nonlinear stochastic dynamics or stability without damping; the reported damped schedules show stable validation behavior and competitive uncertainty-sensitive metrics.
Closest moment and single-pass methods. PBP is the closest training ancestor and already combines forward probability propagation with backward updates for factorized BNNs; that generic pattern is not our novelty claim. Bayesify adds the exact junction-tree/natural-gradient result, the general adjoint-to-moment rule of Thm. 3.2, and a graph-generic custom-VJP interface with one-cavity rules for residuals, concatenations, convolutions, and adapters. Feed-forward Uncertainty Propagation addresses forward uncertainty but not persistent parameter-belief updates. Streamlining Prediction and PFP focus on sampling-free prediction from a learned posterior; Bayesify also supplies the training-side reverse projected-moment update. Natural-gradient views of EP are prior art; the claimed novelty is the exact tree correspondence and its neural operationalization.
A direct Dirty-MNIST comparison under the same single-pass constraint gives:
| Architecture | PFP Acc./AUROC/AURC | Bayesify Acc./AUROC/AURC |
|---|---|---|
| MLP | ||
| LeNet-5 |
Bayesify matches or improves accuracy and AUROC; AURC improves for MLP and is comparable for LeNet-5. Its moment-pass AUROC is within of MC from the same . Because original PBP benchmarks scalar regression, we are verifying a faithful native-protocol comparison rather than presenting an invented softmax adaptation.
On the exact WRN-28-10 backbone:
| Method | NLL | ECE | cNLL/cECE | C100 AUROC | AURC |
|---|---|---|---|---|---|
| SNGP | .189 | .027 | .604/.060 | .867 | .0101 |
| DUE | .200 | .021 | .631/.060 | .834 | .0172 |
| DAEDL | .204 | .020 | .620/.061 | .857 | .0100 |
| DAPPr | .205 | .020 | .614/.054 | .851 | .0137 |
| Bayesify | .193 | .019 | .518/.045 | .887 | .0098 |
This is not universal dominance—SNGP has slightly lower ID NLL—but Bayesify gives the strongest C100 AUROC, ECE, corruption metrics, and AURC among these rows. On SVHN/TinyImageNet, Bayesify AUROC is , versus for DAPPr.
Serving cost. “EFP = 1” means one moment-graph traversal without weight samples, not the cost of one ordinary pass. Same-hardware WRN-28-10 ratios, normalized to deterministic, are:
| Method | Batch-1 latency | Peak memory | State | FLOPs |
|---|---|---|---|---|
| SNGP | 1.23 | 1.20 | 1.15 | 1.15 |
| DUE | 1.38 | 1.31 | 1.25 | 1.25 |
| DAEDL | 1.80 | 1.23 | 1.05 | 1.30 |
| DAPPr | 1.00 | 1.06 | 1.02 | 1.02 |
| Bayesify | 3.29 | 1.93 | 2.00 | 3.00 |
Bayesify is costlier than deterministic uncertainty heads, but below a serial five-member ensemble ( latency) and MC-dropout-20 (). Corresponding CLINC timing repeats are being verified for discussion. The claim is a posterior-belief interface at measured constant-factor one-pass cost, not zero overhead or universal speed superiority.
Statistical evidence, LLM scope, and corrections. Tables 2–3 use three seeds, but the dense presentation omitted the stated -intervals. Raw seed values and recomputed intervals are being verified for discussion. Table 3 is a focused SST-2/RTE adapter demonstration with IMDb/HANS shift, not a broad LLM benchmark claim. Its AURC already integrates a 101-point risk–coverage sweep, so the omitted curve is a presentation gap; broader task-shift runs are being verified separately. In Eq. (3), denotes elementwise division, and the table artifacts are typographical.
Together, these clarifications and direct comparisons support the intended claim: Bayesify provides a principled projected Bayesian update that preserves the modern forward/backprop workflow and yields competitive one-pass uncertainty at measured constant-factor cost.
- Rating
- 4/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- theory
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper studies the important problem of uncertainty estimation in neural networks, especially requiring only a single forward pass at the test time. In particular, the paper proposes Bayesify, a framework that turns a standard neural network into a moment-propagation graph: weights are represented as Gaussian beliefs, and activations carry means and variances rather than only point values. At inference time, the method approximates the posterior predictive distribution with one deterministic forward pass, avoiding the multiple samples or model evaluations required by ensembles, MC dropout, SWAG, or Bayes by Backprop. The paper connects belief propagation, expectation propagation, natural-gradient updates, and reverse-mode autodiff, arguing that backpropagation through the chosen moment graph yields local projected-EP moment updates. Empirically, it reports competitive calibration, selective prediction, and OOD detection results on vision, NLP, and LoRA-adapter settings, while maintaining single-pass test-time inference.
Strengths and weaknesses
Strengths
- The paper targets an important deployment problem: The paper focuses on obtaining useful Bayesian uncertainty with only a single inference pass, avoiding the high test-time cost of ensembles, MC dropout, SWAG, or posterior sampling. This is practically valuable for abstention, routing, OOD detection, and selective prediction.
- The conceptual framework is elegant and principled: The paper gives a coherent view of neural networks as moment graphs, connecting belief propagation, projected EP, natural-gradient updates, and reverse-mode autodiff. This makes the method more principled than a simple variance-propagation heuristic.
Weaknesses
- Strong modeling approximation: The framework mainly relies on diagonal Gaussian and first and second moments. This, although simplifies analysis, ignores posterior correlations and may fail to capture important uncertainty structure in deep networks.
Questions
Could the authors provide a discussion of the errors accumulated due to the rough approximation with diagonal Gaussian?
Limitations
The paper does include limitations along, but not in a separated section.
Final justification
The paper addresses an important problem of efficiency when calculating uncertainty in deep neural networks. However, the current form has to compress the content to fit the number of allowable pages, and hence, most theoretical analyses and equations are moved into the appendices. Although this is valid technically, it reduces the readability and makes difficulty to understand the paper. The paper is positive and my recommendation leans towards acceptance.
Formatting concerns
No
2 comments
Part 1/2
Thank you for the positive assessment and for isolating the main approximation question—how diagonal moment errors accumulate through depth—which we address directly below. The key scalability question is whether the diagonal projection retains enough posterior-predictive information to justify Bayesify's module-local, one-pass computation. Bayesify makes this tradeoff explicit: affine retained moments are exact under the declared family, important shared-path dependence is preserved before projection, and additional diagnostics show small realized end-to-end error on the tested networks.
What is exact, and what projection omits. For an affine module , Eq. (5) gives the exact output means and marginal variances under the declared independent diagonal-Gaussian beliefs:
Thus the retained statistics include activation uncertainty, weight uncertainty, and their second-moment interaction. They do not represent off-diagonal covariance, posterior dependence between the local and , higher moments, or multimodal shape.
A concrete omitted term is the contribution of off-diagonal activation covariance. Suppose the local weight belief remains independent and diagonal, but the incoming activation has full covariance . The exact mean-weight contribution to output-variance coordinate is . Replacing by discards
Correlated weights or posterior dependence between and introduce additional omitted terms. Eq. (5) is therefore exact for the selected marginal moments under its stated diagonal-independence assumptions, not for an arbitrary full-covariance posterior. In the exact Gaussian reference case, projected EP onto a diagonal family keeps , whereas mean-field VI keeps ; Bayesify performs covariance matching within a restricted family rather than a diagonal-precision heuristic.
How accumulation is assessed. Local projection errors are transported through the Jacobians of downstream moment maps, so expansive modules can amplify them. We do not claim a universal depth-independent contraction bound. Instead, we directly measure the realized end-to-end discrepancy against Monte Carlo prediction from the same learned , thereby isolating moment-propagation error from the separate question of whether the diagonal equals the exact posterior.
Bayesify also avoids one preventable source of error at graph reuse. For , the skip and residual paths share one activation state, and covariance is propagated through the composite sensitivity before diagonal projection, rather than treating the paths as independent copies.
Theorem scope. Theorem 3.2 states that, once the projected moment graph is declared, reverse mode plus the local Fisher block gives its corresponding projected-EP update. In the diagonal implementation, the selected statistics are means and coordinatewise second moments. The theorem guarantees the update for those selected statistics; it does not assert recovery of off-diagonal covariance or equality with the exact nonlinear BNN posterior.
Empirical diagnostics. Three controlled checks isolate the principal approximation layers:
| Diagnostic | Point estimate |
|---|---|
| One-pass moments vs. Monte Carlo from the same learned | logit mean/variance correlation ; mean probability Jensen--Shannon divergence ; absolute NLL/OOD-AUROC gaps |
| Analytic vs. first-order ReLU moments | analytic mean/variance discrepancy against local Monte Carlo ; first-order error near is |
| Shared residual covariance vs. independent-branch ablation | , , , |
Here NLL is negative log-likelihood, ECE is expected calibration error, AUROC is area under the receiver-operating-characteristic curve, AURC is area under the risk--coverage curve, and cNLL is corruption negative log-likelihood.
The same- comparison shows that the one-pass predictor closely tracks Monte Carlo under the learned family; it does not claim that the learned diagonal family itself equals the exact posterior. Analytic ReLU moments agree closely with local Monte Carlo and substantially reduce the threshold-crossing error of the first-order transform. The residual-ablation point estimates favor retaining shared-path covariance across calibration, OOD separation, selective risk, and corruption NLL.
Part 2/2 - continued
Fidelity--cost interpretation. Strong multimodality, long-range parameter correlation, or strong weight--activation dependence can still require a richer posterior family. The framework is not intrinsically tied to diagonals: replacing a local diagonal Gaussian/Fisher block by a tractable block-diagonal, low-rank, or full block preserves the adjoint-to-moment construction while changing the cost--fidelity point, although such structured variants were not evaluated in the submission.
These results support the intended claim. Bayesify does not assume that posterior correlations are universally negligible; it chooses an explicit tractable family in which affine retained moments are exact, preserves important shared-path dependence before projection, and empirically tracks same-posterior Monte Carlo closely on the tested networks. The diagonal family is therefore the measured approximation that enables module-local training and one-pass posterior-predictive uncertainty, rather than an unexamined variance heuristic.
- Rating
- 4/6
- Confidence
- 2/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper presents a theory to map a neural computational graph into a single-pass belief propagation, allowing the computation of the uncertainty of the neural network decision. The mapping applies to the most common neural network blocks and two theorems are provided to assess the properties of the proposed approach on exact junction trees and on projected statistics. The algorithm is experimentally evaluated on different datasets and models, comparing it with other approaches.
Strengths and weaknesses
Strengths
- the considered problem is important and theoretical results are provided to support the proposed approach
- the mapping applies to generic neural architectures including feedforward, convolutional, attention modules
- even if the main focus is on theory, an experimental evaluation on some benchmarks is provided
Weaknesses
- the paper is hard to follow especially for readers having no strong background on the topic. Most of the theory and theoretical results are explain in text without equations. A clear understanding is not possible without the technical details and full equations available in the supplemental material. In my own opinion, the supplemental material should be provided in order to deepen some aspects and it should not be essential for an easier reading of the paper.
- the experimental comparisons show that the proposed approach performs similarly with respect to the selected competitors. Hence the possible benefits are not clearly supported. I may guess that there is some advantage with respect to the overall complexity, but the reported results are only related to accuracy, etc. Results are avergaed over 3 seeds but only the average is reported.
Questions
For the experimental evaluation on LLMs (section 4.2) the text refers to gpt2_base_en whereas in the table (and in other parts) the model indicated is RoBERTa-base. Please check which is the correct one.
Limitations
yes
Final justification
The considered problem is important, and solid theoretical results are provided to support the proposed approach. Moreover, the proposed mapping is versatile, applying to generic neural architectures including feedforward, convolutional, and attention modules. My main concern was readability; however, the authors have promised to significantly improve the presentation by making it self-contained and adding both a workflow sketch and a summary table. The contribution is mainly theoretical, but the reported experimental evaluation helps to give some insights on the practical application of the proposed theory.
Formatting concerns
The text in Table 2 is extremely small. Also Figure 2 is hardly readable.
4 comments
Part 1/2
Thank you for identifying the presentation, variability, practical-benefit, and GPT-2/RoBERTa inconsistencies; these comments pinpoint the concrete changes needed to make the paper understandable without relying on the supplement. The paper's presentation obscured two points identified by the review: what Bayesify does in ordinary neural-network terms, and why comparable predictive performance with one moment pass is useful. We address those directly, then resolve the LLM naming and Appendix C.2 inconsistencies.
Mechanism and theorem presentation. Bayesify preserves the ordinary forward/backward workflow but changes what is carried:
| Deterministic network | Bayesify | |
|---|---|---|
| Trainable state | point tensor | Gaussian belief |
| Forward pass | point activation | retained moments |
| Backward pass | Euclidean point-weight gradient | moment adjoint local-Fisher projected-EP increment |
| Test time | one point prediction | one forward moment pass; no sampling/backward pass |
For a selected Bayesian block , reverse mode gives the adjoint of the local tilted normalizer and the Fisher block converts it into the moment displacement
For diagonal Gaussian with raw second moment ,
and Eq. (4) damps the update in coordinates. The implementation carries these moment increments through the autodiff/optimizer interface as EP pseudo-gradients; mathematically they are projected natural-gradient moment updates, not Euclidean gradients of point weights.
We chose informal main-text theorem statements to foreground the central connection, with formal versions and proofs in Appendices A--B. The review is right that the compression went too far. The compact formal content that should appear in the main text is: (i) under regular/minimal compatible exponential-family clique and separator beliefs on a junction tree, the collect sweep computes the Fisher-metric projected natural gradient of the mean-form Bethe objective, and a unit mirror step returns the exact posterior region moments (Thm. 3.1); and (ii) for any declared differentiable neural moment graph, reverse-mode adjoints followed by the local Fisher map give the corresponding projected-EP update for the selected statistics (Thm. 3.2).
The revised presentation will therefore begin with the table above and a four-step workflow—forward moments, observation-head target, reverse moment adjoints, persistent-belief update—before introducing junction-tree notation. Fig. 1 will define as a module region, as its shared activation interface, and local consistency as agreement of adjacent modules on the retained moments of . The main text will include the equations above and one affine example; KKT/Schur derivations and complete proofs remain in the appendix.
What benefit is demonstrated? Similar predictive performance is the intended result when it removes repeated inference. Table 3 gives:
| Method | ID Acc. (SST-2/RTE) | Predictive passes | ID NLL/ECE | OOD AUROC (IMDb/HANS) | AURC |
|---|---|---|---|---|---|
| Det+TS | 1 | ||||
| Laplace | 20 | ||||
| VI | 10 | ||||
| Bayesify | 1 |
Bayesify therefore matches the sampled methods' ID accuracy and OOD point estimates and gives the best reported NLL/ECE and selective-risk point estimate with one predictive moment pass. In the PEFT setting, the frozen large backbone is traversed once and Bayesian parameter state is confined to the LoRA factors, rather than repeating the full backbone for every adapter sample. This is the principal large-model benefit; it is a serving-cost claim, not a claim of a large accuracy gain.
“One pass” does not mean the cost of one ordinary deterministic pass. Additional same-hardware WRN-28-10 measurements give deterministic batch-1 latency, peak memory, parameter state, and approximately dominant affine/conv FLOPs. This is more expensive than deterministic single-pass heads, but below a serial five-member ensemble ( latency) and MC-dropout-20 (). Thus the supported claim is measured constant-factor one-pass overhead versus multiplicative repeated inference.
Part 2/2 - continued
GPT-2/RoBERTa and Appendix C.2. The correct mapping is:
| Experiment | Backbone | Bayesian variables |
|---|---|---|
| Table 2, CLINC | RoBERTa-base | selected full-weight/module beliefs |
| Table 3, PEFT | GPT-2 base | LoRA factors and |
Any RoBERTa reference in the PEFT/LoRA description and Appendix C.2's EMA-Fisher paragraph are stale editorial carryovers from an early adapter prototype, before the projected moment-update/autodiff connection was implemented. They do not describe the reported Table 3 learner. In the reported GPT-2 LoRA runs, both and are diagonal-Gaussian beliefs, their target-moment messages are propagated by custom VJPs, and Eq. (4) updates their persistent moments. We apologize for these contradictory carryovers.
Variability and readability. All reported pipelines use three seeds; Appendix C specifies -intervals, but the dense main tables displayed only means. The raw seed values and recomputed intervals will be supplied in discussion after verification. The presentation issue is also concrete: Table 2 should be split by benchmark rather than compressed into one very small table, and Fig. 2 should be enlarged with readable axes and variability. More importantly, the supplement should deepen the argument rather than be required to understand the basic algorithm; the operational equations and theorem assumptions above belong in the main text.
The intended contribution is therefore concrete: Bayesify preserves the familiar neural computation graph, replaces point states and Euclidean gradients by retained moments and locally Fisher-converted projected-EP updates, and provides comparable uncertainty quality with one measured constant-factor predictive pass. This is especially relevant when repeated evaluation of a large backbone is the dominant serving cost.
Thank you again for identifying the two main concerns in your review. To make our response explicit:
- Clarity: the revised main text will begin with the deterministic-versus-Bayesify training/test workflow, the core Gaussian adjoint-to-moment and damped-update equations, and a compact formal statement of each theorem’s assumptions and conclusion. Figure 1 will define the module and shared-activation notation directly; Table 2 will be split by benchmark, Figure 2 enlarged, and verified seed-level intervals displayed. The supplement will contain the complete proofs and extensions rather than being necessary to reconstruct the basic algorithm.
- Practical value: the intended result is comparable uncertainty quality with one predictive moment pass, not a large accuracy gain. Under the same frozen backbone and LoRA budget in Table 3, Bayesify matches or slightly improves the reported ID accuracy, calibration, OOD, and selective-risk point estimates of 10-sample VI and 20-sample Laplace while traversing the frozen GPT-2 backbone once. This reduction in repeated backbone evaluation is the principal benefit for large models. CLINC uses RoBERTa-base; the PEFT experiment uses GPT-2 with Bayesian LoRA factors.
We hope this makes clear both how the main paper will become self-contained and why comparable uncertainty quality with one predictive pass is the intended practical contribution. If any specific concern remains, we would be grateful to address it during the author-visible discussion phase.
Thanks for the clarifications. I agree that adding a workflow sketch will significantly improve the paper's clarity, and the proposed summary table will offer a useful at-a-glance view of the scheme. I am fine with leaving the formal proofs in the supplemental material, but I would consider adding the main equations to the paper. Often mathematics provides a compact yet clearer explanation than text descriptions.
I am going to raise my overall score to 4.
Comments on the paper
2 comments
Reminder: discussion phase ends August 3 (AOE)
Dear Reviewers,
The authors have replied to your reviews. I am aware this is a busy period, but if you have not done so already, please do read their response and reply before the discussion phase ends on August 3 (AOE). At minimum, please acknowledge the response, state to what extent your concerns are addressed, and revise your score if appropriate.
If you have further questions for the authors, please post them soon so they have time to reply before the deadline.
Thanks for your engagement.
Consolidated revision plan after the discussion
Thank you to all reviewers and the AC for the careful and constructive discussion. The feedback has converged on a concrete revision plan that will make the main paper self-contained, sharpen the scope of the theoretical claims, and present the practical tradeoff transparently.
-
Mechanism and theorem presentation. Sections 2--3 and Fig. 1 will begin with the deterministic-versus-Bayesify training/test workflow: point tensors versus parameter beliefs, point activations versus retained moments, and Euclidean gradients versus locally Fisher-converted projected-EP moment increments. We will define , , , and local consistency directly; include Eqs. (2)--(5) and one affine example in the main text; and state each theorem's assumptions and conclusion formally. The complete KKT/Schur derivations and proofs will remain in the supplement.
-
Bayesian and implementation specification. The revised paper will explicitly define the approximated posterior, Gaussian priors, prior anchoring across minibatches and epochs, site-free stochastic-update semantics, the Gaussianized classification site, and the separate predictive readout. We will correct the RoBERTa/GPT-2 wording and replace Appendix C.2's stale early-prototype description with the actual Algorithm 1 protocol. An implementation table will map each experiment to its Bayesian variables, forward moment map, reverse adjoint/Fisher conversion, and persistent Eq. (4) update.
-
Approximation scope and positioning. We will state clearly that exactness applies to compatible exponential-family junction trees, whereas neural networks use declared projected moment graphs. The limitations section will distinguish posterior-family restriction, nonlinear moment closure, shared/reconvergent graph handling, and outer stochastic scheduling. Related Work will directly compare posterior learning and predictive execution in PBP, Feed-forward Uncertainty Propagation, Streamlining Prediction, PFP, and Bayesify.
-
Evidence and deployment tradeoff. We will report verified seed-level intervals, readable risk--coverage results, and latency, memory, and FLOP overhead rather than relying only on equivalent-forward-pass counts. Table 2 will be split by benchmark and Fig. 2 enlarged. We will state explicitly that one Bayesified pass has real constant-factor overhead over a deterministic pass; the practical benefit is comparable posterior-predictive uncertainty without the repeated full-model evaluations required by sampling or ensembles. Any additional experimental values will be included only after independent verification of their runners, checkpoints, raw outputs, and aggregation.
These revisions do not change the central method: Bayesify retains the standard modular forward/backward workflow, but carries selected moments forward and projected Bayesian moment updates backward, yielding one-pass posterior-predictive uncertainty. We are grateful for the reviewers' suggestions, which will make this contribution substantially easier to understand, reproduce, evaluate, and use across both the graphical-model and deep-learning communities.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Part 1/2
Thank you for emphasizing both the potential impact of single-pass uncertainty and the need to explain the mechanism in ordinary neural-network terms; we agree that this is the clearest way to make the contribution accessible and distinguish it from prior moment methods.
The review identifies the main obstacle: the paper presents the graphical-model justification before the simpler machine-learning mechanism. Bayesify keeps the ordinary computation graph and forward/backprop schedule, but changes the payload from point activations and Euclidean point-weight gradients to retained moments and local projected-EP moment increments. We clarify that mechanism, its Bayesian target, its relation to prior work, and its measured cost below.
Mechanism in ordinary neural-network terms. In Fig. 1, Cℓ denotes one layer/module together with its local parameters and input/output activation; Sℓ is the activation interface shared by neighboring modules; and xℓ is that activation. “Local consistency” means that adjacent modules assign the same retained moments to their shared Sℓ.
During training, the observation head turns the label and final logit moments into target logit moments. A custom VJP propagates the corresponding moment adjoints backward through the declared moment maps, and each persistent parameter belief applies its accumulated update through Eq. (4). “EP pseudo-gradient” describes the software interface: mathematically, the payload is a natural-gradient displacement in mean-parameter space, not a Euclidean gradient of a point weight.
The review also identifies a real ordering problem in the exposition. We will invert the order of Sections 2–3 and Fig. 1: first the deterministic-versus-Bayesify training/test workflow and one affine example, then the clique/separator interpretation and exact-tree justification. This keeps the theory while making the operational sequence visible before introducing junction trees, the Bethe objective, or dual coordinates.
What posterior is approximated? Let U index the selected Bayesified parameter tensors—e.g., a dense/conv kernel, a Bayesian bias, or a LoRA factor A or B—and let WU denote their collection; un-Bayesified parameters remain point values. The Bayesian target is
and the scalable approximation is
Activations are transient moment messages induced by these parameter beliefs, not separately fitted confidence variables. The fixed Gaussian prior remains in each normalized stochastic target, so repeated epochs do not wash out its control of the posterior means and variances.
For block u, let Tu be its retained sufficient statistics, μu=Equ[Tu], and Fu=∂μu/∂ηu its Fisher block. If Zu is the local tilted normalizer induced by the downstream observation message, with the other beliefs fixed, then
Theorem 3.1 shows that on compatible exponential-family trees the forward/collect sweep and unit mirror update recover exact posterior moments. Theorem 3.2 gives the graph-level operational result: once each module’s projected moment map is declared, reverse mode supplies its moment adjoints and the local Fisher block converts them into the corresponding projected-EP updates. In the diagonal-Gaussian instantiation, the selected statistics are the first and coordinatewise second moments; off-diagonal covariances and multimodal structure are outside the retained family. Thus the theorem establishes the correct update for the declared projected graph, not exact inference in an arbitrary BNN.