mlsanityData to 14 Oct 2026

MKQ-BERT: Quantized BERT with 4-bits Weights and Activations

arXiv 2203.13483 ↗First posted 25 Mar 2022cs.LGcited by 10

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2015Distilling the Knowledge in a Neural Networkcited by 10,324
  3. 2019EfficientNet: Rethinking Model Scaling for Convolutional Neural Networkscited by 6,442
  4. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,899
  5. 2019Searching for MobileNetV3cited by 1,994
  6. 2017Quantization and Training of Neural Networks for Efficient Integer-Arithmetic-Only Inferencecited by 1,593
  7. 2016Neural Architecture Search with Reinforcement Learningcited by 1,499
  8. 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,463
  9. 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
  10. 2018Neural Network Acceptability Judgmentscited by 958
  11. 2018MnasNet: Platform-Aware Neural Architecture Search for Mobilecited by 943
  12. 2016XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networkscited by 849
22 more
  1. 2018SNIP: Single-shot Network Pruning based on Connection Sensitivitycited by 812
  2. 2019Learned Step Size Quantizationcited by 628
  3. 2018FBNet: Hardware-Aware Efficient ConvNet Design via Differentiable Neural Architecture Searchcited by 485
  4. 2019Dreaming to Distill: Data-free Knowledge Transfer via DeepInversioncited by 423
  5. 2019Q-BERT: Hessian Based Ultra Low Precision Quantization of BERTcited by 359
  6. 2019Variational Information Distillation for Knowledge Transfercited by 324
  7. 2019Q8BERT: Quantized 8Bit BERTcited by 300
  8. 2018Model compression via distillation and quantizationcited by 289
  9. 2017NISP: Pruning Networks using Neuron Importance Score Propagationcited by 228
  10. 2017Data-Driven Sparse Structure Selection for Deep Neural Networkscited by 181
  11. 2020TernaryBERT: Distillation-aware Ultra-low Bit BERTcited by 148
  12. 2020Training with Quantization Noise for Extreme Model Compressioncited by 145
  13. 2020Degree-Quant: Quantization-Aware Training for Graph Neural Networkscited by 96
  14. 2019And the Bit Goes Down: Revisiting the Quantization of Neural Networkscited by 78
  15. 2020AttentiveNAS: Improving Neural Architecture Search via Attentive Samplingcited by 66
  16. 2020Lookahead: A Far-Sighted Alternative of Magnitude-based Pruningcited by 61
  17. 2015Neural Networks with Few Multiplicationscited by 48
  18. 2021Hessian-Aware Pruning and Optimal Neural Implantcited by 45
  19. 2016Hardware-oriented Approximation of Convolutional Neural Networkscited by 20
  20. 2019Structured Pruning of a BERT-based Question Answering Modelcited by 16
  21. 2021KDLSQ-BERT: A Quantized Bert Combining Knowledge Distillation with Learned Step Size Quantizationcited by 15
  22. 2020WrapNet: Neural Net Inference with Ultra-Low-Resolution Arithmeticcited by 12

Built on by

Cited by year

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

10 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2021I-BERT: Integer-only BERT Quantization
  2. 2022Empirical Evaluation of Post-Training Quantization Methods for Language Tasks
  3. 2021Automatic Mixed-Precision Quantization Search of BERT
  4. 2022The Optimal BERT Surgeon: Scalable and Accurate Second-Order Pruning for Large Language Models
  5. 2022BiBERT: Accurate Fully Binarized BERT
  6. 2023Improving Knowledge Distillation for BERT Models: Loss Functions, Mapping Methods, and Weight Tuning
  7. 2023FP8-BERT: Post-Training Quantization for Transformer
  8. 2023PreQuant: A Task-agnostic Quantization Approach for Pre-trained Language Models