A General Family of Stochastic Proximal Gradient Methods for Deep Learning

Jihun Yun, Aurelie C. Lozano, Eunho YangarXiv 2020

Abstract

We study the training of regularized neural networks where the regularizer can be non-smooth and non-convex. We propose a unified framework for stochastic proximal gradient descent, which we term ProxGen, that allows for arbitrary positive preconditioners and lower semi-continuous regularizers. Our framework encompasses standard stochastic proximal gradient methods without preconditioners as special cases, which have been extensively studied in various settings. Not only that, we present two important update rules beyond the well-known standard methods as a byproduct of our approach: (i) the first closed-form proximal mappings of $\ell_q$ regularization ($0 \leq q \leq 1$) for adaptive stochastic gradient methods, and (ii) a revised version of ProxQuant that fixes a caveat of the original approach for quantization-specific regularizers. We analyze the convergence of ProxGen and show that the whole family of ProxGen enjoys the same convergence rate as stochastic proximal gradient descent without preconditioners. We also empirically show the superiority of proximal methods compared to subgradient-based approaches via extensive experiments. Interestingly, our results indicate that proximal methods with non-convex regularizers are more effective than those with convex regularizers.

Introduction

In deep learning, regularization is a fundamental technique used to induce desirable properties such as sparsity (for model pruning) or discreteness (for quantization). These properties are often achieved by adding penalty terms like the $\ell_1$ norm to the loss function. However, these penalty terms are typically non-smooth, presenting challenges for standard optimization techniques.

Modern deep learning frameworks like PyTorch and TensorFlow generally handle non-smoothness using subgradient methods. While easy to implement, subgradient methods can suffer from slow convergence and oscillatory behavior. A more mathematically rigorous alternative is the proximal operator, which effectively "bypasses" the non-smoothness. While well-understood for simple Gradient Descent, integrating proximal updates with the adaptive preconditioners used in popular optimizers like Adam has been a significant challenge, particularly for non-convex problems.

The ProxGen Framework

This paper introduces ProxGen, a unified stochastic proximal gradient framework designed to bridge this gap. ProxGen allows popular deep learning optimizers to utilize proximal updates for a wide range of non-smooth and non-convex regularizers.

Key features of the ProxGen framework include:

  • Unified Update Rule: It supports arbitrary positive preconditioners ($C_t$) and lower semi-continuous regularizers ($\mathcal{R}$).
  • Closed-Form Solutions: The authors provide the first closed-form proximal mappings for $\ell_q$ regularization ($0 \le q \le 1$) tailored for adaptive methods like Adam, enabling efficient GPU implementation.
  • Revised ProxQuant: The framework identifies and corrects a mathematical oversight in ProxQuant, a leading quantization method, by ensuring the proximal update properly accounts for the optimizer's preconditioner.
  • Theoretical Convergence: The authors prove that the entire ProxGen family converges to stationary points at the rate of $O(1/\sqrt{T})$, matching standard Stochastic Gradient Descent even under non-convex conditions.

Key Insights and Ideas

The empirical evaluation of ProxGen yielded several significant insights into the behavior of regularized neural network training.

Proximal vs. Subgradient Methods

Experiments consistently demonstrate that proximal updates are superior to subgradient-based approaches. Proximal methods not only converge faster but also achieve higher final test accuracy across various architectures and regularizers.

Comparison of ProxGen with subgradient-based Adam and Prox-SGD for $\ell_1$ and $\ell_{1/2}$ regularization.

The Advantage of Non-Convex Regularizers

A particularly interesting finding is that proximal methods using non-convex regularizers (such as $\ell_{0.5}$ or $\ell_0$) are more effective for learning sparse models than the traditional convex $\ell_1$ (Lasso) regularizer. This suggests that the mathematical rigor of the proximal approach unlocks the potential of more aggressive sparsity-inducing penalties.

Experimental Results

The ProxGen framework was evaluated on standard image classification benchmarks, primarily using CIFAR-10 to train sparse and quantized versions of VGG-16 and various ResNet architectures.

Sparsity and Pruning

In VGG-16 pruning tasks, ProxGen with $\ell_0$ regularization significantly outperformed the popular "hard-concrete" ($\ell_{0/hc}$) baseline. It maintained higher test accuracy even at extreme pruning ratios, demonstrating its robustness for model compression.

VGG-16 performance on CIFAR-10 with $\ell_0$ regularization, comparing ProxGen to the state-of-the-art $\ell_{0/hc}$ method.

Quantization

For binary neural networks, the "Revised ProxQuant" consistently outperformed both the original ProxQuant and BinaryConnect. For instance, on ResNet-56, the test error was reduced from 7.70% (original) to 7.52% (Revised ProxGen).

Language Modeling

Preliminary results in language modeling also showed dramatic improvements. On LSTM models, Revised ProxQuant achieved a test perplexity of 223.4, a substantial gain over the original ProxQuant's 288.5.

Conclusion and Future Work

ProxGen provides a theoretically sound and practically effective framework for applying proximal methods to modern deep learning optimization. While the current implementation focuses on diagonal preconditioners common in adaptive optimizers, future work will explore efficient approximations for more complex, structured regularizers (like group sparsity) and non-diagonal preconditioners (like K-FAC). Additionally, the authors aim to investigate the scalability of these methods for large-scale distributed training environments.

Summary updated

BibTeX
@misc{yun2020general,
  author = {Jihun Yun and Aurelie C. Lozano and Eunho Yang},
  title = {{A General Family of Stochastic Proximal Gradient Methods for Deep Learning}},
  year = {2020},
  eprint = {2007.07484},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.07484},
}
Figure