In machine learning, gradients are often taken for granted. However, many real-world scenarios—such as launching adversarial attacks on black-box neural networks, tuning hyperparameters, or training reinforcement learning agents in complex simulators—preclude the calculation of derivatives. In these settings, practitioners rely solely on function evaluations, entering the realm of derivative-free optimization (DFO).
A recent paper, "On the Almost Sure Convergence of the Stochastic Three Points Algorithm," provides the first rigorous "almost sure" convergence guarantees for one of the most promising DFO methods: the Stochastic Three Points (STP) algorithm.
TL;DR
This work establishes the first theoretical proof that the Stochastic Three Points (STP) algorithm converges "almost surely"—meaning nearly every individual run is guaranteed to succeed—across non-convex, convex, and strongly convex functions. The authors establish convergence rates that match state-of-the-art gradient-free methods, proving that this simple "pick the best of three" approach is both robust and efficient.
The Need for "Almost Sure" Guarantees
Most optimization theory focuses on convergence in expectation—the average behavior over many runs. However, as a practitioner, you rarely care about the theoretical average; you care about the specific run you are currently executing. Almost sure convergence is a much stronger guarantee, ensuring that the trajectory of a single run will actually reach the optimum with probability one.
The Stochastic Three Points (STP) algorithm is a "direct search" method. Unlike methods that try to estimate a gradient, STP simply looks in a random direction, checks a step forward and a step backward, and moves to whichever of the three points (current, forward, or backward) has the lowest function value. While STP is known for its simplicity and empirical success in reinforcement learning (like the MuJoCo suite), its "almost sure" theoretical properties remained a mystery until now.
Methods and Function Classes
The authors analyze the STP algorithm across three classes of smooth functions:
- Non-convex: Functions that might have many local valleys.
- Convex: Functions with a single global bowl shape.
- Strongly Convex: Functions with a very sharp, well-defined bowl.
The core of their approach involves carefully choosing the step size sequence ($\alpha_t$). For non-convex and convex cases, they use a decaying step size (e.g., $\alpha_t \approx 1/t^{0.5+\epsilon}$). For the strongly convex case, they introduce a more sophisticated step size that approximates the directional derivative using the difference between the three points.
Key Insights
- Simplicity Matches Sophistication: One of the most striking findings is that STP—a simple comparison-based method—matches the theoretical complexity bounds of the Random Gradient-Free (RGF) algorithm, which uses more complex gradient estimation.
- Linear Scaling with Dimension: Deterministic direct search methods usually scale quadratically ($d^2$) with the number of dimensions. STP scales linearly ($d$), making it much more viable for high-dimensional problems like deep learning.
- The Power of Three: By evaluating just three points, the algorithm gains enough information to ensure descent in a random direction with a high enough probability to guarantee global convergence.
- Trajectory Guarantees: By proving almost sure convergence, the authors bridge the gap between theoretical average-case performance and practical reliability for specific engineering problems.
Key Results
The paper provides a comprehensive "menu" of convergence rates, proving that STP is highly competitive across different optimization landscapes.
- Non-convex: The best gradient iterate found during the run converges to zero at a rate of $o(1/T^{1/2-\epsilon})$. They also prove the final iterate's gradient converges to zero.
- Convex: The function value gap $f(\theta^T) - f(\theta^*)$ converges to zero almost surely at a rate of $o(1/T^{1-\epsilon})$. In expectation, the rate is $O(d/T)$.
- Strongly Convex: The algorithm achieves linear convergence (exponentially fast). In expectation, it hits a rate of $O((1 - \frac{\mu}{2\pi dL})^T)$.
- Empirical Performance: To validate the theory, the authors tested STP on Nesterov’s Lower Bound Function (a notoriously difficult quadratic objective) in $d=500$ dimensions. STP was slightly faster and more accurate than RGF and significantly outperformed Gradientless Descent (GLD) in both iteration count and wall-clock time.
Limitations and Future Work
While the theoretical results are comprehensive, there are a few areas for further exploration:
- Hyperparameter Sensitivity: The proofs for strongly convex functions rely on knowing (or approximating) the smoothness ($L$) and strong convexity ($\mu$) parameters to set the step size, which may not be known in real-world black-box scenarios.
- Stochastic Oracles: This paper assumes a "deterministic" oracle (you get the exact function value). In many RL settings, function evaluations are noisy. Extending these "almost sure" results to the noisy (stochastic) setting is a logical next step.
- Constrained Optimization: The current work focuses on unconstrained problems in $\mathbb{R}^d$. Real-world engineering often involves box constraints or manifold constraints, which require further theoretical adaptation.
Summary updated