Reproduce “I-ViT: Integer-only Quantization for Efficient Vision Transformer Inference” 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
Zhikai Li, Qingyi Gu
I-ViT enables integer-only inference for Vision Transformers by keeping linear operations in an integer pipeline and approximating Softmax, GELU, and LayerNorm with integer arithmetic and bit shifts. On ImageNet, its INT8 DeiT-B reaches 81.74% Top-1 accuracy versus 81.85% for FP32; at batch size 8, RTX 2080Ti latency is 7.93 ms versus 32.6 ms. These results do not establish edge-device or energy gains.
Key insights
- End-to-end integer-only inference for Vision Transformers is achievable for the entire computational graph, including complex non-linear operations, without significant accuracy degradation.
- Hardware-friendly integer approximations based on bit-shifting (e.g., Shiftmax, ShiftGELU) are more robust and efficient for ViT's non-linear functions than polynomial approximations or mixed-precision approaches.
- Aligning computational methods with efficient integer arithmetic units in modern hardware (like Tensor Cores) yields substantial inference speedups for large ViT models.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.