[Paper Review] Atom: Low-bit Quantization for Efficient and Accurate LLM Serving
Atom introduces low-bit weight-activation quantization (W4A4) with mixed-precision, fine-grained group quantization, dynamic activation quantization, and KV-cache quantization to boost LLM serving throughput with minimal accuracy loss; it achieves up to 7.73x end-to-end throughput gains over FP16 and 2.53x over INT8.
The growing demand for Large Language Models (LLMs) in applications such as content generation, intelligent chatbots, and sentiment analysis poses considerable challenges for LLM service providers. To efficiently use GPU resources and boost throughput, batching multiple requests has emerged as a popular paradigm; to further speed up batching, LLM quantization techniques reduce memory consumption and increase computing capacity. However, prevalent quantization schemes (e.g., 8-bit weight-activation quantization) cannot fully leverage the capabilities of modern GPUs, such as 4-bit integer operators, resulting in sub-optimal performance. To maximize LLMs' serving throughput, we introduce Atom, a low-bit quantization method that achieves high throughput improvements with negligible accuracy loss. Atom significantly boosts serving throughput by using low-bit operators and considerably reduces memory consumption via low-bit quantization. It attains high accuracy by applying a novel mixed-precision and fine-grained quantization process. We evaluate Atom on 4-bit weight-activation quantization in the serving context. Atom improves end-to-end throughput (token/s) by up to $7.7 imes$ compared to the FP16 and by $2.5 imes$ compared to INT8 quantization, while maintaining the same latency target.
Motivation & Objective
- Motivate the need for higher LLM serving throughput under batching and memory constraints.
- Develop a quantization technique that exploits 4-bit weight-activation arithmetic on modern GPUs.
- Preserve accuracy through mixed-precision, fine-grained group quantization, and dynamic activation quantization.
- Reduce KV-cache memory movement to further improve throughput in self-attention layers.
- Provide an end-to-end serving framework with hardware-conscious quantization techniques.
Proposed method
- Adopt mixed-precision quantization by separating outliers and normal values and reordering activations for regular memory access.
- Apply fine-grained group quantization with per-group quantization to reduce quantization error while enabling efficient fusion.
- Use dynamic activation quantization to tailor quantization parameters for each activation matrix during inference.
- Quantize the KV-cache with low-bit precision to accelerate memory-bound self-attention layers and fuse dequantization with FlashInfer.
- Fuse quantization and reordering steps into existing operators to minimize overhead and leverage low-bit tensor cores.
Experimental results
Research questions
- RQ1Can weight-activation quantization to 4 bits (W4A4) maintain accuracy close to FP16 baselines across large LLMs?
- RQ2What is the throughput impact of Atom’s low-bit design on dense and self-attention layers in serving scenarios?
- RQ3How do mixed-precision, group quantization, dynamic activation quantization, and KV-cache quantization contribute to overall accuracy and throughput?
- RQ4Does end-to-end serving with Atom scale effectively with large batch sizes under realistic workloads?
Key findings
- Atom achieves up to 7.73x end-to-end throughput improvement over FP16 and 2.53x over INT8 under the same memory constraints.
- Atom maintains perplexity close to FP16 on Llama models with W4A4 (e.g., WikiText2 perplexity near FP16 while outperforming baselines in several settings).
- In zero-shot evaluation, W4A4 Atom generally outperforms other weight-activation quantization baselines across multiple tasks, reducing accuracy loss relative to FP16.
- End-to-end latency remains competitive or better than FP16/INT8 across batch sizes, with Atom delivering lower latency at practical batch sizes.
- 4-bit weight-activation quantization enables substantial KV-cache memory reduction, improving self-attention throughput without sacrificing accuracy significantly.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.