Fast and Scalable Bayesian Deep Learning by Weight-Perturbation in Adam
Mohammad Emtiyaz Khan, Didrik Nielsen, Voot Tangkaratt, Wu Lin, Yarin Gal, Akash Srivastava
TL;DR
This work presents fast, scalable Bayesian deep learning by embedding weight perturbations into Adam to perform Gaussian mean-field variational inference. By leveraging approximate natural-gradient updates (VON, VOGN, Vprop) and natural-momentum (Vadam) or variational AdaGrad (VadaGrad), the approach achieves uncertainty estimates with reduced memory and computation compared to traditional VI methods. Empirical results show comparable uncertainty quality to state-of-the-art VI methods across logistic regression, neural networks, and reinforcement learning tasks, with clear benefits in exploration and early learning in RL. The framework offers a practical route to Bayesian deep learning that integrates with standard adaptive optimizers and supports weight perturbation as a mechanism for exploration and uncertainty propagation.
Abstract
Uncertainty computation in deep learning is essential to design robust and reliable systems. Variational inference (VI) is a promising approach for such computation, but requires more effort to implement and execute compared to maximum-likelihood methods. In this paper, we propose new natural-gradient algorithms to reduce such efforts for Gaussian mean-field VI. Our algorithms can be implemented within the Adam optimizer by perturbing the network weights during gradient evaluations, and uncertainty estimates can be cheaply obtained by using the vector that adapts the learning rate. This requires lower memory, computation, and implementation effort than existing VI methods, while obtaining uncertainty estimates of comparable quality. Our empirical results confirm this and further suggest that the weight-perturbation in our algorithm could be useful for exploration in reinforcement learning and stochastic optimization.
