When can Optimally Trained Transformers Achieve Near-Lossless Token Prediction for non-Markovian Data?
Not on the map. Why?
Abstract (arXiv)
There exists little mathematical theory explaining why Transformer architectures are empirically successful even for non-Markovian data. To this end, this paper studies next-token prediction via stochastic optimal control theoretically trained Transformers for such sources, where we consider either stationary and ergodic non-Markovian sources or those which are hidden Markov models of some finite order (possibly non-stationary). In either case, we first obtain error bounds via finite models with finite window approximations. For stationary ergodic sources, the resulting error is bounded by an entropy gap; for Nth order Markovian sources, it decays at an exponential rate αlfloor M/Nrfloor, where M is the window length and α is determined by filter stability (and the Dobrushin coefficients of the transition and measurement kernels). We then construct a Transformer of depth M+1, one head per layer, realizing the truncated filter, and we optimally train it with stochastic control developed in earlier work, which rigorously returns a near optimal Transformer. In particular, we show that for a non-Markovian source, either under stationarity and ergodicity for general models or under filter stability for hidden Markov models, an optimally trained Transformer has arbitrarily small performance error with increasing context length, data, and approximation refinement. Numerical studies accompany the theory.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Builds on 7 of its 53 references that are in the map. Submitted 29 Oct 2026.
Builds on
7 of 53 references.
References · 7
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 41,272
- 2024Round and Round We Go! What makes Rotary Positional Encodings useful?cited by 128
- 2024Measure-to-measure interpolation using Transformerscited by 37
- 2026An Optimal Control Approach To Transformer Trainingcited by 4
- 2025Dual Filter: A Transformer-like Inference Architecture for Hidden Markov Modelscited by 1
- 2026Transformer-like Inference from Optimal Controlcited by 1
- 2026Generalization Bounds on Optimal Control for Transformer Training and Wasserstein Distributional Robustnesscited by 1
Built on by
Not cited yet.