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

Cheeun Hong, Heewon Kim, Sungyong Baik, Junghun Oh, Kyoung Mu LeeWACV 2022

Abstract

Since the resurgence of deep neural networks (DNNs), image super-resolution (SR) has recently seen a huge progress in improving the quality of low resolution images, however at the great cost of computations and resources. Recently, there has been several efforts to make DNNs more efficient via quantization. However, SR demands pixel-level accuracy in the system, it is more difficult to perform quantization without significantly sacrificing SR performance. To this end, we introduce a new ultra-low precision yet effective quantization approach specifically designed for SR. In particular, we observe that in recent SR networks, each channel has different distribution characteristics. Thus we propose a channel-wise distribution-aware quantization scheme. Experimental results demonstrate that our proposed quantization, dubbed Distribution-Aware Quantization (DAQ), manages to greatly reduce the computational and resource costs without the significant sacrifice in SR performance, compared to other quantization methods.

Introduction

Deep learning has revolutionized Image Super-Resolution (SR)—the task of upscaling low-resolution images into high-fidelity versions. However, state-of-the-art models like EDSR or RDN are computationally massive, hindering their deployment on mobile and edge hardware. Quantization, which reduces the precision of weights and activations from 32-bit floating point to ultra-low bitwidths (e.g., 2-bit), is a standard efficiency solution.

Unlike image classification, SR is a "pixel-perfect" task requiring extreme numerical accuracy to avoid visual artifacts. Existing quantization methods often fail because they treat all channels in a layer uniformly. In SR networks, different channels exhibit wildly different numerical distributions that vary based on the input image, making uniform quantization ranges highly inefficient.

Comparison of channel distributions between ResNet-18 (classification) and EDSR (SR), showing the high diversity in SR networks.

Methodology

The proposed Distribution-Aware Quantization (DAQ) focuses on channel-wise adaptation through three core components:

  1. Adaptive Transformer: Instead of a fixed range for an entire layer, DAQ calculates the mean ($\mu$) and standard deviation ($\sigma$) for each individual channel. It then standardizes the data to fit a predictable range.
  2. Adaptive Discretizer: This component clips outliers using $\sigma$-based thresholds to prevent them from stretching the quantization scale. It also employs a shifting parameter ($\alpha$) to handle features post-ReLU activation.
  3. Quantized Quantization (QQ): To mitigate the hardware overhead of per-channel scaling, DAQ quantizes the scaling parameters themselves. This allows the majority of computations (convolutions and summations) to occur in low-bit precision, only returning to full precision at the end of the layer.

Key Insights

The motivation for DAQ stems from the observation that SR channels are significantly more diverse and input-dependent than those in classification networks like ResNet. By moving away from a "one-size-fits-all" quantization range and focusing on $\sigma$-based clipping, DAQ preserves the precision of the most critical data points while effectively managing outliers.

Experimental Results

DAQ was evaluated using standard SR benchmarks (Set5, Set14, B100, and Urban100) and compared against state-of-the-art (SotA) methods like LinQ and PAMS.

Performance comparison (PSNR) vs. efficiency (BOPs and Memory) for DAQ and other quantization methods.
  • Superior Accuracy: At 2-bit precision, EDSR-DAQ achieved a PSNR of 32.05 dB on Set5, outperforming the previous best 2-bit method (LinQ) by nearly 1 dB.
  • Efficiency Gains: Remarkably, DAQ at 2-bit often outperformed other methods running at 4-bit precision while using half the memory. For the RDN model, DAQ significantly reduced Bit Operations (BOPs) and energy consumption.
  • Visual Fidelity: Qualitatively, DAQ avoids common low-bit artifacts like checkerboard patterns and blurring, producing sharper edges and more realistic textures compared to its peers.

Conclusion

DAQ demonstrates that ultra-low precision quantization is viable for high-accuracy tasks like SR when channel-wise distributions are accounted for. While optimal results currently require Quantization-Aware Training (QAT), the reduction in memory and computational load is substantial. Future work may extend this distribution-aware logic to other low-level vision tasks such as image denoising and deraining.

Summary updated

BibTeX
@inproceedings{hong2022daq,
  author = {Cheeun Hong and Heewon Kim and Sungyong Baik and Junghun Oh and Kyoung Mu Lee},
  title = {{DAQ: Channel-Wise Distribution-Aware Quantization for Deep Image Super-Resolution Networks}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=GDC--R0L0b},
}
Figure