Reproduce “HAWQV3: Dyadic Neural Network 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
Zhewei Yao, Zhen Dong, Zhangcheng Zheng, Amir Gholami, Jiali Yu, Eric Tan, Leyuan Wang, Qijing Huang and 3 more
HAWQ-V3 introduces a framework for truly integer-only, mixed-precision quantization of deep neural networks, eliminating floating-point operations throughout the computational graph and employing a hardware-aware Integer Linear Programming approach for bit-width allocation to achieve significant speedups on target hardware.
Key insights
- "Fake quantization" leads to severe numerical error accumulation (over 95% L2 difference in later layers for INT4 ResNet50) when deployed on integer-only hardware, fundamentally proving its incompatibility with true integer-only inference.
- Hardware-aware optimization is critical for efficient deployment; abstract metrics like BOPS or model size do not always correlate with actual on-hardware latency, necessitating direct hardware measurements for optimal bit allocation.
- A robust Batch Normalization folding strategy, combined with strict dyadic arithmetic for residual connections and all other operations, is essential to achieve high accuracy in truly integer-only, low-precision quantization.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.