NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

High Dimensional Zeroth Order Optimization for Deep Learning

This direction is merged into another direction: zeroth-order gradient variance. Its last version stays readable and citable here.

Version 1 of 151 papers54 conceptsfrozen 2026-10-04

Modern deep learning is built on the back of the chain rule. To train a model, we typically perform a "forward pass" to compute a loss and a "backward pass" (backpropagation) to calculate the exact gradient of that loss with respect to every parameter. However, backpropagation (BP) is not always possible or desirable. It requires a fully differentiable "white box" model, massive memory to store intermediate activations, and hardware that supports complex gradient tracking.

A growing body of research is exploring an alternative: Zeroth-Order (ZO) Optimization. This approach treats the model as a "black box," estimating gradients using only forward passes. While historically limited to low-dimensional problems, recent breakthroughs are enabling ZO methods to fine-tune Large Language Models (LLMs) and train specialized hardware like optical chips.

The Intuition of Random Perturbations

If you cannot calculate a gradient, how do you know which way is "down" on the loss landscape? The core mechanism of ZO optimization is simple: you nudge the parameters in a random direction and see if the loss improves.

Mathematically, a standard ZO gradient estimator takes the form: $$\hat{g} \approx \frac{f(w + \mu z) - f(w)}{\mu} z$$ where $w$ are the weights, $z$ is a random perturbation vector, and $\mu$ is a small scalar. By evaluating the function at a slightly shifted point, we get a noisy estimate of the directional derivative. Lin Chen 0003, Hamed Hassani, and colleagues demonstrated in Black Box Submodular Maximization that these "derivative-free" algorithms can achieve optimal approximation guarantees, proving that explicit gradients are not strictly necessary for complex optimization.

The Curse of Dimensionality

The primary challenge for ZO methods is variance. In a 2D landscape, a random nudge has a high chance of pointing somewhat toward the valley. But in a 100-million-dimensional space—the scale of modern neural networks—a random vector $z$ is almost certainly orthogonal to the true gradient.

As Yequan Zhao and Zheng Zhang point out in their work on Microcontrollers, the variance of these estimates scales linearly with the number of parameters. This "noise" makes convergence slow and unstable. To make ZO work for deep learning, researchers must find ways to "shrink" the search space or "clean" the gradient signal.

Taming Variance through Low Rank Subspaces

The most successful recent strategy for scaling ZO is to recognize that neural network gradients are not truly high-dimensional; they often reside in a much smaller "intrinsic" subspace.

  1. Low-Rank Curvature: Hyunseok Seung and Hyunsuk Ko introduced LOREN (Low-Rank Curvature for Zeroth-Order Optimization), which uses second-order information to navigate the loss landscape more effectively than "blind" random searching.
  2. Greedy Selection: Jinjie Fang and Bin Gu developed LOZO+ (Provably Efficient Zeroth-Order Fine-Tuning), which greedily selects low-rank subspaces that align with actual descent directions, discarding useless noise.
  3. Temporal Low-Rankness: Tiansheng Huang and Li Shen proposed TeZO (Empowering the Low-Rankness on the Temporal Dimension), which exploits the fact that gradients share similar subspaces across training iterations. By reusing this information, they slashed memory usage to just 35% of standard methods.

Why Go Backprop Free

If ZO is so noisy, why use it? The motivation comes from three distinct frontiers where backpropagation fails:

1. Extreme Memory Constraints

Backpropagation requires storing every intermediate activation to compute the chain rule. For LLMs, this "activation memory" is often the primary bottleneck. Qitao Tan and Jin Lu demonstrated with ZeroQAT (End-to-End On-Device Quantization-Aware Training) that ZO allows fine-tuning a 13B parameter model on a single 8GB GPU—and even on a smartphone—because it only requires the memory needed for a standard forward pass (inference).

2. Non-Differentiable Hardware and Simulators

In emerging fields like Optical Neural Networks (ONNs), the "weights" are physical components like phase shifters. Getting an internal gradient is physically impossible. Yequan Zhao and Xinling Yu showed that ZO optimization can train these Optical Physics-Informed Neural Networks directly on silicon chips, bypassing the need for a differentiable digital twin. Similarly, Shaocong Ma and James Diffenderfer use ZO to optimize Black-Box PDE Solvers where the underlying numerical code is legacy and non-differentiable.

3. Privacy and Security

In Federated Learning, sharing gradients can inadvertently leak sensitive training data. Bin Gu (AsyREVEL) and Jian Lou (DP-ZOSO) have shown that by communicating only scalar loss values (zeroth-order feedback) instead of high-dimensional gradient vectors, systems can achieve much stronger differential privacy guarantees and resilience against malicious attacks.

The Future: Hybrid and Adaptive Methods

The field is moving toward hybrid approaches that combine the stability of first-order methods with the efficiency of ZO. For example, Wanhao Yu discovered that ZO optimization surprisingly mitigates catastrophic forgetting in continual learning. By applying ZO to model adapters and standard gradients to the classifier, they achieved a 6x reduction in memory while maintaining state-of-the-art stability.

As researchers like Hiroshi Sawada develop more "natural" perturbations that account for weight correlations (Natural Perturbations), the gap between backpropagation and zeroth-order optimization continues to close, promising a future where we can train the largest models on the smallest devices.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_high_dimensional_zeroth_order_optimizati_587a7d80,
  title = {High Dimensional Zeroth Order Optimization for Deep Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/high-dimensional-zeroth-order-optimization-for-deep-learning/rdr_587a7d80205c4874973ee6714de929d0},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-29},
}

This exact version (version 1, frozen text):

@misc{lacuna_high_dimensional_zeroth_order_optimizati_587a7d80_v1,
  title = {High Dimensional Zeroth Order Optimization for Deep Learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/high-dimensional-zeroth-order-optimization-for-deep-learning/rdr_587a7d80205c4874973ee6714de929d0/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-29},
}