Nonconvex Stochastic Bregman Proximal Gradient Method with Application to Deep Learning

Kuangyu Ding, Jingyang Li, Kim-Chuan ToharXiv 2023 · DOI

Introduction

Standard optimization algorithms like Stochastic Gradient Descent (SGD) are the workhorses of modern AI, but they rely on a mathematical assumption called "Lipschitz smoothness." This assumes the gradient of the loss function doesn't change too abruptly. In the real world of deep learning, this assumption is frequently violated. When gradients explode or loss surfaces become jagged, SGD becomes unstable, requiring painstaking hyperparameter tuning. Researchers at the National University of Singapore have proposed a robust alternative: the Nonconvex Stochastic Bregman Proximal Gradient (SBPG) method.

The Lipschitz Trap in Deep Learning

Most convergence proofs for stochastic optimizers assume the objective function is $L$-smooth. However, even a simple function like $f(x) = x^4$ isn't globally $L$-smooth because its second derivative grows without bound as $x$ increases. In deep learning, this manifests as the "gradient explosion" problem. If a stepsize is too large or weights start far from the optimum, the algorithm can "overshoot," leading to numerical instability.

Comparison of standard quadratic approximation (F1) and Bregman approximation (F2) for the non-Lipschitz function F(x) = x^4. The Bregman model tracks the function's growth much more accurately, preventing the overshooting seen in the quadratic model.

Moving to Bregman Geometry

The core innovation is moving from Euclidean geometry to Bregman geometry. Instead of approximating the loss function with a quadratic bowl (the standard SGD approach), SBPG uses a Bregman distance induced by a "kernel function" $\phi$.

The Polynomial Kernel

For deep learning, the authors design a specific polynomial kernel: $\phi(W) = \frac{1}{2}\|W\|^2 + \frac{\delta}{r}\|W\|^r$. When $r \ge 4$, this kernel ensures "smooth adaptivity," allowing the algorithm to handle loss functions that grow polynomially. This leads to an implicit "pull-back" mechanism: the polynomial term in the denominator of the update rule grows faster than the gradient in the numerator, ensuring weights never fly off to infinity.

Momentum and Complexity

The authors also introduce MSBPG, a momentum-based variant using a Stochastic Moving Average Estimator (SMAE). This reduces gradient variance without requiring massive mini-batch sizes. Despite the added complexity of Bregman distances, SBPG achieves an $O(\epsilon^{-4})$ sample complexity, matching the theoretical optimum for stochastic first-order methods.

Empirical Performance and Robustness

The authors evaluated MSBPG across various domains, including image classification (CIFAR-10/100), language modeling (Penn Treebank), and large-scale Transformers (WikiText-103).

  • Extreme Robustness: In VGG16 experiments, SGD failed when the stepsize exceeded 0.6. MSBPG remained stable with stepsizes as large as 5.0.
  • Initialization Resilience: MSBPG converged even when weights were initialized in a ball with a radius of 20, whereas SGD collapsed if the radius exceeded 4.6.
  • Competitive Accuracy: On CIFAR-100, MSBPG consistently outperformed SGD, Adam, and AdamW, often by 0.5% to 1.5% in test accuracy.
  • Sequence Tasks: For LSTMs, MSBPG achieved significantly lower perplexity than Adam, which is typically the preferred optimizer for such tasks.

Conclusion

By replacing standard Euclidean distances with tailored Bregman distances, SBPG offers a more principled way to handle the non-Lipschitz landscapes of modern deep learning. Its inherent stability against large stepsizes and poor initializations makes it a promising candidate for training complex architectures where standard optimizers struggle.

Summary updated

BibTeX
@misc{ding2023nonconvex,
  author = {Kuangyu Ding and Jingyang Li and Kim-Chuan Toh},
  title = {{Nonconvex Stochastic Bregman Proximal Gradient Method with Application to Deep Learning}},
  year = {2023},
  eprint = {2306.14522},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.14522},
}
Figure