arXiv:2609.08277cs.LGSep 2026

Manuscript Offprint

arXiv:2609.08277

Adaptively Incorporating Directional Hints into Zeroth-Order Optimization

Alexander Ryabchenko, Jian Qian, Wenlong Mou

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

We study zeroth-order optimization of non-convex 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)O(1/T) rate and the zeroth-order O(d/T)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.

1 Introduction

Many real-world optimization problems involve non-convex objectives whose gradients are unavailable or prohibitively expensive to compute. In scientific applications, the objective may be defined by a simulator or experimental pipeline that cannot be differentiated end-to-end [LMW19]. In machine learning, the model itself may be accessible only through an API, as in black-box adversarial attacks on deployed classifiers [CZS+17, IEAL18], prompt optimization for API-gated language models [ZCD+24], or memory-efficient fine-tuning of large models, where backpropagation is replaced by forward-pass-only updates [MGN+23]. Zeroth-order methods, which rely only on function evaluations, are a natural tool in these settings. However, their convergence rates typically scale with the dimension dd, making them impractical in high-dimensional problems.

At the same time, auxiliary information about the objective is often available. A pretrained surrogate, a smaller related model, or a low-rank approximation may suggest promising descent directions. For example, the gradient of a distilled model can provide a cheap proxy for the gradient of a large target model in prompt optimization, while a differentiable foundation model can guide black-box optimization in scientific experiments. Using such information effectively, however, is delicate. Blindly following the suggested directions can lead to rapid early progress when they are well aligned with the true gradient, but the resulting bias may ultimately limit convergence. Conversely, ignoring this information altogether reverts to the standard dimension-dependent cost of zeroth-order optimization. Ideally, we would like to use directional hints when they are informative and adaptively fall back to unbiased zeroth-order descent when they are not, without any prior knowledge of their quality along the trajectory.

The idea of incorporating prior directional information into zeroth-order optimization has been explored in several works [MMT+19, CWZ21]. These methods bias the search distribution toward the suggested directions, which can accelerate convergence when the guidance is well aligned with the true gradient. However, this modification also biases the resulting gradient estimators: they no longer target the gradient of the original objective, but rather a reweighted version of it. Consequently, the optimization dynamics are distorted by the guidance, which can limit progress. Moreover, existing convergence analyses for these approaches are restricted to convex objectives. This motivates the central question: Can we incorporate directional hints into non-convex zeroth-order optimization in a way that adapts to their quality along the trajectory without altering the underlying optimization dynamics?

In this paper, we answer this question affirmatively. We study a general interaction model in which the hints are revealed as low-dimensional linear subspaces at each iteration, allowing different sources of directional information to be treated within a common framework. Our contributions are as follows:

  1. Control-Variate Zeroth-Order Descent (CV-ZOD) framework (Section 3). We introduce a new zeroth-order descent scheme, CV-ZOD, built on a control-variate gradient estimator [AL24, Owe13, GBB04] that uses a reference vector to reduce variance while remaining unbiased for the smoothed gradient. The variance of the estimator is governed by the accuracy of the reference vector relative to the true gradient. By instantiating the reference vector through projection of the true gradient onto the hint subspace and choosing the optimal stepsize, the resulting oracle algorithm interpolates between the first-order O(1/T)O(1/T) rate when the hints are well-aligned and the zeroth-order O(d/T)O(d/T) rate when they are uninformative.

  2. A fully zeroth-order adaptive instantiation (Section 4). In practice, the oracle information of projected gradient and optimal stepsize is unavailable. We develop a practical variant of CV-ZOD that estimates these quantities using only function evaluations, and show that it achieves the same adaptive convergence guarantee, up to logarithmic factors, with O(k+log⁡T)O(k+\log T) queries per iteration. As a result, the adaptive version of CV-ZOD can achieve the interpolating convergence rates without any prior knowledge of the hint quality along the trajectory.

  3. Simulation-based scientific optimization tasks (Section 5). We validate the framework on scientific optimization tasks arising from fluid dynamics and computational chemistry, using cheap surrogate models to generate directional hints. We show that CV-ZOD achieves significant speedup over existing zeroth-order methods, and much lower final error than existing guided methods that rely on biased gradient estimation.

Related work. Prior theoretical work has explored incorporating surrogate gradient information into zeroth-order optimization, but the existing analyses have so far been limited to convex objectives and relied on biased gradient estimators that reshape the optimization dynamics around the surrogate; the resulting algorithms do not follow the gradient flow of ff, but one shaped by the surrogate. Specifically, [MMT+19] introduce Guided Evolutionary Strategies (GES), which bias the search distribution along the guiding subspace and analyze the bias-variance tradeoff of the resulting estimator, but provide no convergence guarantees. [CWZ21] analyze the Prior-Guided Random Gradient-Free (PRGF) method, which uses a similar biased gradient estimator, and obtain convergence rates that improve with the cosine similarity between the prior and the true gradient; however, their analysis relies essentially on convexity and a bounded level set assumption, precluding a direct extension to non-convex objectives. See Appendix A for a more detailed discussion.

A complementary approach in scientific optimization is Bayesian optimization, which selects experiments through a probabilistic model of objective values. Applications include reaction optimization [SSL+21] and the discovery of improved photocatalyst formulations [BMG+20]. CV-ZOD instead uses directional hints to reduce the variance of a zeroth-order gradient estimator while retaining its smoothed-gradient expectation. The black-box machine-learning applications discussed above provide further settings in which cheap surrogate gradients may supply such hints.