NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

EfficientQAT: Efficient Quantization-Aware Training for Large Language Models

Mengzhao Chen, Wenqi Shao, Peng Xu, Jiahao Wang, Peng Gao, Kaipeng Zhang, Ping Luo · Submission to ICLR 2025 · Rejected

Large language models (LLMs) are central to modern AI, but their massive memory footprint creates a significant bottleneck for deployment. While Quantization-Aware Training (QAT) offers a robust solution by reducing memory consumption through low-bit representations with minimal accuracy loss, it is often impractical due to the prohibitive computational resources required for end-to-end retraining.

EfficientQAT is a novel framework designed to bring the benefits of QAT to massive LLMs without the extreme computational costs. It enables high-precision, low-bit (2-4 bit) quantization for LLMs, resulting in a hardware-friendly 2-bit Llama-2-70B model that can be trained on a single A100 GPU in just 41 hours, significantly outperforming previous uniform quantization methods.

The Performance Gap in Quantization

Standard quantization reduces the precision of weights from 16-bit floats to 2-4 bit integers. However, existing approaches face a trade-off:

  1. Post-Training Quantization (PTQ): Methods like GPTQ or AWQ are fast and resource-efficient but suffer significant accuracy loss at very low bit-widths (e.g., 2-bit).
  2. Quantization-Aware Training (QAT): Traditional QAT yields the best accuracy by training the model with quantization in mind. Unfortunately, it usually requires retraining the model from scratch on massive datasets, which is impossible for 70B+ parameter models for most researchers.

EfficientQAT aims to provide "QAT-level" accuracy with "PTQ-level" efficiency.

Methodology: A Two-Stage Approach

To balance the optimization space and memory usage, EfficientQAT employs a two-stage strategy:

Comparison of standard QAT and EfficientQAT
  1. Block-wise Training of All Parameters (Block-AP): Instead of training the whole model at once, EfficientQAT processes the model one transformer block at a time. Unlike previous block-wise methods that only tune "rounding" or "clipping" parameters, Block-AP is the first to directly train all parameters—original weights, scaling step sizes, and zero points—using a reconstruction loss. This significantly expands the solution space, allowing the model to better adapt to the "noise" introduced by quantization.

  2. End-to-End Training of Quantization Parameters (E2E-QP): After the blocks are initialized, a final end-to-end pass is performed. To keep memory usage low, the quantized weights are frozen, and only the quantization step sizes are trained. This stage is crucial because it allows the different blocks to "talk" to each other and correct errors that accumulate across the entire model chain.

Key Insights

  • The "All Parameters" Advantage: Complex, hand-designed trainable parameters (like those used in OmniQuant or AutoRound) are unnecessary. Simply training the actual weights and step sizes block-wise provides a superior initialization.
  • Step Sizes are Enough for E2E: There is no need to update billions of weights end-to-end to recover global accuracy. Tuning just the scaling factors (step sizes)—which represent only ~1.6% of the model's parameters—is sufficient to account for inter-block interactions.
  • Hardware Compatibility: Unlike "Vector Quantization" (e.g., AQLM) which requires specialized kernels, EfficientQAT uses standard uniform quantization. This makes it immediately compatible with existing high-performance inference libraries like BitBLAS and Marlin.

Key Results

EfficientQAT was evaluated across a range of models (base, instruction-tuned, and multimodal LLMs) using datasets like RedPajama for training and Alpaca for instruction tuning.

Performance of EfficientQAT across model sizes and bit-widths
  • State-of-the-Art Accuracy: In 2-bit scenarios, EfficientQAT outperforms existing uniform quantization methods (like OmniQuant) by approximately 5 points in accuracy.
  • 70B Efficiency on a Single GPU: The framework successfully quantized a Llama-2-70B model to 2-bits on a single 80GB A100 GPU. Previous QAT-like methods for models of this size typically required 4 or more GPUs.
  • Minimal Degradation: The 2-bit Llama-2-70B model achieved 69.48% accuracy on common-sense tasks, compared to 72.41% for the uncompressed FP16 version—a remarkably small gap for such extreme compression.
  • Inference Speedup: Using BitBLAS, the quantized models achieve a 2.9x to 4.4x speedup in forward-pass latency compared to FP16.

Limitations and Future Work

While EfficientQAT significantly narrows the performance gap, a slight drop still exists at 2-bit compared to full precision. Additionally, the method relies on high-quality calibration data (e.g., 4,096 samples), meaning performance may vary if the training data distribution differs significantly from the target domain. Finally, while the framework supports activation quantization, the extreme low-bit results (2-bit) are primarily demonstrated for weight-only quantization.

Summary updated

BibTeX
@misc{chen2024efficientqat,
  author = {Mengzhao Chen and Wenqi Shao and Peng Xu and Jiahao Wang and Peng Gao and Kaipeng Zhang and Ping Luo},
  title = {{EfficientQAT: Efficient Quantization-Aware Training for Large Language Models}},
  year = {2024},
  eprint = {2407.11062},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.11062},
}
Figure