English

End-to-End On-Device Quantization-Aware Training for LLMs at Inference Cost

Machine Learning 2025-09-30 v2 Artificial Intelligence

Abstract

Quantization is an effective technique to reduce the deployment cost of large language models (LLMs), and post-training quantization (PTQ) has been widely studied due to its efficiency. However, existing PTQ methods are limited by their inability to fine-tune model parameters and often suffer significant accuracy loss in low-bit scenarios. Quantization-aware training (QAT) provides a more principled solution, but its reliance on backpropagation incurs prohibitive memory costs, limiting its practicality for LLM deployment. To address these challenges, we propose ZeroQAT, a zeroth-order optimization-based QAT framework that supports both weight and activation quantization. ZeroQAT leverages forward-only gradient estimation to eliminate backpropagation, substantially reducing computational and memory overhead while retaining the benefits of end-to-end optimization. We further introduce a lightweight variant of ZeroQAT for quantized fine-tuning, which freezes and pre-quantizes most parameters to further cut memory usage. Experiments show that ZeroQAT consistently outperforms representative PTQ and QAT baselines while requiring significantly less memory. For example, ZeroQAT enables fine-tuning of a 13B model at extremely low bit-widths (e.g., 2-4 bits) on a single 8GB GPU, and even allows fine-tuning a 6.7B model on a OnePlus 12 smartphone, demonstrating its practicality for end-to-end QAT on resource-limited edge devices.

Keywords

Cite

@article{arxiv.2509.00031,
  title  = {End-to-End On-Device Quantization-Aware Training for LLMs at Inference Cost},
  author = {Qitao Tan and Xiaoying Song and Jin Lu and Guoming Li and Jun Liu and Lingzi Hong and Caiwen Ding and Jundong Li and Xiaoming Zhai and Shaoyi Huang and Wei Niu and Geng Yuan},
  journal= {arXiv preprint arXiv:2509.00031},
  year   = {2025}
}
R2 v1 2026-07-01T05:12:39.824Z