CDMamba: Incorporating Local Clues into Mamba for Remote Sensing Image Binary Change Detection

Haotian Zhang, Keyan Chen, Chenyang Liu, Hao Chen, Zhengxia Zou, Zhenwei Shi

TL;DR

CDMamba is a new architecture for remote sensing change detection that combines the global modeling power of Mamba (State Space Models) with the local precision of convolutions. By integrating a novel Scaled Residual ConvMamba (SRCM) block and a cross-temporal Adaptive Global Local Guided Fusion (AGLGF) module, it achieves state-of-the-art accuracy on major benchmarks while maintaining the computational efficiency needed for high-resolution satellite imagery.

What Problem Does This Paper Address?

Remote sensing Change Detection (CD)—identifying differences between images of the same location taken at different times—is a "dense prediction" task that requires two conflicting capabilities. First, the model needs a global receptive field to understand the context of sparse changes across large landscapes. Second, it needs fine-grained local clues to accurately delineate the boundaries of buildings, roads, or land cover.

Traditional CNNs excel at local details but struggle with long-range dependencies. Vision Transformers (ViTs) solve the global modeling problem but suffer from quadratic computational complexity, making them prohibitively expensive for high-resolution dense prediction. Recently, the Mamba architecture (based on State Space Models) emerged as a linear-complexity alternative to Transformers. However, the authors argue that current Mamba-based methods focus too much on global scanning and neglect the local spatial information essential for precise change detection.

Methods

The authors propose CDMamba, an encoder-decoder network designed to balance global and local feature extraction.

The overall architecture of CDMamba, featuring the SRCM and AGLGF blocks.

1. Scaled Residual ConvMamba (SRCM) Block

Instead of relying solely on Mamba's 1D scanning, the SRCM block introduces a three-branch "ConvMamba" module. Two branches perform standard Mamba-style global modeling, while a third branch uses 2D convolutions to specifically capture local spatial features. These are fused via a scaled residual connection, ensuring the model doesn't lose track of fine edges while processing global context.

2. Adaptive Global Local Guided Fusion (AGLGF) Block

Change detection requires comparing two images ($T_1$ and $T_2$). Standard methods often just subtract or concatenate features. CDMamba introduces AGLGF, which uses one temporal feature to "guide" the other.

  • Global-Guided Fusion (G-GF): Uses global context from one time-step to highlight potential change regions in the other.
  • Local-Guided Fusion (L-GF): Uses local spatial clues for the same purpose. A dynamic gating mechanism then fuses these guided features, allowing the model to adaptively focus on the most discriminative changes.
Fig. 2. Illustration of our global-guided feature fusion (G-GF) module and local-guided feature fusion (L-GF) module. σ means the gate activation function. F1 and F2 represent bi-temporal features, respectively. And FGGF and FLGF are global-guided and local-guided fused features.

Datasets

The model was evaluated on three representative building change detection benchmarks:

  • WHU-CD: High-resolution (0.2m) aerial imagery from New Zealand.
  • LEVIR-CD: A large-scale dataset of Google Earth images (0.5m resolution) focusing on building additions and removals.
  • LEVIR+-CD: An extension of LEVIR-CD featuring more diverse building types and complex urban scenes.

Key Insights and Ideas

  • Mamba needs a "Local Anchor": The researchers found that while Mamba is great at long-range sequences, it can be "blurry" at the pixel level. Adding a dedicated convolutional path within the Mamba block acts as a spatial anchor, significantly sharpening detection results.
  • Guidance is better than Subtraction: Simply subtracting features from two time-steps can lead to noise. By using an attention-like "guidance" mechanism (AGLGF), the model learns to look for changes in one image based on the context provided by the other.
  • Efficiency without Sacrificing Resolution: Unlike some Mamba models that downsample images heavily to save time, CDMamba processes original-sized images more effectively, leading to better small-object detection.

Key Results

CDMamba consistently outperformed CNN-based (e.g., SNUNet), Transformer-based (e.g., Changeformer, BIT), and recent Mamba-based (e.g., RS-Mamba) competitors.

Quantitative comparison results across WHU-CD, LEVIR-CD, and LEVIR+-CD datasets.
  • Accuracy: On the WHU-CD dataset, CDMamba achieved an F1 score of 93.76% and an IoU of 88.26%, representing a significant jump over previous Mamba-based SOTA methods.
  • Visual Quality: Qualitative results show that CDMamba produces much cleaner building edges and fewer false positives in complex scenes compared to models like BIT or Changeformer.
  • Efficiency: Despite its high accuracy, CDMamba remains lightweight, with only 11.90M parameters, compared to 41.02M for Changeformer and 51.95M for RS-Mamba.

Limitations and Future Work

While CDMamba is efficient in terms of parameters, the authors note that its training time per epoch is slightly higher than some competitors. This is because CDMamba avoids aggressive initial downsampling to preserve detail, which increases the computational load during the early stages of the network.

For future work, the authors suggest exploring self-supervised learning to pre-train the Mamba backbone, which could further improve performance in scenarios where labeled change detection data is scarce.

Summary updated

Abstract

Recently, the Mamba architecture based on state space models has demonstrated remarkable performance in a series of natural language processing tasks and has been rapidly applied to remote sensing change detection (CD) tasks. However, most methods enhance the global receptive field by directly modifying the scanning mode of Mamba, neglecting the crucial role that local information plays in dense prediction tasks (e.g., binary CD). In this article, we propose a model called CDMamba, which effectively combines global and local features for handling binary CD tasks. Specifically, the Scaled Residual ConvMamba (SRCM) block is proposed to utilize the ability of Mamba to extract global features and convolution to enhance the local details to alleviate the issue that current Mamba-based methods lack detailed clues and are difficult to achieve fine detection in dense prediction tasks. Furthermore, considering the characteristics of bi-temporal feature interaction required for CD, the Adaptive Global Local Guided Fusion (AGLGF) block is proposed to dynamically facilitate the bi-temporal interaction guided by other temporal global/local features. Our intuition is that more discriminative change features can be acquired with the guidance of other temporal features. Extensive experiments on five datasets demonstrate that our proposed CDMamba is comparable to the current methods (such as the F1/IoU scores are improved by 2.10%/3.00% and 2.44%/2.91% on LEVIR+CD and CLCD, respectively). Our code is open-sourced at https://github.com/zmoka-zht/CDMamba.
BibTeX
@article{zhang2025cdmamba,
  author = {Haotian Zhang and Keyan Chen and Chenyang Liu and Hao Chen and Zhengxia Zou and Zhenwei Shi},
  title = {{CDMamba: Incorporating Local Clues into Mamba for Remote Sensing Image Binary Change Detection}},
  journal = {IEEE Trans. Geosci. Remote. Sens.},
  year = {2025},
  doi = {10.1109/tgrs.2025.3545012},
}
Figure