QuantSR: Accurate Low-bit Quantization for Efficient Image Super-Resolution

Haotong Qin, Yulun Zhang, Yifu Ding, Yifan liu, Xianglong Liu, Martin Danelljan, Fisher Yu

TL;DR

QuantSR is a novel framework that enables high-quality image super-resolution (SR) using ultra-low bit quantization (2-4 bits). By introducing a learnable quantizer and a dynamic-depth architecture, it achieves state-of-the-art accuracy while reducing computational costs and model size by over 80%, effectively bridging the gap between efficient hardware deployment and high-fidelity reconstruction.

What Problem Does This Paper Address?

Single Image Super-Resolution (SR) is a computationally intensive task, often requiring deep networks like CNNs or Transformers to reconstruct high-frequency details. While these models perform well, their heavy memory and processing requirements make them difficult to deploy on resource-constrained edge devices (like smartphones or IoT sensors).

Model quantization—converting 32-bit floating-point weights and activations into low-bit integers (e.g., 4-bit or 2-bit)—is a popular solution to reduce this overhead. However, at ultra-low bit widths, standard quantization methods suffer from a massive drop in accuracy. The authors identify two primary culprits:

  1. Representation Homogeneity: Discretizing values into very few "bins" makes the network's internal features too similar, losing the subtle information needed for high-quality SR.
  2. Rigid Architectures: Existing quantized models are fixed for a specific bit-width and depth, offering no flexibility to trade off speed for accuracy during real-time inference.

Methods

The authors propose QuantSR, which consists of two core innovations:

  • Redistribution-driven Learnable Quantizer (RLQ): Instead of using a fixed mapping, RLQ introduces learnable parameters (mean-shifting and scaling) that allow the quantization process to adapt during training. Crucially, it uses a novel transformation function in the backward pass. Unlike the standard "Straight-Through Estimator" (STE) which provides a coarse gradient, RLQ provides "soft gradients" that better reflect the true impact of quantization. These learnable components are merged during inference, meaning they improve accuracy without adding any extra computational cost.
  • Depth-dynamic Quantized Architecture (DQA): This is a weight-sharing strategy that allows a single trained model to run at different depths (e.g., using 100%, 50%, or 25% of its blocks). It uses learnable skip connections to identify which layers are most critical for performance. This allows a device to dynamically skip less important blocks to save power or speed up processing when resources are low.

Datasets

The models were trained and evaluated using standard benchmarks in the SR field:

  • Training: DIV2K, a high-quality dataset of 800 images.
  • Evaluation: Five widely used test sets: Set5, Set14, B100, Urban100, and Manga109. These datasets cover a range of textures, from natural scenes to urban structures and fine-line art.

Key Insights and Ideas

  • Diversification is Key: By making the quantizer learnable, the network can "spread out" its representations across different layers. This prevents the homogeneity that usually plagues low-bit models, allowing the network to retain more high-frequency detail.
  • Better Gradients, Better Models: The "aha moment" for RLQ is that the standard way we train quantized models (STE) is fundamentally mismatched with the forward pass. By embedding a transformation function that provides more informative gradients, the model learns much more effectively.
  • Dynamic Depth as a Regularizer: Interestingly, training multiple sub-networks of different depths simultaneously (via DQA) actually helps the full-depth model reach a higher accuracy ceiling than if it were trained alone.
  • Architecture Generality: The framework isn't tied to one type of model; the authors successfully applied it to both CNNs (QuantSR-C) and Transformers (QuantSR-T).

Key Results

QuantSR sets new performance benchmarks for quantized SR:

  • 4-bit SOTA: QuantSR with 4-bit quantization achieves accuracy comparable to previous state-of-the-art methods using 8 bits.
  • 2-bit Breakthrough: In the extreme 2-bit setting, QuantSR-C outperforms the previous best method (PAMS) by a staggering 3.20 dB (PSNR) on the Urban100 dataset.
  • Massive Efficiency: The 4-bit SRResNet variant achieves a 77.8% reduction in parameters and a 77.5% reduction in operations (Ops) compared to the full-precision version, while maintaining nearly identical visual quality.
Visual comparison showing QuantSR-C recovering significantly more structural detail than other 2-bit and 4-bit methods.

Limitations and Future Work

While QuantSR significantly narrows the gap, a performance difference still exists between ultra-low bit models and their full-precision counterparts, particularly for Transformer-based architectures. The authors note that QuantSR-T (the Transformer version) faces a tougher challenge in maintaining accuracy compared to the CNN version.

Future research directions could include:

  • Exploring even more aggressive compression (like 1-bit binarization) using similar redistribution strategies.
  • Applying the DQA concept to other dimensions, such as dynamic width or dynamic bit-width per layer.
  • Optimizing the framework specifically for the unique attention mechanisms found in Vision Transformers.

Summary updated

BibTeX
@inproceedings{qin2023quantsr,
  author = {Haotong Qin and Yulun Zhang and Yifu Ding and Yifan liu and Xianglong Liu and Martin Danelljan and Fisher Yu},
  title = {{QuantSR: Accurate Low-bit Quantization for Efficient Image Super-Resolution}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=3gamyee9Yh},
}
Figure