MASNet: Improve Performance of Siamese Networks with Mutual-attention for Remote Sensing Change Detection Tasks

Hongbin Zhou, Yupeng Ren, Qiankun Li, Jun Yin, Yonggang LinarXiv 2022 · DOI

Abstract

Change detection (CD) in remote sensing traditionally relies on Siamese networks that process image pairs independently before final fusion. This paper introduces MASNet, which incorporates a mutual-attention plug-in to allow feature extraction branches to exchange information throughout the encoding process. By enabling the network to "peek" at the second image while processing the first, MASNet achieves state-of-the-art (SOTA) results on major benchmarks using both CNN and Transformer backbones.

Introduction

The standard approach to change detection involves identifying pixel-level differences between two images of the same geographical area taken at different times. Vanilla Siamese networks utilize two identical, independent branches for feature extraction. However, this independent processing is fundamentally limited; unlike humans, who look back and forth between images to identify relevant changes, these networks extract features in a vacuum. This often leads to the inclusion of irrelevant noise and less discriminative feature maps.

Methodology

The MASNet Architecture

The core innovation of MASNet is the integration of Mutual-Attention Blocks as plug-and-play modules inserted after every feature extraction stage in a backbone. This architecture bridges the gap between "Early-Fusion" (which lacks context in shallow layers) and standard "Siamese" approaches (which lack communication).

The MASNet architecture featuring mutual-attention blocks between Siamese branches.

Mutual-Attention Mechanism

Inspired by the cross-attention mechanism in Transformers, the mutual-attention block reweights the features of one branch using information from the other. As shown in the detailed diagram below, the Query from one branch is multiplied by the Key of the opposite branch to determine feature relevance. This process is symmetric, occurring in both directions simultaneously to ensure mutual information exchange.

Detailed structure of the mutual-attention block showing the cross-branch information exchange.

To maintain computational efficiency, the authors utilize individual-level mutual attention, focusing on pixel-to-pixel exchange between co-registered locations rather than global spatial attention. This design allows the module to function as a versatile plug-in for various architectures, including HRNet-OCR (CNN) and Segformer (Transformer).

Experimental Results

Datasets

The model was evaluated on two primary remote sensing benchmarks:

  1. LEVIR-CD: A large-scale building change dataset containing 637 high-resolution image pairs.
  2. SECOND: A dataset covering 4,662 image pairs, converted into a binary change detection task for this study.

Performance Metrics

MASNet consistently outperformed vanilla Siamese counterparts and previous SOTA models:

  • LEVIR-CD: Using an HRNet-OCR backbone, MASNet achieved a 92.62% F1 score and 86.26% IoU, surpassing models like FCCDN and ChangeStar.
  • SECOND: For the Segformer backbone, the mean IoU (mIoU) increased from 51.73% to 55.27%, representing a significant 3.54% gain attributed solely to the mutual-attention plug-in.

Key Insights and Discussion

  • Feature Filtering: Mutual-attention maps act as a filter, highlighting high-priority changes (e.g., new buildings) while helping the network ignore "pseudo-changes" such as shadows or seasonal lighting variations.
  • Backbone Agnostic: Performance gains were consistent across different architectural types, suggesting that inter-branch communication is a fundamental requirement for effective change detection.
  • Robustness: The authors observed high architectural stability, noting that even the lowest-performing MASNet configuration outperformed the best vanilla Siamese models.

Limitations and Future Work

While MASNet demonstrates clear advantages, adding multiple attention blocks increases parameter counts by approximately 1.82% to 2.38%. Future research may explore more efficient communication structures to achieve similar gains with zero additional parameters. Additionally, while the current model relies on co-registered pixels, future iterations could better handle spatial misalignments between image pairs.

Summary updated

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
SECOND · dataset, converted to binary change detectionSegformer MASNetmIoU (IoU)55.27%+3.54 vs baselinemethod=MASNet · variant=binary change detection · backbone=Segformer
Source quote
L168: 51.52 58.29 56.18 55.34 55.27
LEVIR-CDMASNet (HRNet-OCR; best of 3 repeated tests)F1 score92.62%split: test · method=MASNet · backbone=HRNet-OCR · model-selection=best of 3 repeated tests · test-time-augmentation=multi-scale
Source quote
L218: 92.62
LEVIR-CDMASNet (HRNet-OCR; best of 3 repeated tests)IoU score86.26%split: test · method=MASNet · backbone=HRNet-OCR · model-selection=best of 3 repeated tests · test-time-augmentation=multi-scale
Source quote
L219: 86.26
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
SECOND · dataset, converted to binary change detectionSegformer vanilla baselinemIoU (IoU)51.73%variant=binary change detection · backbone=Segformer
Source quote
L166: 47.51 54.81 52.14 52.45 51.73
BibTeX
@misc{zhou2022masnet,
  author = {Hongbin Zhou and Yupeng Ren and Qiankun Li and Jun Yin and Yonggang Lin},
  title = {{MASNet: Improve Performance of Siamese Networks with Mutual-attention for Remote Sensing Change Detection Tasks}},
  year = {2022},
  eprint = {2206.02331},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.02331},
}
Figure