Probing Length Generalization in Mamba via Image Reconstruction
On the map: State-space sequence models (S4, Mamba) → Vision Mamba backbones
Abstract (arXiv)
Mamba has attracted widespread interest as a general-purpose sequence model due to its low computational complexity and competitive performance relative to transformers. However, its performance can degrade when inference sequence lengths exceed those seen during training. We study this phenomenon using a controlled vision task in which Mamba reconstructs images from sequences of image patches. By analyzing reconstructions at different stages of sequence processing, we reveal that Mamba qualitatively adapts its behavior to the distribution of sequence lengths encountered during training, resulting in strategies that fail to generalize beyond this range. To support our analysis, we introduce a length-adaptive variant of Mamba that improves performance across training sequence lengths. Our results provide an intuitive perspective on length generalization in Mamba and suggest directions for improving the architecture.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Vision Mamba backbones, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 10 of its 16 references that are in the map. First posted on arXiv 12 Mar 2026.
Builds on
10 of 16 references.
Closest ancestors · 1
Same direction, newest first
- 2024Vision Mamba: Efficient Visual Representation Learning with Bidirectional State Space Model17 Jan
Other references · 9
- 2017Attention Is All You Needcited by 59,932
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,201
- 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Dualitycited by 1,283
- 2023The Impact of Positional Encoding on Length Generalization in Transformerscited by 319
- 2024DeciMamba: Exploring the Length Extrapolation Potential of Mambacited by 45
- 2025Mamba Modulation: On the Length Generalization of Mambacited by 13
- 2024Stuffed Mamba: Oversized States Lead to the Inability to Forgetcited by 7
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Visual Mamba: A Survey and New Outlooks
- 2025Achilles' Heel of Mamba: Essential difficulties of the Mamba architecture demonstrated by synthetic data
- 2025Dynamic Vision Mamba
- 2025MambaScope: Coarse-to-Fine Scoping for Efficient Vision Mamba
- 2024PackMamba: Efficient Processing of Variable-Length Sequences in Mamba training
- 2025MambaEye: A Size-Agnostic Visual Encoder with Causal Sequential Processing
- 2024MambaOut: Do We Really Need Mamba for Vision?
- 2026SF-Mamba: Rethinking State Space Model for Vision