Reproduce “I-BERT: Integer-only BERT Quantization” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Sehoon Kim, Amir Gholami, Zhewei Yao, Michael W. Mahoney, Kurt Keutzer
I-BERT introduces an end-to-end integer-only quantization framework for Transformer models, successfully approximating non-linear operations like GELU, Softmax, and Layer Normalization. This approach achieves 3-4x inference speedups on GPUs while maintaining or slightly improving accuracy on the GLUE benchmark compared to full-precision baselines.
Key insights
- End-to-end integer-only inference for complex Transformer models is achievable without accuracy loss, provided robust integer approximations for non-linear operations like GELU, Softmax, and Layer Normalization are developed.
- Polynomial approximations, combined with numerical stability techniques and iterative integer algorithms, can effectively translate historically floating-point-dependent non-linearities into efficient integer arithmetic.
- Aggressive quantization, when carefully implemented with quantization-aware fine-tuning, can sometimes lead to slight accuracy improvements over full-precision models, alongside significant speedups.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.