The importance of better models in stochastic optimization

Hilal Asi, John C. DuchiProceedings of the National Academy of Sciences 2019

TL;DR

This paper argues that the brittleness of standard stochastic optimization methods stems from overly simplistic models of the objective function. By introducing more sophisticated "APROX" models, the authors demonstrate provably more robust and stable optimization algorithms that converge for a wider range of parameters and problem types, including non-convex settings.

What Problem Does This Paper Address?

Modern machine learning relies heavily on stochastic optimization to train complex models. However, these optimization algorithms are notoriously sensitive to hyperparameter choices (like stepsize), leading to wasted computational resources and making it difficult to compare different methods fairly. This sensitivity often arises because standard methods use very basic "linear" models of the objective function, which can be inaccurate and lead to unstable behavior, especially for non-convex problems. The authors aim to develop optimization methods that are less sensitive to parameter choices and more robust across a broader class of problems.

Methods

The core idea is to replace the simple linear approximation used in standard stochastic gradient descent (SGD) with more expressive "APROX" models. These models, while still approximations, capture more of the objective function's structure. The paper defines three key conditions for these models:

  • Model Convexity: The model itself must be convex.
  • Weak Lower Bound: The model should not underestimate the true objective by too much.
  • Local Accuracy: The model should accurately reflect the true objective at the current point.

The paper introduces several specific APROX models:

  • Proximal Point Methods: These use a quadratic regularization term to encourage progress.
  • Prox-Linear Models: These leverage the composite structure of objective functions (e.g., $f(x) = h(c(x))$) by approximating the inner function $c(x)$ linearly.
  • Truncated Models: These incorporate a known lower bound of the objective function, effectively clipping the model at that bound.

The authors then develop algorithms based on these models and provide theoretical guarantees for their stability and convergence, extending previous results to weakly convex objectives.

Datasets

The paper uses standard benchmark problems for evaluation:

  • Phase Retrieval: A problem involving recovering a signal from its magnitude.
  • Matrix Completion: A task related to reconstructing a matrix from incomplete observations.
  • Deep Learning Classification: Specifically, the CIFAR10 dataset and the Stanford dogs dataset are used to train neural networks.

Key Insights and Ideas

  • Model Complexity is Key to Robustness: The brittleness of standard optimizers isn't inherent to stochastic optimization itself, but rather a consequence of using overly simplistic models of the objective function.
  • Beyond Linear Models: Moving beyond linear approximations, even with slightly more complex models, can unlock significant improvements in robustness and stability.
  • Weak Convexity is Tractable: The theoretical framework is extended to weakly convex functions, which are common in modern ML (e.g., compositions of convex losses with smooth functions), broadening the applicability of the proposed methods.
  • Stability Implies Optimality: The paper demonstrates that stable optimization procedures, achieved through better models, lead to provably better convergence rates, including asymptotic optimality in the convex case.
  • Experimental Validation of Theory: The experimental results strongly support the theoretical findings, showing that APROX methods are significantly more robust to stepsize choices than standard SGD.

Key Results

  • Theoretical Guarantees: The paper provides theoretical guarantees for the stability and convergence of APROX methods for both convex and weakly convex objectives.
  • Robustness to Stepsize: Experiments show that APROX methods (especially prox-linear and truncated models) converge over a much wider range of initial stepsizes compared to standard SGD, which is highly sensitive.
  • Competitive Convergence Speed: While robustness is a primary focus, the APROX methods achieve competitive convergence times, often matching or exceeding SGD when SGD is well-tuned.
  • Deep Learning Performance: In deep learning experiments, APROX methods demonstrated better robustness to stepsize choices, leading to more reliable training.

Limitations and Future Work

  • Model Implementation Complexity: While the paper introduces several APROX models, some, like the prox-linear model, can be challenging to implement for complex compositions (e.g., deep neural networks).
  • Assumption on Lower Bounds: The truncated model relies on knowing a lower bound of the objective function, which is often zero but not always guaranteed.
  • Future Work: The authors suggest exploring further applications of these robust models and investigating their performance on even more complex and challenging optimization landscapes. The experimental section also hints at the development of specific truncated methods like TRUNCADAGRAD for deep learning.

Summary updated

Abstract

Standard stochastic optimization methods are brittle, sensitive to stepsize choice and other algorithmic parameters, and they exhibit instability outside of well-behaved families of objectives. To address these challenges, we investigate models for stochastic optimization and learning problems that exhibit better robustness to problem families and algorithmic parameters. With appropriately accurate models-which we call the aprox family-stochastic methods can be made stable, provably convergent, and asymptotically optimal; even modeling that the objective is nonnegative is sufficient for this stability. We extend these results beyond convexity to weakly convex objectives, which include compositions of convex losses with smooth functions common in modern machine learning. We highlight the importance of robustness and accurate modeling with experimental evaluation of convergence time and algorithm sensitivity.
BibTeX
@inproceedings{asi2019importance,
  author = {Hilal Asi and John C. Duchi},
  title = {{The importance of better models in stochastic optimization}},
  booktitle = {Proceedings of the National Academy of Sciences},
  year = {2019},
  doi = {10.1073/pnas.1908018116},
}
Figure