Non-asymptotic Analysis of Biased Adaptive Stochastic Approximation

Sobihan Surendran, Adeline Fermanian, Antoine Godichon-Baggioni, Sylvain Le Corff

Abstract Stochastic Gradient Descent (SGD) with adaptive steps is the workhorse of modern deep learning. However, standard optimization theory typically assumes that gradient estimators are unbiased—an assumption frequently violated in contemporary applications like Reinforcement Learning (RL) and generative modeling. This paper provides a comprehensive non-asymptotic analysis of adaptive SGD with biased gradients for non-convex smooth functions. By establishing convergence rates for algorithms like Adagrad, RMSProp, and AMSGRAD under time-dependent bias, the authors demonstrate that adaptive methods can match the efficiency of unbiased settings when bias is properly controlled.

The Challenge of Biased Gradients

In standard supervised learning, mini-batch sampling provides an unbiased estimate of the true gradient. However, many advanced machine learning frameworks rely on Monte Carlo methods or Markov Chains to estimate gradients, introducing systematic error or bias.

Prominent examples include:

  • Reinforcement Learning: Temporal difference learning utilizes state-dependent transitions that inherently bias the gradient.
  • Generative Modeling: Architectures like Importance Weighted Autoencoders (IWAE) rely on biased importance sampling.
  • Bilevel Optimization: Nested optimization problems, such as hyperparameter tuning or meta-learning, involve biased gradient estimates of the outer objective.

While existing literature covers adaptive steps with unbiased gradients and non-adaptive steps with biased gradients, a rigorous finite-time (non-asymptotic) analysis for the combination most used in practice—adaptive algorithms facing biased noise—has been notably absent.

Theoretical Framework

The authors analyze a general Adaptive Stochastic Approximation framework defined by the update rule: $$ \theta_{n+1} = \theta_n - \gamma_{n+1} A_n H_{\theta_n}(X_{n+1}) $$ Here, $A_n$ represents the adaptive preconditioning matrix (the core mechanism of optimizers like Adagrad or Adam), and $H$ is the biased gradient estimator.

Key Technical Contributions: * Non-convex Analysis: The study establishes convergence rates for smooth, non-convex functions, accurately reflecting the optimization landscape of deep neural networks. * Algorithm Coverage: Rigorous proofs are provided for Adagrad, RMSProp, and AMSGRAD (an exponential moving average variant of Adam that ensures convergence via a maximum second-moment memory). * The PL Condition: For functions satisfying the Polyak-Łojasiewicz (PL) condition—where non-convex functions exhibit convex-like behavior around minima—the authors demonstrate an improved linear convergence rate.

Key Insights and Convergence Rates

The central theoretical result is the formalization of the Bias-Adaptivity Tradeoff. For smooth non-convex functions, the squared gradient norm $\mathbb{E}[\|\nabla V(\theta_R)\|^2]$ converges at a rate of: $$ O\left(\frac{\log n}{\sqrt{n}} + b_n\right) $$ where $b_n$ represents the time-dependent bias.

This yields several critical insights:

  1. Matching Unbiased Efficiency: If the bias decays such that it remains smaller than $O(n^{-1/4})$, the optimizer performs just as efficiently as it would in a strictly unbiased scenario.
  2. Stability of Adaptivity: A common concern is that adaptive steps, which scale inversely with squared gradients, might amplify bias. The paper proves that as long as the adaptive matrix $A_n$ is bounded, the algorithm remains stable.
  3. Robustness of AMSGRAD: The analysis confirms that AMSGRAD’s specific handling of the second-moment estimate is crucial for guaranteeing convergence in the presence of biased, non-convex noise.

Empirical Validation

To validate their theoretical bounds, the authors conducted experiments across synthetic and real-world datasets, including Synthetic Least Squares, FashionMNIST, and CIFAR-10.

In generative modeling experiments using CIFAR-10, the authors compared standard VAEs, IWAEs, and Bias-Reduced IWAEs (BR-IWAE). Because BR-IWAE explicitly lowers gradient bias, it consistently outperformed standard IWAE and VAE across all tested adaptive optimizers (Adagrad, RMSProp, and Adam). This empirical superiority directly reflects the theoretical "bias term" ($b_n$) in their convergence bound: controlling the bias wins the game.

Additionally, the paper highlights an important practical takeaway regarding hyperparameter sensitivity. The regularization parameter $\delta$ (often set to $10^{-8}$ by default in Adam/AMSGRAD to prevent division by zero) significantly impacts the convergence rate in biased settings. This suggests that tuning $\delta$ is far more critical for biased problems than previously recognized.

Limitations and Future Directions

While this work bridges a major theoretical gap, the authors note a few limitations:

  • Computational Cost: Reducing bias often requires more samples (e.g., increasing the number of samples $k$ in IWAE), which increases the computational effort per iteration. A future "cost-aware" analysis would help balance statistical efficiency with computational overhead.
  • Architecture-Specific Bounds: The constants in the theoretical bounds depend on the specific Lipschitz properties of the network. Future research could refine these bounds for modern architectures like Transformers or ResNets.
  • Vanilla Adam: The current theory focuses on AMSGRAD for its technical stability. Extending this rigorous analysis to standard Adam remains a challenging open problem due to its known potential for non-convergence in specific edge cases.

Summary updated

BibTeX
@inproceedings{surendran2024non,
  author = {Sobihan Surendran and Adeline Fermanian and Antoine Godichon-Baggioni and Sylvain Le Corff},
  title = {{Non-asymptotic Analysis of Biased Adaptive Stochastic Approximation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=TzxSrNJE0T},
}
Figure