Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

ZO-AdaMU Optimizer: Adapting Perturbation by the Momentum and Uncertainty in Zeroth-order Optimization

About

Lowering the memory requirement in full-parameter training on large models has become a hot research area. MeZO fine-tunes the large language models (LLMs) by just forward passes in a zeroth-order SGD optimizer (ZO-SGD), demonstrating excellent performance with the same GPU memory usage as inference. However, the simulated perturbation stochastic approximation for gradient estimate in MeZO leads to severe oscillations and incurs a substantial time overhead. Moreover, without momentum regularization, MeZO shows severe over-fitting problems. Lastly, the perturbation-irrelevant momentum on ZO-SGD does not improve the convergence rate. This study proposes ZO-AdaMU to resolve the above problems by adapting the simulated perturbation with momentum in its stochastic approximation. Unlike existing adaptive momentum methods, we relocate momentum on simulated perturbation in stochastic gradient approximation. Our convergence analysis and experiments prove this is a better way to improve convergence stability and rate in ZO-SGD. Extensive experiments demonstrate that ZO-AdaMU yields better generalization for LLMs fine-tuning across various NLP tasks than MeZO and its momentum variants.

Shuoran Jiang, Qingcai Chen, Youchen Pan, Yang Xiang, Yukang Lin, Xiangping Wu, Chuanyi Liu, Xiaobao Song• 2023

Related benchmarks

TaskDatasetResultRank
Text ClassificationBoolQ
Accuracy74.9
84
Text ClassificationRTE
Accuracy72.9
78
ClassificationSST2
Accuracy92.1
58
Sentence CompletionCOPA
Accuracy89
48
ClassificationCB
Accuracy72.3
46
GenerationSQuAD
F1 Score85.2
44
ClassificationWSC
Accuracy61.5
41
Word-in-Context ClassificationWiC
Accuracy60.7
34
Multiple-ChoiceReCoRD
Accuracy83.2
29
GenerationDROP
F1 Score32.4
29
Showing 10 of 12 rows

Other info

Follow for update