Papers › PlainMamba: Improving Non-Hierarchical Mamba in Visual Recognition

PlainMamba: Improving Non-Hierarchical Mamba in Visual Recognition

26 Mar 2024arXiv:2403.17695archive 2025-07-28

Chenhongyi Yang, Zehui Chen, Miguel Espinosa, Linus Ericsson, Zhenyu Wang, Jiaming Liu, Elliot J. Crowley

We present PlainMamba: a simple non-hierarchical state space model (SSM) designed for general visual recognition. The recent Mamba model has shown how SSMs can be highly competitive with other architectures on sequential data and initial attempts have been made to apply it to images. In this paper, we further adapt the selective scanning process of Mamba to the visual domain, enhancing its ability to learn features from two-dimensional images by (i) a continuous 2D scanning process that improves spatial continuity by ensuring adjacency of tokens in the scanning sequence, and (ii) direction-aware updating which enables the model to discern the spatial relations of tokens by encoding directional information. Our architecture is designed to be easy to use and easy to scale, formed by stacking identical PlainMamba blocks, resulting in a model with constant width throughout all layers. The architecture is further simplified by removing the need for special tokens. We evaluate PlainMamba on a variety of visual recognition tasks, achieving performance gains over previous non-hierarchical models and is competitive with hierarchical alternatives. For tasks requiring high-resolution inputs, in particular, PlainMamba requires much less computing while maintaining high performance. Code and models are available at: https://github.com/ChenhongyiYang/PlainMamba .

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2403.17695")

Code

Syntology Ran 2 of 11 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · violated contract; 1 ran with no contract checked.

By repository: community (archive-listed): 11 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

chenhongyiyang/plainmamba officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
karl1109/scsegamba mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

11 samples harvested; 2 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
1ran
9unverified

Licence: 0 of the 11 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from karl1109/scsegamba. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

default_loader karl1109/scsegamba/datasets/image_folder.py community (archive-listed) ran Apache-2.0 (permissive) · ac269a0e4b8d946e · report
is_image_file karl1109/scsegamba/datasets/image_folder.py community (archive-listed) ran · violated contract Apache-2.0 (permissive) · ab4109634b75ef8b · report
affine_transform karl1109/scsegamba/datasets/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 6085526f725c95b0 · report
convert_from_color_annotation karl1109/scsegamba/datasets/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 4316491d01eeb636 · report
get_image_pairs karl1109/scsegamba/eval/data_io.py community (archive-listed) unverified Apache-2.0 (permissive) · 58b7470d999eee39 · report
get_norm_layer karl1109/scsegamba/models/GBC.py community (archive-listed) unverified Apache-2.0 (permissive) · 734e6a1b32744f08 · report
get_params karl1109/scsegamba/datasets/base_dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · c46f5dafa31a96bf · report
get_params karl1109/scsegamba/datasets/utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 4956e4440feb1f58 · report
get_transform karl1109/scsegamba/datasets/base_dataset.py community (archive-listed) unverified Apache-2.0 (permissive) · 2bc89c63fcdec2e2 · report
imread karl1109/scsegamba/eval/data_io.py community (archive-listed) unverified Apache-2.0 (permissive) · 102d0ddbe3018538 · report
make_dataset karl1109/scsegamba/datasets/image_folder.py community (archive-listed) unverified Apache-2.0 (permissive) · 557c2837469ac41d · report

Tasks

Image ClassificationInstance SegmentationMambaObject DetectionSemantic Segmentationobject-detection

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections