Swin Transformer V2和特征融合的U-Net图像去噪方法

Mingkang Li, Wei Liu, Weidong ChenJournal of Image and Graphics 2025

Abstract

While Transformer-based neural networks have shown remarkable success in image denoising, they often demand significant computational resources and struggle with high-resolution inputs. This paper introduces an efficient U-Net architecture based on Swin Transformer V2. The proposed network utilizes a dual-branch Transformer (DBT) block in the downsampling stage to extract local and global features in parallel. Furthermore, a dynamic feature fusion mechanism is employed in the upsampling stage to enhance feature learning. By optimizing normalization placement and implementing mirror padding, the model adapts Swin Transformer V2 specifically for denoising tasks. Experimental results on standard benchmarks (CBSD68, Kodak24, McMaster, Urban100) demonstrate that the proposed method achieves state-of-the-art performance while requiring only 26.12% of the FLOPs compared to similar Transformer-based models.

Introduction

Image denoising remains a fundamental challenge in computer vision, aimed at recovering clean images from noisy observations. Traditional Convolutional Neural Networks (CNNs) excel at capturing local textures but are limited by their receptive fields, failing to model long-range dependencies. Conversely, Transformers leverage self-attention for global context but suffer from high computational complexity and boundary artifacts due to cyclic shifting mechanisms. This research addresses these limitations by hybridizing CNN and Transformer architectures within a resource-efficient U-Net framework.

Proposed Method

The architecture follows a 5-layer U-Net design, integrating several key innovations to balance performance and efficiency.

Overall U-Net architecture featuring DB-Transformer (DBT) blocks and feature fusion.

The DB-Transformer (DBT) Block

The core of the downsampling path is the DB-Transformer block. Recognizing that denoising requires both local precision and global awareness, the authors designed a parallel structure.

Detail of the DB-Transformer (DBT) block, showing parallel branches for global (SwinV2) and local (Conv) feature extraction.

As shown in the figure, the input is split into two branches:

  1. Global Branch: Utilizes Swin Transformer V2 with scaled cosine attention to capture long-range dependencies and improve training stability.
  2. Local Branch: Employs depthwise separable convolutions to maintain fine-grained spatial details.

Optimizations for Denoising

To tailor the SwinV2 architecture for denoising, two critical adjustments were made:

  • Pre-Norm Strategy: Unlike the original SwinV2 which uses post-normalization for massive models, this architecture adopts a pre-normalization strategy, which was found to provide better stability and faster convergence for denoising-scale models.
  • Mirror Padding: Standard Swin Transformers use cyclic shifts for window-based attention, which can create artificial boundaries. The proposed method replaces this with mirror padding, ensuring that edge pixels are processed with the same contextual integrity as central pixels.

Dynamic Feature Fusion

In the upsampling stage, the network uses a dynamic weighting mechanism for skip connections. This allows the model to adaptively fuse high-resolution features from the encoder with semantically rich features from the decoder, optimizing the reconstruction of clean textures.

Experiments and Results

The model was trained on a large-scale dataset (8,694 images) including BSD500, DIV2K, and Flickr2K. Evaluation was conducted on four standard benchmarks: CBSD68, Kodak24, McMaster, and Urban100.

Quantitative Performance

The proposed method consistently outperformed traditional CNN-based denoisers and matched or exceeded heavy-duty Transformer models. For instance, on the Urban100 dataset at a noise level of $\sigma = 50$, the model achieved a PSNR of 29.90 dB, surpassing SwinIR (29.82 dB).

Computational Efficiency

The most significant advantage is efficiency. Compared to SwinIR, the proposed model reduces the required floating-point operations (FLOPs) by nearly 74% (491G vs 1880G). This translates to a massive reduction in inference time, making it suitable for practical applications.

Conclusion

This paper presents a highly efficient image denoising network that successfully integrates Swin Transformer V2 into a U-Net framework. By combining parallel convolutional and Transformer branches with task-specific optimizations like mirror padding, the model achieves state-of-the-art denoising quality with a fraction of the computational cost. Future work will focus on further refining feature extraction to recover even finer textures in extreme noise conditions.

Summary updated

BibTeX
@article{li2025swin,
  author = {Mingkang Li and Wei Liu and Weidong Chen},
  title = {{Swin Transformer V2和特征融合的U-Net图像去噪方法}},
  journal = {Journal of Image and Graphics},
  year = {2025},
  doi = {10.11834/jig.240659},
}
Figure