Dynamic Learning Rate Decay for Stochastic Variational Inference
Maximilian Dinkel, Gil Robalo Rei, Wolfgang A. Wall
TL;DR
Stochastic Variational Inference (SVI) often suffers from sensitivity to the learning rate, leading to slow convergence or oscillations when the base rate is too large. The authors propose Dynamic Learning Rate Decay (DLRD), a memory-efficient scheme that uses a signal-to-noise ratio (SNR) computed from the history of variational parameters to adaptively reduce the base learning rate, triggering decreases when oscillations outweigh progress. The method is shown to complement existing optimizers (e.g., Adam, AdaMax, RMSprop) and to improve convergence across a synthetic toy problem, Bayesian logistic regression on a breast-cancer dataset, and Bayesian calibration of a diffusivity field, all while reducing sensitivity to the initial LR and batch size. A noted limitation is that DLRD detects oscillations rather than divergence, suggesting future work to detect divergence and to extend to richer variational families beyond Gaussian.
Abstract
Like many optimization algorithms, Stochastic Variational Inference (SVI) is sensitive to the choice of the learning rate. If the learning rate is too small, the optimization process may be slow, and the algorithm might get stuck in local optima. On the other hand, if the learning rate is too large, the algorithm may oscillate or diverge, failing to converge to a solution. Adaptive learning rate methods such as Adam, AdaMax, Adagrad, or RMSprop automatically adjust the learning rate based on the history of gradients. Nevertheless, if the base learning rate is too large, the variational parameters might still oscillate around the optimal solution. With learning rate schedules, the learning rate can be reduced gradually to mitigate this problem. However, the amount at which the learning rate should be decreased in each iteration is not known a priori, which can significantly impact the performance of the optimization. In this work, we propose a method to decay the learning rate based on the history of the variational parameters. We use an empirical measure to quantify the amount of oscillations against the progress of the variational parameters to adapt the learning rate. The approach requires little memory and is computationally efficient. We demonstrate in various numerical examples that our method reduces the sensitivity of the optimization performance to the learning rate and that it can also be used in combination with other adaptive learning rate methods.
