GRZO: Group-Relative Zeroth-Order Optimization for Large Language Model Fine-Tuning

Liyan Tan, Yequan Zhao, Yifan Yang, Ruijie Zhang, Xinling Yu +1 more
6/1/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Zeroth-order (ZO) optimization is a memory-efficient alternative to backpropagation for fine-tuning large language models, but its deployment is limited by the high variance of gradient estimation. We propose GRZO, a Group-Relative Zeroth-Order optimizer that draws one pseudo-independent perturbation per mini-batch example and aggregates the per-example losses through group-relative normalization, raising the effective gradient-direction count from one to the batch size at no additional forward cost while preserving inference-level memory. We prove that GRZO is directionally unbiased with variance shrinking proportionally to the batch size, yielding a tighter nonconvex convergence bound than MeZO. Across RoBERTa-large, Llama3-8B, and OPT-13B over multiple tasks, GRZO improves average accuracy on Llama3-8B by $+3.0$ over MeZO at $23\%$ lower peak GPU memory; as a drop-in replacement for the MeZO core, it lifts sparse, low-rank, and quantized ZO variants by $+6.0$ on average.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{tan2026grzo,
  title  = {GRZO: Group-Relative Zeroth-Order Optimization for Large Language Model Fine-Tuning},
  author = {Liyan Tan and Yequan Zhao and Yifan Yang and Ruijie Zhang and Xinling Yu and Zheng Zhang},
  year   = {2026},
  eprint = {2606.02857},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.02857v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.02857.svg)](https://codeofpaper.com/paper/2606.02857)

Discussion