TL;DR
CABM (Content-Aware Bit Mapping) optimizes large-scale image super-resolution by replacing computationally expensive MLP bit selectors with lightweight, edge-based lookup tables. This approach achieves state-of-the-art mixed-precision performance while significantly reducing the memory and computational overhead of adaptive quantization.
What Problem Does This Paper Address?
As display resolutions push toward 4K and 8K, Single Image Super-Resolution (SISR) faces a massive computational wall. Processing these images directly is memory-intensive, so researchers typically split images into patches. However, not all patches are created equal: a flat blue sky needs far less processing power than a complex textured brick wall.
Existing "content-aware" methods use mixed-precision quantization, where different layers of the network use different bit-widths (e.g., 4-bit vs. 8-bit) depending on the patch's complexity. The current state-of-the-art uses Multi-Layer Perceptrons (MLPs) to decide these bit-widths on the fly. This introduces two major issues:
- Overhead: The MLP selectors themselves consume extra memory and compute for every layer.
- Suboptimal Training: Standard training uses uniform sampling of subnets, which often leads to "simple" patches overfitting and "complex" patches underfitting, resulting in suboptimal bit choices.
Methods
The authors propose Content-Aware Bit Mapping (CABM), a strategy to ditch the MLP selectors during inference in favor of a simple Edge-to-Bit Lookup Table (LUT).
The pipeline consists of three main stages:
- Supernet Training: They first train a supernet using MLP selectors to learn the relationship between patch features and optimal quantization levels.
- Edge-to-Bit Mapping: They observe a strong correlation between a patch's edge information (calculated via a simple Laplacian operator) and the bit-widths selected by the MLP. They build a mapping that links an "edge score" to a specific bit configuration for the entire network.
- Calibration & Fine-tuning: Because one edge score might map to multiple bit configurations, they use a "tactful calibration strategy" to expand edge score subintervals and select the configuration with the minimum BitOPs (operations weighted by bit-width). Finally, the supernet is fine-tuned using these LUT-determined configurations to recover any performance loss.
Datasets
- Training/Validation: DIV2K, a standard high-quality dataset for super-resolution.
- Testing:
- Urban100: Focused on urban scenes with many sharp edges and structures.
- Test2K & Test4K: Large-scale datasets derived from DIV8K to simulate real-world high-resolution scenarios.
- Set14: Used for ablation studies.
Key Insights and Ideas
- Edges as a Proxy for Complexity: The authors found that edge information is a highly effective and "cheap" metric for patch representation. Instead of letting a complex MLP look at deep features, a simple edge score can predict which layers need high precision.
- The Failure of Uniform Sampling: The paper highlights that uniform sampling during training is biased. By switching to sampling based on BitOPs (computational difficulty), they achieved better performance, proving that "harder" patches need more focused training.
- Removing Selector Overhead: By moving from MLPs to LUTs, the "decision-making" cost becomes virtually zero. As shown in Figure 2, while edge scores and BitOPs aren't perfectly linear, the calibrated LUT effectively captures the necessary complexity.
Key Results
CABM demonstrates significant efficiency gains across various architectures (EDSR, SRResNet, CARN, IDN):
- Efficiency: For SRResNet at x4 scale, CABM achieves comparable performance to full-precision models using only 2.8% of the BitOPs.
- Superiority over SOTA: Compared to CADyQ (a leading MLP-based method), CABM consistently achieves lower BitOPs with similar or better PSNR. For example, on Urban100 (x4), CABM reduced the BitOPs of CARN from 3.13G to 1.57G while slightly improving PSNR.
- Qualitative Quality: Qualitative results show that CABM maintains sharp details in high-texture areas while aggressively quantizing flat regions to save power.
Limitations and Future Work
- Hardware Support: The authors acknowledge that mixed-precision quantization requires specific hardware support (like specialized Tensor Cores) to translate BitOP reductions into actual wall-clock speedups.
- Video Super-Resolution (VSR): Applying CABM to video is not straightforward, as it would need to account for temporal consistency between frames to avoid flickering artifacts caused by changing bit-widths.
- Temporal Information: Exploring how to integrate temporal cues into the bit-mapping strategy remains an open area for future research.
Summary updated