Adaptively Incorporating Directional Hints into Zeroth-Order Optimization

Alexander Ryabchenko, Jian Qian, Wenlong MouNeurIPS 2026

TL;DR

When optimizing a complex black-box system without access to gradients, we often have a cheap "surrogate" model that offers hints about which way to go—until those hints turn out to be wrong and derail the search. This paper introduces Control-Variate Zeroth-Order Descent (CV-ZOD), an algorithm that uses directional hints to speed up optimization when they are accurate, while seamlessly falling back to standard black-box search when they fail. It achieves this without ever distorting the underlying optimization landscape or needing to know how trustworthy the hints are in advance.

What Problem Does This Paper Address?

Imagine trying to find the lowest point in a dark, 8,000-dimensional valley when all you have is an altimeter. This is zeroth-order optimization: optimizing a function using only scalar evaluations because true gradients are impossible or too expensive to compute (think physical simulators, quantum chemistry, or API-gated language models). Because you have to poke around blindly in every direction, convergence slows down linearly with the dimension $d$, scaling as $O(d/T)$ over $T$ steps—compared to the brisk $O(1/T)$ of standard first-order gradient descent.

Often, however, we aren't completely blind. We might have a cheap, differentiable proxy—like a coarse physics simulator or a smaller distilled neural network—that whispers "directional hints" about where the gradient points.

The catch? Existing guided methods incorporate these hints by warping the search distribution toward the suggested directions. This biases the gradient estimator: you stop optimizing your actual objective and start optimizing a distorted hybrid of your objective and the surrogate. If the surrogate becomes inaccurate halfway through, optimization stalls. Furthermore, prior theoretical guarantees for guided methods only held for nice, bowl-shaped convex functions. The authors ask: can we use hints in nonconvex landscapes adaptively, speeding up when hints are good and ignoring them when they aren't, without biasing our trajectory?

Methods

Instead of warping where the algorithm searches, CV-ZOD uses a classic statistical trick: control variates.

Standard zeroth-order methods estimate the gradient at point $x$ by evaluating the function along a random Gaussian direction $u$. CV-ZOD introduces a "reference vector" $m$ (built from the directional hint, which is provided as a $k$-dimensional linear subspace at each step) and applies the random zeroth-order probe only to the residual—the part of the function not explained by $m$—before adding $m$ back in.

Mathematically, the expected value of this estimator is identical to standard zeroth-order descent (an unbiased estimate of the smoothed gradient). However, its variance now scales with how far $m$ is from the true gradient, $\|m - \nabla f(x)\|^2$, rather than the size of the full gradient itself.

Because the true gradient isn't known, the practical, fully zeroth-order version of CV-ZOD uses a clever budget of extra function evaluations each step to figure out both the reference vector and how big a step to take:

  • In-subspace projection: It queries the function $k+1$ times along an orthonormal basis of the hint subspace to deterministically approximate the true gradient's projection onto that subspace, setting this as $m_t$.
  • Adaptive step-size estimation: Using $O(\log T)$ random queries (smoothed over time via exponential discounting in practice), it estimates the norm of the full gradient and the norm of the residual gradient orthogonal to the hint subspace. If the residual is tiny, the hint captured almost everything, so CV-ZOD takes a large, confident step; if the residual is large, it shrinks the step size back toward conservative zeroth-order levels.

Datasets

The authors evaluate CV-ZOD on two simulation-based scientific optimization tasks (no new datasets were introduced):

  • 2D Fluid Inverse Problem: Built using the differentiable fluid solver in NVIDIA Warp. The goal is to recover an initial $64 \times 64$ velocity field ($d = 8,192$) so a passive dye evolves into a target shape over 64 steps, using a short 16-step rollout as the cheap surrogate.
  • Wiggle150 Benchmark (Molecular Geometry Optimization): Highly strained 3D conformations of three molecules—efavirenz ($d=90$), adenosine ($d=96$), and benzylpenicillin ($d=123$). The "true" black-box energy is evaluated via the MACE-OFF23 machine-learned interatomic potential, while a classical analytical force field (MMFF94) supplies cheap surrogate gradients.

Key Insights and Ideas

  • Hints should reduce variance, not introduce bias: By putting the hint inside a zero-mean control variate $(I_d - uu^\top)m$, hints never pull the optimizer toward the wrong minimum. Even terrible hints only affect variance, which the step size can tame.
  • Automatic rate interpolation: Without knowing hint quality beforehand, CV-ZOD matches an "oracle" convergence rate up to logarithmic factors—smoothly interpolating between first-order $O(1/T)$ when hints align perfectly with the gradient and zeroth-order $O(d/T)$ when hints are orthogonal and useless, at a modest overhead of $O(k + \log T)$ queries per step.
  • The "variance-descent balance": Step sizes and hint accuracy are tightly coupled. Taking a large step only pays off if the hint substantially lowers estimator variance; otherwise, amplified noise wipes out optimization progress.

Key Results

Across all experiments, zeroth-order methods were given an identical budget of 16 function evaluations per step over 100 iterations.

  • Fluid Inverse Problem: Early on, surrogate hints aligned well with the true gradient, and CV-ZOD matched the rapid descent of Guided Evolutionary Strategies (GES) and pure surrogate gradient descent (SurGD). As alignment degraded near the solution, SurGD diverged (final loss 0.0947) and GES plateaued (0.0441). CV-ZOD transitioned smoothly to zeroth-order exploration, beating unguided ZOD (0.0335) by reaching a final objective of 0.0111.
  • Molecular Geometry: Here, the classical force field remained well-aligned with the quantum-proxy potential throughout. Both guided methods beat unguided ZOD, with CV-ZOD consistently achieving greater energy reductions (roughly 2.5 to 3+ eV drops) than GES across all three molecules.

Limitations and Future Work

  • Growing hint subspaces: CV-ZOD assumes a low-dimensional hint subspace $k \ll d$. If a user has many surrogates or accumulates past surrogate gradients over time, $k$ grows, eating into the query budget (in an ablation, adding past gradients under a fixed query budget actually hurt performance). Developing online learning schemes to weight and combine multiple surrogates without inflating $k$ is an open problem.
  • Scaling to Foundation Models: While tested up to $d=8,192$ in physics simulations, the authors note that the ultimate scalability test lies in ultra-high-dimensional LLM tasks—such as memory-efficient forward-pass fine-tuning or prompt optimization guided by smaller distilled models.

Summary updated

Abstract

We study zeroth-order optimization of nonconvex functions with the aid of directional hints, which are cheap but potentially inaccurate approximations of the true gradient direction, given by linear subspaces at each iteration. To leverage these hints adaptively while maintaining robustness to their quality, we introduce Control-Variate Zeroth-Order Descent (CV-ZOD), a new framework that refines the classical zeroth-order gradient estimator with a control variate that can be set based on the directional hints. We first show that the oracle algorithm that optimally sets the reference vector and step size at each iteration achieves a convergence rate that interpolates between the first-order $O(1/T)$ rate and the zeroth-order $O(d/T)$ rate, depending on the quality of the hints along the trajectory. We then develop a practical variant of CV-ZOD that achieves the same oracle guarantee up to logarithmic factors, without any prior knowledge of the hint quality. We validate the method empirically on simulation-based scientific optimization tasks, demonstrating sustained progress on nonconvex landscapes where zeroth-order descent is slower and existing guided methods stall as guidance deteriorates.
BibTeX
@inproceedings{ryabchenko2026adaptively,
  author = {Alexander Ryabchenko and Jian Qian and Wenlong Mou},
  title = {{Adaptively Incorporating Directional Hints into Zeroth-Order Optimization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ofyCInS0Mr},
}
Figure