Asymptotic Analysis of the Ruppert – Polyak Averaging for Stochastic Order Oracle

Vladimir Smirnov, K. M. Kazistova, I. A. Sudakov, Valentin Leplat, Alexander Gasnikov, A. V. Lobanov

Abstract

Black-box optimization, a rapidly growing field, faces challenges due to limited knowledge of the objective function’s internal mechanisms. One promising approach to addressing this is the Stochastic Order Oracle Concept. This concept, similar to other Order Oracle Concepts, relies solely on relative comparisons of function values without requiring access to the exact values. This paper presents a novel, improved estimation of the covariance matrix for the asymptotic convergence of the Stochastic Order Oracle Concept. Our work surpasses existing research in this domain by offering a more accurate estimation of asymptotic convergence rate. Finally, numerical experiments validate our theoretical findings, providing strong empirical support for our proposed approach.

1. Introduction

In many modern machine learning applications, calculating exact gradients or even precise function values is often prohibitively expensive or impossible. A prominent example is Reinforcement Learning from Human Feedback (RLHF), used in training Large Language Models. In such scenarios, human evaluators may struggle to assign an exact numerical score to a model's output but can easily provide a relative comparison, stating that "Option A is better than Option B."

This scenario is formally modeled as an Order Oracle. When the feedback includes random noise or bias, it becomes a Stochastic Order Oracle. In this setup, the algorithm only queries the oracle to obtain the sign of the difference between two noisy function evaluations: $\text{sign}[f(x, \xi) - f(y, \xi)]$. While previous research established a baseline for asymptotic convergence in this domain, the estimation of the covariance matrix—which determines the precision of the final solution—remained suboptimal. This paper addresses this gap by refining the covariance estimation and improving the algorithm's precision.

2. Methodology: Ruppert-Polyak Averaging

The proposed approach builds upon a base algorithm similar to normalized stochastic gradient descent. At each iteration, the algorithm selects a random direction on a unit sphere and queries the Stochastic Order Oracle to determine if movement in that direction improves the objective function.

To enhance stability and accuracy, we introduce Ruppert-Polyak averaging. Rather than relying solely on the final iterate $x_k$, the algorithm maintains a running average of all previous iterations:

$$\overline{x}_k = \frac{1}{k} \sum_{i=0}^{k-1} x_i$$

Using advanced probability theory, we demonstrate that the scaled error of this averaged sequence, $\sqrt{k}(\overline{x}_k - x^*)$, converges to a normal distribution $\mathcal{N}(0, V)$. We rigorously derive a new covariance matrix $V$ and prove that it is strictly smaller (in a positive semi-definite sense) than the covariance matrices derived in prior literature. Furthermore, we provide an exact formula for the optimal initial step size ($\eta_0$) to minimize error dispersion in the base algorithm.

3. Numerical Results and Validation

To validate our theoretical findings, we conducted 10,000 simulations using a standard 2D quadratic optimization problem. We compared the distribution of final points across three distinct settings to visualize the impact of step-size optimization and averaging.

Comparison of error distributions across three experimental settings: arbitrary step size (Fig 1), optimal step size (Fig 2), and Ruppert-Polyak averaging (Fig 3).

As illustrated in the figure above:

  • Setting 1 (Arbitrary step size $\eta=5$): The error distribution forms a wide, diffuse cloud, indicating high variance and lower precision.
  • Setting 2 (Optimal step size $\eta_0$): Utilizing the theoretically derived optimal step size significantly tightens the distribution around the true minimum.
  • Setting 3 (Ruppert-Polyak averaging): This setting yields the most concentrated distribution, empirically confirming that averaging minimizes asymptotic covariance and provides the highest degree of accuracy.

4. Key Insights

Our analysis reveals that averaging fundamentally alters the error geometry. By shifting the dependence of the covariance matrix on the Hessian of the objective function from the $-1$st degree to the $-2$nd degree, the distribution of error around the true minimum is mathematically forced to narrow. Additionally, our new formula eliminates dependence on unknown constants (such as those related to the expected sign of the directional derivative), making the theoretical bounds more practical for real-world implementation.

5. Conclusion and Future Work

This work provides a tighter asymptotic bound for optimization via Stochastic Order Oracles through the application of Ruppert-Polyak averaging. While these results are robust in an asymptotic context, future research will focus on deriving non-asymptotic convergence rates to determine the specific number of steps required for given error tolerances. Furthermore, we intend to expand our empirical testing to higher-dimensional spaces and a broader range of strongly convex functions to ensure the scalability of these improvements.

Summary updated

BibTeX
@inproceedings{smirnov2024asymptotic,
  author = {Vladimir Smirnov and K. M. Kazistova and I. A. Sudakov and Valentin Leplat and Alexander Gasnikov and A. V. Lobanov},
  title = {{Asymptotic Analysis of the Ruppert – Polyak Averaging for Stochastic Order Oracle}},
  booktitle = {Nelineinaya},
  year = {2024},
  doi = {10.20537/nd241219},
}
Figure