TL;DR
Xformer is a novel dual-branch vision Transformer that simultaneously models spatial and channel-wise dependencies to achieve superior image denoising. By bridging these two perspectives with a novel Bidirectional Connection Unit (BCU), it achieves state-of-the-art results on both synthetic and real-world noise removal with comparable computational complexity to existing models.
What Problem Does This Paper Address?
Image denoising—recovering a clean image from a noisy one—is a classic "inverse problem" in computer vision. While Deep Convolutional Neural Networks (CNNs) have dominated this field, they suffer from two main drawbacks: a limited receptive field (making it hard to capture long-range dependencies) and content-independent filters that lack flexibility for dynamic inputs.
Transformers have emerged as a powerful alternative due to their self-attention (SA) mechanism. However, current Transformer-based denoisers usually focus on one of two scopes:
- Spatial-wise SA: Good at capturing local patch-level information and fine spatial details (e.g., SwinIR).
- Channel-wise SA: Capable of modeling global connectivity and specific channel features (e.g., Restormer).
The authors argue that focusing on only one dimension leaves a "representation gap." The challenge lies in effectively combining these two distinct modeling fashions without significantly increasing model complexity or simply concatenating features in a way that fails to exploit their complementary nature.
Methods
The authors propose Xformer, a hybrid X-shaped architecture consisting of two concurrent branches that process information in parallel.
1. Dual-Branch Architecture
- Spatial-wise Branch: Utilizes Spatial-wise Transformer Blocks (STB). These use window-based multi-head self-attention to perform fine-grained interactions across local patches.
- Channel-wise Branch: Utilizes Channel-wise Transformer Blocks (CTB). These apply self-attention across the channel dimension rather than the spatial dimension, allowing the model to capture global context interactions.
2. Bidirectional Connection Unit (BCU)
The "bridge" of the X-shape is the BCU. Instead of just merging the branches at the end, the BCU interactively fuses features between the spatial and channel branches at multiple scales within the encoder-decoder structure. It uses 3×3 depth-wise and standard convolutions to refine and exchange information, ensuring that the spatial branch benefits from global context and the channel branch benefits from fine-grained local details.
3. Efficiency Designs
To keep the model competitive, the authors employ an encoder-decoder (U-Net style) structure in each branch. They also implement parameter sharing in the deepest encoder blocks of both branches to reduce the total number of parameters.
Datasets
The model was evaluated on two main denoising tasks:
- Synthetic Gaussian Denoising: Trained on a combination of DIV2K, Flickr2K, BSD500, and WED. Testing was performed on standard benchmarks: Set12, BSD68, Kodak24, McMaster, and Urban100.
- Real-World Denoising: Trained on the SIDD dataset. Evaluation was conducted on the SIDD validation set and the DND benchmark.
Key Insights and Ideas
- Dimensional Complementarity: The core "aha moment" is that spatial and channel attention are not redundant; they are complementary experts. Spatial SA acts like a microscope for textures, while Channel SA acts like a telescope for global structure.
- Interactive Fusion is Crucial: The authors demonstrate through ablation studies that simply concatenating the outputs of two parallel branches is suboptimal. The BCU's ability to "cross-talk" during the feature extraction process is what drives the performance gains.
- Balanced Complexity: By using an X-shaped concurrent structure rather than a deeper serial one, the model achieves better representation power without a massive increase in FLOPs or parameters compared to single-branch SOTA models like Restormer.
Key Results
Xformer achieves state-of-the-art performance across nearly all tested benchmarks:
- Quantitative: On the challenging Urban100 dataset (noise level σ=50), Xformer outperformed Restormer by 0.42 dB in PSNR. On real-world data (DND benchmark), it achieved a PSNR of 40.19 dB, surpassing all compared CNN and Transformer baselines.
- Qualitative: Visual comparisons show that Xformer is significantly better at recovering fine, repetitive textures (like building windows or fabric patterns) that other models often blur or misidentify as noise.
Limitations and Future Work
While the paper demonstrates excellent results, a few areas remain for exploration:
- Task Generalization: The current study focuses strictly on denoising. The authors suggest that the hybrid X-shaped structure could be extended to other restoration tasks like image deblurring or super-resolution.
- Computational Overhead: Although complexity is "comparable" to other Transformers, Transformers in general remain more computationally expensive than lightweight CNNs, which may limit deployment on edge devices with very strict power budgets.
Not discussed in the paper are the specific impacts of varying the window sizes in the STB or the temperature parameters in the CTB across different noise levels.
Summary updated