Variation Due to Regularization Tractably Recovers Bayesian Deep Learning
James McInerney, Nathan Kallus
TL;DR
This work addresses epistemic uncertainty in large deep networks by introducing Regularization Variation (RegVar), a method that estimates predictive variance from the change in outputs when a small regularization term is added to the loss. RegVar achieves this without explicit Hessian inversion by defining a prediction-regularized MAP objective and, in its amortized form, scales to many inputs. The authors prove that RegVar recovers the linearized Laplace variance in the infinitesimal limit and demonstrate competitive to state-of-the-art uncertainty quantification methods on large language and vision models, with improvements in calibration and some out-of-distribution settings. These results suggest RegVar as a practical, scalable Bayesian deep learning tool that leverages existing training frameworks for enhanced uncertainty estimation in real-world applications.
Abstract
Uncertainty quantification in deep learning is crucial for safe and reliable decision-making in downstream tasks. Existing methods quantify uncertainty at the last layer or other approximations of the network which may miss some sources of uncertainty in the model. To address this gap, we propose an uncertainty quantification method for large networks based on variation due to regularization. Essentially, predictions that are more (less) sensitive to the regularization of network parameters are less (more, respectively) certain. This principle can be implemented by deterministically tweaking the training loss during the fine-tuning phase and reflects confidence in the output as a function of all layers of the network. We show that regularization variation (RegVar) provides rigorous uncertainty estimates that, in the infinitesimal limit, exactly recover the Laplace approximation in Bayesian deep learning. We demonstrate its success in several deep learning architectures, showing it can scale tractably with the network size while maintaining or improving uncertainty quantification quality. Our experiments across multiple datasets show that RegVar not only identifies uncertain predictions effectively but also provides insights into the stability of learned representations.
