Gradient-based Automatic Mixed Precision Quantization for Neural Networks On-Chip
<|reference_start|>Gradient-based Automatic Mixed Precision Quantization for Neural Networks On-Chip: Model size and inference speed at deployment time, are major challenges in many deep learning applications. A promising strategy to overcome these challenges is quantization. However, a straightforward uniform quantization to very low precision can result in significant accuracy loss. Mixed-precision quantization, based on the idea that certain parts of the network can accommodate lower precision without compromising performance compared to other parts, offers a potential solution. In this work, we present High Granularity Quantization (HGQ), an innovative quantization-aware training method that could fine-tune the per-weight and per-activation precision by making them optimizable through gradient descent. This approach enables ultra-low latency and low power neural networks on hardware capable of performing arithmetic operations with an arbitrary number of bits, such as FPGAs and ASICs. We demonstrate that HGQ can outperform existing methods by a substantial margin, achieving resource reduction by up to a factor of 20 and latency improvement by a factor of 5 while preserving accuracy.<|reference_end|>
@article{sun2024gradient-based,
    title={Gradient-based Automatic Mixed Precision Quantization for Neural
  Networks On-Chip},
    author={Chang Sun, Thea K. {AA}rrestad, Vladimir Loncar, Jennifer Ngadiuba,
  Maria Spiropulu},
    journal={arXiv preprint arXiv:2405.00645},
    year={2024},
    doi={10.7907/hq8jd-rhg30},
    number={FERMILAB-PUB-24-0213-CMS, CaltechAUTHORS:10.7907/hq8jd-rhg30},
    archivePrefix={arXiv},
    eprint={2405.00645},
    primaryClass={cs.LG physics.ins-det}
}