Télécom Paris, Razvan Pascanu, Michael Gastpar, Marco Bondaschi, Nived Epfl, Rajaraman, Wei Xiuying, Kannan Epfl, Ramchandran, Epfl Ashok, Vardhan Makkuva
We have not lifted any functions out of this paper's repositories yet, so there is nothing we have run. The repositories linked to it are listed below.
Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.
While transformer-based language models have driven the AI revolution thus far, their computational complexity has spurred growing interest in viable alternatives, such as structured state space sequence models (SSMs) and Selective SSMs. Among these, Mamba (S6) and its variant Mamba-2 have shown remarkable inference speed-ups over transformers while achieving comparable or superior performance on complex language modeling tasks. However, despite these architectural innovations and empirical successes, the fundamental learning capabilities of Mamba remain poorly understood. In this paper, we address this gap by studying in-context learning (ICL) on Markov chains and uncovering an interesting phenomenon: even a single-layer Mamba efficiently learns the in-context Laplacian smoothing estimator, which is both Bayes and minimax optimal. To explain this, we theoretically characterize the representation capacity of Mamba and reveal the fundamental role of convolution in enabling it to represent the optimal Laplacian smoothing. These theoretical insights align strongly with empirical results and, to the best of our knowledge, represent the first formal connection between Mamba and optimal statistical estimators. Finally, we outline promising research directions inspired by these findings. Code is available at https://github.com/Bond1995/Markov-Mamba. Can we systematically characterize the ICL capabilities of Mamba?
The same record, over MCP at https://syntology.ai/mcp:
get_harvested_code_for_paper("2502.10178")
get_code_for_paper("2502.10178")
have("2502.10178")
The run record, dated, one paper per request, free:
curl https://syntology.ai/api/ran/2502.10178.json
A badge for a README (the split and the date, never a ratio):
[](https://syntology.ai/paper/2502.10178)
Connect an agent — have() is free.