Abstract
Statistical machine learning models trained with stochastic gradient algorithms are increasingly being deployed in critical scientific applications. However, computing the stochastic gradient in several such applications is highly expensive or even impossible at times. In such cases, derivative-free or zeroth-order algorithms are used. An important question which has thus far not been addressed sufficiently in the statistical machine learning literature is that of equipping stochastic zeroth-order algorithms with practical yet rigorous inferential capabilities so that we not only have point estimates or predictions but also quantify the associated uncertainty via confidence intervals or sets. Towards this, in this work, we first establish a central limit theorem for Polyak-Ruppert averaged stochastic zeroth-order gradient algorithm. We then provide online estimators of the asymptotic covariance matrix appearing in the central limit theorem, thereby providing a practical procedure for constructing asymptotically valid confidence sets (or intervals) for parameter estimation (or prediction) in the zeroth-order setting.
Introduction
In modern scientific computing and machine learning, we often encounter optimization problems where the objective function $f(x)$ is a "black box." This occurs when the function is the output of a complex simulation, a proprietary API, or when the analytical gradient $\nabla f(x)$ is simply too computationally expensive to derive. While zeroth-order (derivative-free) optimization algorithms have been developed to find minima in these scenarios, they have historically lacked the rigorous statistical frameworks necessary for uncertainty quantification.
In high-stakes fields such as medicine, security, or policy-making, a point estimate is rarely sufficient. Practitioners require confidence intervals to understand the reliability of a model's predictions. This paper bridges this gap by establishing the first Central Limit Theorem (CLT) for a Polyak-Ruppert averaged zeroth-order stochastic gradient algorithm and providing an online method for covariance estimation.
The Zeroth-Order Framework
Gaussian Smoothing and Gradient Estimation
To optimize without derivatives, the algorithm employs a Gaussian smoothing technique. It estimates the gradient by querying the function at two nearby points: the current iterate $x$ and a perturbed point $x + \nu u$, where $u$ is a random direction and $\nu$ is a small smoothing parameter. The difference between these function evaluations provides a stochastic approximation of the gradient.
Polyak-Ruppert Averaging
Rather than relying solely on the final iterate of the optimization process, the authors utilize Polyak-Ruppert averaging. This technique involves taking the average of all previous iterates generated by the algorithm. In first-order optimization, this is known to improve robustness and achieve optimal statistical efficiency; this work demonstrates that these benefits extend to the zeroth-order setting as well.
Theoretical Contributions: The Central Limit Theorem
The primary challenge in zeroth-order inference is the inherent bias introduced by the smoothing parameter $\nu$. Unlike standard stochastic gradient descent (SGD), where the gradient estimates are unbiased, zeroth-order estimates are approximations of a smoothed version of the function.
The authors address this using a "surrogate problem" framework. They prove that as the number of iterations $n$ increases and the smoothing parameter $\nu$ is appropriately scaled, the averaged iterates converge to a normal distribution centered near the true minimum. Specifically, they quantify the bias-variance tradeoff, showing that the bias introduced by smoothing is $O(\nu)$. By establishing this CLT, the authors provide the mathematical foundation required to construct asymptotically valid confidence sets.
Online Covariance Estimation
To make the CLT practically useful, one must estimate the asymptotic covariance matrix $\Sigma$. Storing the entire history of iterations to compute this matrix is memory-prohibitive for large-scale problems. The authors extend a recursive "batching" technique to the zeroth-order setting, allowing for the online estimation of $\Sigma$. This recursive estimator, $\hat{\Sigma}_n$, is shown to be consistent, meaning it converges to the true variance as more data is processed, enabling the construction of real-time confidence intervals.
Empirical Validation
The proposed method was evaluated through several experiments:
- Synthetic Regression: Using online linear and logistic regression, the authors verified that the constructed 95% confidence intervals reached the nominal 0.95 coverage rate as iterations increased. This confirms that the theoretical CLT translates accurately to practical settings.
- Performance Comparison: Interestingly, the zeroth-order method's performance was found to be comparable to first-order SGD. In some logistic regression cases, the zeroth-order method even outperformed its first-order counterpart, suggesting that Gaussian smoothing may provide an implicit regularization effect that helps navigate complex loss landscapes.
- Real-World Context: The work is motivated by applications such as the Yahoo! Music Dataset (KDD-cup 2011), where ensemble learning often requires zeroth-order approaches because true labels or internal model gradients are inaccessible to participants.
Conclusion and Future Directions
This research provides a critical tool for the deployment of zeroth-order algorithms in applications requiring high reliability. By enabling the construction of rigorous confidence intervals, it moves derivative-free optimization from a heuristic tool to a statistically sound framework.
Future work remains in several areas. The current "two-point" estimator requires two function queries per step, which may not be possible in all "bandit" settings; extending this to "one-point" estimators is a logical next step. Additionally, while the current theory assumes strong convexity, exploring non-convex landscapes and high-dimensional scaling (where the dimension $d$ grows with $n$) will be essential for applying these techniques to modern deep learning architectures.
Summary updated