[Paper Review] Exploring Sparsity in Image Super-Resolution for Efficient Inference
This paper proposes Sparse Mask Super-Resolution (SMSR), a method that dynamically prunes redundant computation in deep CNN-based image super-resolution by learning spatial and channel masks to identify 'important' regions (e.g., edges and textures) and redundant channels. By applying sparse convolutions during inference, SMSR reduces FLOPs by 41%/33%/27% for ×2/×3/×4 SR while maintaining state-of-the-art performance.
Current CNN-based super-resolution (SR) methods process all locations equally with computational resources being uniformly assigned in space. However, since missing details in low-resolution (LR) images mainly exist in regions of edges and textures, less computational resources are required for those flat regions. Therefore, existing CNN-based methods involve redundant computation in flat regions, which increases their computational cost and limits their applications on mobile devices. In this paper, we explore the sparsity in image SR to improve inference efficiency of SR networks. Specifically, we develop a Sparse Mask SR (SMSR) network to learn sparse masks to prune redundant computation. Within our SMSR, spatial masks learn to identify "important" regions while channel masks learn to mark redundant channels in those "unimportant" regions. Consequently, redundant computation can be accurately localized and skipped while maintaining comparable performance. It is demonstrated that our SMSR achieves state-of-the-art performance with 41%/33%/27% FLOPs being reduced for x2/3/4 SR. Code is available at: https://github.com/LongguangWang/SMSR.
Motivation & Objective
- To address the high computational cost of deep CNN-based super-resolution models on mobile and edge devices.
- To exploit inherent sparsity in image super-resolution, where flat regions require less computation than textured or edge-rich regions.
- To develop a method that dynamically skips redundant computation at a fine-grained level using learnable masks.
- To achieve state-of-the-art performance with significantly reduced FLOPs and improved inference efficiency.
- To demonstrate that learning-based masks outperform heuristic approaches like gradient-based masking.
Proposed method
- Proposes a Sparse Mask SR (SMSR) network that learns two types of masks: spatial masks to identify important image regions and channel masks to identify redundant channels in unimportant regions.
- Uses the Gumbel-Softmax trick to differentiable soft masks during training, enabling end-to-end optimization.
- Applies sparse convolution operations during inference to skip computation in masked regions and channels.
- Integrates spatial and channel masks jointly to enable fine-grained localization of redundant computation.
- Trains the network with a masked loss that focuses on high-importance regions to maintain reconstruction quality.
- Employs a progressive attention mechanism where deeper layers focus more on important regions, enhancing feature representation.
Experimental results
Research questions
- RQ1Can sparsity in image super-resolution be exploited to reduce computational cost without sacrificing performance?
- RQ2Can learnable spatial and channel masks outperform heuristic methods like gradient-based masking for identifying redundant computation?
- RQ3To what extent can FLOPs be reduced through dynamic pruning while maintaining state-of-the-art PSNR in super-resolution?
- RQ4How does the joint use of spatial and channel masks improve fine-grained localization of redundant computation?
- RQ5Can the proposed method achieve better efficiency-performance trade-offs compared to existing lightweight SR networks?
Key findings
- SMSR reduces FLOPs by 41%, 33%, and 27% for ×2, ×3, and ×4 super-resolution, respectively, while maintaining state-of-the-art PSNR performance.
- On the Set14 dataset for ×2 SR, SMSR achieves higher PSNR than CARN with 38% fewer parameters and 41% fewer FLOPs.
- With comparable FLOPs (131.6G vs. 127.7G), SMSR achieves significantly higher PSNR than IDN, demonstrating superior efficiency-performance trade-off.
- The variant using gradient-based masks suffers a notable performance drop (e.g., 33.52 vs. 33.33/33.30 PSNR) compared to learning-based masks, confirming the superiority of learned masks.
- Visual comparisons on Urban100 and real-world images show that SMSR produces fewer artifacts and better perceptual quality than SOTA methods.
- SMSR achieves a significant speedup on mobile devices, demonstrating its practicality for real-world edge deployment.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.