TL;DR
Weakly-supervised change detection in satellite imagery often confuses seasonal or environmental background variations with actual structural changes due to the lack of pixel-level labels. This paper introduces Adversarial Class Prompting (AdvCP), a plug-and-play training strategy that intentionally tricks a model into revealing its background biases and corrects them using an online global prototype. The method achieves massive performance boosts across various architectures with zero added inference cost.
What Problem Does This Paper Address?
Detecting structural changes (like new buildings or roads) from multi-temporal satellite images is vital for urban planning and disaster assessment. While fully-supervised models excel at this, collecting pixel-level annotations for massive satellite images is incredibly expensive and time-consuming.
Weakly-Supervised Change Detection (WSCD) offers a cheaper alternative by relying only on image-level labels (i.e., simply tagging a pair of images as "changed" or "unchanged"). However, WSCD models suffer heavily from co-occurring noise. If a training image pair marked "changed" contains both a new building and a seasonal background shift (e.g., green fields turning brown), the model struggles to realize that the grass color isn't the change it's looking for. Consequently, harmless background variations get falsely flagged as object changes.
Methods
The authors propose Adversarial Class Prompting (AdvCP), a model-agnostic training strategy designed to isolate and rectify these background errors. It operates in two distinct phases:
- Adversarial Prompt Mining: To find out what background features the model is confusing with actual changes, the authors look at clean, "unchanged" image pairs. During training, they intentionally feed these images into the classifier with an inverted label ("changed"). This adversarial prompt forces the model to activate and highlight the background features it finds most ambiguous. An XOR operation between the original and adversarially prompted localization maps isolates these "hard negative" pixel features.
- Adversarial Sample Rectification: Once these troublesome background features are unmasked, the model must learn to categorize them correctly as "unchanged." The authors maintain an Online Global Prototype of the unchanged class, computed via an exponentially weighted moving average (EWMA) across all historical training batches. An L2 loss function then pulls the mined adversarial features closer to this global unchanged anchor, drawing a sharper, cleaner decision boundary in the latent space.
Datasets
The method was evaluated on three widely used change detection benchmarks:
- LEVIR-CD: A large-scale building change detection dataset consisting of high-resolution (0.5 m) remote sensing image pairs.
- WHU-CD: A very high-resolution (0.3 m) aerial dataset focusing on urban change detection.
- DSIFN-CD: A highly complex cross-domain benchmark that includes a variety of land-cover objects across six different cities.
To demonstrate generalizability, the authors also extended evaluations to the MSCOCO and PASCAL VOC 2012 datasets for multi-label weakly-supervised semantic segmentation.
Key Insights and Ideas
- Leveraging the "Clean" Class: Instead of trying to untangle noise from already complicated "changed" images, AdvCP cleverly uses "unchanged" images as a pristine source of truth to mine background variations.
- Adversarial Prompting as a Diagnostic Tool: Flipping the label acts like an internal stress test, forcing the model to reveal its misconceptions about what constitutes a change.
- Online Global Prototypes over Batch Prototypes: Relying only on the current mini-batch to define a class center introduces local sampling bias. By using an EWMA-updated global prototype, the anchor remains stable and robust against batch-to-batch fluctuations.
- Zero Inference Overhead: Because AdvCP is purely a training regularizer that shapes the latent space, the final model runs at exactly the same speed during deployment.
Key Results
AdvCP was integrated into six different baseline methods, spanning ConvNets (WCDNet, SEAM), Transformers (MCTformer, TransWCD), and Segment Anything Model (SAM)-based networks (CS-WSCDNet, S2C).
- State-of-the-Art Performance: When combined with the SAM-based S2C baseline, AdvCP set new benchmarks, achieving IoU improvements of 3.99% on WHU-CD, 2.27% on LEVIR-CD, and 3.52% on DSIFN-CD.
- Massive Baseline Boosts: On the TransWCD baseline, AdvCP delivered its highest gains, boosting IoU by 7.46% on the LEVIR-CD dataset and 6.94% on WHU-CD.
- Extensibility: When applied to fully-supervised change detection (using BIT and Changer baselines), it still yielded consistent improvements (up to +3.07% IoU), proving that even fully-supervised models benefit from targeted hard-sample rectification.
Limitations and Future Work
While highly effective, AdvCP introduces an impact factor hyperparameter ($\alpha$) to balance the adversarial loss against the standard classification loss. The authors note that setting $\alpha$ too high can cause the model to overemphasize background noise rectification, which inadvertently disrupts the optimization of actual changed pixels.
Additionally, while AdvCP significantly cleans up false positives, the final output quality remains fundamentally bounded by the feature extraction capabilities of the underlying baseline network architecture. The authors plan to explore its applicability to an even broader range of multi-class weakly-supervised dense prediction tasks in the future.
Summary updated