{"notes":[{"id":"mamba/mambaout","category":"mamba","legacyPath":"","legacySlug":"","legacyPaths":[],"title":"MambaOut","subtitle":"Exit the Mamba","author":"Z. Yuan","paperDate":"2024-05-13","publishedOn":"2025-11-18","world":"external/vim-2","paperTitle":"MambaOut: Do We Really Need Mamba for Vision?","paperUrl":"https://arxiv.org/abs/2405.07992","bibliography":{"title":"MambaOut: Do We Really Need Mamba for Vision?","authors":["Weihao Yu","Xinchao Wang"],"url":"https://arxiv.org/abs/2405.07992","pdfUrl":"https://arxiv.org/pdf/2405.07992v3","codeUrl":"https://github.com/yuweihao/MambaOut","preprint":{"id":"2405.07992","submittedOn":"2024-05-13","url":"https://arxiv.org/abs/2405.07992"},"publication":{"venue":"CVPR","year":2025,"kind":"conference","url":"https://openaccess.thecvf.com/content/CVPR2025/html/Yu_MambaOut_Do_We_Really_Need_Mamba_for_Vision_CVPR_2025_paper.html"},"citation":"@misc{mambamambaout2024,\n  title = {{MambaOut: Do We Really Need Mamba for Vision?}},\n  author = {Weihao Yu and Xinchao Wang},\n  year = {2024},\n  eprint = {2405.07992},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2405.07992}\n}\n","citationPath":"/content/papers/citations/mamba/mambaout.a7cd237c551a.bib"},"thumbnail":{"src":"/content/papers/assets/a9e2bb043c6ac8f4558024557394c6a1ec7b9007b52ba19b5d1f7c05b07a3bc7.png","width":1112,"height":456},"locale":"en","path":"/content/papers/en/mamba/mambaout.61de5570f9c2.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"what-kind-of-task-suits-mamba","text":"What Kind of Task Suits Mamba?","depth":3},{"id":"do-images-count-as-long-sequences","text":"Do Images Count as Long Sequences?","depth":3},{"id":"removing-the-ssm","text":"Removing the SSM","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"imagenet-classification","text":"ImageNet Classification","depth":3},{"id":"detection-and-segmentation","text":"Detection and Segmentation","depth":3},{"id":"the-limits-of-this-yardstick","text":"The Limits of This Yardstick","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"vision-transformers/poolformer","relation":"referenced","topic":""},{"id":"vision-transformers/caformer","relation":"referenced","topic":""},{"id":"mamba/vim","relation":"referenced","topic":""}]},{"id":"vision-transformers/poolformer","category":"vision-transformers","legacyPath":"vision-transformers/2111-poolformer","legacySlug":"2111-poolformer","legacyPaths":[],"title":"PoolFormer","subtitle":"You Need a Meta!","author":"Z. Yuan","paperDate":"2021-11-22","publishedOn":"2024-07-10","paperTitle":"MetaFormer Is Actually What You Need for Vision","paperUrl":"https://openaccess.thecvf.com/content/CVPR2022/html/Yu_MetaFormer_Is_Actually_What_You_Need_for_Vision_CVPR_2022_paper.html","bibliography":{"title":"MetaFormer Is Actually What You Need for Vision","authors":["Weihao Yu","Mi Luo","Pan Zhou","Chenyang Si","Yichen Zhou","Xinchao Wang","Jiashi Feng","Shuicheng Yan"],"url":"https://openaccess.thecvf.com/content/CVPR2022/html/Yu_MetaFormer_Is_Actually_What_You_Need_for_Vision_CVPR_2022_paper.html","pdfUrl":"https://openaccess.thecvf.com/content/CVPR2022/papers/Yu_MetaFormer_Is_Actually_What_You_Need_for_Vision_CVPR_2022_paper.pdf","codeUrl":"https://github.com/sail-sg/poolformer","preprint":{"id":"2111.11418","submittedOn":"2021-11-22","url":"https://arxiv.org/abs/2111.11418"},"publication":{"venue":"CVPR","year":2022,"kind":"conference","url":"https://openaccess.thecvf.com/content/CVPR2022/html/Yu_MetaFormer_Is_Actually_What_You_Need_for_Vision_CVPR_2022_paper.html"},"citation":"@misc{visiontransformerspoolformer2021,\n  title = {{MetaFormer Is Actually What You Need for Vision}},\n  author = {Weihao Yu and Mi Luo and Pan Zhou and Chenyang Si and Yichen Zhou and Xinchao Wang and Jiashi Feng and Shuicheng Yan},\n  year = {2021},\n  eprint = {2111.11418},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2111.11418}\n}\n","citationPath":"/content/papers/citations/vision-transformers/poolformer.f2f96629d283.bib"},"thumbnail":{"src":"/content/papers/assets/3cb141e9bb1247410c8214276b21b28ed1d536060d470406f1bfb0c88fe68df2.jpg","width":1498,"height":548},"locale":"en","path":"/content/papers/en/vision-transformers/poolformer.ceadb42af53a.md","headings":[{"id":"problem-definition","text":"Problem Definition","depth":2},{"id":"input-embedding","text":"Input Embedding","depth":3},{"id":"token-mixer","text":"Token-Mixer","depth":3},{"id":"channel-mlp","text":"Channel MLP","depth":3},{"id":"is-token-mixer-really-the-key","text":"Is Token-Mixer Really the Key?","depth":3},{"id":"solution","text":"Solution","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"model-configuration","text":"Model Configuration","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"imagenet-experiments","text":"ImageNet Experiments","depth":3},{"id":"ablation-experiments","text":"Ablation Experiments","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"vision-transformers/mlp-mixer","relation":"background","topic":"Separating the backbone from token mixing"},{"id":"vision-transformers/caformer","relation":"next","topic":"Separating the backbone from token mixing"}]},{"id":"vision-transformers/caformer","category":"vision-transformers","legacyPath":"vision-transformers/2210-caformer","legacySlug":"2210-caformer","legacyPaths":[],"title":"CAFormer","subtitle":"MetaFormer User Manual","author":"Z. Yuan","paperDate":"2022-10-24","publishedOn":"2024-07-11","paperTitle":"MetaFormer Baselines for Vision","paperUrl":"https://doi.org/10.1109/TPAMI.2023.3329173","bibliography":{"title":"MetaFormer Baselines for Vision","authors":["Weihao Yu","Chenyang Si","Pan Zhou","Mi Luo","Yichen Zhou","Jiashi Feng","Shuicheng Yan","Xinchao Wang"],"url":"https://doi.org/10.1109/TPAMI.2023.3329173","pdfUrl":"https://arxiv.org/pdf/2210.13452v4","codeUrl":"https://github.com/sail-sg/metaformer","preprint":{"id":"2210.13452","submittedOn":"2022-10-24","url":"https://arxiv.org/abs/2210.13452"},"publication":{"venue":"IEEE Transactions on Pattern Analysis and Machine Intelligence","shortVenue":"IEEE TPAMI","year":2024,"kind":"journal","url":"https://doi.org/10.1109/TPAMI.2023.3329173"},"citation":"@misc{visiontransformerscaformer2022,\n  title = {{MetaFormer Baselines for Vision}},\n  author = {Weihao Yu and Chenyang Si and Pan Zhou and Mi Luo and Yichen Zhou and Jiashi Feng and Shuicheng Yan and Xinchao Wang},\n  year = {2022},\n  eprint = {2210.13452},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2210.13452}\n}\n","citationPath":"/content/papers/citations/vision-transformers/caformer.aa84265d674f.bib"},"thumbnail":{"src":"/content/papers/assets/6ccbfbc74d7ee0be5bc2f37dd6cdd936bf9ed5cf9412cdab0f7dcc2c77a6d9ec.jpg","width":1224,"height":1004},"locale":"en","path":"/content/papers/en/vision-transformers/caformer.8024e9840b7d.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"starrelu","text":"StarReLU","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"using-basic-token-mixers","text":"Using Basic Token Mixers","depth":3},{"id":"using-common-token-mixers","text":"Using Common Token Mixers","depth":3},{"id":"ablation-experiments","text":"Ablation Experiments","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"vision-transformers/poolformer","relation":"background","topic":"Separating the backbone from token mixing"},{"id":"vision-transformers/convmixer","relation":"comparison","topic":"Convolution for mixing visual patches"},{"id":"classic-cnns/convnext","relation":"comparison","topic":"Convolution for mixing visual patches"}]},{"id":"mamba/vim","category":"mamba","legacyPath":"mamba/2401-vim","legacySlug":"2401-vim","legacyPaths":[],"title":"Vim","subtitle":"The Mamba's Eye","author":"Z. Yuan","paperDate":"2024-01-17","publishedOn":"2025-01-08","paperTitle":"Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model","paperUrl":"https://arxiv.org/abs/2401.09417","bibliography":{"title":"Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model","authors":["Lianghui Zhu","Bencheng Liao","Qian Zhang","Xinlong Wang","Wenyu Liu","Xinggang Wang"],"url":"https://arxiv.org/abs/2401.09417","pdfUrl":"https://arxiv.org/pdf/2401.09417","codeUrl":"https://github.com/hustvl/Vim","preprint":{"id":"2401.09417","submittedOn":"2024-01-17","url":"https://arxiv.org/abs/2401.09417"},"publication":{"venue":"ICML","year":2024,"kind":"conference","url":"https://arxiv.org/abs/2401.09417"},"citation":"@misc{mambavim2024,\n  title = {{Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model}},\n  author = {Lianghui Zhu and Bencheng Liao and Qian Zhang and Xinlong Wang and Wenyu Liu and Xinggang Wang},\n  year = {2024},\n  eprint = {2401.09417},\n  archivePrefix = {arXiv},\n  url = {https://arxiv.org/abs/2401.09417}\n}\n","citationPath":"/content/papers/citations/mamba/vim.04f7a0c3f9ed.bib"},"thumbnail":{"src":"/content/papers/assets/f6f1543dc8b09bec8d718b356195b440e445961b944f10cc2cca7bbae4ba11e1.jpg","width":1616,"height":440},"locale":"en","path":"/content/papers/en/mamba/vim.bfc71f44a8a2.md","headings":[{"id":"defining-the-problem","text":"Defining the Problem","depth":2},{"id":"solving-the-problem","text":"Solving the Problem","depth":2},{"id":"model-architecture","text":"Model Architecture","depth":3},{"id":"vision-mamba-block","text":"Vision Mamba Block","depth":3},{"id":"parameter-settings","text":"Parameter Settings","depth":3},{"id":"discussion","text":"Discussion","depth":2},{"id":"performance-in-image-classification","text":"Performance in Image Classification","depth":3},{"id":"performance-comparison-at-high-resolution","text":"Performance Comparison at High Resolution","depth":3},{"id":"performance-in-image-segmentation","text":"Performance in Image Segmentation","depth":3},{"id":"performance-in-object-detection","text":"Performance in Object Detection","depth":3},{"id":"ablation-experiment---bidirectional-design","text":"Ablation Experiment - Bidirectional Design","depth":3},{"id":"ablation-experiment---classification-strategies","text":"Ablation Experiment - Classification Strategies","depth":3},{"id":"conclusion","text":"Conclusion","depth":2}],"anchorAliases":{},"guide":null,"relatedReading":[{"id":"mamba/mamba","relation":"background","topic":"From state-space memory to visual sequences"}]}],"text":"The dedication page of this paper reads: In memory of Kobe Bryant.\n\nBelow it is the line that closed Kobe's 2016 NBA farewell speech: “What can I say, Mamba out.” Black Mamba was Kobe's nickname, and “Mamba out” is the Mamba leaving the stage.\n\nWhen we read Mamba, we said it marked the beginning of a new era of papers. The vision community did react quickly: Vision Mamba and VMamba appeared one after the other in January 2024, followed by LocalMamba, PlainMamba, and EfficientVMamba, putting Mamba into all kinds of backbones for classification, detection, and segmentation.\n\nLess than half a year later, Weihao Yu and Xinchao Wang of the National University of Singapore wrote this paper, whose title asks directly: does vision really need Mamba?\n\nIf you've read our PoolFormer and CAFormer notes, you'll recognize the first author. He has long been asking the same kind of question: when a model performs well, which component actually deserves the credit?\n\n## Defining the Problem\n\nThe authors start from an observation: the results of these vision Mamba models often aren't impressive next to the best convolutional or attention models of the time.\n\nSo what is Mamba suited for? And do vision tasks fit that profile? The authors first answer these two questions conceptually, then test their answers with a set of models that deliberately leave out the SSM.\n\n## Solving the Problem\n\n### What Kind of Task Suits Mamba?\n\n[![Two-column schematic. Left column, Causal attention: at step one the old memory is empty, and after adding x1 the new memory stores k1, v1; at step two the new memory holds two pairs, k1 v1 and k2 v2; at step three it holds three, so memory grows with the number of steps. Right column, RNN-like: at every step the old hidden state h and the new input are fused into a new state of the same size, h0 to h1, h1 to h2, h2 to h3](/content/papers/assets/0a06070fe70c8178d01ed035d860f87f5caa629d7b13f3eb90b15d154a055398.png)](/content/papers/assets/0a06070fe70c8178d01ed035d860f87f5caa629d7b13f3eb90b15d154a055398.png)\n\n*Figure 2 from the paper, excerpted from [**page 4 of the v3 PDF**](https://arxiv.org/pdf/2405.07992v3#page=4). Causal attention is on the left; RNN-like models are on the right.*\n\nThis figure lays out the two ways of remembering very clearly.\n\nOn the left, causal attention adds each token's key and value to memory as it reads. Every position's key and value is kept, at the cost of a memory that keeps growing: at step three the new input is computed together with three key–value pairs; at step one thousand, with a thousand.\n\nOn the right, RNN-like models, including Mamba's SSM, fuse the old state and the new input into a new state of the same size at every step. The cost of fusing is fixed, but the state's size is limited, so old information is inevitably compressed or dropped.\n\nFrom this, the authors derive two conditions under which Mamba is a good fit:\n\n1. **The sequence must be long enough**. With short sequences, attention isn't expensive yet and still keeps every position's key and value, so the authors argue Mamba has a hard time gaining an edge; only when sequences are long enough does attention's quadratic cost become a burden.\n2. **The task needs causal information flow**. An SSM's recurrence can by nature only see the past and the present, which suits tasks that generate one token after another.\n\nThe second point needs a bit more explanation. The authors divide token mixing into two modes: **causal mode**, where the $t$-th token can only see tokens 1 through $t$; and **fully-visible mode**, where every token can see all of them. Attention can do both; add a mask, and it becomes causal. A unidirectional RNN can only accumulate information in the direction it reads; to let each position see the context on both sides, you have to add a separate branch running in the opposite direction and merge the two. After merging, each position does have access to the whole input, but the information still has to pass through two fixed-size states, which is different from attention, where tokens look at each other directly. The authors classify this case as an extension of causal mode as well, and consider it less natural than fully-visible attention.\n\nImage recognition is an understanding task: the whole image is visible at once, with no need for a causal constraint. The authors ran a small experiment: switching ViT's attention to causal mode lowers its ImageNet accuracy (Figure 3b in the paper).\n\n### Do Images Count as Long Sequences?\n\nThe first condition needs a yardstick. The authors use the computation of a Transformer block: with $L$ input tokens of $D$ dimensions each and an MLP expansion ratio of 4,\n\n$$\n\\text{FLOPs}=24D^2L+4DL^2,\\qquad r_L=\\frac{4DL^2}{24D^2L}=\\frac{L}{6D}\n$$\n\nWhen $r_L$ exceeds 1, that is, when $L>6D$, the term quadratic in length outweighs the linear term, and the sequence can be considered long.\n\nLet's compute it for the paper's three tasks, all with 16×16 patches:\n\n```python\nD = {\"ViT-S\": 384, \"ViT-B\": 768}\ntasks = {\"ImageNet 224×224\": (224, 224), \"COCO 800×1280\": (800, 1280), \"ADE20K 512×2048\": (512, 2048)}\nfor name, (h, w) in tasks.items():\n    L = (h // 16) * (w // 16)\n    ratios = \", \".join(f\"{k}: L/6D = {L / (6 * d):.2f}\" for k, d in D.items())\n    print(f\"{name}: {L:,} tokens; {ratios}\")\n```\n\n```text\nImageNet 224×224: 196 tokens; ViT-S: L/6D = 0.09, ViT-B: L/6D = 0.04\nCOCO 800×1280: 4,000 tokens; ViT-S: L/6D = 1.74, ViT-B: L/6D = 0.87\nADE20K 512×2048: 4,096 tokens; ViT-S: L/6D = 1.78, ViT-B: L/6D = 0.89\n```\n\nImageNet classification has only 196 tokens, more than ten times short of the threshold. COCO detection and ADE20K segmentation have about 4K tokens, already past the threshold for ViT-S and close to it for ViT-B.\n\nSo the authors propose two hypotheses:\n\n- **Hypothesis 1**: ImageNet classification is neither long nor causal, so it doesn't need an SSM.\n- **Hypothesis 2**: detection and segmentation aren't causal either, but their sequences are long enough that an SSM might still help.\n\n### Removing the SSM\n\n[![The left panel shows the structure of two blocks: in the Gated CNN block, the input passes through two Linear layers and splits into two branches, one through Conv and the other through an activation function; the two branches are multiplied and then pass through a Linear layer. The Mamba block is the same, except that Conv is followed by an extra activation function and SSM. The right panel is a bubble chart of ImageNet Top-1 accuracy against computation, with the MambaOut curve above VMamba, PlainMamba, and Vision Mamba](/content/papers/assets/a9e2bb043c6ac8f4558024557394c6a1ec7b9007b52ba19b5d1f7c05b07a3bc7.png)](/content/papers/assets/a9e2bb043c6ac8f4558024557394c6a1ec7b9007b52ba19b5d1f7c05b07a3bc7.png)\n\n*Figure 1 from the paper, excerpted from [**page 1 of the v3 PDF**](https://arxiv.org/pdf/2405.07992v3#page=1). (a) omits normalization and residual connections; in (b), bubble size represents parameter count.*\n\nLook at the left panel: the two blocks are nearly identical. The authors write them as one and the same equation:\n\n$$\nY=\\big(\\text{TokenMixer}(X'W_1)\\odot\\sigma(X'W_2)\\big)W_3+X\n$$\n\n$X'$ is the normalized input. One branch goes through the token mixer, the other through an activation function that serves as a gate; the two are multiplied elementwise, then projected back to the original dimension. The only difference is the token mixer:\n\n$$\n\\text{TokenMixer}_{\\text{Gated CNN}}(Z)=\\text{Conv}(Z),\\qquad\n\\text{TokenMixer}_{\\text{Mamba}}(Z)=\\text{SSM}\\big(\\sigma(\\text{Conv}(Z))\\big)\n$$\n\nA Mamba block is simply a Gated CNN with an SSM appended after the convolution.\n\nSo remove the SSM from a Mamba block, and what's left is a Gated CNN. The authors stack it into a family of models named **MambaOut**:\n\n- The token mixer is a 7×7 depthwise convolution, following ConvNeXt; for real-world speed, only some of the channels are convolved, following InceptionNeXt.\n- Like ResNet, the network has four stages, with downsampling between them.\n- There are four sizes, from the smallest, Femto, up to Base.\n\nThis design is a baseline: leave out the SSM and see how far you can get. To be clear, it differs from the various vision Mambas by more than just an SSM: the way the convolution is set up, the block design, and the stage configuration all differ. So even if MambaOut does better, strictly speaking what it proves is that “this level can be reached without an SSM”; how much the SSM itself contributes can only be measured by removing it from the same backbone.\n\n## Discussion\n\n### ImageNet Classification\n\nTraining follows the DeiT recipe, without distillation, at an input size of 224×224. Here are a few groups with similar parameter counts:\n\n| Model | Params (M) | MACs (G) | Top-1 (%) |\n| --- | ---: | ---: | ---: |\n| Vim-Ti | 7 | 1.5 | 76.1 |\n| EfficientVMamba-S | 11 | 1.3 | 78.7 |\n| **MambaOut-Femto** | 7 | 1.2 | **78.9** |\n| VMamba-T | 22 | 5.6 | 82.2 |\n| LocalVMamba-T | 26 | 5.7 | 82.7 |\n| **MambaOut-Tiny** | 27 | 4.5 | **82.7** |\n| LocalVMamba-S | 50 | 11.4 | 83.7 |\n| VMambaV9-S | 50 | 8.7 | 83.6 |\n| **MambaOut-Small** | 48 | 9.0 | **84.1** |\n| VMambaV9-B | 89 | 15.4 | 83.9 |\n| **MambaOut-Base** | 85 | 15.8 | **84.2** |\n\n*Table: Excerpted from Table 1 of the paper.*\n\nAt every scale, MambaOut matches or beats the vision Mambas that do have SSMs. Taking Small as an example, MambaOut is 0.4 percentage points above LocalVMamba-S with only 79% of its computation; compared with VMambaV9, however, MambaOut's MACs are slightly higher.\n\nThe paper's Table 1 holds another pair of numbers worth setting side by side. CAFormer-M36 reaches 85.2% with 56M parameters and 13.2G MACs, while VMambaV9-B, with more parameters (89M, 15.4G), gets 83.9%. In other words, to judge whether an SSM is worth using, the strongest convolutional and attention backbones also belong in the comparison.\n\n\n> [!TIP]\n> \n> CAFormer and the MetaFormer line of research are also by the same author:\n> \n> - **[[21.11] PoolFormer: You Need a Meta!](/blog/papers/vision-transformers/poolformer)**\n> - **[[22.10] CAFormer: MetaFormer User Manual](/blog/papers/vision-transformers/caformer)**\n\n\n### Detection and Segmentation\n\nSwitch to long-sequence tasks, and the result flips. On COCO, with Mask R-CNN and a 1× training schedule:\n\n| Backbone | AP (box) | AP (mask) |\n| --- | ---: | ---: |\n| MambaOut-Tiny | 45.1 | 41.0 |\n| VMamba-T | 46.5 | 42.1 |\n| LocalVMamba-T | 46.7 | 42.2 |\n| VMambaV9-T | 47.4 | 42.7 |\n\n*Table: Excerpted from Table 2 of the paper.*\n\nMambaOut-Tiny trails VMamba-T by 1.4 box AP and 1.1 mask AP. ADE20K semantic segmentation is similar: MambaOut-Tiny's single-scale mIoU of 47.4 is about the same as VMamba-T's 47.3, but below LocalVMamba-T's 47.9 and VMambaV9-T's 48.3.\n\nThe authors read this as support for Hypothesis 2: when sequences are long enough, the SSM may indeed help. As with classification, though, the comparison here is between different overall architectures, so this result is better treated as a lead for further research.\n\nStill, they don't have many kind words for vision Mamba either. In both tables, COCO (Table 2, Mask R-CNN) and ADE20K (Table 3, UperNet), the convolution-plus-attention TransNeXt leads vision Mambas of the same class; on ADE20K, for example, TransNeXt-Tiny reaches a single-scale mIoU of 51.1.\n\n### The Limits of This Yardstick\n\nThe $L>6D$ threshold measures when a single Transformer block's computation becomes dominated by the quadratic term. It's a convenient rule of thumb, but it can't prove that a given task “necessarily needs” a linear-time model. This note adds one more consideration: detection and segmentation backbones often use window attention or hierarchical downsampling to keep costs down, so the burden of the quadratic term may never actually materialize.\n\nThe evidence for Hypothesis 2 is also somewhat weaker than for Hypothesis 1. In the Tiny group above, the detection gaps are 1.4 to 2.3 box AP and 1.1 to 1.7 mask AP, and on segmentation some vision Mambas don't beat MambaOut. The paper makes a strong case that “ImageNet classification doesn't need an SSM”; as for “long-sequence vision tasks need an SSM,” that's closer to “worth further study.”\n\n## Conclusion\n\nThis paper answers its title with a simple baseline:\n\n1. **The authors argue that Mamba suits long, causal tasks**. A fixed-size memory gains nothing on short sequences, and a unidirectional recurrence only accumulates information in the direction it reads.\n2. **ImageNet classification meets neither condition**. MambaOut, without an SSM, matches or beats vision Mamba at every listed scale; whether its MACs come out higher or lower depends on the comparison.\n3. **Detection and segmentation are long-sequence tasks, and there an SSM may help a little**. MambaOut loses here to the best vision Mambas, but all the vision Mambas in turn lose to stronger hybrids of convolution and attention.\n\nVision Mamba's flame had barely caught and was about to roar into a blaze when it was snuffed out, just like that.\n\nAh, such is life.\n\n\n> [!TIP]\n> \n> For one of the first works to bring Mamba into vision, see:\n> \n> - **[[24.01] Vim: The Mamba's Eye](/blog/papers/mamba/vim)**\n","imageSizes":{"/content/papers/assets/0a06070fe70c8178d01ed035d860f87f5caa629d7b13f3eb90b15d154a055398.png":{"width":983,"height":619},"/content/papers/assets/a9e2bb043c6ac8f4558024557394c6a1ec7b9007b52ba19b5d1f7c05b07a3bc7.png":{"width":1112,"height":456}}}
