atlas

Research map / Architectures and efficiency / Pruning and efficient tuning

Variance-reduced Zeroth-Order Methods for Fine-Tuning Language Models

ICML 2024 · Architectures and efficiency › Pruning and efficient tuning · approach: Adapter-based parameter-efficient tuning · 0 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.

Proposes MeZO-SVRG, a memory-efficient zeroth-order SVRG variant that uses batch-wide single-direction SPSA estimators and in-place updates to fine-tune LMs without prompts, outperforming MeZO on GLUE/SuperGLUE tasks.

Problem

Zeroth-order fine-tuning of language models (MeZO) is unstable at small batch sizes and has a large convergence gap to first-order fine-tuning in the non-prompted setting, while backpropagation is memory-prohibitive for large LMs.

Approach

Adapts ZO-SVRG into a memory-efficient variant (MeZO-SVRG) that combines periodic full-batch ZO gradient estimates with minibatch control-variate updates, uses single-direction batch SPSA estimators for data parallelism, and performs in-place operations with a 3d memory footprint.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
use MeZO-SVRG instead of MeZOlanguage-model fine-tuning · GLUE and SuperGLUE taskstest accuracy: up to 20% increaseHelped
use MeZO-SVRG instead of MeZOGPT2 and OPT-2.7B fine-tuning · MNLI, QNLI, SST-2, CoLAGPU-hours to reach MeZO's peak test accuracy: 0.4 -> 0.3; 5.5 -> 1.9; 19.4 -> 5.6; 2.8 -> 2.2; 2.6 -> 1.1; 5.3 -> 2.7; 48 -> 25; 55 -> 1.4Helped
replace fullbatch estimator with a large-batch estimator (ablation)MeZO-SVRG · DistilBERT SST-2test accuracy: 70; 71; 69No clear effect
reduce the perturbation scale below 1e-1 (ablation)MeZO-SVRG · DistilBERT MNLIfine-tuning performanceNo clear effect
increase the perturbation scale above 1e-1 (ablation)MeZO-SVRG · DistilBERT MNLIfine-tuning performanceHurt
increase the frequency of fullbatch updates (ablation)MeZO-SVRG · DistilBERT MNLIconvergence rateHelped
use fullbatch updates exclusively (q=1) rather than combined fullbatch and minibatch updates (ablation)MeZO-SVRG · DistilBERT MNLIstabilityHurt
use MeZO-SVRG instead of MeZO at smaller batch sizesRoBERTa-large fine-tuning · SST-2robustness to batch sizeHelped
use MeZO-SVRG instead of FO-SGDautoregressive model fine-tuning · memory footprintmemory usage: 2×Helped
increase batch sizeMeZO-SVRG versus FO-SGD · RoBERTa-large MNLI, context length 128memory savings: up to 76%Helped

Surprising findings

Limitations

Experimental setup

Datasets: MNLI QNLI SST-2 CoLA BoolQ MNIST

Benchmarks: MNLI QNLI SST-2 CoLA BoolQ

Metrics: test accuracy fine-tuning loss GPU-hours peak GPU memory (GB)

Baselines: MeZO FO-SGD FO-Adam ZO-SVRG

Builds on: MeZO ZO-SVRG SPSA SVRG

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