mlsanityData to 14 Oct 2026

Mamba Can Learn Low-Dimensional Targets In-Context via Test-Time Feature Learning

arXiv 2510.12026 ↗First posted 14 Oct 2025cs.LG stat.MLcited by 1

On the map: State-space sequence models (S4, Mamba) → Core SSM architectures for language

Abstract (arXiv)

Mamba, a recently proposed linear-time sequence model, has attracted significant attention for its computational efficiency and strong empirical performance. However, a rigorous theoretical understanding of its underlying mechanisms remains limited. In this work, we provide a theoretical analysis of Mamba's in-context learning (ICL) capability by focusing on tasks defined by low-dimensional nonlinear target functions. Specifically, we study in-context learning of a single-index model y ≈ g_*(langle boldsymbolβ, boldsymbolx rangle), which depends on only a single relevant direction boldsymbolβ, referred to as feature. We prove that Mamba, pretrained by gradient-based methods, can achieve efficient ICL via test-time feature learning, extracting the relevant direction directly from context examples. Consequently, we establish a test-time sample complexity that improves upon linear Transformers -- analyzed to behave like kernel methods -- and is comparable to nonlinear Transformers, which have been shown to surpass the Correlational Statistical Query (CSQ) lower bound and achieve near information-theoretically optimal rate in previous works. Our analysis reveals the crucial role of the nonlinear gating mechanism in Mamba for feature extraction, highlighting it as the fundamental driver behind Mamba's ability to achieve both computational efficiency and high performance.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Core SSM architectures for language, one of 10 directions in State-space sequence models (S4, Mamba). Builds on 55 of its 59 references that are in the map. First posted on arXiv 14 Oct 2025.

Builds on

55 of 59 references.

Closest ancestors · 11

Same direction, newest first

  1. 2025How Can Mamba Learn In Context with Outliers and Generalize Provably?1 Oct
  2. 2025Trained Mamba Emulates Online Gradient Descent in In-Context Linear Regression28 Sep
  3. 2025From Markov to Laplace: How Mamba In-Context Learns Markov Chains14 Feb
  4. 2024The Mamba in the Llama: Distilling and Accelerating Hybrid Models27 Aug
  5. 2024An Empirical Study of Mamba-based Language Models12 Jun
  6. 2024Transformers are SSMs: Generalized Models and Efficient Algorithms Through Structured State Space Duality31 May
  7. 2024Mamba-360: Survey of State Space Models as Transformer Alternative for Long Sequence Modelling: Methods, Applications, and Challenges24 Apr
  8. 2024Can Mamba Learn How to Learn? A Comparative Study on In-Context Learning Tasks6 Feb
  9. 2024Is Mamba Capable of In-Context Learning?5 Feb
  10. 2023Gated Linear Attention Transformers with Hardware-Efficient Training11 Dec
  11. 2023Mamba: Linear-Time Sequence Modeling with Selective State Spaces1 Dec

Other references · 44

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2013Rich feature hierarchies for accurate object detection and semantic segmentationcited by 2,162
  4. 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
  5. 2022Transformers learn in-context by gradient descentcited by 732
  6. 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 715
  7. 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 684
  8. 2022Hungry Hungry Hippos: Towards Language Modeling with State Space Modelscited by 499
  9. 2023Trained Transformers Learn Linear Models In-Contextcited by 337
  10. 2024xLSTM: Extended Long Short-Term Memorycited by 327
  11. 2023Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selectioncited by 298
  12. 2020Towards Understanding Ensemble, Knowledge Distillation and Self-Distillation in Deep Learningcited by 297
32 more
  1. 2023Transformers learn to implement preconditioned gradient descent for in-context learningcited by 279
  2. 2025Reasoning with Latent Thoughts: On the Power of Looped Transformerscited by 240
  3. 2023What Algorithms can Transformers Learn? A Study in Length Generalizationcited by 199
  4. 2022Hidden Progress in Deep Learning: SGD Learns Parities Near the Computational Limitcited by 187
  5. 2023One Step of Gradient Descent is Provably the Optimal In-Context Learner with One Layer of Linear Self-Attentioncited by 170
  6. 2018Adaptivity of deep ReLU network for learning in Besov and mixed smooth Besov spaces: optimal rate and curse of dimensionalitycited by 162
  7. 2022Neural Networks can Learn Representations with Gradient Descentcited by 161
  8. 2024Eagle and Finch: RWKV with Matrix-Valued States and Dynamic Recurrencecited by 159
  9. 2019Linearized two-layers neural networks in high dimensioncited by 155
  10. 2022High-dimensional Asymptotics of Feature Learning: How One Gradient Step Improves the Representationcited by 150
  11. 2020Online stochastic gradient descent on non-convex losses from high-dimensional inferencecited by 119
  12. 2023In-Context Convergence of Transformerscited by 115
  13. 2022Learning Single-Index Models with Shallow Neural Networkscited by 92
  14. 2022Benign Overfitting in Two-layer Convolutional Neural Networkscited by 91
  15. 2023How Two-Layer Neural Networks Learn, One (Giant) Step at a Timecited by 68
  16. 2023Transformers Implement Functional Gradient Descent to Learn Non-Linear Functions In Contextcited by 63
  17. 2023Smoothing the Landscape Boosts the Signal for SGD: Optimal Sample Complexity for Learning Single Index Modelscited by 61
  18. 2024Transformers Learn Nonlinear Features In Context: Nonconvex Mean-field Dynamics on the Attention Landscapecited by 46
  19. 2024Neural network learns low-dimensional polynomials with SGD near the information-theoretic limitcited by 46
  20. 2024Computational-Statistical Gaps in Gaussian Single-Index Modelscited by 44
  21. 2023SGD Finds then Tunes Features in Two-Layer Neural Networks with near-Optimal Sample Complexity: A Case Study in the XOR problemcited by 39
  22. 2024Repetita Iuvant: Data Repetition Allows SGD to Learn High-Dimensional Multi-Index Functionscited by 37
  23. 2024How Do Nonlinear Transformers Learn and Generalize in In-Context Learning?cited by 35
  24. 2021How rotational invariance of common kernels prevents generalization in high dimensionscited by 32
  25. 2023Gradient-Based Feature Learning under Structured Datacited by 32
  26. 2024Pretrained transformer efficiently learns low-dimensional target functions in-contextcited by 31
  27. 2023Understanding Emergent In-Context Learning from a Kernel Regression Perspectivecited by 24
  28. 2024Fine-grained Analysis of In-context Linear Estimation: Data, Architecture, and Beyondcited by 24
  29. 2024On the Complexity of Learning Sparse Functions with Statistical and Gradient Queriescited by 15
  30. 2025Gating is Weighting: Understanding Gated Linear Attention through In-context Learningcited by 12
  31. 2025Provable In-Context Vector Arithmetic via Retrieving Task Conceptscited by 8
  32. 2025On the Role of Transformer Feed-Forward Layers in Nonlinear In-Context Learningcited by 7

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2025Probing In-Context Learning: Impact of Task Complexity and Model Architecture on Generalization and Efficiency
  2. 2026A Theoretical Analysis of Mamba's Training Dynamics: Filtering Relevant Features for Generalization in State Space Models
  3. 2025Achilles' Heel of Mamba: Essential difficulties of the Mamba architecture demonstrated by synthetic data
  4. 2024A Survey of Mamba
  5. 2025Mamba Modulation: On the Length Generalization of Mamba
  6. 2024The Hidden Attention of Mamba Models
  7. 2024Mamba-ND: Selective State Space Modeling for Multi-Dimensional Data
  8. 2025Block-Biased Mamba for Long-Range Sequence Processing