arXiv:2611.12031cs.LGNov 2026

Manuscript Offprint

arXiv:2611.12031

Scale-Invariant Empirical-Bayes Laplace Approximation for ReLU Networks

Shivam Pal, Piyush Rai

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

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 γ\gamma and introduce γ\gamma-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 γ\gamma 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.

1 Introduction

The Laplace's approximation is a simple post-hoc method for approximate Bayesian inference in deep neural networks. It fits a local Gaussian posterior whose mean is a maximum-a-posteriori (MAP) solution, and covariance is determined by curvature and prior precision [MacKay, 1992, Ritter et al., 2018, Daxberger et al., 2021]. The prior precision is often selected using marginal likelihood, which can be estimated solely from training data and without any validation data. This is also known as empirical Bayes (EB) or type-II maximum likelihood learning. Recent progress in structured curvature approximations, linearized prediction, and software support [Ritter et al., 2018, Daxberger et al., 2021, Immer et al., 2021a] has made the EB Laplace approximation an attractive method for post-hoc uncertainty estimation and Bayesian model selection.

In this paper, we study the transformation properties of marginal likelihood under ReLU scale symmetries. For ReLU networks, the marginal likelihood is not well-defined on the learned predictor. Due to the positive homogeneity property of ReLU, multiplying the incoming and outgoing weights of a hidden unit by α>0\alpha > 0 and 1/α1/\alpha, respectively, makes the network function unchanged. These transformations generate ReLU scale orbits; continuous families of parameter vectors having the same

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

function [Neyshabur et al., 2015a,b, Dinh et al., 2017]. Along such an orbit, the marginal likelihood is not invariant mainly due to the log-determinant of the curvature and the norm of the chosen orbit which do not transform compatibly. Consequently, standard EB Laplace can give different marginal likelihoods, prior precisions, and linearized predictive uncertainties to the parameterizations that represent exactly the same predictor.

We fix this problem by introducing γ\gamma-canonicalization where γ∈[0,1]\gamma \in [0,1] controls the choice of canonical representation. Our procedure first converts the network (MAP solution) to its canonical representation by balancing the ratio of incoming and outgoing weights of the hidden units of the network, then fitting the EB Laplace on the canonical representation. This generalizes the balanced and one-sided normalizations studied in scale-symmetric networks [Stock et al., 2019, Saul, 2023]. 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. We show that, for every γ\gamma, the resulting generalized marginal likelihood is invariant on the ReLU scale orbit. Thus, it makes the EB Laplace approximation explicitly depend on the learned function and not on arbitrary parametrization of the function that is obtained due to training artifacts. γ\gamma is selected jointly with prior precision using generalized marginal likelihood.

Empirically, we further show that the standard EB Laplace varies substantially across functionally identical ReLU rescaling, while γ\gamma-canonicalized EB Laplace becomes invariant. We also find that γ\gamma-canonicalized EB Laplace gives better uncertainty estimates than standard Laplace, although our main guarantees are for the invariance.

References (36)