CADyQ: Content-Aware Dynamic Quantization for Image Super-Resolution

Cheeun Hong, Sungyong Baik, Heewon Kim, Seungjun Nah, Kyoung Mu Lee

Abstract

Despite breakthrough advances in image super-resolution (SR) with convolutional neural networks (CNNs), SR has yet to enjoy ubiquitous applications due to the high computational complexity of SR networks. Quantization is one of the promising approaches to solve this problem. However, existing methods fail to quantize SR models with a bit-width lower than 8 bits, suffering from severe accuracy loss due to fixed bit-width quantization applied everywhere. In this work, to achieve high average bit-reduction with less accuracy loss, we propose a novel Content-Aware Dynamic Quantization (CADyQ) method for SR networks that allocates optimal bits to local regions and layers adaptively based on the local contents of an input image. To this end, a trainable bit selector module is introduced to determine the proper bit-width and quantization level for each layer and a given local image patch. This module is governed by the quantization sensitivity that is estimated by using both the average magnitude of image gradient of the patch and the standard deviation of the input feature of the layer. The proposed quantization pipeline has been tested on various SR networks and evaluated on several standard benchmarks extensively. Significant reduction in computational complexity and the elevated restoration accuracy clearly demonstrate the effectiveness of the proposed CADyQ framework for SR.

Introduction

Deep learning models for Image Super-Resolution (SR) have achieved remarkable accuracy, but their high computational complexity hinders deployment on resource-constrained devices. Quantization—reducing the bit-width of weights and activations—is a common efficiency technique. However, SR is highly sensitive to quantization; fixed low-bit quantization (e.g., < 8 bits) often results in significant artifacts and loss of fine detail.

A key observation driving this work is that image content is non-uniform. Flat regions, like a clear sky, require significantly less precision to upscale than complex, high-frequency textures like cityscapes or architectural details. Existing methods that apply a uniform bit-width across the entire image fail to exploit this redundancy.

Input image with selected patches for complex (building) and flat (sky) regions.

The CADyQ Framework

The authors propose CADyQ (Content-Aware Dynamic Quantization), which treats quantization as a dynamic resource allocation problem. Instead of a uniform bit-width, CADyQ adaptively assigns bits to different image patches and network layers based on local content.

Dynamic Bit Selection

The core of the framework is the Bit Selector module. For each image patch at each layer, the selector chooses between candidate bit-widths (e.g., 4, 6, or 8 bits). This decision is guided by two proxies for quantization sensitivity:

  1. Average Gradient Magnitude: Measures the structural complexity of the local input patch.
  2. Feature Standard Deviation: Measures the importance and variance of features within a specific layer.

To enable end-to-end training with discrete bit choices, the framework employs a Straight-Through Estimator (STE). This allows the network to learn the optimal bit-selection strategy via standard backpropagation.

Weighted Bit Loss

To encourage efficiency, a Weighted Bit Loss ($L_{wb}$) is introduced. Unlike standard regularization, this loss penalizes high bit-widths more heavily on "easy" (low-sensitivity) patches, while being more lenient on "hard" (high-sensitivity) patches where precision is critical for quality.

Visualization of dynamic bit-width allocation across different image patches and network layers.

Experimental Results

CADyQ was evaluated on standard SR backbones like CARN using benchmarks such as Urban100 and high-resolution datasets (Test2K, Test4K) to demonstrate real-world efficiency.

Efficiency and Latency

On the CARN backbone, CADyQ achieved a ~95.8% reduction in BitOPs compared to the full-precision (32-bit) baseline. Crucially, it also outperformed fixed 8-bit quantization (PAMS) with a ~32.2% further reduction in BitOPs. In terms of real-world speed, inference latency for 4K images on an NVIDIA Tesla T4 was reduced to 206.5ms, down from 535.5ms for the 32-bit baseline and 240ms for fixed 8-bit quantization.

Restoration Quality

Despite the aggressive bit reduction, the impact on PSNR was minimal (typically < 0.05 dB). Qualitatively, CADyQ maintains structural integrity and avoids the artifacts common in other low-bit quantization schemes. As shown in the visualizations, the model successfully allocates higher precision (8-bit) to complex building textures in early layers, while defaulting to lower precision (4-bit) for flat sky regions in the same layers.

Conclusion

CADyQ demonstrates that content-aware dynamic quantization is a powerful strategy for efficient SR. By leveraging local image characteristics and layer-wise feature statistics, it achieves significant computational savings with negligible loss in image quality. Future work may extend this dynamic approach to weight quantization and further optimize hardware-specific implementations for non-standard bit-widths like 6-bit.

Summary updated

BibTeX
@inproceedings{hong2022cadyq,
  author = {Cheeun Hong and Sungyong Baik and Heewon Kim and Seungjun Nah and Kyoung Mu Lee},
  title = {{CADyQ: Content-Aware Dynamic Quantization for Image Super-Resolution}},
  booktitle = {European Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=Qvr9OssKDp},
}
Figure