Gradient Knows Best: Mixed-Precision Quantization via Gradient-Guided Bit Allocation for Super-Resolution

Jun Young Kim, Joo Hyeon Jeon, Sangyeon Ahn, Yoonseo Park, Yong Seok Oh, Bogyeong Kim, Sung In ChoCVPR 2026

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.

Figure 2. Activation histograms from selected layers in EDSR, visualizing the relationship between standard deviation and SQNR (dB). Each plot is labeled as “Block X – Layer Y”, where X and Y denote the indices of the residual block and the convolutional layer within that block, respectively. The x-axis represents activation values, and the y-axis denotes the count of each value (scaled by 106)

Methods

The authors propose a novel PTQ-based MPQ framework tailored specifically for SR models, consisting of three core components:

  1. 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.
  2. 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.
  3. 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.
Overall architecture of the proposed framework, detailing Bound Initialization, GBA, and Bit-aware Fine-Tuning.

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.
Qualitative results of 4-bit RDN models quantized by different PTQ methods on Urban100.

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

BibTeX
@inproceedings{kim2026gradient,
  author = {Jun Young Kim and Joo Hyeon Jeon and Sangyeon Ahn and Yoonseo Park and Yong Seok Oh and Bogyeong Kim and Sung In Cho},
  title = {{Gradient Knows Best: Mixed-Precision Quantization via Gradient-Guided Bit Allocation for Super-Resolution}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=Ga5ZOnPjBY},
}
Figure