mlsanityData to 7 Oct 2026

Quantization Variation: A New Perspective on Training Transformers with Low-Bit Precision

arXiv 2307.00331 ↗First posted 1 Jul 2023cs.LG cs.AI cs.CVcited by 17

Not on the map. Why?

Abstract (arXiv)

Despite the outstanding performance of transformers in both language and vision tasks, the expanding computation and model size have increased the demand for efficient deployment. To address the heavy computation and parameter drawbacks, quantization is frequently studied in the community as a representative model compression technique and has seen extensive use on ConvNets. However, due to the unique properties of transformers, the low-bit quantization applications are still limited and underexplored. In this paper, we identify the difficulty of transformer low-bit quantization-aware training on its unique variation behaviors, which significantly differ from ConvNets. Based on comprehensive quantitative analysis, we observe variation in three hierarchies: various module quantization sensitivities, outliers in static weight and activation distribution, and oscillation in dynamic parameter fluctuations. These variations of transformers bring instability to the quantization-aware training (QAT) and negatively influence the performance. We explore the best practices to alleviate the variation's influence during low-bit transformer QAT and propose a variation-aware quantization scheme for both vision and language transformers. We extensively verify and show our scheme can alleviate the variation and improve the performance of transformers across various models and tasks. Our solution substantially improves the 2-bit Swin-T and binary BERT-base, achieving a 3.35% and 1.4% accuracy improvement over previous state-of-the-art methods on ImageNet-1K and GLUE. Codes and models are available at https://github.com/HuangOwen/Quantization-Variation.

Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 83 of its 103 references that are in the map. First posted on arXiv 1 Jul 2023.

Builds on

83 of 103 references.

References · 83

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020Language Models are Few-Shot Learnerscited by 32,199
  5. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  6. 2023GPT-4 Technical Reportcited by 18,132
  7. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  8. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  9. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  10. 2023Segment Anythingcited by 8,158
  11. 2016Layer Normalizationcited by 5,579
  12. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,304
38 more
  1. 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
  2. 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
  3. 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
  4. 2017MobileNets: Efficient Convolutional Neural Networks for Mobile Vision Applicationscited by 3,827
  5. 2019XLNet: Generalized Autoregressive Pretraining for Language Understandingcited by 2,801
  6. 2021BEiT: BERT Pre-Training of Image Transformerscited by 2,360
  7. 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
  8. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  9. 2021ViViT: A Video Vision Transformercited by 1,610
  10. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
  11. 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
  12. 2019Self-training with Noisy Student improves ImageNet classificationcited by 1,304
  13. 2017Visualizing the Loss Landscape of Neural Netscited by 1,126
  14. 2021CvT: Introducing Convolutions to Vision Transformerscited by 946
  15. 2019Relational Knowledge Distillationcited by 873
  16. 2018Efficient Neural Architecture Search via Parameter Sharingcited by 831
  17. 2020Quantifying Attention Flow in Transformerscited by 759
  18. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 690
  19. 2017Learning Efficient Convolutional Networks through Network Slimmingcited by 673
  20. 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
  21. 2020Up or Down? Adaptive Rounding for Post-Training Quantizationcited by 600
  22. 2018Rethinking the Value of Network Pruningcited by 595
  23. 2019Improved Knowledge Distillation via Teacher Assistantcited by 567
  24. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
  25. 2022ZeroQuant: Efficient and Affordable Post-Training Quantization for Large-Scale Transformerscited by 517
  26. 2019Similarity-Preserving Knowledge Distillationcited by 507
  27. 2021A White Paper on Neural Network Quantizationcited by 453
  28. 2019Single Path One-Shot Neural Architecture Search with Uniform Samplingcited by 411
  29. 2019On the Efficacy of Knowledge Distillationcited by 377
  30. 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
  31. 2018Model compression via distillation and quantizationcited by 287
  32. 2021Post-Training Quantization for Vision Transformercited by 274
  33. 2020Causal Intervention for Weakly-Supervised Semantic Segmentationcited by 229
  34. 2019MetaPruning: Meta Learning for Automatic Neural Network Channel Pruningcited by 226
  35. 2020LSQ+: Improving low-bit quantization through learnable offsets and better initializationcited by 180
  36. 2022Outlier Suppression: Pushing the Limit of Low-bit Transformer Language Modelscited by 176
  37. 2020BinaryBERT: Pushing the Limit of BERT Quantizationcited by 175
  38. 2023Quantizable Transformers: Removing Outliers by Helping Attention Heads Do Nothingcited by 147

50 most cited of 83 All 83 (JSON)

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 1; 2024: 6; 2025: 7; 2026: 3.

17 papers.

Sort:

By area: