# Scale-Invariant Empirical-Bayes Laplace Approximation for ReLU Networks

Canonicalization makes EB Laplace priors ReLU-scale invariant

Shivam Pal, Piyush Rai · arXiv · 2026-11-9

- **Problem** Standard empirical-Bayes Laplace picks a different prior precision for each weight copy of the same ReLU network. ReLU rescaling leaves the function unchanged, but the marginal likelihood still changes, so the fitted prior depends on which copy training returned.
- **Method** γ-canonicalization first rescales each hidden unit to a canonical representative, then places the isotropic prior there. It maps that prior back to the original weights as a scale-compatible precision field, so the evidence stays invariant under ReLU rescaling.
- **Results** Across 20 function-preserving rescalings, the standard deviation of log λ⋆ falls to zero after canonicalization. Standard EB Laplace gives a spread of 0.356 on the same copies.

![Table 6: Standard deviations under rescaling and retraining. Rescaling preserves the network function while retraining produces different learned functions. P…](https://refivu.com/papers/9bf0a825-ad03-459f-ac38-a053b7807748/figures/figure-05157be12661de1d8373948afdc98521.png?thumb=512)

**Table 6** : Standard deviations under rescaling and retraining. Rescaling preserves the network function while retraining produces different learned functions. Predictive metrics use standard EB-Laplace.

[Original paper](https://arxiv.org/abs/2611.12031v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Shivam Pal, Piyush Rai · Scale-Invariant Empirical-Bayes Laplace Approximation for ReLU Networks · Original paper figure · Extracted the figure area from page 17 of the original PDF.

## Why standard EB Laplace depends on the parameter copy

Standard empirical-Bayes (EB) Laplace picks its prior precision by maximizing an approximate log marginal likelihood on the training data. The Laplace fit is a Gaussian centered at the MAP solution, with covariance set by the curvature plus the prior precision. The trouble is that this objective depends on the weight vector, while a ReLU network has many weight vectors that compute exactly the same function.

The objective Lstd has four terms: the log likelihood, a log-determinant of C plus lambda I, a log lambda term, and a prior quadratic term. The likelihood term doesn't change along the orbit, because the network function is the same for every representative.

For a hidden unit, multiplying its incoming weights and bias by alpha and its outgoing weights by 1/alpha leaves the network unchanged. The set of all such rescalings forms a ReLU scale orbit, and every point on that orbit represents the same predictor. Along an orbit the squared norm of the weights changes, because the prior quadratic term is not invariant under the diagonal rescaling D\_alpha.

The log-determinant also changes, because the isotropic term lambda I doesn't transform with the congruence law that the curvature follows. The authors make this concrete with the scalar model f(x;a,c) = cReLU(ax), where the rescaling (a,c) to (alpha a, c/alpha) keeps the predictor fixed. For this model, the selected precision is lambda star(alpha) = (-kappa q(alpha) + sqrt(kappa^2 q(alpha)^2 + 4 kappa)) / 2, with q(alpha) = (alpha a)^2 + (c/alpha)^2.

Since q(alpha) is non-constant on the orbit, the selected precision varies with alpha, so different representatives get different priors. Under standard EB Laplace, then, whichever representative training happens to return decides the prior.

## Transporting the prior from a canonical copy

The key idea is to pick one representative on each ReLU scale orbit, place the isotropic prior there, and map that prior back to the original weights. Curvature transforms by congruence under rescaling, so the prior precision has to transform the same way to stay consistent. A single scalar λ can't do this, because λI does not transform along with the curvature.

The authors therefore let the prior precision depend on the MAP solution, through a scale-compatible precision field.

Given a canonical section Cγ that picks one representative from each orbit, the isotropic prior is defined at that representative. Writing the weights as the canonical copy times a diagonal scale matrix D(w;γ) turns the isotropic penalty into a diagonal precision in the original coordinates, Λγ(w;λ)=λD(w;γ)^-2. The penalty stays the same in both coordinates, so the transported precision moves with the rescaling instead of staying fixed.

The authors prove that this transported precision is scale-compatible, which lets the evidence and predictive covariance stay invariant.

The canonical copy for a given γ is chosen by a gauge condition on each hidden unit. For a unit, s is the magnitude of its incoming weights and bias, and t is the magnitude of its outgoing weights. The condition asks that s raised to the power 1−γ equals t raised to the power γ. So γ=0 gives incoming-normalized copies, γ=0.5 gives balanced copies, and γ=1 gives outgoing-normalized copies.

The balanced choice is a natural default, but the evidence can prefer another γ, so the authors select γ from a grid.

## Running the sweeps to get the canonical copy

Algorithm 1 sweeps over the hidden units in a fixed order and rescales one unit at a time. For each unit it computes s and t, the magnitudes of the incoming and outgoing weights, and skips dead neurons where either is zero. The factor α is t raised to γ, divided by s raised to 1 minus γ, so the unit's incoming weights and bias get multiplied by α.

Its outgoing weights get multiplied by 1/α, so the network function is unchanged. One such step sets that unit's local residual to zero, which is the gauge condition for that unit.

The loop repeats its sweeps until the largest change in log α falls below the tolerance ε. The paper reports convergence in at most 200 sweeps, checked by the maximum gauge residual and by output agreement to numerical precision.

The authors do not prove that the algorithm converges for general γ, and they leave that proof to future work. For γ equal to 0.5, they point to the convergence proof given by Saul (2023). Assumption 6.1 says every non-degenerate parameter vector has a representative satisfying the gauge condition, and the iteration is meant to reach it.

The sweep runs first to last for γ below 1 and last to first for γ equal to 1. At γ equal to 0 and γ equal to 1, a single sweep is enough. For γ equal to 0, the gauge condition makes s equal to 1, and for γ equal to 1 it makes t equal to 1.

## Why the evidence and predictions stay fixed under rescaling

The invariance argument rests on two conditions: the curvature transforms by congruence, and the precision field is scale-compatible. When both hold, the generalized Laplace evidence is unchanged under a ReLU rescaling, because the precision field appears in both its log determinant and its quadratic penalty. The evidence is built from the log-likelihood, a log determinant of the curvature plus precision, and a quadratic penalty on the weights.

Because the selected hyperparameters maximize this evidence, they stay the same across the whole orbit.

The posterior covariance is equivariant, so it moves with the rescaling matrix instead of staying fixed. The predictive covariance, however, is invariant, because the Jacobian absorbs the rescaling and the scale factors cancel. The predictive mean is unchanged, since both parameter vectors compute the same function. Prior precision is therefore the only piece that needs the transported form to keep the evidence and predictions fixed.

The corollary says that for fixed γ and λ, the generalized evidence and the linearized predictive are invariant under ReLU rescaling. Its guarantee holds under the section property and Assumption 6.1, so it depends on the canonical section existing. Choosing γ on a finite grid by the same evidence keeps that choice invariant as well.

## Orbit stress test on a Fashion-MNIST MLP

The authors trained a two-hidden-layer ReLU MLP on Fashion-MNIST and generated 20 function-preserving rescalings of its MAP solution. Each hidden unit's log-scale was drawn from N(0,1), and each copy keeps the original logits within numerical precision. Diagonal-GGN EB Laplace was then fitted to each copy, either in raw coordinates or after γ-canonicalization.

Because every copy computes the same function, any spread across the copies comes from the parameterization alone.

Under standard EB Laplace, the standard deviation of log λ⋆ is 0.356, with a range of 1.421 across the orbit. Canonicalized EB Laplace gives zero spread in log λ⋆ for every γ, to numerical precision. The selected precision also tracks the weight norm, with a correlation of −0.971. The authors read this as the prior following the copy rather than the function.

Among the canonical variants, the evidence selects γ=0.25. The balanced representative, γ=0.5, gives a squared norm of 134, compared to 140 at γ=0.25. The authors read this as the marginal likelihood selecting a prior shape, not just the smallest norm. Standard EB Laplace is strongly orbit-dependent here, giving different selected precisions and predictive probabilities for functionally identical copies.

The authors also found that random rescalings alone substantially change standard EB Laplace, so explicit canonicalization is needed.

## Calibration on a CIFAR-10 ConvNet and ResNets

The CIFAR-10 ConvNet is a plain ReLU network without normalization layers, so it keeps the full ReLU scale symmetry. The authors fitted all-layer KFAC-Laplace to it, and KFAC curvature obeys the same congruence law as the Jacobian-based curvature. Accuracy stays unchanged, so the gap is entirely a calibration problem rather than a classification problem.

The authors ran three independently trained MAP seeds, and the table reports mean and standard deviation over those seeds.

![Table 3: CIFAR-10 ConvNet with all-layer KFAC-Laplace. Mean±std over three MAP seeds](https://refivu.com/papers/9bf0a825-ad03-459f-ac38-a053b7807748/figures/figure-bcc0382c023da2123e828fd515117371.png?thumb=512)

**Table 3** : CIFAR-10 ConvNet with all-layer KFAC-Laplace. Mean±std over three MAP seeds.

[Original paper](https://arxiv.org/abs/2611.12031v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)

Canonicalizing the MAP solution before fitting KFAC-Laplace uses γ chosen by marginal likelihood within the canonicalized grid. In all three seeds the marginal likelihood picks γ=0.5, which is the balanced representative. Canonicalization lowers NLL from 0.877 to 0.734 and ECE from 0.248 to 0.130. The authors connect this gain to the MAP representative being poorly scaled, which is the case where γ-canonicalization was expected to help uncertainty estimates.

ResNets use batch normalization, so the full ReLU scale symmetry doesn't hold for them. The authors therefore apply canonicalization only to the last-layer Laplace approximation in the ResNet experiments. The trained ResNet representative is already close to the canonical one, so the predictive metrics barely change. For ResNet-18, rescaled standard EB runs average an NLL of 1.1478, compared to 0.7918 for the γ=0.00 canonical runs.

The marginal likelihood and prior precision still shift under rescaling, and canonicalization removes that shift. The authors argue that relying on BatchNorm or weight decay to balance the network is fragile, since standard EB-Laplace can then fail silently.

## Whether rescaling flips a model ranking

The authors compare a width-64 and a width-128 MLP trained on CIFAR-10 to see whether standard EB can change which model it prefers. For each rescaling strength σ in {0.25, 0.5, 1.0}, with logα drawn from N(0, σ²), they create 20 versions of each model. Each version keeps its network predictions, gets refit with standard EB-Laplace, and all 400 pairs are compared.

Keeping the width-128 copies at σ=0.25 and raising the width-64 rescaling flips the canonical ranking in 19.8% of comparisons at σ=0.5. At σ=1.0 the flip happens in 100% of comparisons. So standard EB can change its model selection even though neither network's predictions change. Canonicalization keeps the evidence gap and the model ranking fixed across these rescalings.

They tested only this one pair of widths, so the effect is shown for that pair alone.

## Limitations and open questions

The method only works for networks whose activations are positively homogeneous, such as ReLU, leaky ReLU and PReLU. For ResNets, the authors use only the last-layer Laplace, since full ReLU-scale symmetry is absent because of batch normalization. Extending the method to normalized networks would require a new symmetry group, canonical section and transported prior for each such architecture.

The authors don't prove convergence of the γ-canonicalization iteration; they leave that to future work. The only convergence proof they point to is for the γ=0.5 case, given by Saul (2023). Their guarantees assume that a canonical representative exists for every non-degenerate parameter vector. In the experiments, they report empirical convergence, with the algorithm always converging within at most 200 sweeps.

Canonicalization is applied post hoc, so the paper doesn't study how training dynamics would change if it were applied during training.

The experiments cover one Fashion-MNIST MLP, one CIFAR-10 ConvNet over three seeds, ResNets with last-layer Laplace, and one pair of MLP widths. The uncertainty gains are empirical, because the formal guarantee concerns invariance. Since γ selection uses a finite grid, the paper's evidence-maximizing choice is restricted to the candidate set Γ.

## Paper info

- **Authors**: Shivam Pal, Piyush Rai
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-9
- **Added**: 2026-11-10
- **Updated**: 2026-11-9
- **Version**: v1
- **arXiv**: 2611.12031
- **Category**: cs.LG · stat.ML
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.12031v1) · [PDF ↗](https://arxiv.org/pdf/2611.12031v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

ReLU networks are well-known to have continuous scale symmetries; infinitely many reparameterized weight vectors that represent the same function. Dinh et al. (2017) have shown that, by reparameterizing, the geometry of the loss landscape (e.g., curvature) of these networks can be changed arbitrarily without affecting the underlying function. Thus, any quantity that depends on the network's geometry should be defined with care. In this paper, we show that the Empirical Bayes (EB) Laplace's approximation is not well-defined for ReLU networks, mainly due to Hessian dependence in computing the marginal likelihood, which is not invariant under ReLU scale symmetries. Thus, we can get different prior precisions, posterior covariances, and predictive uncertainties for a network having identical predictions under ReLU scaling. We define family of prior precision fields indexed by $γ$ and introduce $γ$-canonicalization, which first converts the network to its canonical representation by balancing the ratio of incoming to outgoing weights, and then fits the Empirical Bayes (EB) Laplace to the canonical representation. This procedure is equivalent to transporting the isotropic Gaussian prior from the canonical representation to the original coordinates, by producing a ReLU-scale-compatible precision field. This makes the marginal likelihood invariant under ReLU scaling, while allowing $γ$ to be selected by maximizing the marginal likelihood. The resulting EB Laplace approximation is well-defined on ReLU scale-equivalence classes and yields consistent prior precision selection and predictive uncertainties across functionally identical parameterizations.

## Quote from the paper

Shivam Pal, Piyush Rai (2026). Scale-Invariant Empirical-Bayes Laplace Approximation for ReLU Networks. arXiv:2611.12031v1. https://arxiv.org/abs/2611.12031v1

**BibTeX**

```
@misc{pal2026scale,
  title = {{Scale-Invariant Empirical-Bayes Laplace Approximation for ReLU Networks}},
  author = {Shivam Pal and Piyush Rai},
  year = {2026},
  eprint = {2611.12031},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.12031v1}
}
```

## Other paper commentary

- [Two-Stream Convolutional Networks for Action Recognition in Videos](https://refivu.com/en/papers/d621dee0-0b2a-45a8-b152-6260b98f0db4-two-stream-convolutional-networks-for-action-recognition-in.md)
- [Glow: Generative Flow with Invertible 1x1 Convolutions](https://refivu.com/en/papers/fb9c5b80-a221-4385-8910-2ae4413b604b-glow-generative-flow-with-invertible-1x1-convolutions.md)
- [Density estimation using Real NVP](https://refivu.com/en/papers/6e98cc2c-51ae-4105-a052-60a312be9b3d-density-estimation-using-real-nvp.md)
- [Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks](https://refivu.com/en/papers/f9c68dd2-7de8-40fa-9eb6-ea62d8856b71-model-agnostic-meta-learning-for-fast-adaptation-of.md)
- [PredRNN: A Recurrent Neural Network for Spatiotemporal Predictive Learning](https://refivu.com/en/papers/c0da3abd-5c1e-4383-ae59-22d04fe3eb7d-predrnn-a-recurrent-neural-network-for-spatiotemporal.md)
- [Weakly-Supervised Convolutional Neural Networks for Multimodal Image Registration](https://refivu.com/en/papers/bfc7dfd6-1596-4541-9723-c26ab0c5a3f5-weakly-supervised-convolutional-neural-networks-for.md)
- [Feeling Easier, Working Harder: Cognitive Load in AI-Assisted Code Comprehension](https://refivu.com/en/papers/e8b650a9-d757-41c0-965d-d7085453a0cd-feeling-easier-working-harder-cognitive-load-in-ai.md)
- [Competing Influence in LLM Populations: Budget Timing and Baseline Drift](https://refivu.com/en/papers/0c46aeac-7fe7-4f4c-9eb7-13d04ed0b581-competing-influence-in-llm-populations-budget-timing-and.md)
- [Where Does Proposal Selection Fail? Diagnosing Frozen Vision-Language Queries over Detector Proposals](https://refivu.com/en/papers/363442ef-3d90-4b6d-8310-d1e4fa21fd5d-where-does-proposal-selection-fail-diagnosing-frozen-vision.md)
- [Fade to... Red? Scheduling Coloured Noise Exploration Supports Efficient Robot Learning with Reduced Movement Jerk](https://refivu.com/en/papers/51c54d37-00d0-4705-a3f6-54a87375f97e-fade-to-red-scheduling-coloured-noise-exploration-supports.md)
- [MOOD: Benchmarking Post-Hoc OOD Detection for Materials Property Prediction](https://refivu.com/en/papers/43f71184-5ad3-4e22-907b-780780aa57a8-mood-benchmarking-post-hoc-ood-detection-for-materials.md)
- [Distilling Instructions into Weights: Closed-Form Edits Fix a Robot Policy's Misreading](https://refivu.com/en/papers/090ad32c-77e2-48f8-ac1c-1cc0ae994759-distilling-instructions-into-weights-closed-form-edits-fix.md)

## Terms in this paper

- [CIFAR-10](https://refivu.com/en/terms/19035a518d0a-cifar-10)
- [ResNet](https://refivu.com/en/terms/ca7e0121c7a8-resnet)
- [CIFAR-100](https://refivu.com/en/terms/5afa3b877d18-cifar-100)
- [Fashion-MNIST](https://refivu.com/en/terms/a2f7c0a7f9f5-fashion-mnist)
- [Laplace approximation](https://refivu.com/en/terms/1c5026663f86-laplace-approximation)
- [marginal likelihood](https://refivu.com/en/terms/5246bcc701e9-marginal-likelihood)
- [NLL](https://refivu.com/en/terms/3041c8261098-nll)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/9bf0a825-ad03-459f-ac38-a053b7807748-scale-invariant-empirical-bayes-laplace-approximation-for)
