MapFormer: Boosting Change Detection by Using Pre-change Information

Maximilian Bernhard, Niklas Strauß, Matthias Schubert

Abstract

Traditional satellite change detection (CD) relies on comparing bi-temporal images to identify surface modifications. However, this approach often ignores the wealth of existing geographic information available through maps and GIS databases. This paper introduces MapFormer, a transformer-based architecture that redefines change detection as a "conditional" task by incorporating pre-change semantic maps as an additional input. By leveraging these priors, MapFormer achieves significant performance gains, including up to an 18.4% absolute increase in Intersection over Union (IoU) over current state-of-the-art methods.

Introduction

Change detection is the process of identifying semantically meaningful differences—such as new urban developments, deforestation, or infrastructure changes—between two satellite images of the same location taken at different times. Historically, deep learning models have treated this as a purely visual bi-temporal comparison: Image A and Image B are processed to output a binary or semantic change mask.

Despite the proliferation of global mapping data (e.g., OpenStreetMap), existing models rarely utilize this information. The authors of MapFormer argue that we live in an extensively mapped world, and these maps provide a rich semantic prior that can simplify the detection task. They propose a new paradigm called Conditional Change Detection, where the model uses a pre-existing map to "condition" its understanding of visual changes, effectively providing a ground-truth baseline for the "before" state.

Methodology: The MapFormer Architecture

MapFormer is built upon the MixVisionTransformer (MiT) backbone and introduces two critical innovations to handle multi-modal data fusion and feature alignment.

1. Multi-modal Feature Fusion Module

Rather than simply concatenating image and map features—which often leads to suboptimal integration—MapFormer employs a dynamic fusion approach. The module generates $K$ different joint representations (or "views") of the bi-temporal image features. It then utilizes features extracted from the pre-change semantic map to perform channel-wise attention. This process dynamically weights the relevance of specific feature views for every pixel, allowing the map to guide the feature extraction process and focus the model on areas where changes are most likely or semantically relevant.

2. Supervised Cross-modal Contrastive Loss

To ensure the model understands the relationship between visual pixels and semantic labels, the authors implement a supervised cross-modal contrastive loss. During training, this loss function forces the model to project the "pre-change image" and the "pre-change map" into similar regions of a latent feature space.

When a change occurs, the "post-change image" is pushed away from this cluster in the latent space; conversely, if no change is detected, the post-change features are pulled toward the pre-change cluster. This guidance helps the image encoder learn representations that are inherently more semantically meaningful, bridging the gap between raw pixels and high-level map categories.

Experimental Setup and Datasets

Standard change detection benchmarks like LEVIR-CD do not typically include semantic map layers. To evaluate MapFormer, the authors utilized two comprehensive datasets:

  • DynamicEarthNet: Provides daily multi-spectral satellite imagery with seven land-use classes (e.g., agriculture, forest, water, urban).
  • HRSCD (High-Resolution Semantic Change Detection): Features image pairs from 2005/2006 and 2012, categorized into five semantic classes including artificial surfaces and wetlands.

Key Results and Insights

MapFormer demonstrated a transformative impact on detection accuracy across both datasets:

  • State-of-the-Art Performance: On the DynamicEarthNet dataset, MapFormer achieved a binary change IoU of 23.5%, an 11.7% absolute improvement over the previous leader, ChangeFormer. On the HRSCD dataset, the improvement was even more pronounced, reaching 48.0% IoU—an 18.4% leap over existing methods.
  • The Power of Priors: Even a simplified baseline that merely concatenated map features to image features outperformed complex image-only models. This suggests that the research community has historically been solving a more difficult version of the problem by ignoring available map data.
  • Cross-modal Detection: One of the most significant findings is that "Cross-modal" detection (using only the New Image and the Old Map) performs nearly as well as "Conditional" detection (using Old Image + New Image + Map). This implies that high-quality maps can effectively replace the need to store and process massive archives of historical satellite imagery.
  • Robustness: The model remains effective even when the input maps are of lower resolution or use simplified classification schemes, making it viable for regions where detailed GIS data might be dated or less granular.

Limitations and Future Work

The primary constraint of MapFormer is its dependency on the availability of a pre-change semantic map. While maps are common, they are not universal, particularly in rapidly developing or remote regions.

Future research directions include:

  • Pseudo-map Generation: Utilizing self-supervised learning to generate synthetic maps for areas where ground-truth GIS data is missing.
  • Refined Semantic Pipelines: Integrating advanced segmentation heads to better classify the "from-to" nature of changes (e.g., identifying that a forest has specifically changed into a residential area).
  • Global Scalability: Testing the architecture on larger, more diverse global datasets to ensure the fusion mechanisms hold up across different biomes and urban structures.

Conclusion

MapFormer demonstrates that incorporating map-based priors is a highly effective strategy for satellite change detection. By shifting the task from a bi-temporal comparison to a conditional analysis, MapFormer achieves unprecedented accuracy and offers a more efficient path forward for real-world monitoring applications where historical map data is already available.

Summary updated

BibTeX
@inproceedings{bernhard2023mapformer,
  author = {Maximilian Bernhard and Niklas Strauß and Matthias Schubert},
  title = {{MapFormer: Boosting Change Detection by Using Pre-change Information}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
  url = {https://openreview.net/forum?id=gHp5CYkVXR},
}
Figure