ZO-Act: Efficient Zeroth-Order Fine-Tuning via One-Shot Activation-Informed Low-Rank Subspaces

Xun Dong, Yibo Xu, Naigang Wang, Xin Li, Penghang Yin, Zi YangarXiv 2026

TL;DR

Fine-tuning large language models (LLMs) without backpropagation saves massive amounts of memory but suffers from slow convergence due to high-variance gradient estimates. ZO-Act solves this by restricting zeroth-order (forward-only) perturbations to a fixed, low-rank subspace derived from input activations during a one-shot initialization step. This simple twist slashes the perturbation dimension, enables standard momentum-based optimizers like Adam, and delivers state-of-the-art zeroth-order fine-tuning performance.

What Problem Does This Paper Address?

Standard first-order (FO) fine-tuning of LLMs requires backpropagation, which forces hardware to store massive activation caches and optimizer states, leading to prohibitive memory costs. Zeroth-order (ZO) optimization (such as MeZO) bypasses backpropagation entirely by estimating gradients using only forward-pass loss evaluations under random weight perturbations.

While highly memory-efficient, classical ZO methods sample perturbations across the entire parameter space (billions of dimensions). This leads to extremely high-variance gradient estimates, slow convergence, and training instability. Existing attempts to fix this either use purely random subspaces or require complex, dynamic updates that add computational overhead.

Methods

ZO-Act introduces a clever, activation-informed, low-rank subspace approach to stabilize training:

  1. One-Shot Subspace Initialization: Before training begins, a small calibration batch is passed through the model. For each linear layer, the input activations $X$ are collected, and a Singular Value Decomposition (SVD) is performed to extract the top-$r$ right singular vectors ($V_r$). This forms a fixed activation basis.
  2. Coefficient-Space Parameterization: The layer's weight update is restricted to $\Delta W = V_r B$, where $B$ is a lightweight, trainable coefficient matrix. Both the base weights $W$ and the basis $V_r$ are frozen.
  3. Low-Dimensional Perturbation: During training, random Gaussian perturbations are applied only to the low-dimensional coefficient matrix $B$ rather than the full weight matrix.
  4. Adam Compatibility: Because $B$ is an explicit, lightweight trainable variable, ZO-Act can seamlessly use standard momentum-based optimizers like Adam on the estimated ZO gradients. It also naturally supports quantized backbones (e.g., INT4) since the base weights are never altered.

Datasets

The authors evaluated ZO-Act across two primary categories of benchmarks:

  • Language Understanding & Question Answering: Six standard benchmarks from SuperGLUE, including SST-2, RTE, CB, BoolQ, WiC, and SQuAD.
  • Commonsense Reasoning: Eight tasks evaluated under an open-ended generation protocol, including ARC-Challenge, ARC-Easy, BoolQ, HellaSwag, OpenBookQA, PIQA, SIQA, and WinoGrande.

Key Insights and Ideas

  • Gradients Follow Activations: The mathematical intuition is elegant: because the weight gradient is a function of input activations ($\text{g}_W = X^\top \text{g}_Y$), the dominant components of the gradient naturally lie within the subspace spanned by the top singular vectors of the activations.
  • Surprising Subspace Stability: You might expect the ideal activation subspace to shift drastically during training. However, the authors demonstrate that the subspace computed once at initialization remains remarkably stable and continues to capture significant gradient energy throughout the entire fine-tuning process.
Stability and gradient alignment of activation-informed subspaces
  • The Power of Rank-1: Counterintuitively, a rank of $r=1$ performs best for full-precision models. Increasing the rank adds more subspace coverage but increases the perturbation dimension, re-introducing variance. A rank-1 subspace strikes the perfect balance by minimizing variance while capturing the most critical update direction.

Key Results

  • State-of-the-Art ZO Performance: ZO-Act consistently outperforms existing ZO methods (MeZO, SubZero, AGZO, ZO-Muon) across almost all benchmarks. For instance, on Llama-3-8B (RTE task), ZO-Act achieves 87.0% accuracy compared to ZO-Muon's 81.2% and MeZO's 74.4%.
Language understanding and question answering results
  • Quantization Friendly: When applied to an INT4 quantized Llama-3-8B model, ZO-Act maintains strong performance (83.8% on RTE) while slashing memory usage down to just 5.8 GB.
  • Efficiency Gains: ZO-Act achieves the fastest runtime among compared ZO methods while matching the lowest memory footprint (16.1 GB for full-precision Llama-3-8B), with the one-shot initialization adding a negligible 1.5-second overhead.

Limitations and Future Work

  • The FO-ZO Gap: While ZO-Act significantly narrows the performance gap, it still falls short of first-order methods (like full Adam or LoRA) because forward-only loss evaluations are inherently less informative than exact backpropagation gradients.
  • Wall-Clock Time: Because each gradient step requires multiple forward passes ($q=8$ parallel perturbation directions in these experiments) to average out noise, the wall-clock training time per step remains slower than standard first-order training. Future work will focus on improving this runtime efficiency.

Summary updated

BibTeX
@misc{dong2026zo,
  author = {Xun Dong and Yibo Xu and Naigang Wang and Xin Li and Penghang Yin and Zi Yang},
  title = {{ZO-Act: Efficient Zeroth-Order Fine-Tuning via One-Shot Activation-Informed Low-Rank Subspaces}},
  year = {2026},
  eprint = {2607.01125},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.01125},
}
Figure