NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Segment Any Change

Zhuo Zheng, Yanfei Zhong, Liangpei Zhang, Stefano Ermon

TL;DR

AnyChange is a novel model that achieves zero-shot change detection, identifying environmental or structural changes in satellite imagery without task-specific training. By repurposing the Segment Anything Model (SAM) through a "bitemporal latent matching" technique, it sets new state-of-the-art records for unsupervised change detection and rivals supervised models using a fraction of the data.

The Challenge of Generalizable Change Detection

Detecting changes on the Earth's surface—such as urban sprawl, deforestation, or disaster damage—is critical for sustainability and disaster response. Traditional deep learning models for change detection are often "brittle," requiring massive amounts of labeled data for specific geographic areas and change types. When moved to a new region or tasked with detecting a different type of change, their performance typically plummets.

The ideal solution is a model capable of generalizing to any change type in any location without retraining. While foundation models like SAM have mastered zero-shot image segmentation, adapting them to compare two different points in time (bitemporal analysis) while maintaining their general-purpose capabilities has remained an open challenge.

AnyChange applied to diverse scenarios like urbanization and disaster assessment.

Introducing AnyChange and Bitemporal Latent Matching

To address this, researchers introduce AnyChange, which builds upon SAM without altering a single weight in the original model. The core innovation is a training-free adaptation method called Bitemporal Latent Matching (BLM).

  1. SAM Forward Pass: The model utilizes SAM’s frozen image encoder to generate embeddings ($z_t, z_{t+1}$) and object masks for two images taken at different times.
  2. Latent Matching: Instead of comparing raw pixels, AnyChange compares the semantic embeddings of the masks. It calculates a "change confidence score" based on the negative cosine similarity between an object's embedding at time $t$ and the corresponding area at time $t+1$.
  3. Bidirectional Consistency: To ensure robustness and filter out noise or transient artifacts, the model performs this matching in both directions ($t \to t+1$ and $t+1 \to t$).
  4. Point Query Mechanism: For users interested in specific changes (e.g., "show me only destroyed buildings"), a promptable interface is included. Users can click on an object of interest, and the model uses that semantic "anchor" to filter the class-agnostic change masks.
The AnyChange architecture, highlighting Bitemporal Latent Matching and the Point Query mechanism.

Key Insights

  • SAM’s Latent Space is Rich: The authors discovered that SAM’s internal representations already encode deep semantic similarities across different images. Objects of the same category (e.g., water, buildings) cluster together in the latent space, even with variations in lighting or sensor angle between time steps.
  • Training-Free Adaptation: By avoiding fine-tuning, AnyChange perfectly inherits SAM’s massive "world knowledge." Fine-tuning often leads to "catastrophic forgetting," where a model excels at a specific dataset but loses its generalization ability.
  • Instance-Level Robustness: Comparing entire object segments (instances) is significantly more robust than comparing individual pixels. This "object-centric" approach naturally mitigates minor pixel-level noise caused by shadows or registration errors.

Performance and Results

The researchers evaluated AnyChange across four major remote sensing benchmarks, including LEVIR-CD, S2Looking, xView2, and SECOND (a multi-class dataset with 36 change types).

  • Unsupervised SOTA: On the SECOND benchmark, AnyChange set a new record for unsupervised change detection, outperforming the previous state-of-the-art by 4.4% in $F_1$ score.
  • Label Efficiency: In a supervised setting, AnyChange achieved accuracy comparable to fully trained models while using negligible manual annotations (effectively 1 pixel per image).
  • Interactive Power: Utilizing the Point Query mechanism, the model's performance on building-centric datasets improved by approximately 15% $F_1$ score with just a single user click, highlighting its utility as an interactive analytical tool.

Limitations and Future Directions

While AnyChange represents a significant advancement, it has limitations. Its performance is inherently tied to the underlying foundation model (SAM), meaning any biases or blind spots in SAM carry over. Detecting very small objects remains challenging, although upsampling can help mitigate this. Finally, the field currently lacks a "concept-complete" dataset for truly class-agnostic change detection, making it difficult to measure the model's absolute performance ceiling. Future work will likely explore integrating stronger foundation models and refining latent matching for extreme atmospheric variations.

Summary updated

BibTeX
@inproceedings{zheng2024segment,
  author = {Zhuo Zheng and Yanfei Zhong and Liangpei Zhang and Stefano Ermon},
  title = {{Segment Any Change}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=D7X9Grmd7L},
}
Figure