In modern machine learning, we often face a dilemma between two optimization extremes. First-order (FO) methods like SGD are fast and precise but require a fully differentiable "white box" and massive memory to store activations for backpropagation. Zeroth-order (ZO) methods—which estimate gradients using only function evaluations (forward passes)—can optimize "black boxes" and save memory, but they suffer from a "curse of dimensionality." As the number of parameters $d$ grows, the variance of ZO estimates explodes, making them painfully slow for large-scale models.
A growing body of research proposes a middle ground: Hybrid Gradient Estimation. By strategically mixing precise first-order signals with flexible zeroth-order queries, these methods achieve the memory efficiency of ZO while maintaining the convergence stability of FO.
The Intuition: Narrowing the Search Space
The fundamental weakness of pure ZO optimization is that it searches for a descent direction by perturbing parameters in random directions. In a million-parameter model, the chance of a random perturbation aligning with the true gradient is vanishingly small.
Hybrid methods work by using "partial knowledge" to narrow this search space. If we know even a little bit about the landscape—perhaps through a biased estimator, a differentiable sub-component, or a low-rank approximation—we can use that information as a directional prior. Instead of searching in a $d$-dimensional sphere, the optimizer searches in a small cone around a "guided" direction.
Structural Decomposition: Differentiating the Known
Many "black box" problems are actually "grey boxes." We might have a non-differentiable model (like a quantized network or a legacy physics simulator) followed by a perfectly differentiable loss function (like Cross-Entropy).
Pengyun Yue and Zhouchen Lin formalize this in PseuZO. Instead of treating the entire pipeline as a black box, they compute the exact gradient for the loss and use ZO only to estimate the Jacobian of the model. Similarly, Di He and Mingqing Xiao apply this to Spiking Neural Networks in Online Pseudo-Zeroth-Order Training, using precise error signals from the loss to guide noise-based perturbations in internal weights. This decomposition significantly reduces variance because the optimizer only "guesses" the parts it truly cannot see.
Guided Search: First-Order Priors
Even when a system is non-differentiable, we often have access to a "proxy" gradient. For example, in quantized neural networks, the Straight-Through Estimator (STE) provides a biased but useful gradient.
Ningfeng Yang and Tor M. Aamodt introduce FOGZO, which uses the STE as a "guide." Rather than sampling directions uniformly, they sample more heavily in the direction suggested by the STE. This hybrid approach enables training non-differentiable systems with orders of magnitude less computation than standard ZO. A similar philosophy is seen in Guided Zeroth-Order Methods by Yuya Hikima, where the analytical gradient of a known function component steers the search in problems with decision-dependent data distributions.
Multi-Fidelity Estimation: Balancing Cost and Accuracy
Another hybrid strategy involves alternating between different "qualities" of gradient estimates. Coordinate-wise ZO estimators (perturbing one parameter at a time) are highly accurate but expensive ($2d$ queries). Random ZO estimators (perturbing all parameters at once) are cheap (2 queries) but noisy.
Kaidi Xu and Sijia Liu proposed Zeroth-Order Hybrid Gradient Descent (ZO-HGD), which uses a weighted combination of these two. By periodically "anchoring" the optimization with an expensive coordinate-wise update and then performing rapid, cheap random updates, the method achieves faster convergence. This "anchor and sprint" pattern is also central to the work of Kaiyi Ji and Yingbin Liang in Improved Zeroth-Order Variance Reduced Algorithms, where they use coordinate-wise estimators for full-batch variance reduction and randomized estimators for stochastic inner loops.
Bilevel Integration for Large Scale Models
The most recent frontier for hybrid estimation is the fine-tuning of Large Language Models (LLMs). Pure FO methods (like Adam) hit a "memory wall," while pure ZO methods (like MeZO) converge slowly on complex tasks.
Reza Shirkavand and Heng Huang address this with Bilevel-ZOFO. They nest a fast, first-order Parameter-Efficient Fine-Tuning (PEFT) "inner loop" inside a memory-efficient zeroth-order "outer loop." This allows the model to perform rapid local adaptation using gradients while the global model parameters are updated via ZO. Similarly, Zeman Li and Meisam Razaviyayn developed Addax, which integrates FO and ZO signals to match the performance of standard optimizers with a fraction of the memory footprint.
By treating first-order and zeroth-order information not as competitors, but as complementary signals, this research direction provides a scalable path for optimizing the increasingly complex and "black box" systems of modern AI.