Minibatch Stochastic Approximate Proximal Point Methods

Hilal Asi, Karan Chadha, Gary Cheng, John C. DuchiNeurIPS 2020

Overview

This paper introduces a novel approach to parallelizing Approximate-Proximal Point (aProx) methods—a robust alternative to Stochastic Gradient Descent (SGD)—using minibatches. The authors prove that these methods achieve a linear speedup as more processors are added, even for non-smooth functions where standard methods often struggle. Crucially, these methods remain remarkably resistant to poorly tuned step sizes, addressing a major pain point in modern machine learning optimization.

The Problem: Brittleness in SGM

Stochastic Gradient Methods (SGM/SGD) are the workhorses of modern machine learning, but they suffer from a "brittleness" problem. They are incredibly sensitive to hyperparameter tuning, especially step size, and can easily diverge if the objective function is noisy or non-smooth.

Proximal point methods, and the broader aProx family, are known to be much more stable and robust. Instead of simply taking a step in the direction of the gradient, they solve a small optimization sub-problem at each step to find the next iterate. However, these methods are traditionally sequential, making them difficult to scale on modern parallel hardware like GPUs or distributed clusters. This paper tackles the challenge of efficiently "minibatching" these proximal updates to gain the speed of parallelization without losing the stability of the proximal approach.

Proposed Minibatch Methods

The authors propose three distinct ways to extend aProx methods to the minibatch setting:

  1. Iterate Averaging (IA): Each worker computes a proximal update based on its own sample, and the resulting models are averaged. While simple to implement, the authors find this is generally the weakest performer.
  2. Truncated Average (TruncAv): This method builds a single "truncated" model based on the average of the gradients in the minibatch. It is computationally cheap and easy to parallelize.
  3. Average of Truncated Models (AvTrunc): This is the most sophisticated approach. It creates individual models for every sample in the minibatch and then minimizes the average of these models. While it requires solving an $m$-dimensional dual problem (where $m$ is the batch size), it provides the most accurate representation of the function.
Geometric interpretations of different minibatch update strategies.

The core theoretical innovation is proving that these minibatched versions maintain the stability traits of aProx while providing a linear speedup: theoretically, doubling the batch size halves the number of iterations needed to reach a certain accuracy.

Key Insights and Ideas

  • Speedup for Non-Smoothness: Traditionally, linear speedup in minibatches is only guaranteed for smooth functions. This paper demonstrates that by using the "full proximal model," linear speedup can be achieved even for non-smooth and non-Lipschitz functions.
  • The "Interpolation" Advantage: In modern over-parameterized deep learning, models often "interpolate" the data, achieving near-zero training error. The authors show that for these types of problems, minibatched aProx methods enjoy exceptionally fast, linear convergence rates.
  • Hyperparameter Robustness: Perhaps the most practical insight is that while SGM requires a "just right" step size to see any speedup from minibatches, aProx methods show speedup across a massive range of step sizes. They are significantly harder to "break" with a bad initial guess.

Experimental Results

The researchers evaluated their algorithms using three classic optimization tasks designed to test different mathematical properties: Linear Regression ($L_2$ loss, smooth), Absolute Loss Regression ($L_1$ loss, non-smooth), and Logistic Regression. The experiments used synthetic data ($n=1000$ samples, $d=40$ features) to allow for precise control over noise levels and interpolation conditions.

Speedup vs. Batch Size across different regression tasks.
  • Linear Speedup: In noiseless $L_1$ and logistic regression, the proposed methods (particularly TruncAv and AvTrunc) showed near-perfect linear speedup as the batch size increased from 1 to 64.
  • Step Size Stability: The authors demonstrate that while SGM’s performance drops off a cliff if the step size is too large, the aProx methods maintain high speedup even when the step size is varied by several orders of magnitude.
  • Efficiency in Noise: In "noisy" settings, while all methods degrade slightly, the aProx variants still significantly outperformed standard SGM in terms of the number of iterations required to reach a target error.

Limitations and Future Work

While promising, the proposed methods have limitations. The AvTrunc method requires solving a dual optimization problem at every iteration. Although the authors note this is $O(m)$-dimensional and practically parallelizable, it remains more computationally expensive per-step than a simple gradient update. Additionally, the theoretical guarantees for non-smooth speedup rely on a "Restricted Strong Convexity" assumption, which may not hold for all complex deep learning landscapes.

Future work will likely focus on determining exactly which types of model updates yield the best improvements when parallelized, as well as exploring the efficacy of these methods in truly deep, non-convex neural networks.

Summary updated

BibTeX
@inproceedings{asi2020minibatch,
  author = {Hilal Asi and Karan Chadha and Gary Cheng and John C. Duchi},
  title = {{Minibatch Stochastic Approximate Proximal Point Methods}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=9df6KqnRpcf},
}
Figure