MKQ-BERT: Quantized BERT with 4-bits Weights and Activations
Not on the map. Why?
Abstract (arXiv)
Recently, pre-trained Transformer based language models, such as BERT, have shown great superiority over the traditional methods in many Natural Language Processing (NLP) tasks. However, the computational cost for deploying these models is prohibitive on resource-restricted devices. One method to alleviate this computation overhead is to quantize the original model into fewer bits representation, and previous work has proved that we can at most quantize both weights and activations of BERT into 8-bits, without degrading its performance. In this work, we propose MKQ-BERT, which further improves the compression level and uses 4-bits for quantization. In MKQ-BERT, we propose a novel way for computing the gradient of the quantization scale, combined with an advanced distillation strategy. On the one hand, we prove that MKQ-BERT outperforms the existing BERT quantization methods for achieving a higher accuracy under the same compression level. On the other hand, we are the first work that successfully deploys the 4-bits BERT and achieves an end-to-end speedup for inference. Our results suggest that we could achieve 5.3x of bits reduction without degrading the model accuracy, and the inference speed of one int4 layer is 15x faster than a float32 layer in Transformer based model.
Key facts. Cited by 10 papers in the map (data through 14 Oct 2026). Builds on 34 of its 48 references that are in the map. First posted on arXiv 25 Mar 2022.
Builds on
34 of 48 references.
References · 34
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2015Distilling the Knowledge in a Neural Networkcited by 10,324
- 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
- 2019Searching for MobileNetV3cited by 1,994
- 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
- 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
- 2018Neural Network Acceptability Judgmentscited by 958
- 2018MnasNet: Platform-Aware Neural Architecture Search for Mobilecited by 943
- 2016XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networkscited by 849
22 more
- 2018SNIP: Single-shot Network Pruning based on Connection Sensitivitycited by 812
- 2019Learned Step Size Quantizationcited by 628
- 2018FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Searchcited by 485
- 2019Dreaming to Distill: Data-free Knowledge Transfer via DeepInversioncited by 423
- 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
- 2019Variational Information Distillation for Knowledge Transfercited by 324
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2018Model compression via distillation and quantizationcited by 289
- 2017NISP: Pruning Networks using Neuron Importance Score Propagationcited by 228
- 2017Data-Driven Sparse Structure Selection for Deep Neural Networkscited by 181
- 2020TernaryBERT: Distillation-aware Ultra-low Bit BERTcited by 148
- 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
- 2020Degree-Quant: Quantization-Aware Training for Graph Neural Networkscited by 96
- 2019And the Bit Goes Down: Revisiting the Quantization of Neural Networkscited by 78
- 2020AttentiveNAS: Improving Neural Architecture Search via Attentive Samplingcited by 66
- 2020Lookahead: A Far-Sighted Alternative of Magnitude-based Pruningcited by 61
- 2015Neural Networks with Few Multiplicationscited by 48
- 2021Hessian-Aware Pruning and Optimal Neural Implantcited by 45
- 2016Hardware-oriented Approximation of Convolutional Neural Networkscited by 20
- 2019Structured Pruning of a BERT-based Question Answering Modelcited by 16
- 2021KDLSQ-BERT: A Quantized Bert Combining Knowledge Distillation with Learned Step Size Quantizationcited by 15
- 2020WrapNet: Neural Net Inference with Ultra-Low-Resolution Arithmeticcited by 12
Built on by
Citing papers per year: 2023: 2; 2024: 6; 2025: 2.
10 papers.
- 2023Training Transformers with 4-bit Integerscited by 60
- 2024A Survey on Transformer Compressioncited by 46
- 2024Jetfire: Efficient and Accurate Transformer Pretraining with INT8 Data Flow and Per-Block Quantizationcited by 31
- 2023Understanding INT4 Quantization for Transformer Models: Latency Speedup, Composability, and Failure Casescited by 23
- 2025GSQ-Tuning: Group-Shared Exponents Integer in Fully Quantized Training for LLMs On-Device Fine-tuningcited by 21
- 2024A Comprehensive Survey of Compression Algorithms for Language Modelscited by 15
- 2025Pushing the Limits of Low-Bit Optimizers: A Focus on EMA Dynamicscited by 5
- 20241-Bit FQT: Pushing the Limit of Fully Quantized Training to 1-bitcited by 3
- 2024C3: Confidence Calibration Model Cascade for Inference-Efficient Cross-Lingual Natural Language Understandingcited by 0
- 2024Exploiting Student Parallelism for Efficient GPU Inference of BERT-like Models in Online Servicescited by 0
- 2025Pushing the Limits of Low-Bit Optimizers: A Focus on EMA Dynamics1 May 2025
- 2025GSQ-Tuning: Group-Shared Exponents Integer in Fully Quantized Training for LLMs On-Device Fine-tuning18 Feb 2025
- 20241-Bit FQT: Pushing the Limit of Fully Quantized Training to 1-bit26 Aug 2024
- 2024Exploiting Student Parallelism for Efficient GPU Inference of BERT-like Models in Online Services22 Aug 2024
- 2024Jetfire: Efficient and Accurate Transformer Pretraining with INT8 Data Flow and Per-Block Quantization19 Mar 2024
- 2024C3: Confidence Calibration Model Cascade for Inference-Efficient Cross-Lingual Natural Language Understanding25 Feb 2024
- 2024A Survey on Transformer Compression5 Feb 2024
- 2024A Comprehensive Survey of Compression Algorithms for Language Models27 Jan 2024
- 2023Training Transformers with 4-bit Integers21 Jun 2023
- 2023Understanding INT4 Quantization for Transformer Models: Latency Speedup, Composability, and Failure Cases27 Jan 2023
Similar, not cited
Close in wording, no citation either way
- 2021I-BERT: Integer-only BERT Quantization
- 2022Empirical Evaluation of Post-Training Quantization Methods for Language Tasks
- 2021Automatic Mixed-Precision Quantization Search of BERT
- 2022The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Models
- 2022BiBERT: Accurate Fully Binarized BERT
- 2023Improving Knowledge Distillation for BERT Models: Loss Functions, Mapping Methods, and Weight Tuning
- 2023FP8-BERT: Post-Training Quantization for Transformer
- 2023PreQuant: A Task-agnostic Quantization Approach for Pre-trained Language Models