Simultaneous Computation and Memory Efficient Zeroth-Order Optimizer for Fine-Tuning Large Language Models
Fei Wang, Li Shen, Liang Ding, Chao Xue, Ye Liu, Changxing Ding

TL;DR
This paper introduces LeZO, a layer-wise sparse, memory-efficient zeroth-order optimizer that accelerates large language model fine-tuning by over three times without sacrificing performance.
Contribution
LeZO is a novel optimizer that employs layer-wise sparsification and dynamic perturbation, significantly reducing computation time during zeroth-order fine-tuning of large models.
Findings
LeZO achieves over 3x speedup compared to MeZO.
LeZO maintains comparable performance on SuperGLUE and generative tasks.
LeZO reduces memory overhead during optimization.
Abstract
Fine-tuning is powerful for adapting large language models to downstream tasks, but it often results in huge memory usages. A promising approach to mitigate this is using Zeroth-Order (ZO) optimization, which estimates gradients to replace First-Order (FO) gradient calculations, albeit with longer training time due to its stochastic nature. By revisiting the Memory-efficient ZO (MeZO) optimizer, we discover that the full-parameter perturbation and updating processes consume over 50% of its overall fine-tuning time cost. Based on these observations, we introduce a novel layer-wise sparse computation and memory efficient ZO optimizer, named LeZO. LeZO treats layers as fundamental units for sparsification and dynamically perturbs different parameter subsets in each step to achieve full-parameter fine-tuning. LeZO incorporates layer-wise parameter sparsity in the process of simultaneous…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Speech Recognition and Synthesis
MethodsOPT
