High Probability Complexity Bounds for Line Search Based on Stochastic Oracles

Billy Jin, Katya Scheinberg, Miaolan XieNeurIPS 2021

Introduction

In classical optimization, "line search" is a foundational technique for determining the optimal step size during model training. The standard approach involves picking a direction and verifying if the function value drops sufficiently—a criterion known as the Armijo condition. If the drop is insufficient, the step size is shrunk, and the process repeats.

However, in modern machine learning applications like training deep neural networks, we rarely have access to the "true" function value or gradient. Instead, we rely on stochastic oracles—estimates derived from mini-batches of data. Standard line search methods often fail in this regime because noise in the estimates causes the Armijo condition to fluctuate unpredictably.

To address this, researchers have introduced ALOE (Adaptive Line-search with Oracle Estimations), a stochastic line-search algorithm designed to function reliably even when function values and gradients are noisy or biased. Crucially, while previous methods only guaranteed performance "on average," this paper establishes high-probability complexity bounds, proving that ALOE is statistically guaranteed to succeed within a specific number of iterations.

The Challenge: From "Average" to "Reliable"

Prior research on stochastic optimization has largely provided "expected" complexity bounds, which estimate how many steps an algorithm takes on average. For practitioners, this is often insufficient; an expected bound does not indicate how frequently an algorithm might fail or experience severe delays.

This paper addresses the critical need for reliability by providing high-probability tail bounds. Using advanced probabilistic tools like Azuma-Hoeffding and Bernstein inequalities, the authors establish a "worst-case" guarantee that holds the vast majority of the time, ensuring the algorithm stays on track despite stochastic noise.

The ALOE Algorithm

ALOE modifies the standard Armijo-based line search with two critical adjustments to handle stochasticity:

  1. Relaxed Armijo Condition: The algorithm introduces a small tolerance constant ($2\epsilon_f$) to the descent requirement. This relaxation accounts for the inherent inexactness of function evaluations in a stochastic setting.
  2. Frequent Re-sampling: Unlike traditional methods that might reuse information, ALOE recomputes the gradient estimate in every single iteration—even if a proposed step is rejected. This prevents the algorithm from getting "stuck" evaluating a poor gradient estimate.

The theoretical foundation of ALOE relies on a robust definition of Probabilistic Oracles. The authors assume the zeroth-order (function value) error is "one-sided sub-exponential," meaning it is highly unlikely to be massively overestimated. Meanwhile, the first-order (gradient) oracle only needs to be "sufficiently accurate" with a certain probability.

Key Theoretical Insights

  • Robustness to Bias: Many optimization proofs break down if the gradient estimate is biased. ALOE's framework is remarkably flexible, allowing for biased oracles. This is a significant advantage for real-world applications where data sampling techniques or hardware precision limits introduce systematic errors.
  • No Lipschitz Knowledge Required: ALOE is a truly adaptive algorithm. It does not require the user to know or estimate the Lipschitz constant ($L$) of the gradient, a value that is notoriously difficult to calculate for complex models like deep neural networks.
  • The "Good" vs. "Bad" Iteration Framework: The theoretical proof categorizes iterations as either "true" (accurate oracles) or "false." The authors demonstrate that as long as the oracles are "good" more than half the time, the progress made during these accurate steps will eventually outweigh any "damage" caused by noisy, false steps.

Empirical Results

The authors evaluated ALOE extensively using the Penn Machine Learning Benchmarks (PMLB), a collection of 64 distinct binary classification datasets, focusing on Logistic Regression with RBF Kernels as the primary optimization task.

  • Superior Performance: In head-to-head comparisons, ALOE achieved a lower training loss than the popular Stochastic Line Search (SLS) algorithm in 62 out of 64 datasets.
  • Efficiency: ALOE consistently decreased training loss more rapidly than both SLS and standard full-gradient line search methods.
  • Practicality: The parameters required by ALOE (such as the tolerance $\epsilon_f$) are not purely theoretical; the authors demonstrated they can be easily and effectively estimated in practice using the empirical standard deviations of mini-batches.

Limitations and Future Work

While ALOE represents a significant step forward for stochastic line search, it does have limitations. Because the oracles are inexact, the algorithm does not converge to a perfect stationary point. Instead, it converges to a "neighborhood" of the solution, the size of which is defined by the noise levels ($\epsilon_f$ and $\epsilon_g$).

Additionally, while the algorithm is robust to bias and doesn't require Lipschitz knowledge, it still requires the tuning of several hyperparameters ($\theta, \gamma, \alpha_{max}$). Finally, the current paper focuses exclusively on non-convex smooth functions. Extending these high-probability bounds to strongly convex cases remains a promising direction for future research.

Summary updated

BibTeX
@inproceedings{jin2021high,
  author = {Billy Jin and Katya Scheinberg and Miaolan Xie},
  title = {{High Probability Complexity Bounds for Line Search Based on Stochastic Oracles}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=M26lXI0TGt},
}
Figure