ChangeFormer
A Siamese hierarchical transformer with an MLP decoder that turns two remote sensing images into a change mask.
Segmentation · 1,173 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Segmentation
- Parameters
- 41M
- Operations
- 1,173
- Framework
- PyTorch
- Recurrent
- No
- Published
- IGARSS 2022
- Cited by
- 1,161 (as of 27 October 2026)
- Authors
- Wele Gedara Chaminda Bandara, Vishal M. Patel
- Source
- GitHub: wgcban/ChangeFormer
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15271
- Graph hash
- 2bb6b338e29493c9c904f63927ed4c11094adb2f5295e903ed65775413319b94
- Skeleton hash
- 96c0858f67f54d348d14061b2e63a51fe7f3dabc3e1e121f44d4fab6f0a06937
- Architecture hash
- 8e3d573bd646c745ed00a82f70418609d0b97d8677999ef7ad634731437638fe
- Diagram SHA-256
- 81dd4a9ae64d82738bd373658a25777691f764d3c4dc586f868173403ac3cd24
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
ChangeFormer is a transformer-based Siamese network for change detection from a pair of co-registered remote sensing images. Where the change detection frameworks of its time were based on fully convolutional networks, it combines a hierarchically structured transformer encoder with an MLP decoder.
The network has three parts: a hierarchical transformer encoder that extracts coarse and fine features from both images, four difference modules that compare those features at multiple scales, and a lightweight MLP decoder that fuses the differences into the change mask. Each difference module learns its distance measure at each scale during training instead of taking a fixed absolute difference. Self-attention uses a sequence reduction step to lower its cost on high-resolution images. Positional information comes from two MLP layers with a depth-wise convolution, which the paper says lets the model take test images at a resolution different from the training one.
The experiments use two public change detection datasets, LEVIR-CD and DSIFN-CD. On LEVIR-CD the paper reports an F1 of 90.40 and an IoU of 82.48 for ChangeFormer. This model is ChangeFormerV6, which the repository's training script calls the finalized version. The paper states that the network is randomly initialized. The repository's README adds that some parameters were first initialized from a model pre-trained on RGB segmentation to get faster convergence.
Key idea. The paper shows that a hierarchical transformer encoder with a lightweight MLP decoder, in a Siamese network, can detect changes between image pairs without relying on a ConvNet backbone.
- ChangeFormer
- ChangeFormerV6
- change detection
- remote sensing
- siamese transformer
- bi-temporal images
- change mask
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{bandara2022transformerbasedsiamesenetworkchange,
title={A Transformer-Based Siamese Network for Change Detection},
author={Wele Gedara Chaminda Bandara and Vishal M. Patel},
year={2022},
eprint={2201.01293},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2201.01293},
}