Addax: Utilizing Zeroth-Order Gradients to Improve Memory Efficiency and Performance of SGD for Fine-Tuning Language Models
Not on the map. Why?
Abstract (arXiv)
Fine-tuning language models (LMs) with the Adam optimizer often demands excessive memory, limiting accessibility. The "in-place" version of Stochastic Gradient Descent (IP-SGD) and Memory-Efficient Zeroth-order Optimizer (MeZO) have been proposed to address this. However, IP-SGD still requires substantial memory, and MeZO suffers from slow convergence and degraded final performance due to its zeroth-order nature. This paper introduces Addax, a novel method that improves both memory efficiency and performance of IP-SGD by integrating it with MeZO. Specifically, Addax computes zeroth- or first-order gradients of data points in the minibatch based on their memory consumption, combining these gradient estimates to update directions. By computing zeroth-order gradients for data points that require more memory and first-order gradients for others, Addax overcomes the slow convergence of MeZO and the excessive memory requirement of IP-SGD. Additionally, the zeroth-order gradient acts as a regularizer for the first-order gradient, further enhancing the model's final performance. Theoretically, we establish the convergence of Addax under mild assumptions, demonstrating faster convergence and less restrictive hyper-parameter choices than MeZO. Our experiments with diverse LMs and tasks show that Addax consistently outperforms MeZO regarding accuracy and convergence speed while having a comparable memory footprint. When fine-tuning OPT-13B with one A100 GPU, on average, Addax outperforms MeZO in accuracy/F1 score by 14% and runs 15x faster while using memory similar to MeZO. In our experiments on the larger OPT-30B model, on average, Addax outperforms MeZO in terms of accuracy/F1 score by >16 and runs 30x faster on a single H100 GPU. Moreover, Addax surpasses the performance of standard fine-tuning approaches, such as IP-SGD and Adam, in most tasks with significantly less memory requirement.
Key facts. Cited by 11 papers in the map (data through 14 Oct 2026). Builds on 44 of its 70 references that are in the map. First posted on arXiv 9 Oct 2024.
Builds on
44 of 70 references.
References · 44
- 2017Attention Is All You Needcited by 60,361
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023GPT-4 Technical Reportcited by 18,396
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,148
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,915
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,795
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
32 more
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,682
- 2019ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Taskscited by 2,222
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2015A large annotated corpus for learning natural language inferencecited by 1,847
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,729
- 2020Don't Stop Pretraining: Adapt Language Models to Domains and Taskscited by 1,565
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,256
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 906
- 2016Training Deep Nets with Sublinear Memory Costcited by 848
- 2013Stochastic First- and Zeroth-order Methods for Nonconvex Stochastic Programmingcited by 724
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 671
- 2024GaLore: Memory-Efficient LLM Training by Gradient Low-Rank Projectioncited by 463
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
- 2018Measuring the Intrinsic Dimension of Objective Landscapescited by 370
- 2023Fine-Tuning Language Models with Just Forward Passescited by 345
- 2022PromptSource: An Integrated Development Environment and Repository for Natural Language Promptscited by 289
- 2017How to Escape Saddle Points Efficientlycited by 285
- 2015Escaping From Saddle Points --- Online Stochastic Gradient for Tensor Decompositioncited by 243
- 2023Full Parameter Fine-tuning for Large Language Models with Limited Resourcescited by 134
- 2024Why Transformers Need Adam: A Hessian Perspectivecited by 124
- 2024Revisiting Zeroth-Order Optimization for Memory-Efficient LLM Fine-Tuning: A Benchmarkcited by 114
- 2020Traces of Class/Cross-Class Structure Pervade Deep Learning Spectracited by 94
- 2023HyperAttention: Long-context Attention in Near-Linear Timecited by 85
- 2019Visualizing and Understanding the Effectiveness of BERTcited by 67
- 2023KDEformer: Accelerating Transformers via Kernel Density Estimationcited by 58
- 2019Inducing brain-relevant bias in natural language processing modelscited by 38
- 2024Zeroth-Order Fine-Tuning of LLMs with Extreme Sparsitycited by 28
- 2020Zeroth-Order Algorithms for Nonconvex Minimax Problems with Improved Complexitiescited by 21
- 2021Noisy Gradient Descent Converges to Flat Minima for Nonconvex Matrix Factorizationcited by 15
- 2020Mixing ADAM and SGD: a Combined Optimization Methodcited by 8
Built on by
Citing papers per year: 2025: 9; 2026: 2.
11 papers.
- 2025Zeroth-Order Optimization Finds Flat Minimacited by 6
- 2025MaZO: Masked Zeroth-Order Optimization for Multi-Task Fine-Tuning of Large Language Modelscited by 4
- 2025SubZero: Composing Subject, Style, and Action via Zero-Shot Personalizationcited by 2
- 2025Memory-Efficient Differentially Private Training with Gradient Random Projectioncited by 2
- 2025Towards Fast LLM Fine-tuning through Zeroth-Order Optimization with Projected Gradient-Aligned Perturbationscited by 2
- 2025On the Optimal Construction of Unbiased Gradient Estimators for Zeroth-Order Optimizationcited by 2
- 2025Private Zeroth-Order Optimization with Public Datacited by 2
- 2025VAMO: Efficient Zeroth-Order Variance Reduction for SGD with Faster Convergencecited by 1
- 2026Hi-ZFO: Hierarchical Zeroth- and First-Order LLM Fine-Tuning via Importance-Guided Tensor Selectioncited by 1
- 2025ConMeZO: Adaptive Descent-Direction Sampling for Gradient-Free Finetuning of Large Language Modelscited by 0
- 2026Unifying Data, Memory, and Compute Efficiency in LLM training: A Surveycited by 0
- 2026Unifying Data, Memory, and Compute Efficiency in LLM training: A Survey9 Jun 2026
- 2026Hi-ZFO: Hierarchical Zeroth- and First-Order LLM Fine-Tuning via Importance-Guided Tensor Selection9 Jan 2026
- 2025Private Zeroth-Order Optimization with Public Data13 Nov 2025
- 2025ConMeZO: Adaptive Descent-Direction Sampling for Gradient-Free Finetuning of Large Language Models4 Nov 2025
- 2025On the Optimal Construction of Unbiased Gradient Estimators for Zeroth-Order Optimization22 Oct 2025
- 2025Towards Fast LLM Fine-tuning through Zeroth-Order Optimization with Projected Gradient-Aligned Perturbations21 Oct 2025
- 2025Memory-Efficient Differentially Private Training with Gradient Random Projection18 Jun 2025
- 2025Zeroth-Order Optimization Finds Flat Minima5 Jun 2025
- 2025VAMO: Efficient Zeroth-Order Variance Reduction for SGD with Faster Convergence20 May 2025
- 2025SubZero: Composing Subject, Style, and Action via Zero-Shot Personalization27 Feb 2025
- 2025MaZO: Masked Zeroth-Order Optimization for Multi-Task Fine-Tuning of Large Language Models17 Feb 2025