Abstract
Deep learning has significantly advanced Image Super-resolution (SR), but state-of-the-art models like EDSR and SwinIR are often too computationally heavy for edge deployment. This paper presents a three-stage compression workflow—comprising pruning, architectural redesign, and high-frequency-focused knowledge distillation—to create efficient "mini" versions of these networks. The approach achieves up to a 96% reduction in parameters and FLOPs with minimal impact on visual quality.
Introduction
Image Super-resolution (SR) aims to reconstruct high-resolution (HR) images from low-resolution (LR) counterparts. While models like EDSR and SwinIR provide excellent results, their high memory and computational requirements hinder deployment on mobile devices or real-time platforms. For instance, a standard EDSR model can utilize up to 43 million parameters. The challenge lies in reducing model complexity without sacrificing the fine textures and sharp edges essential for high-quality SR.
Methodology
The researchers propose a systematic three-stage pipeline to derive compact "mini" models from large pre-trained architectures.
1. Model Pruning
The process begins with a pre-trained "teacher" model. It is fine-tuned using $L_1$ regularization to identify redundant weights. This stage calculates a density ratio ($d$), representing the fraction of essential parameters that must be retained in the network.
2. Network Compression
Rather than simple weight pruning, the authors physically redesign the network architecture based on the density ratio. They adjust three primary hyperparameters: the number of channels ($N_c$), the number of layers per block ($N_l$), and the total number of blocks ($N_b$). Empirical formulas are used to scale these values down while preserving the model's structural logic.
3. Knowledge Distillation (KD)
To recover performance lost during compression, the "student" model is trained to mimic the "teacher." A specialized distillation loss ($\mathcal{L}_{dis}$) is employed, utilizing Laplacian filters and Gaussian blurs to focus the student's learning on high-frequency features like edges and fine textures, rather than just blurry approximations.
Experimental Setup
The DIV2K dataset (800 images) was used for training. Evaluation was conducted on the standard Set5 and Set14 benchmarks, focusing on $\times 2$ upscaling.
Key Insights
- Structural Interplay: The authors found that reducing the number of blocks ($N_b$) and layers ($N_l$) significantly impacts performance, whereas reducing channels ($N_c$) primarily drives down model size.
- High-Frequency Focus: Standard loss functions often fail to capture fine details. By explicitly targeting high-frequency components during distillation, the student model learns to reconstruct sharp edges.
- Versatility: The workflow is architecture-agnostic, proving effective for both CNN-based (EDSR) and Transformer-based (SwinIR) models.
Results
The resulting compact models, EDSRmini and SwinIRmini, demonstrate massive efficiency gains:
- EDSRmini: Achieved a 96% reduction in size (from 1.37M to 49.6K parameters) and FLOPs compared to the baseline.
- SwinIRmini: Achieved an 89% reduction in size and FLOPs.
- Performance: SwinIRmini's PSNR dropped by only ~0.26 dB, with visual results remaining largely indistinguishable from the original. It also outperformed other lightweight models like RT4KSR-XL by nearly 0.6 dB while maintaining a similar parameter count.
Conclusion
This three-stage workflow provides a robust framework for shrinking SR models for real-world deployment. While currently focused on $\times 2$ upscaling, future work will explore higher upscaling factors and broader low-level vision tasks like denoising and deblurring where model size remains a barrier.
Summary updated