Understanding INT4 Quantization for Transformer Models: Latency Speedup, Composability, and Failure Cases
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
- 2017Attention Is All You Needcited by 59,932
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,772
- 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
38 more
- 2015Learning both Weights and Connections for Efficient Neural Networkscited by 1,998
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2018Don't Give Me the Details, Just the Summary! Topic-Aware Convolutional Neural Networks for Extreme Summarizationcited by 1,308
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,153
- 2017Mixed Precision Trainingcited by 1,135
- 2016Pruning Filters for Efficient ConvNetscited by 1,129
- 2019BERT Rediscovers the Classical NLP Pipelinecited by 1,046
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 998
- 2018Neural Network Acceptability Judgmentscited by 952
- 2020On Layer Normalization in the Transformer Architecturecited by 906
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2019Are Sixteen Heads Really Better than One?cited by 803
- 2021A Survey of Quantization Methods for Efficient Neural Network Inferencecited by 798
- 2018Universal Transformerscited by 613
- 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
- 2019Patient Knowledge Distillation for BERT Model Compressioncited by 502
- 2020MobileBERT: a Compact Task-Agnostic BERT for Resource-Limited Devicescited by 476
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 2020Movement Pruning: Adaptive Sparsity by Fine-Tuningcited by 398
- 2019HAWQ: Hessian AWare Quantization of Neural Networks with Mixed-Precisioncited by 387
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 355
- 2022Optimal Brain Compression: A Framework for Accurate Post-Training Quantization and Pruningcited by 317
- 2018Model compression via distillation and quantizationcited by 287
- 2021Post-Training Quantization for Vision Transformercited by 274
- 2021I-BERT: Integer-only BERT Quantizationcited by 250
- 2022The case for 4-bit precision: k-bit Inference Scaling Lawscited by 247
- 2021Accelerating Sparse Deep Neural Networkscited by 213
- 2016Ternary Weight Networkscited by 195
- 2020Compressing BERT: Studying the Effects of Weight Pruning on Transfer Learningcited by 184
- 2021Block Pruning For Faster Transformerscited by 176
- 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 175
- 2020LadaBERT: Lightweight Adaptation of BERT through Hybrid Model Compressioncited by 45
- 2020Fixed Encoder Self-Attention Patterns in Transformer-Based Machine Translationcited by 42
- 2017Exploring the Regularity of Sparse Structure in Convolutional Neural Networkscited by 37
50 most cited of 57 All 57 (JSON)
Built on by
Citing papers per year: 2023: 2; 2024: 12; 2025: 6; 2026: 3.
23 papers.
Sort:
By area:
- 2023Efficient Large Language Models: A Surveycited by 183
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 54
- 2025Optimizing Large Language Model Training Using FP4 Quantizationcited by 53
- 2024Mitigating the Impact of Outlier Channels for Language Model Quantization with Activation Regularizationcited by 23
- 2023Token-Scaled Logit Distillation for Ternary Weight Generative Language Modelscited by 20
- 2024Vocabulary-Defined Semantics: Latent Space Clustering for Improving In-Context Learningcited by 7
- 2024A2Q+: Improving Accumulator-Aware Weight Quantizationcited by 5
- 2024A Semantic-Aware Layer-Freezing Approach to Computation-Efficient Fine-Tuning of Language Modelscited by 5
- 2024OutlierTune: Efficient Channel-Wise Quantization for Large Language Modelscited by 4
- 20254bit-Quantization in Vector-Embedding for RAGcited by 4
- 2024Dynamically Allocated Interval-Based Generative Linguistic Steganography with Roulette Wheelcited by 3
- 2024AERO: Entropy-Guided Framework for Private LLM Inferencecited by 3
11 more
- 2025MergeQuant: Accurate 4-bit Static Quantization of Large Language Models by Channel-wise Calibrationcited by 3
- 2024How to Parameterize Asymmetric Quantization Ranges for Quantization-Aware Trainingcited by 2
- 2024Low-Rank Correction for Quantized LLMscited by 2
- 2025HOT: Hadamard-based Optimized Trainingcited by 2
- 2025LegalEval-Q: A New Benchmark for The Quality Evaluation of LLM-Generated Legal Textcited by 2
- 2026Prune-then-Quantize or Quantize-then-Prune? Understanding the Impact of Compression Order in Joint Model Compressioncited by 2
- 2024BATON: Enhancing Batch-wise Inference Efficiency for Large Language Models via Dynamic Re-batchingcited by 1
- 2025iServe: An Intent-based Serving System for LLMscited by 1
- 2024Not All Attention is Needed: Parameter and Computation Efficient Transfer Learning for Multi-modal Large Language Modelscited by 0
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platformscited by 0
- 2026Building Socio-Affective Artificial Intelligence for Interactive Multi-Agent Simulationscited by 0
- 2026Building Socio-Affective Artificial Intelligence for Interactive Multi-Agent Simulations22 Sep 2026
- 2026Prune-then-Quantize or Quantize-then-Prune? Understanding the Impact of Compression Order in Joint Model Compression19 Mar 2026
- 2026LLM-CoOpt: A Co-Design and Optimization Framework for Efficient LLM Inference on Heterogeneous Platforms10 Feb 2026
- 2025LegalEval-Q: A New Benchmark for The Quality Evaluation of LLM-Generated Legal Text30 May 2025
- 2025HOT: Hadamard-based Optimized Training27 Mar 2025
- 2025MergeQuant: Accurate 4-bit Static Quantization of Large Language Models by Channel-wise Calibration7 Mar 2025
- 2025Optimizing Large Language Model Training Using FP4 Quantization28 Jan 2025
- 20254bit-Quantization in Vector-Embedding for RAG17 Jan 2025
- 2025iServe: An Intent-based Serving System for LLMs8 Jan 2025
- 2024Low-Rank Correction for Quantized LLMs10 Dec 2024
- 2024BATON: Enhancing Batch-wise Inference Efficiency for Large Language Models via Dynamic Re-batching24 Oct 2024
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMs17 Oct 2024
11 more
- 2024AERO: Entropy-Guided Framework for Private LLM Inference16 Oct 2024
- 2024OutlierTune: Efficient Channel-Wise Quantization for Large Language Models27 Jun 2024
- 2024A Semantic-Aware Layer-Freezing Approach to Computation-Efficient Fine-Tuning of Language Models17 Jun 2024
- 2024How to Parameterize Asymmetric Quantization Ranges for Quantization-Aware Training25 Apr 2024
- 2024Mitigating the Impact of Outlier Channels for Language Model Quantization with Activation Regularization4 Apr 2024
- 2024Not All Attention is Needed: Parameter and Computation Efficient Transfer Learning for Multi-modal Large Language Models22 Mar 2024
- 2024Vocabulary-Defined Semantics: Latent Space Clustering for Improving In-Context Learning29 Jan 2024
- 2024Dynamically Allocated Interval-Based Generative Linguistic Steganography with Roulette Wheel28 Jan 2024
- 2024A2Q+: Improving Accumulator-Aware Weight Quantization19 Jan 2024
- 2023Efficient Large Language Models: A Survey6 Dec 2023
- 2023Token-Scaled Logit Distillation for Ternary Weight Generative Language Models13 Aug 2023
- 20254bit-Quantization in Vector-Embedding for RAGcited by 4
- 20254bit-Quantization in Vector-Embedding for RAG17 Jan 2025
- 2023Efficient Large Language Models: A Surveycited by 183
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMscited by 54
- 2025Optimizing Large Language Model Training Using FP4 Quantizationcited by 53
- 2024Mitigating the Impact of Outlier Channels for Language Model Quantization with Activation Regularizationcited by 23
- 2023Token-Scaled Logit Distillation for Ternary Weight Generative Language Modelscited by 20
- 2024Vocabulary-Defined Semantics: Latent Space Clustering for Improving In-Context Learningcited by 7
- 2024A2Q+: Improving Accumulator-Aware Weight Quantizationcited by 5
- 2024A Semantic-Aware Layer-Freezing Approach to Computation-Efficient Fine-Tuning of Language Modelscited by 5
- 2024OutlierTune: Efficient Channel-Wise Quantization for Large Language Modelscited by 4
- 2024Dynamically Allocated Interval-Based Generative Linguistic Steganography with Roulette Wheelcited by 3
- 2024AERO: Entropy-Guided Framework for Private LLM Inferencecited by 3
- 2025MergeQuant: Accurate 4-bit Static Quantization of Large Language Models by Channel-wise Calibrationcited by 3
12 most cited of 19 All 19 (JSON)
- 2026Building Socio-Affective Artificial Intelligence for Interactive Multi-Agent Simulations22 Sep 2026
- 2026Prune-then-Quantize or Quantize-then-Prune? Understanding the Impact of Compression Order in Joint Model Compression19 Mar 2026
- 2025LegalEval-Q: A New Benchmark for The Quality Evaluation of LLM-Generated Legal Text30 May 2025
- 2025HOT: Hadamard-based Optimized Training27 Mar 2025
- 2025MergeQuant: Accurate 4-bit Static Quantization of Large Language Models by Channel-wise Calibration7 Mar 2025
- 2025Optimizing Large Language Model Training Using FP4 Quantization28 Jan 2025
- 2024Low-Rank Correction for Quantized LLMs10 Dec 2024
- 2024BATON: Enhancing Batch-wise Inference Efficiency for Large Language Models via Dynamic Re-batching24 Oct 2024
- 2024Active-Dormant Attention Heads: Mechanistically Demystifying Extreme-Token Phenomena in LLMs17 Oct 2024
- 2024AERO: Entropy-Guided Framework for Private LLM Inference16 Oct 2024
- 2024OutlierTune: Efficient Channel-Wise Quantization for Large Language Models27 Jun 2024
- 2024A Semantic-Aware Layer-Freezing Approach to Computation-Efficient Fine-Tuning of Language Models17 Jun 2024
12 newest of 19 All 19 (JSON)