A hyperspectral image records hundreds of narrow color bands for every pixel. Hyperspectral anomaly detection is the task of finding the rare pixels, such as aircraft on a runway or cars on a road, whose spectra do not fit the surrounding scene, with no labels and no prior knowledge of what the targets look like. A common deep approach trains a small network to reconstruct the scene and flags pixels it reconstructs badly. This approach has a known failure. Given enough training, the network learns to reproduce the anomalies too, their error falls toward zero, and detection accuracy rises and then collapses. The authors of Overcoming the Identity Mapping Problem in Self-Supervised Hyperspectral Anomaly Detection (SuperAD) call this the identity mapping problem.
The best current fix hides suspected anomalies from training, based on the network's own running reconstruction error. We argue that this is a pseudo-labeling scheme: every pixel is implicitly labeled "background, train on me" or "anomaly, skip me." Because the network grades its own work, it inherits the classic self-training failure called confirmation bias. An anomaly that is mislabeled as background early in training gets learned, its error drops, and from then on it looks like background, so the mistake is never corrected. We propose to break this loop by having two small reconstruction networks with deliberately different views of the data grade each other. Each network's per-pixel training weight comes from the other network's error, not its own. This is the co-training remedy that the pseudo-label literature developed for exactly this feedback loop, rebuilt for a setting where the only "labels" are soft background weights.
Core Claim
In self-supervised anomaly detection, memorizing anomalies is caused less by network capacity than by self-referential sample selection. Suppose the weight that decides whether pixel $x$ contributes to network A's loss is computed from network B's reconstruction error. If B sees the data through a different inductive bias, the pixels A learns by mistake are mostly not the pixels B learns by mistake. Cross-weighting should then keep true anomalies' training weights low throughout training, removing the peak-and-crash pattern without superpixel heuristics or per-scene thresholds.
The claim can be checked directly because the benchmarks ship ground-truth anomaly masks. We can measure, at every iteration, how much training weight true anomaly pixels receive. We call this the leakage rate, and it gives a measured quantity of pseudo-label noise in place of an assumed one.
Relation to Prior Work
Two HAD papers motivate the proposal by showing that contamination of the background model is the central problem. SuperAD handles it with superpixel average pooling, error-adaptive convolutions, and online mining of background pixels, reaching an average AUC of 0.9870 across 12 benchmarks with 0.241M parameters. All three mechanisms use the network's own errors, and the authors note that fixed superpixels fail when anomalies straddle superpixel boundaries. The Separability-Aware Sample Cascade filters background samples layer by layer using sparse-coding reconstruction error. Its rejections are hard and permanent, and they are made by the same model that is being purified. Our proposal keeps the idea of purifying the background but changes who does the grading.
The pseudo-label literature supplies both the diagnosis and the remedy. Pseudo-Labeling and Confirmation Bias in Deep Semi-Supervised Learning shows that uncorrected self-training fails badly: 52.44% error on CIFAR-10 with 500 labels, reduced to 13.68% with mixup and a per-batch minimum of labeled samples. Tri-net for Semi-Supervised Deep Learning labels data for one head using the agreement of the other heads, and it needs explicit diversity measures to keep the heads from collapsing into one another. Combating Noise replaces hard thresholds near the decision boundary with uncertainty-softened targets. We reuse the cross-model idea from Tri-net and the soft weighting from Combating Noise. We differ from both in one important way: there are no labeled anchors at all. Diversity therefore has to come from the architecture rather than from labeled fine-tuning.
The influence-based selection in Rethinking Low-Confidence Pseudo Labels requires 1% labeled change pixels to measure prediction shift, so it cannot be applied in the unsupervised setting. We do not adopt it.
Research Program
We build two lightweight background models whose failure modes should differ. Network A is a blind-spot spatial predictor that reconstructs each pixel's spectrum from its neighbors while excluding the center pixel. It tends to memorize anomalies larger than its blind spot, because the neighbors then carry the anomalous spectrum. Network B is a per-pixel spectral autoencoder with a narrow bottleneck and no spatial context. It tends to memorize anomalies whose spectra are common enough in the scene to earn a direction in its bottleneck, regardless of their shape.
Each network is trained with a weighted reconstruction loss. The weight given to pixel $x$ in A's loss is
$$w_A(x) = \exp\!\left(-\frac{e_B(x) - \mathrm{med}(e_B)}{\tau\,\mathrm{MAD}(e_B)}\right)_{\le 1},$$
where $e_B(x)$ is B's current reconstruction error at $x$, $\mathrm{med}$ and $\mathrm{MAD}$ are the median and median absolute deviation of B's errors over the scene, the subscript means the weight is clipped at 1, and $\tau$ is one global constant shared by all scenes. The weight $w_B$ is defined symmetrically from A's errors. Standardizing by median and MAD removes the per-dataset percentile thresholds that the cascade method and SuperAD tune by hand.
The final anomaly score is the geometric mean of the two networks' standardized errors. We also study a Tri-net-style third model, such as a low-rank spectral projection, to test whether two views are enough. As a secondary, label-free output, we track how much the two networks agree on their top-scored pixels. The hypothesis is that a rise in agreement signals shared memorization and can serve as a stopping rule that does not need ground truth.
The analysis consists of leakage curves over training for self-weighted and cross-weighted variants. We also measure the correlation between A's and B's errors on true anomaly pixels, which is the quantity the mechanism depends on, broken down by anomaly size and by dataset.
Baselines
The naive reference points are the global Reed-Xiaoli (RX) detector and an unconstrained reconstruction autoencoder. For the autoencoder, the SuperAD paper reports AutoAD at an average AUC of 0.9756 over its 12 benchmarks. We will run both on our splits and report AUC at the final iteration, not only at the best iteration.
The strongest deep competitor is SuperAD, at an average AUC of 0.9870 over 12 benchmarks drawn from Texas Coast, San Diego, and the Airport-Beach-Urban (ABU) series. PDBSNet, a blind-spot network, is reported there at 0.9787. We will run SuperAD's released configuration on the same 12 scenes with the same iteration budget and the same total parameter count. Our two networks together will be capped at SuperAD's 0.241M parameters. Beating SuperAD means a higher mean final-iteration AUC together with lower variance of AUC across training. A tie in peak AUC combined with lower leakage would be reported as a partial result, not a win.
The strongest non-deep competitor is the gradient-domain Tucker method GCS, which reports 0.9957 AUC on HYDICE. ATLSS (Regularized Background Abundance Tensor Decomposition) reports top detection accuracy across five benchmarks, but no reported numerical AUC was found on Lacuna for it. We will run both with the authors' recommended hyperparameters and without per-scene retuning, because our method also uses one global setting. We will separately report their results with per-scene tuning so readers can see what that tuning is worth.
Three ablations isolate the key ingredient. The first uses the same two networks with self-weights, $w_A$ computed from $e_A$. The second averages the two networks trained independently, which tests ensembling without cross-weighting. The third uses cross-weights with hard 0/1 masks instead of the soft weights. Only the first ablation directly tests the core claim. If cross-weights do not beat self-weights at equal compute, the idea is wrong.
Why not just…?
Why not just use a tensor decomposition, which has no training loop to collapse? This is a real threat on individual scenes: GCS's 0.9957 on HYDICE is hard to beat. The case against relying on it rests on two points. First, both GCS and ATLSS acknowledge manual rank selection and several regularization weights. Second, SAP argues that handcrafted sparsity norms break extended man-made objects into fragments. Our untuned comparison across all 12 scenes and HAD-100 will show whether the robustness of a single global setting outweighs a small loss in per-scene peak AUC. If it does not, we will say so.
Why not just keep SuperAD's own error masking? The mask it builds is self-graded. The self- versus cross-weight ablation, run inside the same architecture, measures exactly this difference through the leakage rate. SuperAD's stated weakness with anomalies that cross superpixel boundaries predicts that the gains, if any, should concentrate on urban ABU scenes. We will check that pattern specifically.
Why not just add mixup or early stopping? Mixup calibrated classifiers in Arazo et al., but that result depended on a minimum of labeled samples per batch, which HAD does not have. Early stopping needs a signal for where the peak is, and choosing it from ground truth is cheating. We will include an autoencoder with mixup and an oracle early-stopped autoencoder as upper and lower references. If the mixup autoencoder matches us, the cross-supervision is unnecessary.
Why not just average an ensemble? Averaging reduces variance but does not stop each member from memorizing the same anomalies. The independent-ensemble ablation tests this directly.
Proposed Experiments
The main evaluation uses SuperAD's 12 benchmarks, HYDICE Urban, and the Los Angeles scene. HAD-100 tests whether one global $\tau$ transfers across 100 scenes. The metrics are ROC AUC over detection and false-alarm rates, AUC at a fixed 2,000 iterations, AUC variance across iterations, the leakage rate, and runtime. Every deep method runs over five seeds.
Two checks decide the outcome. First, at equal architecture and compute, cross-weighting must lower leakage and raise final-iteration AUC relative to self-weighting. Second, the correlation between A's and B's errors on true anomalies must be clearly below 1. If that correlation is high, the mechanism has no basis, and we would report this as evidence that anomaly memorization is shared across architectures, which is itself a useful negative result. A third, secondary check tests whether the agreement-based stopping rule recovers most of the gap between the final-iteration AUC and the oracle peak AUC of the self-weighted variant.
References
- Overcoming the Identity Mapping Problem in Self-Supervised Hyperspectral Anomaly Detection
- Hyperspectral Anomaly Detection Based on Separability-Aware Sample Cascade
- Pseudo-Labeling and Confirmation Bias in Deep Semi-Supervised Learning
- Tri-net for Semi-Supervised Deep Learning
- Combating Noise: Semi-supervised Learning by Region Uncertainty Quantification
- Rethinking Low-Confidence Pseudo Labels: Influence-Aware Semi-Supervised Fine-Tuning for Hyperspectral Change Detection
- Hyperspectral Anomaly Detection via Sparsity of Core Tensor Under Gradient Domain
- Hyperspectral Anomaly Detection Based on Regularized Background Abundance Tensor Decomposition
- Hyperspectral anomaly detection with self-supervised anomaly prior