Reproduce “Quantization Variation: A New Perspective on Training Transformers with Low-Bit Precision” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Xijie Huang, Zhiqiang Shen, Pingcheng Dong, Kwang-Ting Cheng
This paper identifies "quantization variation" as a key challenge in quantizing Transformers, characterized by module sensitivities, activation outliers, and weight oscillation. It introduces a variation-aware quantization scheme that achieves state-of-the-art accuracy for 1-bit BERT-base on GLUE (74.9%) and 2-bit Swin-S on ImageNet-1K (78.11%), while reducing training epochs and demonstrating lower hardware costs.
Key insights
- Transformers exhibit unique "quantization variation" challenges, manifested as high sensitivity in specific modules (e.g., Multi-head Self-Attention's value matrices) and varying sensitivities across individual attention heads.
- Transformer models possess significantly more pronounced distribution outliers in weights and activations compared to Convolutional Neural Networks, as quantified by higher Average Standard Deviation of the Absolute Mean (SDAM).
- During low-bit Quantization-Aware Training (QAT), Transformer latent real-value weights frequently undergo "oscillation," repeatedly crossing quantization bin boundaries, which impedes stable convergence.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.