Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Steering the Noise: Turning Random Perturbations into Effective Descent for Memory-Efficient LLM Fine-Tuning

About

Fine-tuning large language models (LLMs) achieves strong performance but is often limited by the memory overhead of backpropagation. Zeroth-order (ZO) optimization avoids this overhead by estimating gradients through forward passes alone, yet it typically converges slowly because random Gaussian perturbations yield high-variance gradient estimates in high-dimensional parameter spaces. In this paper, we propose a plug-and-play framework that turns random perturbations into more effective descent directions. The key idea is to draw a small pool of candidate perturbations, evaluate their loss values, and then select or combine those that are best aligned with the optimization objective. We develop two instantiations of this idea: MeZO-GV, which forms a guiding vector from the contrast between low-loss and high-loss perturbation groups, and MeZO-Greedy, which keeps the single best perturbation within a fixed evaluation budget. We theoretically show that both strategies yield a larger per-step reduction in the objective than standard ZO estimation, leading to improved convergence rates. Experiments on LLMs of different scales and architectures confirm that the proposed methods integrate naturally with existing ZO optimizers and consistently improve convergence speed and task accuracy. On OPT-13B, our approach outperforms all ZO baselines across 11 benchmarks and exceeds gradient-based methods on 9 of them, while retaining the memory efficiency of forward-only optimization.

Feihu Jin, Shipeng Cen, Ying Tan• 2026

Related benchmarks

TaskDatasetResultRank
Text ClassificationBoolQ
Accuracy77.6
124
Text ClassificationRTE
Accuracy76.2
110
ClassificationSST2
Accuracy94.7
108
ClassificationCB
Accuracy85.7
76
ClassificationWSC
Accuracy66.3
65
GenerationSQuAD
F1 Score85.3
58
Word-in-Context ClassificationWiC
Accuracy64.1
52
GenerationDROP
F1 Score32.9
49
Sentence CompletionCOPA
Accuracy90
48
ClassificationMultiRC
Accuracy65.1
35
Showing 10 of 12 rows

Other info

Follow for update