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

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

Abstract

Despite the popularity of large language model (LLM) quantization for inference acceleration, significant uncertainty remains regarding the accuracy-performance trade-offs associated with various quantization formats. We present a comprehensive empirical study of quantized accuracy, evaluating popular quantization formats (FP8, INT8, INT4) across academic benchmarks and real-world tasks, on the entire Llama-3.1 model family. Additionally, our study examines the difference in text generated by quantized models versus their uncompressed counterparts. Beyond benchmarks, we also present a couple of quantization improvements which allowed us to obtain state-of-the-art accuracy recovery results. Our investigation, encompassing over 500,000 individual evaluations, yields several key findings: (1) FP8 weight and activation quantization (W8A8-FP) is lossless across all model scales, (2) INT8 weight and activation quantization (W8A8-INT), when properly tuned, incurs surprisingly low 1-3% accuracy degradation, and (3) INT4 weight-only quantization (W4A16-INT) is competitive with 8-bit integer weight and activation quantization. We find that W4A16 offers the best cost-efficiency for synchronous deployments, while W8A8 formats excel in asynchronous "continuous batching" deployment on high-end GPUs.

Introduction

In the world of Large Language Models (LLMs), there is a persistent fear that compressing a model (quantization) inevitably leads to a "death" of intelligence. Many developers cling to BF16 (16-bit brain float) precision, fearing that anything less will break their model’s reasoning. This study challenges this dogma with a massive empirical evaluation of the Llama-3.1 family, providing a data-driven guide to balancing speed, cost, and accuracy.

Serving massive models like Llama-3.1-405B is prohibitively expensive. Quantization—reducing the number of bits used to represent weights and activations—is the primary way to make these models run faster and on cheaper hardware. However, the field has lacked systematic guidelines, often reporting massive accuracy drops for 8-bit integer quantization due to poor tuning. This research bridges the gap between academic multiple-choice benchmarks and real-world generative performance.

Methodology

Researchers evaluated three primary formats using the vLLM framework across NVIDIA Ampere (A100/A6000) and Hopper (H100) architectures:

  • W8A8-FP (FP8): 8-bit floating point for both weights and activations.
  • W8A8-INT (INT8): 8-bit integers for both, utilizing SmoothQuant and GPTQ to handle outlier features.
  • W4A16-INT (INT4): 4-bit integer weights with 16-bit activations.

The study moved beyond standard "round-to-nearest" approaches, demonstrating that a simple variant of the GPTQ algorithm with MSE-optimal clipping often outperforms more complex, newer methods like AWQ.

Accuracy Recovery and Benchmarking

Across the Llama-3.1 family (8B to 405B), quantized models recovered approximately 99% of the BF16 baseline performance. Notably, FP8 is effectively lossless across all scales, suggesting there is almost no reason to serve in BF16 if FP8 hardware support is available. Even for the massive 405B model, W4A16 allows serving on just 4x A100 or H100 GPUs while maintaining high accuracy, representing a 5–7x reduction in serving costs.

Performance recovery across Llama-3.1 models on academic and real-world benchmarks.

As shown in the benchmarking data, the recovery percentages for W8A8-FP and W8A8-INT are remarkably high, often exceeding 97% or even 100% of the baseline average score. This indicates that with proper calibration, the "INT8 gap" is largely a tuning issue rather than a fundamental limitation of the format.

Generative Consistency

Beyond standard benchmarks, the study examined how closely quantized models mimic the text generation of their BF16 counterparts. Larger models (70B, 405B) proved much more robust to quantization than smaller models. Their outputs remain semantically almost identical to the original, whereas the 8B model shows slightly more structural variability while still preserving core meaning.

Semantic similarity between quantized models and BF16 baselines across different metrics.

Similarity metrics like BERTScore and STS (Semantic Textual Similarity) consistently show scores above 0.90 for the 405B and 70B models across all quantization formats, confirming that the "intelligence" of the model is preserved even when bit-depth is reduced.

Deployment Roadmap

The study provides clear guidelines for choosing a quantization format based on the deployment environment:

  • Synchronous (Latency-focused): For single-stream generation (e.g., code completion), W4A16 is the optimal choice as it minimizes memory movement bottlenecks.
  • Asynchronous (Throughput-focused): For multi-user continuous batching, W8A8 formats are superior because they accelerate the compute-bound "prefill" stage on modern GPUs.

Conclusion

Quantization does not have to mean a sacrifice in model intelligence. By correctly tuning the quantization process and selecting the appropriate format for the hardware and task, developers can significantly reduce inference costs while maintaining over 99% of a model's original performance. Future work will expand this scope to include KV-cache quantization and multi-lingual task evaluations.

Summary updated

Abstract

Despite the popularity of large language model (LLM) quantization for inference acceleration, significant uncertainty remains regarding the accuracy-performance trade-offs associated with various quantization formats. We present a comprehensive empirical study of quantized accuracy, evaluating popular quantization formats (FP8, INT8, INT4) across academic benchmarks and real-world tasks, on the entire Llama-3.1 model family. Additionally, our study examines the difference in text generated by quantized models versus their uncompressed counterparts. Beyond benchmarks, we also present a couple of quantization improvements which allowed us to obtain state-of-the-art accuracy recovery results. Our investigation, encompassing over 500,000 individual evaluations, yields several key findings: (1) FP8 weight and activation quantization (W8A8-FP) is lossless across all model scales, (2) INT8 weight and activation quantization (W8A8-INT), when properly tuned, incurs surprisingly low 1-3% accuracy degradation, and (3) INT4 weight-only quantization (W4A16-INT) is competitive with 8-bit integer weight and activation quantization. To address the question of the "best" format for a given deployment environment, we conduct inference performance analysis using the popular open-source vLLM framework on various GPU architectures. We find that W4A16 offers the best cost-efficiency for synchronous deployments, and for asynchronous deployment on mid-tier GPUs. At the same time, W8A8 formats excel in asynchronous "continuous batching" deployment of mid- and large-size models on high-end GPUs. Our results provide a set of practical guidelines for deploying quantized LLMs across scales and performance requirements.
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