atlas

Research map / Architectures and efficiency / Attention and transformers

Demystify Mamba in Vision: A Linear Attention Perspective

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Mamba architectures · 58 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.

Reformulates Mamba's selective SSM as a linear attention variant, ablates six design differences on ImageNet with Swin-based linear attention, and proposes MILA, a linear attention vision model that replaces the forget gate with positional encodings (LePE, CPE, RoPE) and adopts Mamba's block design.

Problem

Mamba performs well in vision while linear attention Transformers usually underperform; the paper asks which design factors explain Mamba's advantage over linear attention.

Approach

Shows selective SSM is a single-head linear attention with input gate, forget gate, shortcut, no normalization, and a modified block; finds forget gate and block design matter most, and that positional encodings can replace the forget gate in parallel linear attention, yielding MILA.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add input gate (ablation)Baseline linear attention · ImageNet-1K valTop-1: 77.6 -> 77.8Helped
add forget gate (ablation)Baseline linear attention · ImageNet-1K valTop-1: 77.6 to 78.4Helped
add forget gate (ablation)Baseline linear attention · ImageNet-1K valThroughput: 1152 to 743Hurt
replace forget gate with positional encoding (ablation)Baseline linear attention · ImageNet-1K valTop-1: 77.6 -> 80.0 (APE); 81.6 (LePE); 81.7 (CPE); 80.0 (RoPE)Helped
add shortcut (ablation)Baseline linear attention · ImageNet-1K valTop-1: 77.6 -> 77.8Helped
remove attention normalization (ablation)Baseline linear attention · ImageNet-1K valTop-1: 77.6 to 72.4Hurt
remove multi-head design (ablation)Baseline linear attention · ImageNet-1K valTop-1: 77.6 -> 73.5Hurt
replace full Transformer block with Mamba block design (ablation)Baseline linear attention · ImageNet-1K valTop-1: 77.6 -> 79.4Helped
replace attention sub-block with Mamba block design (ablation)Baseline linear attention · ImageNet-1K valTop-1: 77.6 -> 80.9Helped
add MESA (ablation)MILA · ImageNet-1K valTop-1: 83.3 -> 83.5 (MILA-T); 84.2 -> 84.3 (MILA-S); 85.0 -> 85.3 (MILA-B)Helped
use MILA-T instead of NAT-TImageNet classification · ImageNet-1K valTop-1: 83.2 -> 83.5Helped
use MILA-B instead of VMamba-BCOCO Mask R-CNN 1x · COCO Mask R-CNN 1x, boxAP: 49.2 -> 50.5Helped

Surprising findings

Limitations

Experimental setup

Datasets: ImageNet-1K COCO ADE20K

Benchmarks: ImageNet-1K COCO ADE20K

Metrics: Top-1 accuracy AP^b AP^m mIoU throughput FLOPs #Params

Baselines: VMamba LocalVMamba MambaOut Vim Mamba2D PlainMamba EfficientVMamba ConvNeXt Swin Transformer Hydra Attention Efficient Attention FLatten Transformer

Builds on: Mamba linear attention Swin Transformer FLatten Transformer VMamba

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