TL;DR
This paper introduces a novel post-training mixed-precision quantization framework for image super-resolution models that leverages gradients to automatically determine the optimal bit-width for each layer. By combining gradient-guided bit allocation with a dynamic activation normalization technique, the method significantly improves image reconstruction quality while drastically reducing quantization time compared to existing approaches.
What Problem Does This Paper Address?
Deep learning models for image super-resolution (SR) produce stunningly sharp images but are computationally heavy and memory-intensive, making them difficult to deploy on resource-constrained mobile or edge devices. Quantization—converting 32-bit floating-point numbers to low-bit integers—helps mitigate this, but applying the same bit-width to every layer (uniform quantization) either wastes hardware resources or severely degrades image quality. Mixed-precision quantization (MPQ) solves this by assigning different bit-widths to different layers based on their sensitivity.
However, current post-training quantization (PTQ) methods for MPQ rely on static statistics, such as the standard deviation of activations, to guess a layer's sensitivity. As the authors demonstrate, static metrics fail to accurately capture actual quantization errors or inter-layer dependencies. Furthermore, SR models typically remove Batch Normalization (BN) to preserve high-frequency details. The absence of BN causes activation ranges to fluctuate wildly across different inputs, making fixed quantization ranges highly suboptimal.
Methods
The authors propose a novel PTQ-based MPQ framework tailored specifically for SR models, consisting of three core components:
- Gradient-Guided Bit Allocation (GBA): Instead of relying on static statistics, GBA computes the gradients of the loss function with respect to continuous bit-width parameters during backpropagation on a small calibration dataset. This directly captures how changing a layer's bit-width impacts the final reconstruction loss, allowing for automatic, adaptive layer-wise bit allocation.
- Bit-Aware Fine-Tuning: Once the bit-widths are allocated and fixed by GBA, the framework independently fine-tunes the upper and lower quantization bounds for both weights and activations to minimize reconstruction and feature alignment errors.
- Dynamic Activation Range Normalization (DAN): To handle the lack of Batch Normalization, DAN dynamically normalizes each activation map to a unified range ($[-1, 1]$) per channel during inference, applies the quantization function, and then precisely restores the original scale via denormalization. This prevents clipping and ensures stable quantization without degrading performance.
Datasets
- Calibration/Training: DIV2K (100 randomly sampled low-resolution images used as the calibration set).
- Evaluation/Benchmarks: Standard super-resolution datasets including Set5, Set14, BSD100, Urban100, and Manga109 for CNN-based models, as well as Test2K and Test4K for comparison with quantization-aware training (QAT) methods.
Key Insights and Ideas
- Standard Deviation $\neq$ Quantization Sensitivity: A key "aha moment" is demonstrating that layers with high standard deviations don't necessarily suffer from high quantization noise. Static statistics are easily skewed by outliers and asymmetric distributions, proving that gradients are a much more reliable indicator of sensitivity.
- The Power of Dynamic Normalization: While Batch Normalization hurts super-resolution performance during training, test-time dynamic normalization (DAN) stabilizes quantization by preventing channel-wise range imbalances and clipping.
- PTQ Can Match or Beat QAT Speed and Quality: Traditionally, Quantization-Aware Training (QAT) yields better results but takes hours or days. This method proves that a smart PTQ approach can deliver superior image quality in just a few seconds without full retraining.
Key Results
- Massive Quality Improvements: On the challenging Urban100 dataset, the proposed method outperforms existing state-of-the-art PTQ methods by 1.26 dB in Peak Signal-to-Noise Ratio (PSNR) for 3-bit quantization of EDSR $\times$ 4, and by 2.43 dB for 4-bit quantization of RDN $\times$ 4.
- Blazing Fast Execution: It reduces quantization and optimization time significantly—taking only 26 seconds for EDSR $\times$ 4 compared to hours for QAT-based methods, and running up to $1.9\times$ faster than competing PTQ methods like AdaBM.
- Visual Fidelity: Qualitatively, the method excels at restoring sharp, repetitive textures and fine structural lines where other quantization methods produce blurry or artifact-laden outputs.
Limitations and Future Work
- The authors do not deeply explore extremely low-bit settings (e.g., 1-bit or 2-bit quantization), where performance drops might require more aggressive optimization or structural modifications.
- The method is evaluated primarily on standard CNN (EDSR, RDN) and Transformer (SwinIR) architectures for super-resolution; its applicability to other low-level vision tasks (like denoising or deblurring) remains an open direction for future validation.
Summary updated