English

QuZO: Quantized Zeroth-Order Fine-Tuning for Large Language Models

Machine Learning 2025-02-19 v1 Artificial Intelligence

Abstract

Language Models (LLMs) are often quantized to lower precision to reduce the memory cost and latency in inference. However, quantization often degrades model performance, thus fine-tuning is required for various down-stream tasks. Traditional fine-tuning methods such as stochastic gradient descent and Adam optimization require backpropagation, which are error-prone in the low-precision settings. To overcome these limitations, we propose the Quantized Zeroth-Order (QuZO) framework, specifically designed for fine-tuning LLMs through low-precision (e.g., 4- or 8-bit) forward passes. Our method can avoid the error-prone low-precision straight-through estimator, and utilizes optimized stochastic rounding to mitigate the increased bias. QuZO simplifies the training process, while achieving results comparable to first-order methods in FP8{\rm FP}8 and superior accuracy in INT8{\rm INT}8 and INT4{\rm INT}4 training. Experiments demonstrate that low-bit training QuZO achieves performance comparable to MeZO optimization on GLUE, Multi-Choice, and Generation tasks, while reducing memory cost by 2.94×2.94 \times in LLaMA2-7B fine-tuning compared to quantized first-order methods.

Keywords

Cite

@article{arxiv.2502.12346,
  title  = {QuZO: Quantized Zeroth-Order Fine-Tuning for Large Language Models},
  author = {Jiajun Zhou and Yifan Yang and Kai Zhen and Ziyue Liu and Yequan Zhao and Ershad Banijamali and Athanasios Mouchtaris and Ngai Wong and Zheng Zhang},
  journal= {arXiv preprint arXiv:2502.12346},
  year   = {2025}
}
R2 v1 2026-06-28T21:47:58.800Z