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

Refining Adaptive Zeroth-Order Optimization at Ease

Yao Shu, Qixin Zhang, Kun He, Zhongxiang Dai

Introduction

Zeroth-order (ZO) optimization is a versatile tool in machine learning, enabling parameter optimization using only function evaluations. This "black-box" capability is critical for scenarios where backpropagation is unavailable, such as attacking proprietary AI systems or fine-tuning Large Language Models (LLMs) under extreme memory constraints where storing full gradients is unfeasible.

Despite its utility, ZO optimization suffers from significant noise. Because gradients are estimated via finite differences, the resulting estimates are high-variance. Standard adaptive methods like ZO-AdaMM (a zeroth-order variant of Adam) struggle in this environment because they use these noisy estimates to scale learning rates, leading to instability and slow convergence.

The R-AdaZO Approach: A Refined Update Rule

The authors propose R-AdaZO (Refined Adaptive Zeroth-Order Optimization), a simple "one-line" modification to existing adaptive algorithms. The core innovation lies in how the second moment ($v_t$) is updated.

In traditional Adam-like algorithms, the second moment is updated using the square of the current noisy gradient estimate ($g_t^2$). R-AdaZO instead utilizes the variance-reduced first moment ($m_t$), which is a moving average of past gradients. By updating $v_t$ with $m_t^2$, the algorithm leverages the inherent denoising property of the first moment.

Empirical analysis of moment estimates showing R-AdaZO's significantly lower relative error in the second moment compared to standard methods.

Theoretically, the authors demonstrate that while using the first moment introduces a slight bias, the massive reduction in variance leads to a much more accurate representation of the optimization landscape's geometry. This allows for more aggressive and stable updates, particularly in "flat" regions of the loss function.

Experimental Evaluation

The effectiveness of R-AdaZO was tested across synthetic benchmarks, adversarial attacks, and LLM fine-tuning.

Synthetic Benchmarks

On standard high-dimensional functions ($d=10,000$) such as Quadratic, Cubic, Levy, and Rosenbrock, R-AdaZO consistently outperformed baselines like ZO-SGD, ZO-signSGD, and ZO-AdaMM.

Performance comparison of R-AdaZO against zeroth-order baselines across four synthetic benchmark functions.

Black-Box Adversarial Attacks

In the context of MNIST adversarial attacks, R-AdaZO achieved a 5.4x speedup. It required only ~2,900 iterations to find a successful misclassification perturbation, compared to ~15,500 iterations for standard adaptive baselines.

LLM Fine-Tuning

The most significant practical impact was observed in memory-efficient LLM fine-tuning using LoRA. For the OPT-1.3B model, R-AdaZO reached target training loss 4.29x faster than ZO-AdaMM. Similar gains were observed with the OPT-13B model (3.75x speedup), demonstrating the algorithm's scalability to large-scale parameters.

Conclusion and Future Directions

R-AdaZO proves that sophisticated performance gains in zeroth-order optimization can be achieved through simple, theoretically grounded refinements of moment utilization. By treating the first moment as a denoising mechanism rather than just a momentum term, R-AdaZO provides a robust and efficient path for black-box optimization.

Future work includes automating the selection of the decay rate $\beta_1$ and exploring the interaction between R-AdaZO's update rule and more advanced "prior-guided" gradient estimators.

Summary updated

BibTeX
@inproceedings{shu2025refining,
  author = {Yao Shu and Qixin Zhang and Kun He and Zhongxiang Dai},
  title = {{Refining Adaptive Zeroth-Order Optimization at Ease}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=NpIIbrg361},
}
Figure