ZO2: Scalable Zeroth-Order Fine-Tuning for Extremely Large Language Models with Limited GPU Memory
Not on the map. Why?
Abstract (arXiv)
Fine-tuning large pre-trained LLMs generally demands extensive GPU memory. Traditional first-order optimizers like SGD encounter substantial difficulties due to increased memory requirements from storing activations and gradients during both the forward and backward phases as the model size expands. Alternatively, zeroth-order (ZO) techniques can compute gradients using just forward operations, eliminating the need to store activations. Furthermore, by leveraging CPU capabilities, it's feasible to enhance both the memory and processing power available to a single GPU. We propose a novel framework, ZO2 (Zeroth-Order Offloading), for efficient zeroth-order fine-tuning of LLMs with only limited GPU memory. Our framework dynamically shifts model parameters between the CPU and GPU as required, optimizing computation flow and maximizing GPU usage by minimizing downtime. This integration of parameter adjustments with ZO's double forward operations reduces unnecessary data movement, enhancing the fine-tuning efficacy. Additionally, our framework supports an innovative low-bit precision approach in AMP mode to streamline data exchanges between the CPU and GPU. Employing this approach allows us to fine-tune extraordinarily large models, such as the OPT-175B with more than 175 billion parameters, on a mere 18GB GPU--achievements beyond the reach of traditional methods. Moreover, our framework achieves these results with almost no additional time overhead and absolutely no accuracy loss compared to standard zeroth-order methods. ZO2's code has been open-sourced in https://github.com/liangyuwang/zo2.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 20 of its 33 references that are in the map. First posted on arXiv 16 Mar 2025.
Builds on
20 of 33 references.
References · 20
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
- 2017Mixed Precision Trainingcited by 1,156
- 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
- 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
- 2023Fine-Tuning Language Models with Just Forward Passescited by 345
- 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
- 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 256
8 more
- 2020Understanding the Difficulty of Training Transformerscited by 210
- 2013Optimal rates for zero-order convex optimization: the power of two function evaluationscited by 198
- 2024Revisiting Zeroth-Order Optimization for Memory-Efficient LLM Fine-Tuning: A Benchmarkcited by 114
- 2023Fast Inference of Mixture-of-Experts Language Models with Offloadingcited by 91
- 2023DeepZero: Scaling up Zeroth-Order Optimization for Deep Model Trainingcited by 76
- 2020Zeroth-Order Regularized Optimization (ZORO): Approximately Sparse Gradients and Adaptive Samplingcited by 46
- 2021A Zeroth-Order Block Coordinate Descent Algorithm for Huge-Scale Black-Box Optimizationcited by 46
- 2021On the Convergence of Prior-Guided Zeroth-Order Optimization Algorithmscited by 23
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2026Evolution of Optimization Methods: Algorithms, Scenarios, and Evaluationscited by 3
- 2025On the Optimal Construction of Unbiased Gradient Estimators for Zeroth-Order Optimizationcited by 2
- 2025DistZO2: High-Throughput and Memory-Efficient Zeroth-Order Fine-tuning LLMs with Distributed Parallel Computingcited by 1
- 2026New Hybrid Fine-Tuning Paradigm for LLMs: Algorithm Design and Convergence Analysis Frameworkcited by 0
- 2026Inference-Native Zeroth-Order Optimization for LLMscited by 0
- 2026Algorithmic Recourse of In-Context Learning for Tabular Datacited by 0
- 2026Algorithmic Recourse of In-Context Learning for Tabular Data29 May 2026
- 2026Inference-Native Zeroth-Order Optimization for LLMs27 May 2026
- 2026Evolution of Optimization Methods: Algorithms, Scenarios, and Evaluations14 Apr 2026
- 2026New Hybrid Fine-Tuning Paradigm for LLMs: Algorithm Design and Convergence Analysis Framework10 Apr 2026
- 2025On the Optimal Construction of Unbiased Gradient Estimators for Zeroth-Order Optimization22 Oct 2025
- 2025DistZO2: High-Throughput and Memory-Efficient Zeroth-Order Fine-tuning LLMs with Distributed Parallel Computing3 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2025Towards Fast LLM Fine-tuning through Zeroth-Order Optimization with Projected Gradient-Aligned Perturbations
- 2024Zeroth-Order Fine-Tuning of LLMs with Extreme Sparsity
- 2026GRZO: Group-Relative Zeroth-Order Optimization for Large Language Model Fine-Tuning
- 2026ZO-Act: Efficient Zeroth-Order Fine-Tuning via One-Shot Activation-Informed Low-Rank Subspaces
- 2025Ladder Up, Memory Down: Low-Cost Fine-Tuning With Side Nets
- 2023Dissecting the Runtime Performance of the Training, Fine-tuning, and Inference of Large Language Models
- 2024LaMDA: Large Model Fine-Tuning via Spectrally Decomposed Low-Dimensional Adaptation
- 2024JORA: JAX Tensor-Parallel LoRA Library for Retrieval Augmented Fine-Tuning