NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Estimating Model Uncertainty of Neural Networks in Sparse Information Form

Jongseok Lee, Matthias Humt, Jianxiang Feng, Rudolph Triebel

Introduction

Deep Neural Networks (DNNs) are notoriously overconfident, often making incorrect predictions with high certainty. This overconfidence poses a major hurdle for safety-critical applications like autonomous driving and medical diagnosis. While Bayesian Neural Networks (BNNs) offer a principled solution by modeling parameter uncertainty, they are computationally expensive to implement for large-scale models.

The standard post-hoc approach uses the Laplace Approximation to represent the posterior as a Gaussian distribution. However, the covariance matrix of this Gaussian scales quadratically with the number of parameters, making it intractable for modern DNNs with millions of weights. Existing methods like KFAC use Kronecker factorization to simplify this, but they still struggle with significant memory overhead and often fail to accurately capture the "information content" of parameters, leading to poor out-of-distribution (OOD) detection.

To address this, researchers have introduced a highly scalable method for estimating model uncertainty by representing the parameter posterior in "information form" (the inverse of the covariance matrix). By leveraging the natural spectral sparsity of the information matrix, this novel approach significantly reduces memory costs while providing superior uncertainty calibration on large-scale tasks like ImageNet.

Methods: The Information Form

The core proposal is to switch from the standard covariance form to the Information Form of the Multivariate Normal Distribution. In this dual formulation, the distribution is parameterized by an information vector and an information matrix (the inverse of the covariance matrix).

The proposed pipeline: from point estimates to sparsified information matrix and finally to efficient sampling.

Key technical contributions of this approach include:

  1. Exploiting Spectral Sparsity: The information matrix of a DNN is naturally sparse in its spectrum—most of its eigenvalues are near zero. This makes it a perfect candidate for low-rank approximations (LRA).
  2. Spectral Sparsification: A novel algorithm performs LRA while preserving the Kronecker product structure of the eigenvectors. This is crucial because storing the full eigenvectors would otherwise be memory-prohibitive.
  3. Diagonal Correction: The method improves upon state-of-the-art Kronecker-factored approximations by ensuring the diagonal elements (the individual parameter variances) remain exact, which is vital for maintaining accurate information content.
  4. Efficient Sampling: The authors derive an analytical sampler that operates in the low-rank dimension $L$ rather than the parameter dimension $N$. This reduces sampling complexity from $O(N^3)$ to $O(L^3)$, making it feasible to draw many samples for predictive uncertainty.

Key Insights and Ideas

A major insight of this work is the distinction between Information vs. Covariance. While the covariance matrix is dense and hard to approximate, its inverse (the information matrix) has a rapidly decaying spectrum. Sparsifying the "weak links" (small eigenvalues) in the information matrix preserves the most important relationships between parameters.

Illustration of Algorithm 1, which selects the most informative eigenvalues and corresponding structured eigenvectors.

However, standard LRA destroys the Kronecker structure needed for efficiency. The proposed "Spectral Sparsification" is specifically designed to keep this structure intact. Remarkably, the authors found that even with only 5% of the ranks preserved, their method (INF) often outperforms full-rank KFAC. This confirms that most of the "information" in a DNN is concentrated in a very small subspace.

Experimental Results

The approach was rigorously tested across a wide range of benchmarks, from simple 1D toy regression to large-scale ImageNet classification using ResNet and DenseNet architectures.

  • Superior Calibration: On ImageNet, the proposed INF method achieved a lower Expectation Calibration Error (ECE) than standard SGD, KFAC, and even more complex methods like SWA/SWAG.
  • OOD Detection: INF showed a dramatic ability to separate in-distribution data from out-of-distribution data (e.g., distinguishing ImageNet classes from artistic paintings), whereas other methods often assigned high confidence to OOD samples.
  • Memory Efficiency: For a ResNet-50, the INF method required only ~105 MB to store the uncertainty information, compared to ~587 MB for KFAC and ~684 MB for EFB, while providing better results.
  • Scalability: This is one of the few Bayesian methods that scales gracefully to massive architectures like ResNet-152 and DenseNet-161 on ImageNet without requiring changes to the training procedure.

Limitations and Future Work

Despite its success, the method has a few limitations. Because it is a "post-hoc" approach based on the Laplace Approximation, it approximates the posterior locally around a pre-trained solution and may miss other modes of the posterior distribution. Additionally, like KFAC, it assumes weights across different layers are uncorrelated (a block-diagonal assumption), which is a simplification.

Finally, hyperparameters like the precision of the prior ($\tau$) and the scaling factor ($N$) still require sensitive tuning. Future work may explore applying the mathematical tools developed for this inverse space to other areas, such as variational inference.

Summary updated

BibTeX
@inproceedings{lee2020estimating,
  author = {Jongseok Lee and Matthias Humt and Jianxiang Feng and Rudolph Triebel},
  title = {{Estimating Model Uncertainty of Neural Networks in Sparse Information Form}},
  booktitle = {International Conference on Machine Learning},
  year = {2020},
  url = {https://openreview.net/forum?id=-rgLQU70Ol8},
}
Figure