atlas

Research map / Large language models / Instruction and fine-tuning

Revisiting Zeroth-Order Optimization for Memory-Efficient LLM Fine-Tuning: A Benchmark

ICML 2024 · Large language models › Instruction and fine-tuning · approach: Efficient LLM fine-tuning systems · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Benchmarks six zeroth-order and forward-gradient optimizers for memory-efficient LLM fine-tuning across multiple models, tasks, and PEFT schemes, and proposes block-wise ZO, hybrid ZO-FO, and sparsity-induced ZO enhancements.

Problem

Full back-propagation fine-tuning of LLMs has large memory overhead; prior work (MeZO) only used basic ZO-SGD, leaving the broader space of ZO optimizers and their accuracy/efficiency trade-offs for LLM fine-tuning unexplored.

Approach

Systematically benchmarks ZO-SGD, ZO-SGD-Sign, ZO-SGD-Momentum, ZO-SGD-Conservative, ZO-Adam and Forward-Gradient against FO-SGD/Adam across models, tasks and PEFT schemes, with a detailed peak-memory analysis, and introduces block-wise ZO updates, hybrid ZO-FO training, and sparse random perturbations to reduce ZO gradient variance.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use prompt-based task alignment instead of no alignment (ablation)ZO-SGD and ZO-Adam · SST2 and RTE, Roberta-Large FTtest accuracy: 89.4 vs 79.2; 68.7 vs 60.4 (ZO-SGD); 89.8 vs 79.2; 69.2 vs 58.7 (ZO-Adam)Helped
increase query budget above 1 (ablation)Forward-Grad and ZO-SGD · LoRA-based SST2, OPT-1.3Baccuracy: 1%~2%Helped
increase query budget above 500 (ablation)Forward-Grad vs ZO-SGD · LoRA-based SST2, OPT-1.3Baccuracy: 1%~2%Helped
estimate gradients block-wise instead of model-wise (ablation)ZO-SGD · SST2, OPT-1.3Baccuracy: 90.83 -> 93.69 (1 forward pass vs 26)Helped
estimate gradients block-wise instead of model-wise (ablation)ZO-SGD · WinoGrande, OPT-1.3Baccuracy: 55.5 -> 57.2 (1 forward pass vs 26)Helped
use 26 model-wise queries instead of one query (ablation)ZO-SGD · SST2, OPT-1.3Baccuracy: 90.83 -> 91.28Helped
use 26 model-wise queries instead of one query (ablation)ZO-SGD · WinoGrande, OPT-1.3Baccuracy: 55.5 -> 55.7Helped
increase the number of ZO layers from 0 to 4 (ablation)Hybrid ZO-FO · SST2, OPT-1.3Baccuracy: 91.22 -> 91.12Hurt
increase the number of ZO layers from 0 to 8 (ablation)Hybrid ZO-FO · SST2, OPT-1.3Baccuracy: 91.22 -> 90.79Hurt
increase the number of ZO layers from 0 to 12 (ablation)Hybrid ZO-FO · SST2, OPT-1.3Baccuracy: 91.22 -> 89.48Hurt
increase the number of ZO layers from 0 to 16 (ablation)Hybrid ZO-FO · SST2, OPT-1.3Baccuracy: 91.22 -> 89.42Hurt
increase the number of ZO layers from 0 to 20 (ablation)Hybrid ZO-FO · SST2, OPT-1.3Baccuracy: 91.22 -> 89.27Hurt

Surprising findings

Limitations

Experimental setup

Datasets: SST2 COPA WinoGrande MultiRC

Benchmarks: SST2 COPA WinoGrande MultiRC

Metrics: test accuracy peak memory (GB) GPU count runtime per iteration (s)

Baselines: MeZO FO-SGD FO-Adam Forward-Grad ZO-SGD-Sign ZO-SGD-MMT ZO-SGD-Cons ZO-Adam

Builds on: MeZO ZO-SGD Forward gradient LoRA ZO-Adam

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy