Self-supervised denoisers learn to clean images using only noisy photos, with no clean references. They do this by hiding each pixel from the network and asking it to predict that pixel from its surroundings. The trick breaks on real camera noise. The camera's processing pipeline smears noise across neighboring pixels, so the surroundings leak the hidden pixel's noise and the network learns to copy it. Current fixes come in two kinds. Some scramble the image by pixel-shuffle downsampling, which also blurs fine edges. Others restrict the network to small local windows of attention, which caps how much context it can use. We propose a different fix: a global attention layer that ignores a whole neighborhood around each pixel, sized to the noise's correlation length, and still runs in time linear in the number of pixels. The trick is algebraic. In kernelized "linear" attention, attending to everything except a local zone equals global attention minus a small local attention, and both terms are cheap to compute.
We judge this denoiser by what matters downstream for perception: whether object detectors still place tight boxes, and still rank their best-placed boxes first, on noisy images. A detector's confidence that something is a car often fails to track how well its box fits the car. This is known as classification-localization misalignment. We expect correlated noise to make it worse, because noise clumps erase boundaries but leave the textures that drive class scores. Reconstruction scores (PSNR, the standard pixel-error metric) cannot show whether a denoiser preserved the edges that box regression depends on. Strict-threshold detection metrics can.
Core Claim
A blind-spot denoiser can have a receptive field covering the whole image, an exclusion zone of any size, no pixel-shuffle downsampling, and linear cost. We also claim that at matched PSNR, such a denoiser recovers more strict-localization accuracy than downsampling-based or window-based self-supervised denoisers. We measure that accuracy as AP75 (average precision when a box must overlap the ground truth by 75%) and as the rank correlation between detection score and true box overlap.
The Mechanism
QT-ViT shows that replacing softmax with a feature map $\phi$ lets attention be computed as $Q(K^\top V)$ in linear time while staying competitive on ImageNet and COCO. The research file notes that a blind-spot mask $M$ seems to rule this out, because $[(QK^\top)\odot M]V \neq Q(K^\top V)$. But a blind-spot mask is not arbitrary. It is "everything except a local zone." Write $W(i)$ for the square of side $2k+1$ centered on token $i$. The masked output at token $i$ is then
$$y_i=\frac{\phi(q_i)^\top S-\sum_{j\in W(i)}\phi(q_i)^\top\phi(k_j)\,v_j}{\phi(q_i)^\top z-\sum_{j\in W(i)}\phi(q_i)^\top\phi(k_j)},$$
where $S=\sum_j \phi(k_j)v_j^\top$ and $z=\sum_j\phi(k_j)$ are global sums computed once. The cost is $O(Nd\,d_v)$ for the global term plus $O(N(2k+1)^2d)$ for the local correction. That is linear in the token count $N$ for fixed $k$. We use a strictly positive feature map so the subtracted normalizer stays positive. We will monitor numerical cancellation when the exclusion zone carries most of the attention mass.
A single layer is not enough. Stacking global layers leaks information: token $j$'s features at layer two already contain token $i$'s neighborhood. This is why existing transformer blind-spot networks, TBSN and SwinIA, keep attention local and carefully dilated.
Our architecture is leak-free by construction. A shallow local encoder with bounded radius $r$ produces a fixed memory of keys and values. Queries come from a small local blind-spot convolutional network, so query $i$ never sees $x_i$'s zone. Several readout layers then cross-attend to that fixed memory with exclusion radius $k+r$, and each layer updates only the queries. We verify the property directly by checking that the gradient of $y_i$ with respect to every input inside the zone is exactly zero.
The radius $k$ is set from the noise autocorrelation span, following Bordone Molini et al.. We estimate that span blindly from flat regions of the noisy images.
Relation to Prior Work
Several papers motivate the work. AP-BSN documents the dilemma of pixel-shuffle downsampling: large strides break noise correlation but cause aliasing and destroy edges. It handles this with different strides at training and test time, plus a refinement step that needs many forward passes. We remove the downsampling entirely.
TBSN applies masked window attention after pixel-shuffle downsampling and reaches strong PSNR. It needs distillation into a U-Net to get fast inference, and its attention never leaves the window. Our method keeps the exclusion-zone idea but makes context global.
SwinIA masks self-attention inside Swin windows and is reported to struggle on spatially correlated noise. That is a negative result. It tells us a single-pixel blind spot inside windowed attention is not enough, and it is why our zone is sized to the noise correlation.
On the detection side, IoU-aware detectors and TOOD supply the tools for measuring and reducing misalignment. Both were evaluated only on clean images. The large gap between predicted and ground-truth overlap in the IoU-aware paper's oracle experiment shows that box-quality estimates are fragile, which suggests they may degrade further under noise.
Raw or Cooked? and AODRaw constrain the design. They show that a camera's standard processing pipeline discards detail detectors need, so any denoiser front-end must beat detecting directly on the raw sensor data, not only beat no denoising.
Research Program
We first build the subtractive blind-spot attention operator and its leak-free stack. We verify exact zero gradients inside the zone, and we measure memory and latency against masked window attention at resolutions from 512 pixels up to full sensor size.
Second, we train the denoiser self-supervised on SIDD (smartphone photos) and DND (camera photos), using only noisy images. We report PSNR and SSIM (a structural similarity metric) along with an edge-fidelity measure: PSNR restricted to pixels near ground-truth object boundaries.
Third, we use detection to test whether those differences matter. We build a noisy version of COCO by unprocessing images to raw form, adding shot and read noise, and re-running demosaicing and color processing, in the style of the unprocessing pipeline used by AODRaw. This yields realistic spatially correlated noise at controlled strengths. We also evaluate on real low-light raw data from PASCALRAW and AODRaw.
The detector throughout is TOOD, used unchanged. For each denoiser we report AP, AP50, and AP75. We also report two misalignment measures: the Spearman correlation between classification score and true overlap among matched detections, and the fraction of suppression decisions in which a better-fitting box is removed by a higher-scoring, worse-fitting one.
Baselines
The naive reference is TOOD trained on clean COCO and run on the noisy images. It establishes how much correlated noise hurts and whether AP75 falls faster than AP50. A stronger version of this reference is TOOD fine-tuned on the noisy training set with the same schedule. This is the most serious competitor, because it lets the detector absorb the noise itself.
For the downsampling family we use AP-BSN followed by TOOD. AP-BSN reports 35.97 dB PSNR on SIDD. We use its refinement setting as published and also a single-pass setting, so latency is comparable.
The strongest existing denoiser is TBSN, which reports 37.78 dB on SIDD and 39.08 dB on DND. Its distilled U-Net version runs at 4.8 ms per image. We run both as front-ends to TOOD. The detection reference is TOOD's 51.1 AP on clean COCO with a ResNeXt-101-DCN backbone. There is no reported result on Lacuna for TOOD, or any aligned detector, on correlated-noise COCO, so we produce that number ourselves.
On raw data the baseline is the learnable Yeo-Johnson raw detector, which reports 52.6 mean AP on PASCALRAW against 50.5 for the standard processed RGB pipeline. On AODRaw the baseline is the distilled raw ConvNeXt-T Cascade R-CNN at 34.8 AP.
All denoisers get the same noisy training images, the same GPU-hour budget, and the same hyperparameter search size. The detector and its training recipe are fixed across conditions. Beating the field means matching TBSN's PSNR within a few tenths of a dB while improving AP75 and score-overlap correlation over every front-end and over the fine-tuned detector, on both synthetic and real data.
Two ablations isolate what is new. The first keeps our exclusion zone and architecture but replaces global readout with window attention of TBSN's size. This tests whether global context, not the zone, drives any gain. The second puts pixel-shuffle downsampling back in front of our network. This tests whether avoiding downsampling is what preserves edges.
Why not just…?
Why not just fine-tune the detector on noisy images and skip denoising? This is the real threat. AODRaw's finding that raw-trained models degrade far less under noise stress (about 4% versus about 13%) suggests detectors can learn noise robustness directly. Our experiments include the fine-tuned TOOD at equal compute. If it matches our pipeline on AP75 and score-overlap correlation, we will report that the denoiser adds nothing for detection. The contribution would then shrink to the operator and its restoration results.
Why not just use TBSN's distilled U-Net, which is already fast? Inference speed is not the issue. TBSN pays for its speed with a 12.97M-parameter teacher, still relies on pixel-shuffle downsampling, and its distilled student inherits the teacher's window-limited view and its edge losses. The window-attention ablation and the TBSN-front-end comparison together show whether global exclusion-zone attention improves boundaries. If it does not, TBSN's distilled U-Net is the better engineering choice and we will say so.
Why not just widen the blind spot in a convolutional network? The exclusion-zone CNN of Bordone Molini et al. does exactly this. TBSN's effective-receptive-field analysis shows that convolutional blind-spot networks gather limited context, and a large hole leaves them even less to work with. We include that model as an additional front-end with matched parameters. The expectation is that its PSNR drop grows with $k$, while our global readout's drop does not.
Why not just detect directly on raw sensor data? On PASCALRAW and AODRaw this is a strong option. We report the raw detectors as baselines and also feed our denoised raw output into them. The denoiser is justified for raw-domain perception only if that combination beats the raw detector alone at strict thresholds.
Decisive Checks
Four results would decide the question. First, zero gradient leakage must hold under the subtractive operator in float16. Second, the operator's memory must grow linearly to full sensor resolution, where window attention with a matched receptive field cannot run. Third, the gap between AP75 and AP50 under correlated noise must be larger than under independent noise with the same pixel variance. That would confirm that correlated noise specifically hurts localization. Fourth, at matched PSNR, our denoiser must recover more of that gap and of the score-overlap correlation than TBSN or AP-BSN.
If the third check fails, correlated noise does not specifically worsen misalignment, and we would present the denoiser as a restoration contribution only.
References
- QT-ViT: Improving Linear Attention in ViT with Quadratic Taylor Expansion
- Rethinking Transformer-Based Blind-Spot Network for Self-Supervised Image Denoising
- SwinIA: Self-Supervised Blind-Spot Image Denoising Without Convolutions
- Speckle2Void: Deep Self-Supervised SAR Despeckling With Blind-Spot Convolutional Neural Networks
- AP-BSN: Self-Supervised Denoising for Real-World Images via Asymmetric PD and Blind-Spot Network
- IoU-aware single-stage object detector for accurate localization
- TOOD: Task-aligned One-stage Object Detection
- Raw or Cooked? Object Detection on RAW Images
- Towards RAW Object Detection in Diverse Conditions