A General-Purpose Theorem for High-Probability Bounds of Stochastic Approximation with Polyak Averaging

Sajad Khodadadian, Martin Zubeldia · DOI

Introduction

Stochastic Approximation (SA) serves as the foundational framework for modern optimization and machine learning, underpinning algorithms ranging from Stochastic Gradient Descent (SGD) to Reinforcement Learning (RL) methods like Q-learning. A well-established technique to enhance the performance of these algorithms is Polyak-Ruppert averaging, where the iterate used for inference or subsequent steps is the running average of all previous iterates ($y_k = \frac{1}{k} \sum_{i=1}^k x_i$) rather than the most recent estimate ($x_k$).

While the asymptotic optimality of Polyak-Ruppert averaging has been understood for decades, providing rigorous finite-time guarantees—specifically high-probability bounds—has remained a significant challenge. Existing literature often focuses on Mean-Square Error (MSE), which describes average performance but fails to account for the tail behavior of the error distribution. Furthermore, many existing high-probability bounds require the algorithm's step size to be tuned based on the desired confidence level ($\delta$), a practice that does not align with how these algorithms are deployed in real-world scenarios. This paper introduces a general-purpose framework to derive finite-time, high-probability error bounds for averaged SA iterates that are both sharp and independent of the confidence parameter in their step-size schedules.

Methodology: A Meta-Theorem Approach

The core contribution of this work is a "meta-theorem" that transforms existing high-probability bounds for raw iterates into sharp bounds for averaged iterates. This modular approach allows researchers to plug in known results for specific algorithms and receive a corresponding bound for the averaged version.

The Transformation Framework

The framework utilizes several advanced mathematical tools to bridge the gap between raw and averaged iterates:

  1. Taylor Expansions and Martingale Concentration: These are used to decompose the error and bound the noise components.
  2. Moreau Envelopes: To handle non-smooth functions often encountered in RL, the authors employ Moreau envelopes to smooth out operators, allowing for more stable analysis.
  3. Pseudo-smoothness: The authors introduce a "pseudo-smoothness" assumption. This requires the underlying operator to behave linearly or smoothly only in the vicinity of the solution ($x^*$), rather than globally, significantly broadening the theorem's applicability to non-linear problems.

Crucially, the derived step-size schedules do not depend on $\delta$. This ensures that the algorithm's execution remains consistent regardless of the required theoretical confidence level, matching practical implementation standards.

Key Insights and Noise Regimes

The research identifies a fundamental distinction in how noise affects the convergence of averaged iterates, leading to a "phase transition" in the error distribution tails.

Additive vs. Multiplicative Noise

  • Additive Noise: In settings where noise is independent of the current state (e.g., constant-variance measurement error), the framework yields sub-Gaussian tails. This implies that the error decays rapidly, and the probability of large deviations is extremely low, scaling with $O(\frac{\log(1/\delta) + d}{k})$.
  • Multiplicative Noise: In many RL contexts, such as off-policy TD-learning, the noise scales with the current iterate. The authors prove an "impossibility result" here: under multiplicative noise, achieving sub-Gaussian tails is mathematically impossible. Instead, the distribution becomes heavy-tailed, with error bounds scaling polynomially with $1/\delta$ (e.g., $1/\sqrt{\delta}$) rather than logarithmically.

Rate Boosting

For certain non-linear problems where raw iterates might converge at a sub-optimal rate (such as $O(k^{-2/3})$), the authors demonstrate that Polyak-Ruppert averaging can "boost" the convergence rate to the optimal $O(1/k)$ while maintaining high-confidence guarantees. This confirms that averaging is not just a variance-reduction tool but a fundamental rate-enhancement mechanism.

Applications to Reinforcement Learning

The framework provides the first-of-their-kind high-probability bounds for the entire error distribution of several popular RL algorithms:

  • Averaged Q-learning: Establishing finite-time confidence intervals for one of the most widely used RL methods.
  • Off-policy TD-learning: Providing a rigorous characterization of the error distribution in the challenging off-policy setting.

For contractive SA problems, the results show that averaging improves the constant factors in the error bounds, leading to higher precision in fewer iterations compared to standard, unaveraged SA.

Conclusion and Future Work

This work provides a unified theoretical bridge between the asymptotic efficiency of Polyak-Ruppert averaging and the practical need for finite-time, high-confidence guarantees. By establishing that the leading term of their bound is tight, the authors set a new benchmark for what is achievable in stochastic optimization.

Future research directions include refining the polynomial dependence on $\delta$ in the multiplicative noise regime and extending the framework to handle more complex, time-correlated (Markovian) noise structures common in real-world robotics and control systems.

Summary updated

BibTeX
@inproceedings{khodadadian2025general,
  author = {Sajad Khodadadian and Martin Zubeldia},
  title = {{A General-Purpose Theorem for High-Probability Bounds of Stochastic Approximation with Polyak Averaging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Ag2vRsIIQ7},
}
Figure