Enhancing Zeroth-order Fine-tuning for Language Models with Low-rank Structures

Yiming Chen, Yuan Zhang, Liyuan Cao, Kun Yuan, Zaiwen Wen
2/12/2026

No official code found. Best implementation: optsuite/LOZO (20 stars, last commit 2024-12-05).

Abstract

Parameter-efficient fine-tuning (PEFT) significantly reduces memory costs when adapting large language models (LLMs) for downstream applications. However, traditional first-order (FO) fine-tuning algorithms incur substantial memory overhead due to the need to store activation values for back-propagation during gradient computation, particularly in long-context fine-tuning tasks. Zeroth-order (ZO) algorithms offer a promising alternative by approximating gradients using finite differences of function values, thus eliminating the need for activation storage. Nevertheless, existing ZO methods struggle to capture the low-rank gradient structure common in LLM fine-tuning, leading to suboptimal performance. This paper proposes a low-rank ZO gradient estimator and introduces a novel low-rank ZO algorithm (LOZO) that effectively captures this structure in LLMs. We provide convergence guarantees for LOZO by framing it as a subspace optimization method. Additionally, its low-rank nature enables LOZO to integrate with momentum techniques while incurring negligible extra memory costs. Extensive experiments across various model sizes and downstream tasks demonstrate that LOZO and its momentum-based variant outperform existing ZO methods and closely approach the performance of FO algorithms.

View on arXivView PDF

Code Implementations(1)

optsuite/LOZOCommunity100%
204Shell, PythonOct 8, 20241 years ago

Similar Papers

Cite this paper

@article{chen2026enhancing,
  title  = {Enhancing Zeroth-order Fine-tuning for Language Models with Low-rank Structures},
  author = {Yiming Chen and Yuan Zhang and Liyuan Cao and Kun Yuan and Zaiwen Wen},
  year   = {2026},
  eprint = {2410.07698},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.07698},
  journal = {ICLR 2024 2024}
}

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

Discussion