Introduction
Deep learning has significantly advanced image restoration tasks such as super-resolution and deblurring. However, state-of-the-art models are often computationally expensive, hindering their deployment on resource-constrained mobile devices. While network pruning offers a solution, traditional methods face a trade-off: unstructured pruning is hardware-unfriendly, while structured filter pruning often degrades the fine-grained details critical for high-quality restoration.
This paper introduces Searching for Layer-wise N:M structured Sparsity (SLS), a novel framework that optimizes deep restoration models by automatically determining the optimal pruning ratio for each individual layer. By integrating this with a patch-based adaptive inference scheme, the authors achieve superior restoration quality at a significantly reduced computational cost.
Methodology
Searching for Layer-wise N:M Sparsity (SLS)
Unlike standard $N:M$ sparsity methods that apply a uniform ratio across all layers, SLS recognizes that layer sensitivity varies. The core of SLS is a differentiable search framework that learns a "priority score" for each pruning unit. To ensure stability, the authors introduce Priority-Ordered Pruning (POP), which aligns learned importance with weight magnitudes, preventing conflicts that could degrade performance. A loss annealing strategy ($\lambda_{reg}$) is also employed to gradually increase pruning pressure, allowing the model to adapt without collapsing early in training.
Adaptive Inference
Restoration difficulty is spatially variant; for instance, a clear sky requires less processing power than a complex architectural texture. The authors propose an adaptive inference mechanism that utilizes a lightweight MSE estimator. This estimator predicts the restoration difficulty of individual image patches at runtime, allowing the system to dynamically select the most efficient pruned model that satisfies a predefined quality threshold for each specific region.
Experimental Results
The proposed method was evaluated on standard benchmarks for image super-resolution (DIV2K, Set14, Urban100) and deblurring (GOPRO) across various architectures including EDSR, CARN, and UNet.
Performance Trade-offs
As shown in the performance plots, SLS consistently outperforms magnitude-based filter pruning and existing $N:M$ techniques like SR-STE. On the Urban100 dataset, SLS maintains higher PSNR values even when operating at significantly lower GMACs. The method proves particularly robust at extreme pruning ratios (e.g., 1/16th of original computation), where it preserves textures and edges that other methods lose.
Qualitative Superiority
Visual evaluations demonstrate that SLS effectively avoids common artifacts such as blurring or ringing. By maintaining higher density in sensitive layers (like upsampling modules), the method preserves sharp details in high-frequency areas, such as text on license plates or fine architectural grids, which are often obliterated by standard filter pruning.
Conclusion
SLS provides a powerful framework for compressing image restoration models without sacrificing the fine-grained details necessary for high-fidelity results. By combining layer-wise $N:M$ sparsity search with content-aware adaptive inference, the method sets a new standard for efficient image restoration. Future work may involve optimizing specialized kernels to fully leverage the flexible $N:M$ patterns discovered by the SLS search process on modern hardware.
Summary updated