Sample complexity analysis for adaptive optimization algorithms with stochastic oracles

Billy Jin, Katya Scheinberg, Miaolan XieMath. Program 2023

TL;DR

This paper introduces a novel framework for analyzing the total oracle complexity of adaptive stochastic optimization algorithms. It provides a theoretical lower bound on the step size parameter, which is crucial for bounding the overall computational cost, and demonstrates its applicability by analyzing two prominent algorithms, STORM and SASS, showing they achieve near-optimal sample complexity for expected risk minimization.

What Problem Does This Paper Address?

Stochastic optimization algorithms are widely used in machine learning, but tuning their parameters, especially the step size, can be challenging. Adaptive optimization algorithms, inspired by deterministic methods, aim to automate this process by adjusting the step size based on the algorithm's progress. However, analyzing the total computational cost (oracle complexity) of these adaptive methods with stochastic oracles (where function/gradient estimates are noisy) is difficult. This is because the accuracy requirements of these oracles often increase as the step size decreases, potentially leading to arbitrarily high costs per iteration. Existing work has primarily focused on iteration complexity, leaving the total oracle complexity analysis incomplete. This paper addresses this gap by providing a rigorous framework to bound the total oracle complexity of a broad class of adaptive stochastic optimization algorithms.

Methods

The core of this paper lies in developing a theoretical framework to analyze adaptive stochastic optimization algorithms. The key methodological contributions are:

  • High-Probability Lower Bound on Step Size: The authors derive a lower bound on the step size parameter that holds with high probability. This is achieved by coupling the algorithm's step size sequence with a one-sided random walk and analyzing the maximum value of this random walk. This bound is crucial because it prevents the step size from becoming arbitrarily small, thereby controlling the oracle accuracy requirements.
  • General Framework for Oracle Complexity Analysis: Using the derived step size lower bound, the paper establishes a general framework for analyzing both the expected and high-probability total oracle complexity of adaptive algorithms. This framework allows for the analysis of any algorithm that fits their defined adaptive stochastic optimization framework.
  • Application to STORM and SASS: The authors apply their framework to two specific algorithms: STORM (Stochastic Trust-region Optimization with Random Models) and SASS (Stochastic Adaptive Step Search). This involves analyzing their specific oracle costs and using the derived theoretical bounds to obtain concrete total sample complexity results for expected risk minimization.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and general problem settings like expected risk minimization, rather than specific empirical datasets.

Key Insights and Ideas

  • The "Step Size Bottleneck": A critical insight is that the total oracle complexity is heavily influenced by the step size parameter. When the step size becomes very small, the stochastic oracles need to be highly accurate, leading to potentially high costs. The paper's main contribution is to show that for a broad class of adaptive algorithms, the step size is bounded away from zero with high probability, thus controlling this bottleneck.
  • Random Walk Coupling: The clever use of coupling the algorithm's step size dynamics with a one-sided random walk is a powerful technique. This allows them to leverage existing results on random walks to derive probabilistic bounds on the step size.
  • Bridging Theory and Practice: The paper provides a unified theoretical framework that can be applied to analyze various adaptive stochastic optimization algorithms. This is significant because it offers a systematic way to understand and compare their practical performance in terms of computational cost.
  • Near-Optimality for STORM and SASS: A key finding is that STORM and SASS, when analyzed through this framework, achieve total sample complexity bounds that are essentially optimal, matching known lower bounds for first-order methods in non-convex optimization. This validates the effectiveness of these adaptive algorithms and the analytical approach.

Key Results

  • High-Probability Step Size Lower Bound: The paper establishes a high-probability lower bound on the step size parameter for a general class of adaptive stochastic optimization algorithms. This bound depends on parameters like the probability of successful steps and the step size update factors.
  • Expected and High-Probability Oracle Complexity Bounds: A general framework is presented to derive bounds on the total oracle complexity (expected and high-probability) for algorithms within this class.
  • STORM and SASS Complexity: For the first-order STORM algorithm, the expected total sample complexity is shown to be $O(n \log n \cdot (\frac{\sigma_f^2}{\epsilon^4} + \frac{\sigma_g^2}{\epsilon^2}))$, and for the SASS algorithm, it's $O(n + \frac{M_c}{\epsilon^2} + M_v \log n)$ for the non-convex case and $O(n + \frac{M_c}{\epsilon^2} + M_v \log n)$ for the strongly convex case. These bounds are shown to be near-optimal, matching theoretical lower bounds for stochastic non-convex optimization.
  • High-Probability Bounds: High-probability bounds for STORM and SASS are also derived, showing improved complexity compared to expected bounds, often by a logarithmic factor.

Limitations and Future Work

  • Generalization of Step Size Dynamics: The paper's framework is based on a specific type of step size dynamics (related to random walks). The authors note that extending the analysis to algorithms with more general step size dynamics (e.g., different factors for increasing and decreasing step sizes) would be an interesting direction for future research.
  • Convex Case Analysis: While the framework is general, the paper focuses on non-convex and strongly convex settings for STORM and SASS. The authors mention that applying the framework to the convex case would require additional complications in presentation, suggesting it as a potential area for future work.
  • Oracle Cost Assumptions: The analysis relies on assumptions about oracle costs being non-increasing with the step size. While this is common, exploring scenarios with different cost structures could be a future direction.
  • Practical Implications of Constants: The theoretical bounds often involve various constants related to oracle probabilities and algorithmic parameters. Further work could focus on tighter analysis or empirical studies to understand the practical impact of these constants.

Summary updated

BibTeX
@article{jin2023sample,
  author = {Billy Jin and Katya Scheinberg and Miaolan Xie},
  title = {{Sample complexity analysis for adaptive optimization algorithms with stochastic oracles}},
  journal = {Math. Program.},
  year = {2023},
}
Figure