Abstract
Blind-spot networks (BSN) have been prevalent network architectures in self-supervised image denoising (SSID). Existing BSNs are mostly conducted with convolution layers. Although transformers offer potential solutions to the limitations of convolutions and have demonstrated success in various image restoration tasks, their attention mechanisms may violate the blind-spot requirement, thus restricting their applicability in SSID. In this paper, we present a transformer-based blind-spot network (TBSN) by analyzing and redesigning the transformer operators that meet the blind-spot requirement. Specifically, TBSN follows the architectural principles of dilated BSNs, and incorporates spatial as well as channel self-attention layers to enhance the network capability. For spatial self-attention, an elaborate mask is applied to the attention matrix to restrict its receptive field, thus mimicking the dilated convolution. For channel self-attention, we observe that it may leak the blind-spot information when the channel number is greater than spatial size in the deep layers of multi-scale architectures. To eliminate this effect, we divide the channel into several groups and perform channel attention separately. Furthermore, we introduce a knowledge distillation strategy that distills TBSN into smaller denoisers to improve computational efficiency while maintaining performance. Extensive experiments on real-world image denoising datasets show that TBSN largely extends the receptive field and exhibits favorable performance against state-of-the-art SSID methods.
Introduction
Image denoising typically relies on supervised learning with pairs of noisy and clean images. However, obtaining clean ground-truth images in real-world scenarios is often impractical. This has led to the rise of Self-Supervised Image Denoising (SSID), where models learn to denoise using only noisy data. A cornerstone of SSID is the Blind-Spot Network (BSN), which operates on the principle that a pixel's value can be predicted from its neighbors, provided the pixel itself is "blinded" during training to prevent the model from learning a trivial identity mapping.
While Transformers have set new benchmarks in computer vision by capturing long-range dependencies, their standard self-attention mechanism is inherently incompatible with the blind-spot constraint. Because self-attention allows every pixel to attend to every other pixel—including itself—it "leaks" the target noise information. This paper introduces TBSN, the first effective Transformer-based BSN that redesigns attention mechanisms to strictly obey blind-spot constraints while leveraging the power of global context.
Methodology: Redesigning Attention for SSID
The core innovation of TBSN is the Dilated Transformer Attention Block (DTAB). This block integrates two novel attention mechanisms designed to preserve the blind-spot requirement throughout the network architecture.
1. Grouped Channel-Wise Self-Attention (G-CSA)
In multi-scale networks, spatial information is often shuffled into the channel dimension during downsampling. Standard channel attention can inadvertently aggregate this spatial information, leading to blind-spot leakage. TBSN addresses this by dividing channels into small groups and performing attention within those groups. By ensuring the group channel count remains smaller than the spatial resolution, the model prevents the reconstruction of the central pixel from channel-wise correlations.
2. Masked Window-Based Self-Attention (M-WSA)
To achieve the benefits of Transformers while maintaining a blind spot, the authors apply a specific mask to the spatial attention matrix. This mask ensures that a "query" pixel only attends to "key/value" pixels at specific relative coordinates, effectively creating a hole at the center. This mimics the behavior of dilated convolutions but allows for a much more flexible and larger receptive field.
3. Knowledge Distillation (TBSN2UNet)
To overcome the high computational cost of Transformers, the authors employ a knowledge distillation strategy. The high-performing TBSN acts as a "teacher" to train a lightweight, standard U-Net "student." This allows the final model to achieve near-identical performance at a fraction of the inference time.
Key Insights: Receptive Field and Performance
A critical advantage of TBSN over traditional CNN-based BSNs is its Effective Receptive Field (ERF). As shown in the comparative analysis, TBSN covers a significantly wider and more focused area than its predecessors. This expanded context allows the model to better distinguish between noise and fine structural details.
By capturing these long-range dependencies, TBSN is particularly effective at removing spatially correlated noise—often appearing as "blotches" in real-world images—which frequently baffles local-only convolution networks.
Experimental Results
The model was rigorously evaluated on two major real-world benchmarks: the Smartphone Image Denoising Dataset (SIDD) and the Darmstadt Noise Dataset (DND).
- State-of-the-Art Accuracy: TBSN achieved a PSNR of 37.78 dB on SIDD, outperforming previous SOTA methods like PUCA (37.54 dB) and LG-BPN (37.28 dB).
- Extreme Efficiency: Through distillation, the TBSN2UNet student model achieved an inference speed of 4.8ms for a 256x256 image—over 200x faster than the teacher model (1032ms)—while actually slightly improving performance to 37.79 dB.
Conclusion
TBSN demonstrates that Transformers can be successfully adapted for self-supervised denoising by carefully constraining their attention mechanisms. By combining the architectural rigor of blind-spot networks with the expressive power of Transformers and the efficiency of knowledge distillation, this work provides a robust framework for high-performance, real-time image restoration in the absence of ground-truth data.
Summary updated