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

Chaofan Tao, Rui Lin, Quan Chen, Zhaoyang Zhang, Ping Luo, Ngai WongarXiv 2021

Introduction

Deep learning models are increasingly deployed on edge devices, necessitating efficient compression techniques like quantization. Traditional methods often focus on designing complex, non-uniform quantizers to minimize the accuracy gap between full-precision and low-bitwidth (e.g., 4-bit) models. However, these complex quantizers are frequently difficult to implement on standard hardware.

Comparison between traditional quantization methods and the proposed FAT pipeline.

Frequency-Aware Transformation (FAT) shifts the focus from the quantizer to the weights themselves. Instead of building a better "bucket," FAT reshapes the "water" (the weights) to fit into simple, hardware-friendly buckets. By filtering redundant information in the frequency domain, FAT makes neural network weights "quantization-friendly."

The FAT Pipeline

The core of FAT is a learnable transformation that filters weights in the frequency domain before they reach the quantizer. This process ensures that only the most vital features are preserved for low-bit representation.

The detailed architecture of the Frequency-Aware Transformation (FAT) pipeline.
  1. Frequency Mapping: Weights ($W$) are converted from the spatial domain to the frequency domain ($W_f$) using a Discrete Fourier Transform (DFT).
  2. Learnable Masking: A soft mask ($M$) is learned to identify and suppress redundant high-frequency components that act as noise in low-capacity models.
  3. Inverse Transform: The filtered weights are mapped back to the spatial domain via an Inverse DFT (iDFT), resulting in transformed weights ($W_t$).
  4. Standard Quantization: These weights are then processed by a simple uniform or logarithmic quantizer ($Q(\cdot)$).

Crucially, the transformation is only used during training. For inference, the pre-transformed weights are used directly, ensuring zero additional computational overhead on the target hardware.

Key Insights

FAT leverages several critical observations about neural network weights and the quantization process:

  • Frequency Sparsity: While weights appear random in the spatial domain, their energy is highly concentrated in low frequencies. FAT effectively denoises weights by masking irrelevant high-frequency data that low-bit models lack the capacity to represent.
  • Cross-Neuron Dependencies: By operating in the frequency domain, FAT captures relationships across an entire filter simultaneously, rather than treating weights as isolated scalars.
  • Gradient Enrichment: FAT addresses the "null gradient" problem (where the rounding function's derivative is zero) by providing a more informative discretization gradient through joint frequency consideration during backpropagation.

Experimental Results

The authors evaluated FAT on industry-standard benchmarks including ImageNet (ILSVRC2012) and CIFAR-10 across various architectures like ResNet-18, ResNet-50, and MobileNet-V2.

  • State-of-the-Art Accuracy: On ImageNet, a 4-bit ResNet-18 using FAT achieved 70.5% top-1 accuracy, outperforming the full-precision baseline (69.6%) and previous SOTA methods like APoT (69.9%).
  • Hardware Efficiency: FAT-enabled models achieved a 54.9× reduction in bit-operations (BOPs) for ResNet-18. On an ARM-based Jetson AGX Xavier board, the resulting uniform quantizer was over 2× faster than complex alternatives like LQ-Net (398ms vs 929ms).
  • Robustness at Low Bitwidths: Even at 3-bit precision, FAT maintained high performance (69.0% on ImageNet for ResNet-18), where other methods typically suffer significant degradation.

Conclusion

FAT demonstrates that making weights "quantization-friendly" through frequency-domain filtering is a powerful alternative to designing complex quantizers. By suppressing noise and retaining vital features, FAT enables simple, hardware-efficient quantizers to achieve superior performance in low-bitwidth settings, facilitating the deployment of high-performance models on resource-constrained edge devices.

Summary updated

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