atlas

Research map / Architectures and efficiency / Attention and transformers

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

CVPR 2025 · Architectures and efficiency › Attention and transformers · approach: Mamba architectures · 36 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes 2DMamba, a 2D selective state space model with a hardware-aware 2D scan operator, applied to WSI MIL classification/survival and to VMamba for natural image tasks.

Problem

Mamba flattens 2D images into 1D sequences, causing spatial discrepancy (distant neighbors in sequence), while existing 2D SSMs lack efficient parallel algorithms and are too slow.

Approach

A 2D selective SSM that performs horizontal then vertical scans over a 2D feature map (so hidden state aggregates over the upper-left region with Manhattan-distance decay), implemented with a tiled, hardware-aware SegmentedBlockScan CUDA kernel that keeps O(L) memory access.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use a learnable non-tissue padding token instead of fixed-zero padding (ablation)2DMambaMIL · PANDAaccuracy: 0.4868 -> 0.5075Helped
Use a learnable non-tissue padding token instead of fixed-zero padding (ablation)2DMambaMIL · PANDAAUC: 0.8057 -> 0.8184Helped
Use a learnable non-tissue padding token instead of fixed-zero padding (ablation)2DMambaMIL · TCGA-BRCAaccuracy: 0.9313 -> 0.9458Helped
Use a learnable non-tissue padding token instead of fixed-zero padding (ablation)2DMambaMIL · TCGA-BRCAAUC: 0.9722 -> 0.9782Helped
Replace 1D scanning with intrinsic 2D scanning (ablation)MambaMIL · PANDAaccuracy: 0.4679 -> 0.5075Helped
Replace 1D scanning with intrinsic 2D scanning (ablation)MambaMIL · PANDAAUC: 0.7781 -> 0.8184Helped
Replace 1D scanning with intrinsic 2D scanning (ablation)MambaMIL · TCGA-BRCAaccuracy: 0.9333 -> 0.9458Helped
Replace 1D scanning with intrinsic 2D scanning (ablation)MambaMIL · TCGA-BRCAAUC: 0.9657 -> 0.9782Helped
Use 2-direction scanning instead of 1D scanning (ablation)MambaMIL · PANDAaccuracy: 0.4679 -> 0.4853Helped
Use 2-direction scanning instead of 1D scanning (ablation)MambaMIL · PANDAAUC: 0.7781 -> 0.7749Hurt
Use 4-direction raster scanning instead of 1D scanning (ablation)MambaMIL · PANDAaccuracy: 0.4679 -> 0.4923Helped
Use 4-direction cross scanning instead of 1D scanning (ablation)MambaMIL · PANDAAUC: 0.7781 -> 0.8006Helped

Surprising findings

Limitations

Experimental setup

Datasets: TCGA-BRCA BRACS PANDA DHMC TCGA-NSCLC TCGA-KIRC TCGA-KIRP TCGA-LUAD TCGA-STAD TCGA-UCEC ImageNet-1K ADE20K

Benchmarks: BRACS DHMC PANDA TCGA-NSCLC TCGA-BRCA TCGA-KIRC TCGA-KIRP TCGA-LUAD TCGA-STAD TCGA-UCEC ImageNet-1K ADE20K

Metrics: accuracy F1 AUC C-index top-1 accuracy mIoU throughput GPU memory FLOPs

Baselines: AB-MIL CLAM DSMIL DTFD-MIL TransMIL S4-MIL MambaMIL SRMambaMIL VMamba-T Swin-T LocalVMamba-T EfficientVMamba-B

Builds on: Mamba VMamba MambaMIL 2D-SSM CUB BlockScan

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy