[Paper Review] Amortized Conditional Normalized Maximum Likelihood: Reliable Out of Distribution Uncertainty Estimation
This paper proposes amortized conditional normalized maximum likelihood (ACNML), a scalable method for reliable uncertainty estimation in deep neural networks under distribution shift. By approximating the minimax-optimal CNML distribution using approximate Bayesian inference, ACNML achieves superior calibration on out-of-distribution inputs compared to prior methods, while remaining computationally feasible for large models.
While deep neural networks provide good performance for a range of challenging tasks, calibration and uncertainty estimation remain major challenges, especially under distribution shift. In this paper, we propose the amortized conditional normalized maximum likelihood (ACNML) method as a scalable general-purpose approach for uncertainty estimation, calibration, and out-of-distribution robustness with deep networks. Our algorithm builds on the conditional normalized maximum likelihood (CNML) coding scheme, which has minimax optimal properties according to the minimum description length principle, but is computationally intractable to evaluate exactly for all but the simplest of model classes. We propose to use approximate Bayesian inference technqiues to produce a tractable approximation to the CNML distribution. Our approach can be combined with any approximate inference algorithm that provides tractable posterior densities over model parameters. We demonstrate that ACNML compares favorably to a number of prior techniques for uncertainty estimation in terms of calibration on out-of-distribution inputs.
Motivation & Objective
- To address the critical challenge of reliable uncertainty estimation in deep learning, especially under distribution shift.
- To develop a practical method that retains the theoretical minimax optimality of the conditional normalized maximum likelihood (CNML) framework.
- To enable scalable uncertainty estimation in deep networks by amortizing the intractable CNML computation using approximate Bayesian inference.
- To improve model calibration on out-of-distribution inputs, reducing overconfidence in incorrect predictions.
Proposed method
- ACNML approximates the intractable CNML predictive distribution by replacing the full training set with an approximate posterior over model parameters.
- It uses a tractable posterior distribution—such as SWAG or KFAC-Laplace—to represent uncertainty, enabling efficient inference.
- For each test input, ACNML computes a predictive distribution by normalizing over label-specific model updates, where each model is conditioned on the test input and the approximate posterior.
- The method leverages the minimum description length (MDL) principle, ensuring minimax-regret optimal behavior through a coding scheme that penalizes overconfidence.
- ACNML is compatible with any approximate Bayesian inference method that provides a tractable posterior density over parameters.
- The approach amortizes the cost of model retraining per test input by learning a global approximation to the CNML distribution.
Experimental results
Research questions
- RQ1Can a tractable approximation to the CNML distribution provide better uncertainty calibration than existing Bayesian and non-Bayesian methods on out-of-distribution inputs?
- RQ2How does ACNML perform in terms of calibration and reliability under increasing distribution shift severity?
- RQ3Can approximate Bayesian inference be effectively leveraged to amortize the computational cost of CNML while preserving its theoretical guarantees?
- RQ4How does ACNML compare in inference speed and accuracy to naive CNML and standard deep learning inference?
Key findings
- ACNML provides significantly better calibration on out-of-distribution inputs than MAP, SWA, SWAG-D, and KFAC-Laplace, with more conservative and reliable confidence estimates.
- On severe corruptions, ACNML variants achieve substantially lower expected calibration error (ECE) and better Brier scores than competing methods.
- ACNML is over two orders of magnitude faster than naive CNML (e.g., 0.08s vs. 13.83s per input on MNIST MLP), making it practical for real-world deployment.
- Despite being more conservative, ACNML maintains competitive accuracy and Brier score on in-distribution CIFAR-10 test sets, outperforming overconfident baselines.
- The method scales linearly with the number of classes but independently of dataset size, enabling efficient inference on large models.
- ACNML’s confidence estimates reliably indicate low confidence on OOD inputs, enabling safe abstention in high-stakes applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.