"Give Me BF16 or Give Me Death"? Accuracy-Performance Trade-Offs in LLM Quantization

Eldar Kurtic, Alexandre Marques, Shubhra Pandit, Mark Kurtz, Dan Alistarh

TL;DR

This paper presents a massive empirical study of over 500,000 evaluations on the Llama-3.1 and DeepSeek-R1-Distill model families to map out the exact accuracy-performance trade-offs of LLM quantization. The authors demonstrate that FP8 is virtually lossless, well-tuned INT8 degrades accuracy by a mere 1–3%, and 4-bit weight-only (W4A16) quantization offers massive 5–7× cost reductions for ultra-large models. Finally, they provide a definitive deployment playbook: use W4A16 for low-latency synchronous tasks and W8A8 for high-throughput, batched asynchronous workloads.

What Problem Does This Paper Address?

Serving state-of-the-art Large Language Models (LLMs) like Llama-3.1-405B is incredibly expensive, pushing hardware limits and requiring massive GPU clusters. Quantization—reducing the bit-width of weights and activations—is the primary strategy used to compress these models and accelerate inference.

However, the machine learning community has been caught in a web of conflicting reports. Some prominent studies claimed that 8-bit integer activation quantization causes devastating accuracy drops (>10%), fueling skepticism and pushing practitioners to stick to expensive full-precision (BF16) formats. Furthermore, systematic benchmarks comparing popular formats (FP8, INT8, INT4) across both academic and open-ended, real-world tasks have been scarce. This paper clears the confusion by providing a rigorous, data-driven guide to balancing speed, cost, and accuracy.

Methods

The authors evaluate three widely supported, inference-efficient quantization formats implemented within the popular vLLM framework:

  • W8A8-FP (FP8): Quantizes both weights and activations to 8-bit floating-point precision using a simple round-to-nearest (RTN) approach with dynamic per-token activation quantization. It requires no calibration data.
  • W8A8-INT (INT8): Quantizes weights and activations to 8-bit integers. To handle tricky activation outliers, the authors utilize SmoothQuant to migrate complexity from activations to weights, paired with GPTQ for symmetric weight quantization.
  • W4A16-INT (INT4): Quantizes weights to 4-bit integers while keeping activations at 16-bit precision, utilizing GPTQ with MSE-optimal clipping in 128-element groups.

The paper also directly pits GPTQ against AWQ for 4-bit weight-only setups, showing that proper hyperparameter tuning and high-quality calibration data (OpenPlatypus) allow GPTQ to consistently outperform AWQ on real-world tasks.

Datasets

The comprehensive evaluation suite spans over half a million evaluations across multiple benchmark categories:

  • Academic Benchmarks: Open LLM Leaderboard V1 (including MMLU, GSM8k, and TruthfulQA) and the more rigorous Leaderboard V2 (MMLU-Pro, GPQA, BBH, IFEval).
  • Real-World Generative Tasks: Arena-Hard-Auto-v0.1 (which uses an LLM judge to mimic human preference in chat), HumanEval/HumanEval+ (code generation), and the RULER benchmark for long-context evaluation (from 4k to 128k tokens).
  • Reasoning Benchmarks: LightEval evaluations (AIME 2024, MATH-500, GPQA-Diamond) specifically for DeepSeek-R1-Distill models.

Key Insights and Ideas

  • The "INT8 Degradation" is a Tuning Issue, Not a Format Flaw: Prior literature reported massive accuracy drops for integer activation quantization. The authors prove that when properly tuned with SmoothQuant and GPTQ, W8A8-INT is highly competitive, suffering only a minor 1–3% drop.
  • GPTQ Outperforms AWQ in the Real World: While both methods perform similarly on standard academic multiple-choice tests, GPTQ demonstrates a pronounced advantage over AWQ on open-ended, real-world generative tasks, particularly in coding.
  • Quantization Preserves Semantic Structure: Beyond raw benchmark scores, text similarity metrics show that larger quantized models (70B and 405B) closely adhere to the exact word choices and sentence structures of their uncompressed BF16 counterparts.
  • Workload Dictates the Optimal Format: Weight-only quantization (W4A16) accelerates memory-bound decoding, making it ideal for synchronous, low-latency applications (like code completion). Conversely, weight-and-activation quantization (W8A8) improves compute efficiency during the prefill stage, dominating asynchronous continuous batching setups where throughput is king.

Key Results

  • FP8 is Effectively Lossless: Across all model scales, W8A8-FP preserves the uncompressed model's accuracy within the evaluation's margin of error, achieving ~99.7% average recovery.
  • Massive Cost and Hardware Reductions: For the massive Llama-3.1-405B model, W4A16-INT enables a 5–7× cost reduction (Queries per USD). Crucially, it allows the 405B model to be deployed on just 4× A100 or H100 GPUs, down from the 16 GPUs required for full-precision BF16.
  • High Generative Consistency: Text similarity analysis (Figure 1) highlights that semantic textual similarity (STS) remains exceptionally high (>0.95) across all quantization formats for the larger model scales.
Figure 1: Text similarity metrics comparing the outputs of quantized Llama-3.1-Instruct models to full-precision baselines. We refer to W8A8-FP as FP8, W8A8-INT as INT8, and W4A16-INT as INT4.

Limitations and Future Work

While comprehensive, the authors note a few limitations that pave the way for future research:

  • Scope of Compression: The study focuses strictly on weight and activation quantization. It leaves open questions regarding the impact of compressing other model components, such as the KV-cache, input embeddings, and the final language modeling head.
  • Language Distribution: The benchmarks are predominantly English-centric. Accuracy degradation might vary significantly across multi-lingual tasks or specialized domain distributions.
  • Future Direction: Integrating KV-cache quantization into this systematic framework is highlighted as a vital next step for a truly holistic understanding of LLM serving trade-offs.

Summary updated

Abstract

Quantization is a powerful tool for accelerating large language model (LLM) inference, but the accuracy-performance trade-offs across different formats remain unclear. In this paper, we conduct the most comprehensive empirical study to date, evaluating FP8, INT8, and INT4 quantization across academic benchmarks and real-world tasks on the entire Llama-3.1 model family. Through over 500,000 evaluations, our investigation yields several key findings: (1) FP8 (W8A8-FP) is effectively lossless across all model scales, (2) well-tuned INT8 (W8A8-INT) achieves surprisingly low (1-3\%) accuracy degradation, and (3) INT4 weight-only (W4A16-INT) is more competitive than expected, rivaling 8-bit quantization. Further, we investigate the optimal quantization format for different deployments by analyzing inference performance through the popular vLLM framework. Our analysis provides clear deployment recommendations: W4A16 is the most cost-efficient for synchronous setups, while W8A8 dominates in asynchronous continuous batching. For mixed workloads, the optimal choice depends on the specific use case. Our findings offer practical, data-driven guidelines for deploying quantized LLMs at scale -- ensuring the best balance between speed, efficiency, and accuracy.
BibTeX
@inproceedings{kurtic2025give,
  author = {Eldar Kurtic and Alexandre Marques and Shubhra Pandit and Mark Kurtz and Dan Alistarh},
  title = {{"Give Me BF16 or Give Me Death"? Accuracy-Performance Trade-Offs in LLM Quantization}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure