Introduction
Zeroth-order (ZO) optimization is a critical tool for "black-box" scenarios where explicit gradient information is unavailable. This is common in fields such as reinforcement learning, hyperparameter tuning, and adversarial attacks on machine learning models. Traditional ZO methods typically rely on Random Gradient-Free (RGF) estimation, which involves sampling random directions to approximate the gradient. However, this "random poking" is notoriously slow, particularly in high-dimensional spaces.
While researchers have empirically observed that incorporating "priors"—such as gradient information from previous steps or similar models—can speed up optimization, the theoretical foundations for these techniques remained underdeveloped. This paper addresses this gap by providing the first formal convergence analysis for ZO algorithms that utilize prior information and introducing a new, faster algorithm called Prior-Guided Accelerated Random Search (PARS).
The Greedy Descent Framework
The authors establish a unified "Greedy Descent Framework" to analyze various ZO estimators. A key theoretical contribution is the discovery of the Cosine Connection: the convergence rate of a ZO algorithm is positively related to the squared cosine similarity between the gradient estimate and the true gradient. This mathematical link provides a clear objective for designing better estimators: the goal is to maximize the alignment between the estimated and true gradient directions.
Proposed Algorithms
The paper introduces three primary methodological advancements:
- PRGF (Prior-guided Random Gradient-Free): This estimator projects the true gradient onto a subspace spanned by prior information and several random directions. The authors prove that this method is at least as fast as standard random search and significantly faster when the prior is accurate.
- History-PRGF: A specific implementation where the "prior" is simply the gradient estimate from the previous iteration. This leverages the temporal correlation of gradients in smooth landscapes.
- PARS (Prior-Guided Accelerated Random Search): This is the paper’s flagship algorithm. It extends Nesterov-style acceleration to the ZO setting. Unlike previous attempts at ZO acceleration, PARS employs a dynamic weighting parameter ($\theta_t$) to balance the prior and random samples, ensuring the algorithm remains theoretically sound while gaining significant speed.
Experimental Evaluation
The authors evaluated their algorithms using both synthetic benchmarks and real-world adversarial tasks:
Numerical Benchmarks
Testing on four synthetic functions ($f_1$ to $f_4$)—including ill-conditioned landscapes and the non-convex Rosenbrock function—showed that PARS consistently converged faster than both standard RGF and non-accelerated PRGF. The acceleration was most pronounced on difficult, ill-conditioned functions where standard methods struggle.
Adversarial Attacks
The algorithms were applied to score-based black-box targeted adversarial attacks on 500 images from the MNIST dataset using the C&W loss function. The results demonstrated a significant increase in query efficiency:
- Query Reduction: At a learning rate of 0.2, History-PARS and History-PRGF required only 484 queries, compared to 777 for the standard RGF baseline—a nearly 40% improvement.
- Learning Rate Robustness: Standard RGF performance dropped significantly when the learning rate was suboptimal (e.g., 0.02). In contrast, the history-guided versions maintained high efficiency.
Key Insights and Robustness
One of the most significant findings is the self-correcting robustness of History-PRGF. If a learning rate is set too low, the gradient does not change much between steps. This makes the "historical prior" extremely accurate, which naturally boosts the quality of the gradient estimate and compensates for the small step size. Additionally, the authors prove that the optimal way to use a set of query directions is to project the true gradient onto the subspace they span, justifying the "subspace estimator" approach used in recent literature.
Limitations and Future Work
Despite the theoretical breakthroughs, the authors note several areas for future exploration:
- Oracle Assumptions: The analysis assumes a "directional derivative oracle," whereas real-world applications use finite differences, which introduce approximation errors.
- Parameter Estimation: Implementing PARS requires estimating the weighting parameter ($\theta_t$). While the authors provide a heuristic (PARS-Impl), the influence of this approximation requires further study.
- Non-Convexity: While the algorithms perform well on non-convex functions like the Rosenbrock, the current formal proofs focus on convex functions. Extending this rigorous analysis to the complex landscapes of deep neural networks remains an open challenge.
Summary updated