FAT: Learning Low-Bitwidth Parametric Representation via Frequency-Aware Transformation

Chaofan Tao, Rui Lin, Quan Chen, Zhaoyang Zhang, Ping Luo +1 more
2/15/2021
cs.CV

Official code: ChaofanTao/FAT_Quantization (55 stars, Jupyter Notebook, MIT, last commit 2021-05-02).

Abstract

Learning convolutional neural networks (CNNs) with low bitwidth is challenging because performance may drop significantly after quantization. Prior arts often discretize the network weights by carefully tuning hyper-parameters of quantization (e.g. non-uniform stepsize and layer-wise bitwidths), which are complicated and sub-optimal because the full-precision and low-precision models have a large discrepancy.

Show full abstract

This work presents a novel quantization pipeline, Frequency-Aware Transformation (FAT), which has several appealing benefits. (1) Rather than designing complicated quantizers like existing works, FAT learns to transform network weights in the frequency domain before quantization, making them more amenable to training in low bitwidth. (2) With FAT, CNNs can be easily trained in low precision using simple standard quantizers without tedious hyper-parameter tuning. Theoretical analysis shows that FAT improves both uniform and non-uniform quantizers. (3) FAT can be easily plugged into many CNN architectures. When training ResNet-18 and MobileNet-V2 in 4 bits, FAT plus a simple rounding operation already achieves 70.5% and 69.2% top-1 accuracy on ImageNet without bells and whistles, outperforming recent state-of-the-art by reducing 54.9X and 45.7X computations against full-precision models. We hope FAT provides a novel perspective for model quantization. Code is available at \url{https://github.com/ChaofanTao/FAT_Quantization}.

View on arXivView PDF

Code Implementations(1)

MIT

Pytorch implementation for FAT: learning low-bitwidth parametric representation via frequency-aware transformation

556Jupyter Notebook, PythonFeb 19, 20215 years agoMIT

Similar Papers

Cite this paper

@article{tao2021fat,
  title  = {FAT: Learning Low-Bitwidth Parametric Representation via Frequency-Aware Transformation},
  author = {Chaofan Tao and Rui Lin and Quan Chen and Zhaoyang Zhang and Ping Luo and Ngai Wong},
  year   = {2021},
  eprint = {2102.07444},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2102.07444}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2102.07444.svg)](https://codeofpaper.com/paper/2102.07444)

Discussion