Markov Chain Estimation with In-Context Learning
Not on the map. Why?
Abstract (arXiv)
We investigate the capacity of transformers to learn algorithms involving their context while solely being trained using next token prediction. We set up Markov chains with random transition matrices and we train transformers to predict the next token. Matrices used during training and test are different and we show that there is a threshold in transformer size and in training set size above which the model is able to learn to estimate the transition probabilities from its context instead of memorizing the training patterns. Additionally, we show that more involved encoding of the states enables more robust prediction for Markov chains with structures different than those seen during training.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 17 of its 19 references that are in the map. First posted on arXiv 5 Aug 2025.
Builds on
17 of 19 references.
References · 17
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2020GLU Variants Improve Transformercited by 1,804
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2022In-context Learning and Induction Headscited by 964
- 2021An Explanation of In-context Learning as Implicit Bayesian Inferencecited by 938
- 2024LTX-Video: Realtime Video Latent Diffusioncited by 581
- 2019Are Transformers universal approximators of sequence-to-sequence functions?cited by 406
- 2021YourTTS: Towards Zero-Shot Multi-Speaker TTS and Zero-Shot Voice Conversion for everyonecited by 278
5 more
- 2023Birth of a Transformer: A Memory Viewpointcited by 161
- 2022Revisiting Neural Scaling Laws in Language and Visioncited by 132
- 2024The Evolution of Statistical Induction Heads: In-Context Learning Markov Chainscited by 118
- 2024In-Context Language Learning: Architectures and Algorithmscited by 89
- 2024What Makes Multimodal In-Context Learning Work?cited by 56
Built on by
Not cited yet.