AIM-ZO: Activation-Informed Subspace Maintenance for Zeroth-Order LLM Fine-Tuning

Yue Xie, Zhi Zheng, Yunpeng Ba, Xuyang Wu, Xialiang Tong +3 more
9/28/2026
cs.LG

Official code: EkkoXy/AIM-ZO (0 stars, Python, MIT, last commit 2026-09-26).

Abstract

Zeroth-order (ZO) optimization offers a memory-efficient alternative for LLM fine-tuning by estimating updates only from forward evaluations of perturbed parameters, without backpropagation or activation storage. However, in billion-parameter LLMs, isotropic perturbations often waste many forward evaluations on weakly informative directions.

Show full abstract

To make these evaluations more informative, existing ZO methods restrict perturbations to low-dimensional subspaces. Yet the quality of these subspaces is critical: overly compressed or poorly maintained spaces can miss useful update directions. To obtain a high-quality subspace for ZO updates, this paper proposes AIM-ZO, a ZO fine-tuning method based on Activation-Informed Subspace Maintenance. AIM-ZO uses forward activations as local directional information and continuously integrates them into a broad, evolving subspace over training. To access broader gradient-relevant structure while keeping individual perturbations low-dimensional, AIM-ZO activates only a smaller set of shared and sampled directions, decoupling the maintained width from the active width. We evaluate AIM-ZO across 5 LLMs and 11 downstream tasks under matched forward-evaluation budgets; its six-task average exceeds the strongest fully evaluated ZO baseline by 1.26 percentage points on OPT-2.7B and MeZO by 2.85 percentage points on OPT-30B. Our code is available at https://github.com/EkkoXy/AIM-ZO

View on arXivView PDF

Code Implementations(1)

EkkoXy/AIM-ZOOfficial100%
MIT

Activation-Informed Subspace Maintenance for Zeroth-Order LLM Fine-Tuning

00Python, ShellSep 19, 20262 months agoMIT

Similar Papers

Cite this paper

@article{xie2026aimzo,
  title  = {AIM-ZO: Activation-Informed Subspace Maintenance for Zeroth-Order LLM Fine-Tuning},
  author = {Yue Xie and Zhi Zheng and Yunpeng Ba and Xuyang Wu and Xialiang Tong and Zhichao Lu and Tao Zhong and Zhenkun Wang},
  year   = {2026},
  eprint = {2609.35257},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2609.35257v1}
}

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/2609.35257.svg)](https://codeofpaper.com/paper/2609.35257)

Discussion