mlsanityData to 14 Oct 2026

ZO2: Scalable Zeroth-Order Fine-Tuning for Extremely Large Language Models with Limited GPU Memory

arXiv 2503.12668 ↗First posted 16 Mar 2025cs.LG cs.PFcited by 6

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

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
  3. 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
  4. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
  5. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,301
  6. 2017Mixed Precision Trainingcited by 1,156
  7. 2023FlexGen: High-Throughput Generative Inference of Large Language Models with a Single GPUcited by 575
  8. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 474
  9. 2018WiC: the Word-in-Context Dataset for Evaluating Context-Sensitive Meaning Representationscited by 372
  10. 2023Fine-Tuning Language Models with Just Forward Passescited by 345
  11. 2021ZeRO-Offload: Democratizing Billion-Scale Model Trainingcited by 341
  12. 2022Black-Box Tuning for Language-Model-as-a-Servicecited by 256
8 more
  1. 2020Understanding the Difficulty of Training Transformerscited by 210
  2. 2013Optimal rates for zero-order convex optimization: the power of two function evaluationscited by 198
  3. 2024Revisiting Zeroth-Order Optimization for Memory-Efficient LLM Fine-Tuning: A Benchmarkcited by 114
  4. 2023Fast Inference of Mixture-of-Experts Language Models with Offloadingcited by 91
  5. 2023DeepZero: Scaling up Zeroth-Order Optimization for Deep Model Trainingcited by 76
  6. 2020Zeroth-Order Regularized Optimization (ZORO): Approximately Sparse Gradients and Adaptive Samplingcited by 46
  7. 2021A Zeroth-Order Block Coordinate Descent Algorithm for Huge-Scale Black-Box Optimizationcited by 46
  8. 2021On the Convergence of Prior-Guided Zeroth-Order Optimization Algorithmscited by 23

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 2; 2026: 4.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards Fast LLM Fine-tuning through Zeroth-Order Optimization with Projected Gradient-Aligned Perturbations
  2. 2024Zeroth-Order Fine-Tuning of LLMs with Extreme Sparsity
  3. 2026GRZO: Group-Relative Zeroth-Order Optimization for Large Language Model Fine-Tuning
  4. 2026ZO-Act: Efficient Zeroth-Order Fine-Tuning via One-Shot Activation-Informed Low-Rank Subspaces
  5. 2025Ladder Up, Memory Down: Low-Cost Fine-Tuning With Side Nets
  6. 2023Dissecting the Runtime Performance of the Training, Fine-tuning, and Inference of Large Language Models
  7. 2024LaMDA: Large Model Fine-Tuning via Spectrally Decomposed Low-Dimensional Adaptation
  8. 2024JORA: JAX Tensor-Parallel LoRA Library for Retrieval Augmented Fine-Tuning