Abstract
Transformer-based methods have achieved impressive image restoration performance due to their capacities to model long-range dependency compared to CNN-based methods. However, advances like SwinIR adopts the window-based and local attention strategy to balance the performance and computational overhead, which restricts employing large receptive fields to capture global information and establish long dependencies in the early layers. To further improve the efficiency of capturing global information, in this work, we propose SwinFIR to extend SwinIR by replacing Fast Fourier Convolution (FFC) components, which have the image-wide receptive field. We also revisit other advanced techniques, i.e, data augmentation, pre-training, and feature ensemble to improve the effect of image reconstruction. And our feature ensemble method enables the performance of the model to be considerably enhanced without increasing the training and testing time. We applied our algorithm on multiple popular large-scale benchmarks and achieved state-of-the-art performance comparing to the existing methods. For example, our SwinFIR achieves the PSNR of 32.83 dB on Manga109 dataset, which is 0.8 dB higher than the state-of-the-art SwinIR method.
Introduction
Image Super-Resolution (SR) is the challenge of reconstructing a high-resolution image from a low-resolution input. While Convolutional Neural Networks (CNNs) were the long-standing kings of this domain, they suffer from a "local" bias—they only see a small neighborhood of pixels at a time.
Recent "Swin" Transformer-based models (like SwinIR) improved this by using self-attention. However, to keep the math manageable, they use window-based attention, which restricts the model's view to small local patches. While this is more efficient, it means the model struggles to capture global information—like repeating patterns across an entire building or large-scale textures—especially in the early layers of the network. The authors of SwinFIR set out to give these models "global vision" without exploding the computational cost.
Methodology
The core innovation is the Spatial Frequency Block (SFB), which replaces standard convolutions within the Residual Swin Transformer Blocks. The SFB splits the feature map into two parallel paths:
- Spatial Branch: Uses traditional residual blocks to refine local details.
- Frequency Branch: Uses Fast Fourier Convolutions (FFC). By converting the image into the frequency domain using a Fast Fourier Transform (FFT), the model can perform operations that have an "image-wide" receptive field. This allows the network to perceive global context even in its very first layers.
Beyond architecture, the authors revisited the training recipe. They swapped standard L1 loss for the more stable Charbonnier Loss and integrated advanced augmentations like Mixup and Channel Shuffle. Furthermore, they proposed a Feature Ensemble strategy. Instead of the traditional "self-ensemble" (which requires running the model multiple times at test-time), they average the weights of multiple intermediate checkpoints from the training process. This provides a "wisdom of the crowd" performance boost with zero additional inference time.
Experimental Results
The models were trained on DIV2K and Flickr2K (DF2K), with ImageNet used for large-scale pre-training. Evaluation was conducted on standard benchmarks: Set5, Set14, BSD100, Urban100, and Manga109.
SwinFIR consistently outperformed previous state-of-the-art models like SwinIR and EDT. On the Manga109 dataset (x4 scale), SwinFIR achieved a PSNR of 32.83 dB, a massive 0.8 dB improvement over the original SwinIR. On Urban100 (x4 scale), it saw a gain of 0.67 dB, reaching 28.12 dB.
Visual results show that SwinFIR is significantly better at restoring periodic structures—like the fine slats of a vent or the grid of a skyscraper—where local-only models often produce "aliasing" or blurry artifacts. Additionally, their stereo variant, SwinFIRSSR, outperformed previous leaders on KITTI benchmarks while maintaining a comparable parameter count.
Conclusion
SwinFIR demonstrates that global dependencies, while computationally expensive in the spatial domain, are efficiently captured in the frequency domain. By combining this architectural shift with a refined training recipe and a "zero-cost" feature ensemble, the model sets new performance standards. While the latency of FFT operations on specialized mobile hardware remains an area for future study, the Spatial Frequency Block proves to be a powerful tool for low-level vision tasks.
Summary updated