Standard deep neural networks are notoriously overconfident. They output precise point estimates of their weights, treating a single configuration as the absolute truth. True Bayesian deep learning avoids this by learning a posterior distribution over the weights, $p(\theta|D)$, allowing the model to say "I don't know" when faced with unfamiliar data.
However, training a Bayesian neural network from scratch is computationally expensive and notoriously finicky. This challenge has driven a powerful alternative paradigm: post-hoc Bayesian approximation. Instead of changing how we train models, we can take a standard, pre-trained deterministic network and retroactively fit a probabilistic distribution around its weights. As Daxberger et al. demonstrate, this "Laplace Redux" approach allows practitioners to unlock robust uncertainty estimates with negligible additional training cost.
The Intuition: Loss Curvature as Uncertainty
Why should a pre-trained network contain any information about uncertainty? The answer lies in the geometry of the loss landscape surrounding the network's optimal weights.
When we train a standard neural network using maximum a posteriori (MAP) optimization, we find a local minimum in the loss landscape. If we zoom in closely on this minimum, the landscape can be approximated as a quadratic bowl. The steepness of this bowl is described by the Hessian matrix ($H$), which contains the second-order partial derivatives of the loss function with respect to the weights.
Loss Landscape Curvature
Sharp Minimum (Low Uncertainty) Flat Minimum (High Uncertainty)
\ / \ /
\ / \ /
\_ _/ \___________/
\ /
$\theta_{MAP}$ $\theta_{MAP}$
This geometric curvature maps directly to probabilistic uncertainty:
- A Sharp Minimum: The loss increases drastically if the weights change even slightly. This implies the training data tightly constrains the parameters to this specific spot. High curvature means low uncertainty.
- A Flat Minimum: The weights can slide around a wide valley without significantly changing the loss. Multiple different weight configurations explain the data equally well. Low curvature means high uncertainty.
The Laplace approximation formalizes this intuition. By taking a second-order Taylor expansion of the log-posterior around the MAP estimate $\theta_{MAP}$, the first derivative drops out (since it is zero at a local minimum), leaving the Hessian to dictate the shape. This transforms the intractable true posterior into a clean, multivariate Gaussian distribution:
$$p(\theta|D) \approx \mathcal{N}(\theta_{MAP}, H^{-1})$$
Here, the inverse Hessian $H^{-1}$ serves as the covariance matrix. As Yun and Liu show, this elegant conversion allows deterministic architectures to be retrofitted with epistemic uncertainty metrics without altering their original training objectives.
Overcoming the Scale Barrier
While the theory behind the Laplace approximation is elegant, a massive practical hurdle remains: scale. For a modern network with $D$ parameters, the Hessian is a massive $D \times D$ matrix. Storing and inverting a matrix with trillions of entries is computationally impossible.
To make post-hoc Bayesian deep learning viable, researchers use structured approximations of the Hessian to capture weight interactions without the full computational overhead.
Kronecker-Factored Curvature
Instead of treating every weight interaction independently (a diagonal Hessian) or modeling all interactions globally (a full Hessian), we can exploit the layer-by-layer structure of neural networks. Ritter et al. introduced a scalable Laplace approximation that models the Hessian of each layer as a Kronecker product of two much smaller matrices. This captures the crucial dependencies between inputs and outputs within the same layer, providing a high-fidelity "probabilistic memory" of the parameter space while remaining highly scalable.
Subspace Inference
An alternative strategy is to recognize that most parameter variations in a deep network do not affect its predictions. Abeer et al. demonstrate that epistemic uncertainty can be captured by identifying a tiny, high-impact "active subspace"—compressing millions of parameters down to just a few dozen dimensions. By constructing the Laplace approximation exclusively within this low-dimensional slice, full Bayesian inference becomes trivial to compute.
Applications Across the Lifecycle
Because the Laplace approximation acts as a non-intrusive, post-hoc wrapper, it can be applied to existing high-performance models across a wide variety of domains. For instance, Liu and Zhao demonstrate its utility in clinical workflows, using post-hoc weight fluctuations to filter out low-confidence chest X-ray classifications.
Beyond simple uncertainty estimation, the local curvature provided by the Laplace approximation serves as a powerful tool throughout the machine learning lifecycle.
Model Selection and Sparsification
The volume of the Gaussian distribution fitted by the Laplace approximation provides a local measure of the model's marginal likelihood (or evidence). Immer et al. show that this marginal likelihood can be used for hyperparameter tuning and model selection directly on the training data, matching the performance of expensive cross-validation loops.
Furthermore, this evidence can guide network pruning. Charpentier et al. leverage the Laplace approximation to calculate "Optimal Posterior Damage," using the Hessian as a free pruning criterion that allows networks to maintain high accuracy even at 95–99% sparsity.
Preventing Catastrophic Forgetting
When a neural network learns a sequence of tasks, it often overwrites parameters optimized for earlier tasks—a phenomenon known as catastrophic forgetting. Ritter et al. use the Kronecker-factored Laplace approximation to solve this. By saving the Hessian of a completed task, the model retains a geometric memory of which weights are critical. When training on a new task, this Hessian acts as a prior penalty, preventing the network from shifting weights that would destroy its past performance.
Beyond Standard Classification
The flexibility of this framework extends far beyond standard image classifiers. It has been successfully adapted to:
- Dynamic Systems: Inferring sparse weight distributions for identifying complex physical systems (Zhou et al.).
- Reinforcement Learning: Equipping recurrent neural network agents with task-uncertainty awareness in meta-RL settings (de Vries et al.).
- Numerical Integration: Providing reliable error bars for high-dimensional engineering simulations via Bayesian Stein Networks (Ott et al.).
- Physics-Informed PDEs: Accelerating uncertainty quantification in Deep Galerkin methods for partial differential equations (Beltran et al.).
By treating the local curvature of a pre-trained model's loss landscape not just as an optimization byproduct, but as a rich source of probabilistic information, the Laplace approximation bridges the gap between the raw predictive power of deep learning and the rigorous safety guarantees of Bayesian statistics.
Key Foundational Work
Uncertainty Quantification in Chest X-Ray Image Classification using Bayesian Deep Neural Networks (2020) — contributed 2 concept elements to this direction.
A Scalable Laplace Approximation for Neural Networks (2018) — contributed 1 concept elements to this direction.
Online Structured Laplace Approximations for Overcoming Catastrophic Forgetting (2018) — contributed 1 concept elements to this direction.