SPR$^2$Q: Static Priority-based Rectifier Routing Quantization for Image Super-Resolution

Jingwei Xin, Wenhao Li, Nannan Wang, Jie Li, Xinbo GaoICLR 2026

TL;DR

SPR$^2$Q is a novel post-training quantization (PTQ) framework that brings high-quality image super-resolution to ultra-low bitwidths (2-bit and 4-bit). By injecting learnable "rectifier" modules into the model before quantization and using a static priority routing table, it achieves massive gains in image fidelity (up to +1.31 dB PSNR) with zero additional computational overhead during inference.

The Challenge of Low-Bit Super-Resolution

Image Super-Resolution (SR) models have evolved from simple Convolutional Neural Networks (CNNs) to complex Transformers and, most recently, State-Space Models (SSMs) like Mamba. While these models produce stunning, high-fidelity images, they are computationally expensive and memory-heavy, making them difficult to deploy on resource-constrained mobile devices.

Low-bit quantization—reducing 32-bit floating-point weights to 2 or 4 bits—is the standard solution for efficient deployment. However, existing Post-Training Quantization (PTQ) methods struggle with two major issues:

  1. Information Loss: Aggressive compression (especially at 2-bit) destroys the fine textures and edges essential for high-quality SR.
  2. Architectural Sensitivity: Modern architectures like Mamba are highly sensitive to the numerical errors introduced by quantization, often leading to blurred results and broken image structures.

Current PTQ methods typically only tune the "clipping range" (the minimum and maximum values of the quantizer). The authors of this paper argue that this reactive approach is insufficient; the model itself needs to proactively adapt to the quantization process.

The SPR$^2$Q Methodology

To address these limitations, the authors introduce SPR$^2$Q (Static Priority-based Rectifier Routing Quantization). This framework operates in three distinct stages to proactively compensate for quantization errors:

SPR2Q Framework
  1. Pre-Quantization Fine-tuning with Fused Rectifiers (PQFR): Inspired by Low-Rank Adaptation (LoRA), the authors add a small, learnable weight increment ($\Delta W$) to the original weights before they are quantized. This "rectifier" is composed of two low-rank matrices. By training these small matrices while keeping the backbone frozen, the model learns how to pre-compensate for the errors the quantizer is about to introduce.

  2. Rectifier Group Training: Instead of relying on a single rectifier, the authors train a group of distinct rectifiers. During training, a dynamic gating network learns to route information to the best-suited rectifier for a specific layer or feature. This creates a diverse library of compensation strategies.

  3. Static Priority-Based Routing: Dynamic routing is computationally expensive during inference. To solve this, SPR$^2$Q uses an offline calibration step to evaluate which rectifier performs best for each specific layer. It then generates a fixed SPR$^2$Q Table. During actual deployment, the optimal rectifier is fused directly into the weights. This provides the representational power of multiple experts with zero extra FLOPs at runtime.

To ensure the quantized model behaves like the original full-precision model, the framework employs a hybrid loss function. This combines standard pixel-level reconstruction with a block-wise feature alignment loss, forcing the quantized blocks to mimic the internal feature maps of the unquantized model.

Key Insights and Performance

Most PTQ is "reactive"—it tries to fix the quantizer to fit the weights. SPR$^2$Q is "proactive"—it modifies the weights to make them more quantization-robust. This is particularly advantageous for Mamba models, which use recurrent states where errors can accumulate quickly. Fine-grained, block-level alignment proves crucial for stabilizing these architectures under low-bit settings.

The model was trained on the DF2K dataset and evaluated across five standard SR benchmarks (Set5, Set14, B100, Urban100, and Manga109). The performance gains are substantial, particularly in extreme low-bit scenarios:

  • Accuracy: On the Set5 dataset ($\times 2$ scale), SPR$^2$Q improved PSNR by 0.55 dB at 4-bit and a staggering 1.31 dB at 2-bit compared to previous state-of-the-art Mamba quantization methods.
  • Visual Quality: Qualitative results demonstrate that while other methods produce blurry edges and checkerboard artifacts, SPR$^2$Q successfully recovers sharp textures and structural details in complex images, such as building facades in the Urban100 dataset.
Visual Quality on Urban100
  • Efficiency: For a MambaIRv2-light backbone, the method achieved a 4.15x speedup and reduced the model size from 3.01 MB to just 1.07 MB (at 2-bit) with negligible loss in quality.
  • Cross-Architecture Compatibility: While designed with Mamba in mind, the method also outperformed state-of-the-art techniques on Transformer-based models like SwinIR.

Limitations and Future Directions

While inference is effectively "zero-cost" in terms of added complexity, the method does require an offline calibration and fine-tuning phase (roughly 12,000 iterations for training the rectifiers). Although this is much faster than full Quantization-Aware Training (QAT), it is slower than traditional "one-shot" PTQ methods.

Furthermore, the routing is currently static (fixed per layer). Future work could explore whether a highly lightweight, dynamic (input-dependent) routing mechanism could yield even higher gains for highly heterogeneous images without sacrificing inference speed. Finally, the authors suggest this approach could potentially be extended to Large Language Models (LLMs) that utilize Mamba blocks, opening an exciting new avenue for efficient AI deployment.

Summary updated

BibTeX
@inproceedings{xin2026spr,
  author = {Jingwei Xin and Wenhao Li and Nannan Wang and Jie Li and Xinbo Gao},
  title = {{SPR$^2$Q: Static Priority-based Rectifier Routing Quantization for Image Super-Resolution}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=8tDIzHFOx6},
}
Figure