SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2412.00678 · 2024

2DMamba: Efficient State Space Model for Image Representation with Applications on Giga-Pixel Whole Slide Image Classification

arXiv · PDF · Open in the Atlas

Code that ran

6 of 8 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; 1 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 4 failures of our instrument; 2 no recorded run), measured 2026-11-23; 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/2412.00678.json · badge: /api/ran/2412.00678.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
atlasanalyticslab/2dmamba canonical (classifier label)
classifier basis: census
6 ran · 2 no recorded run
FunctionStatusWhere it lives
exists Ran
ran, violated the contract we drafted
atlasanalyticslab/2dmamba/2DMambaMIL/models/TransMIL.py
pointer only (licence: NONE); the stored copy get_code serves, from ThomasMrY/VCT, is pointer only (licence: NONE) · get_code("aa5486a3650902d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atlasanalyticslab/2dmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

npo2 Ran
ran, honoured the contract we drafted
atlasanalyticslab/2dmamba/2DMambaMIL/models/pscan.py
pointer only (licence: NONE) · get_code("d547c23b7746ffe5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atlasanalyticslab/2dmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pad_npo2 Ran
ran; our contract draft was wrong, not the code
atlasanalyticslab/2dmamba/2DMambaMIL/models/pscan.py
pointer only (licence: NONE) · get_code("8213e85fd713879a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atlasanalyticslab/2dmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pad_npo2_2d Ran
ran; our contract draft was wrong, not the code
atlasanalyticslab/2dmamba/2DMambaMIL/models/pscan.py
pointer only (licence: NONE) · get_code("e34dee3e172aa021")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atlasanalyticslab/2dmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

reconstruct_2d_wsi Ran
ran; our contract draft was wrong, not the code
atlasanalyticslab/2dmamba/2DMambaMIL/models/mamba_simple.py
pointer only (licence: NONE) · get_code("ebd6ae95c07e0b1a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atlasanalyticslab/2dmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_tensor Ran
ran; our contract draft was wrong, not the code
atlasanalyticslab/2dmamba/2DMambaMIL/models/MambaMIL_2D.py
pointer only (licence: NONE) · get_code("b50794ffb06b95c0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atlasanalyticslab/2dmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

moore_penrose_iter_pinv Not yet run
unverified (harvested, no recorded run)
atlasanalyticslab/2dmamba/2DMambaMIL/models/TransMIL.py
pointer only (licence: NONE) · get_code("1aa879b87d59c39f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atlasanalyticslab/2dmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

selective_scan_fn Not yet run
unverified (harvested, no recorded run)
atlasanalyticslab/2dmamba/2DMambaMIL/models/pscan_2d.py
pointer only (licence: NONE) · get_code("5cdb591dfde1dab6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, atlasanalyticslab/2dmamba when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 8 samples lifted from this paper's linked repositories, 8 carry a function identity and 0 do not. Of the 8 distinct functions with an identity, 4 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 2 later) and 4 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.

FunctionAlso present inEarliest-datedOthers named
exists 486 other papers
412 dated earlier, 10 the same month, 53 later, 9 same year, order not determinable, 2 undated · 78 only as an assembly brick
1603.08155 (2016-03)
Perceptual Losses for Real-Time Style Transfer and Super-Resolution
1611.07004 (2016-11)
Image-to-Image Translation with Conditional Adversarial Networks
1804.04637 (2018-04)
EMBER: An Open Dataset for Training Static PE Malware Machine Learning Models
and 483 more not named here
moore_penrose_iter_pinv 11 other papers
9 dated earlier, 2 later · 2 only as an assembly brick
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2102.03902 (2021-02)
Nyströmformer: A Nyström-Based Algorithm for Approximating Self-Attention
2306.08330 (2023-06)
Multimodal Optimal Transport-based Co-Attention Transformer with Global Structure Consistency for Survival Prediction
and 8 more not named here
npo2 3 other papers
3 dated earlier
2405.19707 (2024-05)
DeMamba: AI-Generated Video Detection on Million-Scale GenVideo Benchmark
2406.05316 (2024-06)
CMamba: Channel Correlation Enhanced State Space Models for Multivariate Time Series Forecasting
2410.14067 (2024-10)
Provable Benefits of Complex Parameterizations for Structured State Space Models
pad_npo2 3 other papers
3 dated earlier
2405.19707 (2024-05)
DeMamba: AI-Generated Video Detection on Million-Scale GenVideo Benchmark
2406.05316 (2024-06)
CMamba: Channel Correlation Enhanced State Space Models for Multivariate Time Series Forecasting
2410.14067 (2024-10)
Provable Benefits of Complex Parameterizations for Structured State Space Models

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-23.

Repositories linked to this paper

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

Abstract

Efficiently modeling large 2D contexts is essential for various fields including Giga-Pixel Whole Slide Imaging (WSI) and remote sensing. Transformer-based models offer high parallelism but face challenges due to their quadratic complexity for handling long sequences. Recently, Mamba introduced a selective State Space Model (SSM) with linear complexity and high parallelism, enabling effective and efficient modeling of wide context in 1D sequences. However, extending Mamba to vision tasks, which inherently involve 2D structures, results in spatial discrepancies due to the limitations of 1D sequence processing. On the other hand, current 2D SSMs inherently model 2D structures but they suffer from prohibitively slow computation due to the lack of efficient parallel algorithms. In this work, we propose 2DMamba, a novel 2D selective SSM framework that incorporates the 2D spatial structure of images into Mamba, with a highly optimized hardware-aware operator, adopting both spatial continuity and computational efficiency. We validate the versatility of our approach on both WSIs and natural images. Extensive experiments on 10 public datasets for WSI classification and survival analysis show that 2DMamba improves up to 2.48% in AUC, 3.11% in F1 score, 2.47% in accuracy and 5.52% in C-index. Additionally, integrating our method with VMamba for natural imaging yields 0.5 to 0.7 improvements in mIoU on the ADE20k semantic segmentation dataset, and 0.2% accuracy improvement on ImageNet-1K classification dataset. Our code is available at https://github.com/AtlasAnalyticsLab/2DMamba.

For agents

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

get_harvested_code_for_paper("2412.00678")
get_code_for_paper("2412.00678")
have("2412.00678")

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

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

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

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

Connect an agent — have() is free.