Variational Stochastic Gradient Descent for Deep Neural Networks
Haotian Chen, Anna Kuzina, Babak Esmaeili, Jakub M Tomczak
TL;DR
The paper addresses the gap between traditional adaptive gradient optimizers and probabilistic gradient modeling by introducing Variational Stochastic Gradient Descent (VSGD). It formulates gradient updates as a probabilistic inference problem and derives update rules via stochastic variational inference, supplemented by a kernel-smoothing interpretation and a conjugate-exponential-family framework. Key contributions include closed-form local and global parameter updates, a tunable prior strength $\gamma$ that modulates information from priors versus observations, and empirical advantages over Adam and SGD on multiple image-classification tasks and architectures. This work offers a principled optimizer for deep networks that can better handle gradient uncertainty and potentially improve generalization and robustness in practice.
Abstract
Current state-of-the-art optimizers are adaptive gradient-based optimization methods such as Adam. Recently, there has been an increasing interest in formulating gradient-based optimizers in a probabilistic framework for better modeling the uncertainty of the gradients. Here, we propose to combine both approaches, resulting in the Variational Stochastic Gradient Descent (VSGD) optimizer. We model gradient updates as a probabilistic model and utilize stochastic variational inference (SVI) to derive an efficient and effective update rule. Further, we show how our VSGD method relates to other adaptive gradient-based optimizers like Adam. Lastly, we carry out experiments on two image classification datasets and four deep neural network architectures, where we show that VSGD outperforms Adam and SGD.
