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

Atom: Low-Bit Quantization for Efficient and Accurate LLM Serving

Yilong Zhao, Chien-Yu Lin, Kan Zhu, Zihao Ye, Lequn Chen, Size Zheng, Luis Ceze, Arvind Krishnamurthy, Tianqi Chen, Baris Kasikci

TL;DR

Atom is an end-to-end low-bit serving system that achieves accurate 4-bit weight-activation (W4A4) quantization for Large Language Models. By combining mixed-precision channel reordering, fine-grained group quantization, and low-bit KV-cache compression, Atom boosts serving throughput by up to $7.73\times$ over FP16 and $2.53\times$ over INT8 while incurring negligible accuracy loss.

What Problem Does This Paper Address?

Serving Large Language Models (LLMs) at scale requires batching requests to maximize GPU throughput. At high batch sizes, inference bottlenecks split into two distinct regimes:

  1. Dense layers (MLPs and projections) become compute-bound. Weight-only quantization (e.g., W4A16) fails to accelerate this stage because weights must still be dequantized into FP16 for floating-point arithmetic.
  2. Self-attention layers during the auto-regressive decode phase remain strictly memory-bound because per-request key-value (KV) caches cannot be shared across different prompts.

While 8-bit weight-activation quantization (W8A8) helps, it cannot leverage emerging 4-bit integer tensor cores (e.g., on modern NVIDIA architectures). Conversely, prior 4-bit weight-activation methods (such as OmniQuant or QLLM) either suffer severe accuracy degradation or incur crippling runtime overheads from non-hardware-aligned operations. Atom bridges this gap by co-designing an accurate low-bit quantization algorithm with dedicated, fused GPU kernels.

Methods

Atom combines several algorithmic innovations with customized GPU kernel fusion:

  • Mixed-Precision Quantization with Channel Reordering: LLM activations suffer from extreme outliers in a tiny fraction of channels. Atom identifies these outlier channels (e.g., 128 channels) offline and keeps them in INT8 precision, quantizing the remaining uniform channels to INT4. To eliminate the memory fragmentation typical of mixed precision, Atom statically reorders weight columns offline and dynamically reorders activation channels online to place outliers at the end of the matrix, fusing the reordering step into preceding normalization layers.
  • Fine-Grained Group Quantization in the MMA Pipeline: Within non-outlier channels, Atom applies symmetric quantization across subgroups (group size 128). Atom designs a custom fused GEMM kernel that computes sub-group dot products on INT4 Tensor Cores, dequantizes temporary intermediate results into FP16 using CUDA cores, and accumulates them directly inside the matrix-multiply-accumulate (MMA) pipeline without extra global memory round-trips.
  • Dynamic Activation Quantization & Weight Tuning: Activations are dynamically scaled per request (fused into prior operators), while weights are pre-quantized offline using GPTQ with optimized clipping factors.
  • Asymmetric KV-Cache Quantization: Observing that the attention cache (especially the V-cache) exhibits fewer extreme outliers than intermediate activations, Atom quantizes the KV-cache to 4-bit integers per attention head and fuses dequantization into the FlashInfer attention engine.

Datasets

  • Calibration: 128 randomly sampled sentences from WikiText2 to identify outlier channels and calibrate weights.
  • Perplexity Evaluation: WikiText2, Penn Treebank (PTB), and C4.
  • Zero-Shot Commonsense Reasoning: Evaluated via lm-eval across six standard benchmarks: PIQA, ARC-Easy (ARC-e), ARC-Challenge (ARC-c), BoolQ, HellaSwag, and WinoGrande.
  • Serving Workload: Real-world multi-turn conversation traces sampled from ShareGPT.

Key Insights and Ideas

  • Reordering beats sparse decomposition: Earlier mixed-precision methods (like LLM.int8()) split matrices into separate sparse high-precision and dense low-precision branches, causing memory divergence. Moving outlier columns to contiguous memory boundaries delivers regular memory access patterns with under 0.5% runtime reordering overhead.
  • Dequantize in-flight, not in memory: Fine-grained group quantization provides high accuracy, but separate dequantization kernels ruin throughput. Interleaving FP16 dequantization directly inside the GPU register-level accumulation loop hides this cost behind tensor core operations.
  • KV-cache asymmetry is forgiving: Softmax normalization inherently attenuates quantization errors in the K-cache, making head-wise asymmetric INT4 KV-cache compression virtually loss-free.

Key Results

  • Accuracy: Across Llama models (7B to 65B), Atom W4A4 achieves near-FP16 quality:
  • For Llama-65B, Atom incurs only a 1.4% average zero-shot accuracy drop and just a 0.3 WikiText2 perplexity increase (3.89 vs. 3.53 FP16).
  • In extreme 3-bit quantization (W3A3), Atom maintains a perplexity of 5.89 on Llama-65B, where competing baselines diverge entirely.
  • Throughput and Latency: Evaluated in the Punica serving system on an NVIDIA RTX 4090:
  • Atom delivers up to $7.73\times$ throughput speedup over FP16, $5.5\times$ over W4A16 (AWQ), and $2.53\times$ over W8A8 (SmoothQuant) under equivalent GPU memory footprints.
  • The fused W4A4 GEMM kernel achieves 3.4× speedup over FP16 and 1.9× over INT8 at batch size 512.
  • Per-token decode latency remains well below human reading thresholds (<100 ms) even at a batch size of 256.

Limitations and Future Work

  • Group Quantization Overhead: While the fused GEMM kernel exceeds the theoretical throughput of INT8 arithmetic by 18%, group dequantization still drops peak INT4 compute from 980 TOPS to 770 TOPS.
  • Calibration Dependence: Outlier channels and GPTQ weights rely on calibration data, which must adequately reflect the model's domain.
  • Hardware Evolution: The authors note that newer hardware architectures (e.g., NVIDIA Blackwell's native support for Microscaling/MX data formats and native FP4) could natively mitigate group quantization overheads in future iterations.

Summary updated

BibTeX
@inproceedings{zhao2024atom,
  author = {Yilong Zhao and Chien-Yu Lin and Kan Zhu and Zihao Ye and Lequn Chen and Size Zheng and Luis Ceze and Arvind Krishnamurthy and Tianqi Chen and Baris Kasikci},
  title = {{Atom: Low-Bit Quantization for Efficient and Accurate LLM Serving}},
  booktitle = {MLSys},
  year = {2024},
  url = {https://openreview.net/forum?id=WKSeZcIWJp},
}
Figure