atlas

Research map / Optimization / Optimizers

Addax: Utilizing Zeroth-Order Gradients to Improve Memory Efficiency and Performance of SGD for Fine-Tuning Language Models

ICLR 2025 · Optimization › Optimizers · approach: Memory-efficient LLM optimizers · 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.

Addax combines in-place first-order SGD on short sequences with MeZO zeroth-order gradients on long sequences to fine-tune LMs with near-MeZO memory and faster, more accurate convergence.

Problem

Full fine-tuning of LMs with Adam or IP-SGD needs too much memory, while MeZO's zeroth-order fine-tuning is memory-cheap but converges slowly and reaches lower final accuracy.

Approach

Partition data by sequence length: compute zeroth-order gradients (MeZO-style, in-place SPSA) on long sequences and in-place first-order gradients on short sequences, then update with a mixture alpha*z*g0 + (1-alpha)*g1, which the authors also interpret as regularizing the first-order gradient via Gaussian smoothing.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
combine zeroth- and first-order gradient estimates in AddaxOPT-30B · OPT-30B short datasetsaccuracy/F1: 75.1 -> 78.7Helped
combine zeroth- and first-order gradient estimates in AddaxOPT-30B · OPT-30B long datasetsaccuracy/F1: 68.7 -> 82.0Helped
combine zeroth- and first-order gradient estimates in AddaxOPT-66B · OPT-66B short datasetsaccuracy/F1: 77.1 -> 80.6Helped
combine zeroth- and first-order gradient estimates in AddaxOPT-66B · OPT-66B long datasetaccuracy/F1: 61.1 -> 80.6Helped
combine zeroth- and first-order gradient estimates in AddaxLlama-2-70B · Llama-2-70B short datasetsaccuracy/F1: 78.2 -> 80.1Helped
combine zeroth- and first-order gradient estimates in AddaxLlama-2-70B · Llama-2-70B long datasetsaccuracy/F1: 73.3 -> 88.9Helped
increase the first-order batch fraction K^1/(K^0 + K^1) (ablation)Addax with RoBERTa-large · six RoBERTa-large tasksaccuracyHelped
vary the mixing parameter alpha (ablation)Addax with RoBERTa-large · six RoBERTa-large tasksaccuracyNo clear effect
use zeroth-order estimates alongside first-order updatesAddax on OPT-13B WIC · WICaccuracy: 66.0 -> 68.3Helped

Surprising findings

Limitations

Experimental setup

Datasets: SuperGLUE SST-2 SST-5 SNLI MNLI RTE TREC BoolQ CB COPA MultiRC WIC

Benchmarks: SST-2 RTE WSC WIC BoolQ MultiRC SQuAD SST-5 SNLI MNLI TREC

Metrics: accuracy F1 peak GPU memory wall-clock time to best validation

Baselines: MeZO IP-SGD SGD Adam zero-shot in-context learning

Builds on: MeZO IP-SGD SPSA ZO-SGD

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