[Paper Review] Bridging the Gap between Stochastic Gradient MCMC and Stochastic Optimization
This paper proposes Santa, a novel stochastic optimization algorithm derived by annealing a stochastic gradient MCMC method with adaptive preconditioning and element-wise momentum. By transitioning from Bayesian sampling to optimization via temperature reduction, Santa achieves state-of-the-art performance on deep neural networks, outperforming Adam, RMSprop, and SGD variants in test error and convergence speed across FNNs, CNNs, and RNNs.
Stochastic gradient Markov chain Monte Carlo (SG-MCMC) methods are Bayesian analogs to popular stochastic optimization methods; however, this connection is not well studied. We explore this relationship by applying simulated annealing to an SGMCMC algorithm. Furthermore, we extend recent SG-MCMC methods with two key components: i) adaptive preconditioners (as in ADAgrad or RMSprop), and ii) adaptive element-wise momentum weights. The zero-temperature limit gives a novel stochastic optimization method with adaptive element-wise momentum weights, while conventional optimization methods only have a shared, static momentum weight. Under certain assumptions, our theoretical analysis suggests the proposed simulated annealing approach converges close to the global optima. Experiments on several deep neural network models show state-of-the-art results compared to related stochastic optimization algorithms.
Motivation & Objective
- To bridge the theoretical and practical gap between stochastic gradient MCMC (SG-MCMC) and stochastic optimization by unifying their algorithmic structures.
- To address the limitation of conventional stochastic optimization methods that use a single, fixed momentum parameter by introducing adaptive, element-wise momentum weights.
- To improve optimization performance on non-convex deep learning objectives by enabling efficient exploration of the parameter space through annealed SG-MCMC.
- To provide a theoretical convergence analysis for the proposed method under non-convex settings, suggesting convergence to solutions near global optima.
- To empirically validate the superiority of the proposed method across diverse deep neural network architectures, including feedforward, convolutional, and recurrent networks.
Proposed method
- Apply simulated annealing to a stochastic gradient thermostat (SGNHT) algorithm, gradually reducing the temperature to transition from Bayesian sampling to optimization.
- Introduce adaptive preconditioners using Riemannian information geometry, analogous to RMSprop and Adam, to scale gradients element-wise based on historical variance.
- Incorporate adaptive, element-wise momentum weights for both model parameters and momentum variables, allowing per-parameter dynamic adaptation.
- Formulate the algorithm as a stochastic differential equation (SDE) with temperature-dependent drift and diffusion terms, enabling theoretical analysis.
- Use a temperature decay schedule to guide the system from full exploration (high temperature) to exploitation (zero temperature), where the method reduces to a new stochastic optimization algorithm.
- Derive convergence bounds based on bias and variance of the annealed Markov chain, providing theoretical justification for convergence to near-global optima.
Experimental results
Research questions
- RQ1Can stochastic gradient MCMC methods be systematically transformed into effective stochastic optimization algorithms via simulated annealing?
- RQ2How does the use of adaptive, element-wise momentum and preconditioning improve optimization performance compared to fixed, shared momentum in SGD?
- RQ3Does the annealed SG-MCMC framework converge to solutions close to the global optima in non-convex deep learning problems?
- RQ4Can the proposed method achieve state-of-the-art performance across diverse deep neural network architectures without architectural modifications?
- RQ5What is the theoretical behavior of the annealed Markov chain in terms of bias and variance, and how does it relate to convergence in non-convex settings?
Key findings
- Santa achieves a test error of 0.47% on MNIST using a 200-200 fully connected network, outperforming Adam (1.53%), RMSprop (1.59%), and SGD (1.72%).
- On a standard CNN architecture, Santa achieves 0.47% test error, matching or surpassing state-of-the-art results from more complex models.
- On the Piano-midi.de dataset with RNNs, Santa achieves a negative log-likelihood of 7.60, the best among all compared methods including Adam (8.00) and RMSprop (7.70).
- Santa converges faster than baseline methods on all tasks, though it exhibits early overfitting, which is effectively mitigated by early stopping.
- Theoretical analysis suggests that under certain assumptions, Santa converges to solutions close to the global optima in non-convex settings.
- The zero-temperature limit of Santa recovers a novel stochastic optimization algorithm with adaptive preconditioning and per-parameter momentum, differing fundamentally from standard SGD with momentum.
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.