Iterative Soft Shrinkage Learning for Efficient Image Super-Resolution

Jiamian Wang, Huan Wang, Yulun Zhang, Yun Fu, Zhiqiang Tao

Abstract

State-of-the-art Image Super-Resolution (SR) models achieve impressive performance but are computationally intensive, hindering deployment on edge devices. This paper introduces Iterative Soft Shrinkage-Percentage (ISS-P), a novel unstructured pruning method that enables training high-performance SR models from scratch with extreme sparsity (up to 99%). By employing "soft" shrinkage instead of hard-zeroing unimportant weights, ISS-P maintains gradient flow and allows for dynamic discovery of optimal sparse structures.

Introduction

The computational demands of modern SR models, particularly Transformer-based architectures like SwinIR or CAT, necessitate efficient compression techniques. Network pruning is a common solution, but traditional methods often struggle with the complex topologies of SR networks or require expensive pre-training of dense models. Furthermore, standard unstructured pruning methods like Iterative Hard Thresholding (IHT) can trap models in sub-optimal configurations by abruptly terminating gradient flow to pruned weights early in the training process. This "optimization dead-end" prevents the model from finding the most effective sparse architecture.

Methodology

ISS-P addresses these challenges through an unstructured pruning-from-scratch approach. Unlike binary pruning, which abruptly zeros out weights and halts their optimization, ISS-P utilizes a soft thresholding function during the training process to maintain gradient flow.

Overview of the ISS-P iteration operations, highlighting the soft shrinkage mechanism and the two-stage pruning pipeline.

As illustrated in the figure above, the process involves:

  1. Soft Shrinkage: At each iteration $k$, weights $\theta_l^{[k]}$ are ranked by their $L_1$-norm. The top $1-r$ percent are identified as "important" and preserved. The remaining "unimportant" weights are multiplied by a decay factor $\alpha \in (0,1)$ (typically 0.95). This attenuation reduces their influence without removing them entirely, ensuring they remain part of the forward pass and continue to receive gradients.
  2. Two-Stage Pipeline: The training is divided into two phases. During the initial pruning stage ($k \le K_p$), the sparse mask is updated dynamically at every iteration. This allows the network to explore various sparse configurations. In the subsequent fine-tuning stage ($k > K_p$), the mask is frozen, and unimportant weights are finally set to zero. The model then undergoes standard fine-tuning to recover any performance lost during the pruning process.

Experimental Results

The effectiveness of ISS-P was evaluated using DIV2K and Flickr2K for training, with testing conducted on standard benchmarks including Set5, Set14, B100, Urban100, and Manga109. The method was applied to various backbones, such as EDSR-L (CNN), SwinIR-Lightweight (Transformer), and CAT-R (Cross-Aggregation Transformer).

ISS-P consistently outperformed existing pruning methods like ASSL and SRP across all scales and sparsity levels. Notably, at an extreme sparsity level of 99%, ISS-P on SwinIR achieved a PSNR of 23.87 on Urban100 ($\times4$), significantly surpassing the SRP baseline of 23.43 and the "Scratch" baseline of 23.51.

Visual comparison of super-resolution results on the Urban100 dataset. ISS-P maintains high-frequency details better than other pruning methods at high sparsity.

Visual results demonstrate that ISS-P excels at preserving high-frequency details and sharp edges, which are often lost or blurred in other highly sparse models.

Key Insights and Discussion

The superior performance of ISS-P is attributed to several key factors:

  • Gradient Throughput: By not zeroing weights early, the method preserves "trainability." Gradient variance remains stable, allowing the sparse network to converge more easily than hard-thresholded versions.
  • Dynamic Exploration: ISS-P exhibits much higher "mask dynamics" compared to IHT. This suggests the model is more effectively exploring the "sparsity space" to find the best architecture during training.
  • Magnitude-Gradient Alignment: Hard thresholding often fails because weight magnitude and gradient scale can be mismatched. Soft shrinkage mitigates this by allowing the optimization process to "nudge" weights back into importance if the loss function demands it.

Conclusion

ISS-P provides a robust framework for training highly efficient SR models from scratch. While unstructured sparsity offers significant theoretical gains in parameter reduction and FLOPs, actual wall-clock speedups on standard GPUs require specialized hardware or sparse libraries. Future work will focus on exploring N:M sparsity to better align these methods with modern hardware acceleration capabilities, such as NVIDIA's Ampere architecture.

Summary updated

BibTeX
@inproceedings{wang2023iterative,
  author = {Jiamian Wang and Huan Wang and Yulun Zhang and Yun Fu and Zhiqiang Tao},
  title = {{Iterative Soft Shrinkage Learning for Efficient Image Super-Resolution}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure