Abstract
Single Image Super-Resolution (SISR) has achieved significant performance gains through deep learning, yet the computational cost remains prohibitive for high-resolution applications like 4K and 8K. We present ClassSR, a "divide-and-conquer" framework designed to accelerate existing SR networks by exploiting data characteristics. By classifying image patches into difficulty levels (Simple, Medium, Hard) and routing them to specialized network branches of varying complexity, ClassSR achieves up to a 50% reduction in FLOPs with negligible loss in visual quality.
Introduction
The computational demand of state-of-the-art CNNs for SISR scales quadratically with input resolution. Standard networks apply uniform computation across all image regions, regardless of texture complexity. However, natural images often contain large smooth areas (e.g., skies) that require less processing power than intricate textures (e.g., hair or foliage). ClassSR addresses this inefficiency by dynamically allocating computational resources based on local image content, ensuring that "heavy lifting" is reserved only for regions where it is necessary.
Methods
ClassSR is a modular framework that can be integrated with various SR architectures. It operates on a patch-based decomposition of the input image and consists of two primary components:
- Class-Module: A lightweight classification network that categorizes $32 \times 32$ sub-image patches into $M$ classes (typically Simple, Medium, or Hard) based on restoration difficulty.
- SR-Module: A container for $M$ parallel branches. The "Hard" branch utilizes the original full-scale model, while "Medium" and "Simple" branches are pruned versions with fewer channels.
To train the classifier without ground truth labels for difficulty, the authors introduced a Class-Loss ($L_c$) to ensure decisive classification and an Average-Loss ($L_a$) to prevent the model from defaulting to the most complex branch, thereby ensuring balanced utilization of all sub-networks.
Results and Discussion
The framework was evaluated on the DIV2K and DIV8K datasets across several base models, including FSRCNN, CARN, SRResNet, and RCAN.
As shown in the performance analysis, ClassSR consistently reduces FLOPs by approximately 50% across different architectures while maintaining nearly identical PSNR values. For instance, ClassSR-RCAN achieved 33.73 dB compared to the original RCAN's 33.76 dB on the Test8K dataset, but with half the computational cost. The acceleration ratio is particularly pronounced in high-resolution images, which typically contain more "simple" regions.
Conclusion
ClassSR provides a robust, data-driven approach to model acceleration that is orthogonal to traditional pruning or quantization. By leveraging spatial sparsity, it enables high-quality super-resolution at a fraction of the traditional computational cost. Future work may involve automating the architecture search for sub-branches and optimizing hardware-specific implementations to further bridge the gap between theoretical FLOPs reduction and real-world wall-clock speedups.
Summary updated