Self-training is the standard way to adapt a segmentation model to a new domain. A teacher network labels unannotated target images, and a student trains on those guesses, called pseudo-labels. The guesses are wrong in structured ways. Errors cluster near object contours and in fragmented, speckled regions, and training on them reinforces the mistakes. The most reliable way to find bad pseudo-labels is consensus: run the teacher several times under dropout or augmentation and keep only predictions that stay stable. That multiplies the cost of labeling. A free alternative, discarding low-confidence pixels, is known to throw away many correct labels. We propose a check that costs a few small Fourier transforms per image. A true object boundary in the pseudo-label map should line up with structure in the image itself. Spurious label fragments usually do not. In Fourier terms, the high-frequency part of a correct label map should be phase-aligned with the image's high-frequency phase. Label-map energy that has no matching image phase is a sign of error.
The opportunity sits between two findings that pull in opposite directions. Label noise appears as high-frequency content in the learned mapping, so suppressing high frequencies resists noise (A Spectral Perspective of DNN Robustness to Label Noise). In dense prediction, however, the boundaries we most need to keep are themselves high-frequency, and that is also where pseudo-label errors concentrate (Combating Noise). A uniform low-pass filter cannot tell the two apart. Image phase can, and using it is cheap because the transform is computed once per pseudo-label refresh rather than inside every layer.
Core Claim
A per-pixel reliability weight built from local phase coherence can serve as a single-pass substitute for multi-pass consensus filtering. Here, phase coherence means agreement between the windowed Fourier phase of the teacher's class-probability map and that of the input image, computed in mid and high frequency bands. We claim this weight detects pseudo-label errors about as well as a K-pass ensemble, at roughly 1/K of its labeling cost. We also claim it beats confidence weighting on the hardest classes and boundaries.
The reason to work in phase is specific. Domain shift lives mostly in amplitude and low frequencies, which carry style, contrast and scanner appearance. FVP exploits this by adapting only the low-frequency spectrum (FVP). Phase carries geometry and shape, which is why FARAD can destroy semantics by randomizing phase while keeping amplitude (Fourier Clouds). A coherence measure that normalizes away image amplitude should therefore be largely insensitive to the target domain's style. Spatial edge cues such as gradient magnitude are not insensitive in this way.
Concretely, take an image patch $p$ (for example 32×32 at quarter resolution) and a frequency band $b$. Let $\hat{L}_c(k)$ be the 2D Fourier coefficient at frequency $k$ of the teacher's probability map for class $c$, and let $\hat{I}(k)$ be that of the grayscale image patch. We define
$$ \rho_{p,b,c} = \frac{\left|\sum_{k \in b} \hat{L}_c(k)\, \overline{\hat{I}(k)}/|\hat{I}(k)|\right|}{\sqrt{\sum_{k\in b} |\hat{L}_c(k)|^2}\,\sqrt{|b|}}, $$
which lies in $[0,1]$ and equals 1 when the label map's band-$b$ content is phase-locked to the image. The unexplained high-frequency label energy is $E_p = \sum_{b,c} (1-\rho_{p,b,c}) \sum_{k\in b}|\hat{L}_c(k)|^2$. Pixels in patch $p$ receive the weight $w_p = \exp(-\alpha E_p)$, with $\alpha$ a single tuned scale. This weight multiplies the existing per-pixel pseudo-label loss.
Two properties follow from the definition. A flat, confident region has almost no high-frequency label energy, so it is not penalized regardless of coherence. A sharp but incoherent fragment is penalized. All transforms are real-to-complex, which halves FFT cost as FARAD reports.
Relation to Prior Work
Three papers motivate the gap. Bar et al. explain label noise spectrally but act only on weight spectral norms, and only in supervised classification with synthetic or web noise. Their method makes the whole network smoother; it cannot say which pixel is wrong. Wang et al. (Combating Noise) and DAFormer (DAFormer) document that errors concentrate at decision boundaries and on rare classes. Neither uses image structure to verify a label.
Two papers supply technique while differing in role. FARAD uses phase randomization and R2C FFTs to build an input-level reference for correcting class-frequency bias in classification logits. We reuse its phase/amplitude split and its efficient transform, but apply them to localize spatial errors. FVP uses low-frequency Fourier prompts to adapt cheaply. Its pseudo-label selection, however, is a double confidence threshold plus prototype distance in feature space, which is exactly the component we would replace.
Three papers constrain the design. Multi-band cross-attention of the kind in FAMNet is too slow to run inside a self-training loop, so our check has no learned spectral layer at all. Tri-net's stability-based data editing (Tri-net) is the multi-pass consensus we aim to approximate. The finding of Scherer et al. (Pseudo-Label Noise Suppression) that correct pseudo-labels often have low confidence is why our weight is deliberately independent of softmax confidence.
Research Program
The work has three parts.
The first is a diagnostic study, done before any training. On GTA5→Cityscapes we run a source-trained DAFormer teacher over the Cityscapes training images. Their ground truth is never used for adaptation; it serves only to score pseudo-label correctness. We then measure how well each reliability score separates correct from incorrect pseudo-label pixels, using per-pixel AUROC overall, within a few pixels of true boundaries, and per class. The scores compared are confidence, $K$-pass consensus, the phase-coherence weight, and the ablated variants described below. This stage alone tests the central hypothesis and is cheap.
The second part integrates the weight into the self-training loop of the public DAFormer codebase. It is used either replacing or multiplying DAFormer's confidence-based quality weight, and we report accuracy and wall-clock time per pseudo-label update.
The third part transfers the check to source-free medical adaptation. On the Abdominal CT→MRI task of FVP we replace FVP's double-threshold and prototype selection with the coherence weight, keeping its frozen backbone and frequency prompt. Image edges and organ boundaries correspond more cleanly in medical images than in street scenes, so this is a regime where the hypothesis should hold if it holds anywhere.
We also test one design question: whether raw image phase or the phase of the teacher's shallow features is the better reference. Street scenes contain texture edges, such as road markings and foliage, that are not class boundaries. Coherence with image phase can only ever be a sufficient sign of boundary validity, not a necessary one. The failure mode we expect is valid boundaries between regions of similar appearance, and the per-class analysis is designed to expose it.
Baselines
The naive reference point is DAFormer as released: confidence-thresholded pseudo-labels with its quality weight, rare class sampling and feature distance. DAFormer reports 68.3 mIoU on GTA5→Cityscapes (DAFormer). We will reproduce it with three seeds on our hardware and compare against our own reproduction, not the published figure.
The strongest competitor on the question of filtering quality is multi-pass consensus. Following Tri-net's stability idea, we run the teacher $K\in\{2,4,8\}$ times under dropout and flip/scale augmentation and weight each pixel by agreement. It is the strongest competitor because it uses the network's own uncertainty rather than a proxy. We will compare at matched wall-clock budget and also at unrestricted budget. Beating it means matching its mIoU within seed variance at $K=4$ while taking under a third of its pseudo-labeling time, or exceeding it at equal time.
The confidence-aware Symmetric Cross Entropy weighting of Scherer et al. serves as a second published noise-suppression baseline. We implement it in the same loop with the same tuning budget, which is a small grid over its weighting parameter matching our grid over $\alpha$. It is the strongest competitor that, like ours, costs a single forward pass.
On the medical task the reference is FVP's own selection. FVP reports Dice improving from 0.517 to 0.733 on Abdominal CT→MRI (FVP). Beating it means higher Dice than our reproduction of FVP under identical prompt size and iterations.
Three ablations isolate the key ingredient. The first, amplitude-only, penalizes high-frequency label energy without image coherence; it is the naive spectral filter and should blur boundaries, making it a direct test of the tension above. The second, a label-map-only variant, has no image at all. The third is a spatial surrogate that computes the same agreement as local cosine alignment between label-map gradients and image gradients. Every variant gets the same $\alpha$ grid, the same seeds and the same patch size.
Why not just…?
Why not just threshold on confidence? Confidence thresholding is the default and is already inside DAFormer. Scherer et al. show that correct pseudo-labels frequently carry low confidence, so thresholds discard useful signal. Wang et al. show that confidence is least trustworthy near decision boundaries, which is exactly where errors pile up. Our diagnostic AUROC within the boundary band will show directly whether coherence carries information that confidence lacks. The rare-class mIoU in the training runs will show whether that matters downstream.
Why not just run a consensus ensemble? It probably detects errors at least as well as our check, and we treat it as the accuracy ceiling. The argument against it is cost alone: $K$ teacher passes per refresh, on top of training that already takes about 16 hours on one GPU for DAFormer. If coherence fails to approach consensus in the diagnostic stage, the proposal's main claim fails. In that case the honest conclusion is that cheaper consensus, not spectral checks, is the right direction.
Why not just measure edge alignment in the spatial domain? This is the real threat, because local gradient alignment is cheap and needs no FFT. Our argument for phase is that normalizing out amplitude removes style and contrast, which is where domain shift sits according to FVP and FARAD. Gradient magnitude, by contrast, changes with target-domain contrast. This argument is plausible, not established. The spatial-surrogate ablation is run under identical conditions. If it matches the phase version, we will report the method as edge-coherence checking and drop the spectral framing. The CT→MRI shift, where contrast changes drastically, is where we would expect the gap to be largest.
Why not just apply spectral normalization to the student? Bar et al. show spectral normalization helps under label noise; it moved CIFAR-10 test accuracy from 79.28% to 80.22% at 50% uniform noise. It smooths the network's mapping globally, however, and gives no per-pixel signal, so it would also soften true boundaries. We include student-side spectral normalization as an extra arm in GTA5→Cityscapes, alone and combined with our weight, to test whether the two are complementary or redundant.
Decisive Checks
The work stands or falls on four checks. The first is the boundary-band AUROC in the diagnostic study. Coherence must beat confidence there and come within a few points of 4-pass consensus, or the training experiments are not worth running. The second is the mean and per-seed mIoU on GTA5→Cityscapes against our DAFormer reproduction, with per-class results for train, truck and other rare classes. The third is pseudo-labeling wall-clock time and memory against consensus at each $K$. The fourth is the phase-versus-spatial-surrogate comparison on both the street-scene and CT→MRI tasks, which decides whether the frequency domain is doing real work.
A secondary check on Synthia→Cityscapes tests whether gains carry across source domains. For that setting, the only reported reference is DAFormer's 5.4 mIoU improvement, with no absolute number in our sources, so we rely on our own reproduction.
References
- A Spectral Perspective of DNN Robustness to Label Noise
- Combating Noise: Semi-supervised Learning by Region Uncertainty Quantification
- FVP: Fourier Visual Prompting for Source-Free Unsupervised Domain Adaptation of Medical Image Segmentation
- Fourier Clouds: Fast Bias Correction for Imbalanced Semi-Supervised Learning
- DAFormer: Improving Network Architectures and Training Strategies for Domain-Adaptive Semantic Segmentation
- FAMNet: Frequency-aware Matching Network for Cross-domain Few-shot Medical Image Segmentation
- Tri-net for Semi-Supervised Deep Learning
- Pseudo-Label Noise Suppression Techniques for Semi-Supervised Semantic Segmentation