DAQ: Distribution-Aware Quantization for Deep Image Super-Resolution Networks

Cheeun Hong, Heewon Kim, Junghun Oh, Kyoung Mu LeearXiv 2020

Abstract

Quantizing deep convolutional neural networks for image super-resolution substantially reduces their computational costs. However, existing works either suffer from a severe performance drop in ultra-low precision of 4 or lower bit-widths, or require a heavy fine-tuning process to recover the performance. To our knowledge, this vulnerability to low precisions relies on two statistical observations of feature map values. First, distribution of feature map values varies significantly per channel and per input image. Second, feature maps have outliers that can dominate the quantization error. Based on these observations, we propose a novel distribution-aware quantization scheme (DAQ) which facilitates accurate training-free quantization in ultra-low precision. A simple function of DAQ determines dynamic range of feature maps and weights with low computational burden. Furthermore, our method enables mixed-precision quantization by calculating the relative sensitivity of each channel, without any training process involved. Nonetheless, quantization-aware training is also applicable for auxiliary performance gain. Our new method outperforms recent training-free and even training-based quantization methods to the state-of-the-art image super-resolution networks in ultra-low precision.

Introduction

Deep learning has revolutionized Single Image Super-Resolution (SR), but state-of-the-art models like EDSR or RDN are resource-intensive, requiring significant memory and high-performance GPUs. This makes deployment on mobile or edge devices challenging. Quantization—reducing precision from 32-bit floats to low-bit integers—is a standard compression technique. However, SR is uniquely sensitive to quantization compared to tasks like image classification. While classifiers only need to identify a category, SR models must maintain pixel-level accuracy. Standard methods often treat all channels uniformly, leading to significant quantization errors, blurry images, and artifacts in SR tasks.

The DAQ Methodology

The proposed Distribution-Aware Quantization (DAQ) framework addresses these challenges through three technical pillars:

  1. Channel-Wise Adaptive Transformation: Recognizing that SR channels exhibit wildly different means and variances, DAQ standardizes each channel individually using its specific mean ($\mu_c$) and standard deviation ($\sigma_c$) before quantization. This ensures the quantization levels align with the actual data range.
  2. Adaptive Discretizer: Instead of a fixed range, DAQ employs an optimal step size based on a Gaussian distribution assumption. It includes a shifting parameter ($\alpha$) to handle post-ReLU distributions, ensuring the minimum value maps correctly to zero.
  3. Efficient De-transformer (QQ): To mitigate the computational cost of per-channel scaling, the authors introduce Quantized Quantization (QQ). By quantizing channel statistics ($\mu$ and $\sigma$) into 4-bit integers, the majority of operations remain in low-bit precision, with conversion to FP32 occurring only at the end of a layer.

Key Insights: Why SR is Different

A fundamental insight of this work is that SR networks behave differently than classification networks. In classification models like ResNet-18, channel distributions are relatively uniform. In contrast, SR networks like EDSR exhibit highly diverse distributions that vary significantly based on the input image.

Comparison of channel distributions between ResNet-18 and EDSR, highlighting the high diversity in SR networks.

By using distribution-aware scaling, DAQ effectively "clips" outliers that would otherwise stretch the quantization range too thin, preserving precision for the majority of the data.

Experimental Results

DAQ was evaluated on standard benchmarks (Set5, Set14, B100, Urban100) using architectures like EDSR, RDN, and SRResNet.

Performance comparison of DAQ against state-of-the-art methods in terms of PSNR vs. BOPs and Memory.
  • Superior Accuracy: On the Urban100 dataset, RDN-DAQ (2-bit) achieved a PSNR 1.0 dB higher than previous state-of-the-art methods (e.g., RDN-PAMS) while utilizing fewer resources.
  • Efficiency: Compared to full-precision (32-bit) models, DAQ reduces Bit Operations (BOPs) by approximately 37x to 80x and shrinks memory requirements by 5x to 10x.
  • Training-Free Robustness: Even without fine-tuning, DAQ outperformed other methods by over 1.4 dB, demonstrating its effectiveness as a post-training quantization tool.

Conclusion and Future Work

DAQ enables ultra-low precision for SR networks without the typical quality degradation. While the current Gaussian assumption and 2-bit performance are strong, future work may explore more complex distributions and hardware-specific implementations on ASICs or FPGAs. Additionally, bridging the performance gap for 1-bit (binary) super-resolution remains an open challenge.

Summary updated

BibTeX
@misc{hong2020daq,
  author = {Cheeun Hong and Heewon Kim and Junghun Oh and Kyoung Mu Lee},
  title = {{DAQ: Distribution-Aware Quantization for Deep Image Super-Resolution Networks}},
  year = {2020},
  eprint = {2012.11230},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.11230},
}
Figure