mlsanityData to 7 Oct 2026

Understanding INT4 Quantization for Transformer Models: Latency Speedup, Composability, and Failure Cases

arXiv 2301.12017 ↗First posted 27 Jan 2023cs.CL cs.LGcited by 23

Not on the map. Why?

Abstract (arXiv)

Improving the deployment efficiency of transformer-based language models has been challenging given their high computation and memory cost. While INT8 quantization has recently been shown to be effective in reducing both the memory cost and latency while preserving model accuracy, it remains unclear whether we can leverage INT4 (which doubles peak hardware throughput) to achieve further latency improvement. In this study, we explore the feasibility of employing INT4 weight and activation (W4A4) quantization for language models. Our findings indicate that W4A4 quantization introduces no to negligible accuracy degradation for encoder-only and encoder-decoder models, but causes a significant accuracy drop for decoder-only models. To materialize the performance gain using W4A4, we develop a highly optimized end-to-end W4A4 encoder inference pipeline supporting different quantization strategies. Our INT4 pipeline is 8.5× faster for latency-oriented scenarios and up to 3× for throughput-oriented scenarios compared to the inference of FP16, and improves the SOTA BERT INT8 performance from FasterTransformer by up to 1.7×. We provide insights into the failure cases when applying W4A4 to decoder-only models, and further explore the compatibility of INT4 quantization with other compression methods, like pruning and layer reduction.

Key facts. Cited by 23 papers in the map (data through 7 Oct 2026). Builds on 57 of its 73 references that are in the map. First posted on arXiv 27 Jan 2023.

Builds on

57 of 73 references.

References · 57

  1. 2017Attention Is All You Needcited by 59,932
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  5. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  6. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  7. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  8. 2016Pointer Sentinel Mixture Modelscited by 2,992
  9. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
  10. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  11. 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
  12. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
38 more
  1. 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
  2. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  3. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
  4. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  5. 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
  6. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
  7. 2017Mixed Precision Trainingcited by 1,135
  8. 2016Pruning Filters for Efficient ConvNetscited by 1,129
  9. 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
  10. 2015Teaching Machines to Read and Comprehendcited by 1,039
  11. 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
  12. 2018Neural Network Acceptability Judgmentscited by 952
  13. 2020On Layer Normalization in the Transformer Architecturecited by 906
  14. 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
  15. 2019Are Sixteen Heads Really Better than One?cited by 803
  16. 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
  17. 2018Universal Transformerscited by 613
  18. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  19. 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
  20. 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
  21. 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
  22. 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
  23. 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
  24. 2019HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precisioncited by 387
  25. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
  26. 2022Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruningcited by 317
  27. 2018Model compression via distillation and quantizationcited by 287
  28. 2021Post-Training Quantization for Vision Transformercited by 274
  29. 2021I-BERT: Integer-only BERT Quantizationcited by 250
  30. 2022The case for 4-bit precision: k-bit Inference Scaling Lawscited by 247
  31. 2021Accelerating Sparse Deep Neural Networkscited by 213
  32. 2016Ternary Weight Networkscited by 195
  33. 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
  34. 2021Block Pruning For Faster Transformerscited by 176
  35. 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 175
  36. 2020LadaBERT: Lightweight Adaptation of BERT through Hybrid Model Compressioncited by 45
  37. 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 42
  38. 2017Exploring the Regularity of Sparse Structure in Convolutional Neural Networkscited by 37

50 most cited of 57 All 57 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 12; 2025: 6; 2026: 3.

23 papers.

Sort:

By area:

  1. 2023Efficient Large Language Models: A Surveycited by 183
  2. 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 54
  3. 2025Optimizing Large Language Model Training Using FP4 Quantizationcited by 53
  4. 2024Mitigating the Impact of Outlier Channels for Language Model Quantization with Activation Regularizationcited by 23
  5. 2023Token-Scaled Logit Distillation for Ternary Weight Generative Language Modelscited by 20
  6. 2024Vocabulary-Defined Semantics: Latent Space Clustering for Improving In-Context Learningcited by 7
  7. 2024A2Q+: Improving Accumulator-Aware Weight Quantizationcited by 5
  8. 2024A Semantic-Aware Layer-Freezing Approach to Computation-Efficient Fine-Tuning of Language Modelscited by 5
  9. 2024OutlierTune: Efficient Channel-Wise Quantization for Large Language Modelscited by 4
  10. 20254bit-Quantization in Vector-Embedding for RAGcited by 4
  11. 2024Dynamically Allocated Interval-Based Generative Linguistic Steganography with Roulette Wheelcited by 3
  12. 2024AERO: Entropy-Guided Framework for Private LLM Inferencecited by 3
11 more
  1. 2025MergeQuant: Accurate 4-bit Static Quantization of Large Language Models by Channel-wise Calibrationcited by 3
  2. 2024How to Parameterize Asymmetric Quantization Ranges for Quantization-Aware Trainingcited by 2
  3. 2024Low-Rank Correction for Quantized LLMscited by 2
  4. 2025HOT: Hadamard-based Optimized Trainingcited by 2
  5. 2025LegalEval-Q: A New Benchmark for The Quality Evaluation of LLM-Generated Legal Textcited by 2
  6. 2026Prune-then-Quantize or Quantize-then-Prune? Understanding the Impact of Compression Order in Joint Model Compressioncited by 2
  7. 2024BATON: Enhancing Batch-wise Inference Efficiency for Large Language Models via Dynamic Re-batchingcited by 1
  8. 2025iServe: An Intent-based Serving System for LLMscited by 1
  9. 2024Not All Attention is Needed: Parameter and Computation Efficient Transfer Learning for Multi-modal Large Language Modelscited by 0
  10. 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platformscited by 0
  11. 2026Building Socio-Affective Artificial Intelligence for Interactive Multi-Agent Simulationscited by 0