SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.03425 · 2024

ChangeMamba: Remote Sensing Change Detection With Spatiotemporal State Space Model

arXiv · PDF · Open in the Atlas

Code that ran

5 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 4 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2404.03425.json · badge: /api/ran/2404.03425.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
chenhongruixuan/mambacd canonical (classifier label)
classifier basis: census
5 ran · 4 no recorded run
FunctionStatusWhere it lives
build_head Ran
ran; our contract draft was wrong, not the code
chenhongruixuan/mambacd/changedetection/models/builders.py
code served (permissive licence) · get_code("e9c3ba9cd1c348a6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Conv2d. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "out_channels": 10,
    "in_channels": 128,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Conv2d — a Conv2d output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Conv2d output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
extract_model_state_dict Ran
ran; our contract draft was wrong, not the code
chenhongruixuan/mambacd/changedetection/checkpoints.py
code served (permissive licence) · get_code("21a17e068ab68253")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn
from collections.abc import Mapping

torch.manual_seed(0)

# Create a simple checkpoint dict with 'model' key containing state_dict
checkpoint_with_model_key = {
    'model': {
        'layer1.weight': torch.randn(4, 3),
        'layer1.bias': torch.randn(4),
        'layer2.weight': torch.randn(3, 2),
    }
}

ARGS = {
    'checkpoint': checkpoint_with_model_key
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_log_block Ran
ran; our contract draft was wrong, not the code
chenhongruixuan/mambacd/changedetection/logging_utils.py
code served (permissive licence) · get_code("900d316c3b86d875")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
from datetime import datetime

# Set up test data for format_log_block function
ARGS = {
    'title': 'Training Step',
    'values': {
        'loss': 0.5432,
        'accuracy': 0.9876,
        'epoch': 5,
        'batch_size': 32,
        'gradients': np.array([0.001, 0.002, 0.003, 0.004]),
        'weights': [1.5, 2.3, 3.1],
    },
    'meta': {
        'model': 'ResNet18',
        'lr': 0.001,
        'timestamp': '2024-01-15',
    },
    'precision': 4,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
format_value Ran
ran; our contract draft was wrong, not the code
chenhongruixuan/mambacd/changedetection/logging_utils.py
code served (permissive licence) · get_code("38727dde2f236d95")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

# Test case 1: float value
value_float = 3.14159

# Test case 2: int value
value_int = 42

# Test case 3: numpy array (1D)
value_array_1d = np.array([1.23456, 2.34567, 3.45678])

# Test case 4: numpy array (2D)
value_array_2d = np.array([[1.111, 2.222, 3.333], [4.444, 5.555, 6.666]])

# Test case 5: list of numbers
value_list = [1.5, 2.5, 3.5, 4.5]

# Test case 6: tuple of numbers
value_tuple = (10, 20, 30, 40)

# Test case 7: list with mixed types (will be converted to string)
value_mixed_list = ['a', 'b', 'c']

# Test case 8: string value
value_string = "test_string"

# Test case 9: numpy float
value_np_float = np.float32(2.71828)

# Test case 10: numpy int
value_np_int = np.int64(100)

# Use the simplest valid case for ARGS
ARGS = {
    'value': np.array([1.23456, 2.34567, 3.45678]),
    'precision': 4
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_interactive_stream Ran
ran, violated the contract we drafted
chenhongruixuan/mambacd/changedetection/logging_utils.py
code served (permissive licence) · get_code("e3e2bdd7e980f0f2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import sys
import io

# Create a mock stream object that has isatty method
class MockStream:
    def __init__(self, is_tty=False):
        self._is_tty = is_tty
    
    def isatty(self):
        return self._is_tty

# Test with a stream that is interactive (isatty returns True)
interactive_stream = MockStream(is_tty=True)

# Test with a stream that is not interactive (isatty returns False)
non_interactive_stream = MockStream(is_tty=False)

# Test with None (will use sys.stderr default)
none_stream = None

# Define ARGS with the stream parameter
ARGS = {
    "stream": interactive_stream
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
build_backbone Not yet run
unverified (harvested, no recorded run)
chenhongruixuan/mambacd/changedetection/models/builders.py
code served (permissive licence) · get_code("f7fca94a333f0a3d")
How it ran

no invocation recorded.

load_encoder_pretrained_weights Not yet run
unverified (harvested, no recorded run)
chenhongruixuan/mambacd/changedetection/checkpoints.py
code served (permissive licence) · get_code("81509265e2e1fda9")
How it ran

no invocation recorded.

load_model_weights Not yet run
unverified (harvested, no recorded run)
chenhongruixuan/mambacd/changedetection/checkpoints.py
code served (permissive licence) · get_code("c10476d7e491f533")
How it ran

no invocation recorded.

resolve_decoder_components Not yet run
unverified (harvested, no recorded run)
chenhongruixuan/mambacd/changedetection/models/builders.py
code served (permissive licence) · get_code("c1a13c7ad7c5f1a9")
How it ran

no invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 9 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Convolutional neural networks (CNN) and Transformers have made impressive progress in the field of remote sensing change detection (CD). However, both architectures have inherent shortcomings: CNN are constrained by a limited receptive field that may hinder their ability to capture broader spatial contexts, while Transformers are computationally intensive, making them costly to train and deploy on large datasets. Recently, the Mamba architecture, based on state space models, has shown remarkable performance in a series of natural language processing tasks, which can effectively compensate for the shortcomings of the above two architectures. In this paper, we explore for the first time the potential of the Mamba architecture for remote sensing CD tasks. We tailor the corresponding frameworks, called MambaBCD, MambaSCD, and MambaBDA, for binary change detection (BCD), semantic change detection (SCD), and building damage assessment (BDA), respectively. All three frameworks adopt the cutting-edge Visual Mamba architecture as the encoder, which allows full learning of global spatial contextual information from the input images. For the change decoder, which is available in all three architectures, we propose three spatio-temporal relationship modeling mechanisms, which can be naturally combined with the Mamba architecture and fully utilize its attribute to achieve spatio-temporal interaction of multi-temporal features, thereby obtaining accurate change information. On five benchmark datasets, our proposed frameworks outperform current CNN- and Transformer-based approaches without using any complex training strategies or tricks, fully demonstrating the potential of the Mamba architecture in CD tasks. Further experiments show that our architecture is quite robust to degraded data. The source code will be available in https://github.com/ChenHongruixuan/MambaCD

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2404.03425")
get_code_for_paper("2404.03425")
have("2404.03425")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2404.03425.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2404.03425.svg)](https://syntology.ai/paper/2404.03425)

Connect an agent — have() is free.