Reproduce “RepQ-ViT: Scale Reparameterization for Post-Training Quantization of Vision Transformers” 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, Junrui Xiao, Lianwei Yang, Qingyi Gu
RepQ-ViT introduces a quantization-inference decoupling paradigm for Vision Transformers (ViTs) to improve post-training quantization (PTQ) performance, particularly at low bit-widths. The method reparameterizes complex quantization scales (e.g., channel-wise for LayerNorm, Log square root of 2 for Softmax) into hardware-friendly formats, enabling ViTs to achieve usable accuracy at 4-bit precision, with over 25% absolute accuracy gains on ImageNet compared to prior PTQ methods, without requiring hyperparameters or expensive reconstruction.
Key insights
- Traditional post-training quantization (PTQ) for Vision Transformers (ViTs) is limited by the need for quantizers to be simultaneously accurate and hardware-friendly, leading to sub-optimal choices, especially at low bit-widths.
- Decoupling the quantization process from the inference process allows for the initial use of more complex, accurate quantizers during calibration, which are then reparameterized into hardware-friendly formats for efficient inference.
- Specific components in ViTs, such as post-LayerNorm activations (severe inter-channel variation) and post-Softmax activations (power-law distribution), exhibit 'extreme distributions' that require tailored quantization strategies beyond simple uniform schemes.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.