Learning State-Tracking from Code Using Linear RNNs
- company arXiv
- location UTC
- location arXiv
- location arXivLabs
- person Julien Siems
- product DagsHub
- product Hugging Face
- product arXivLabs
Linear recurrent neural networks can track state in code-based tasks where Transformer models continue to fall short, according to a revised preprint posted to arXiv on 25 June 2026. The work reframes a classic sequence-modeling benchmark to better reflect how language models are trained. The study, led by Julien Siems, converts permutation-composition problems — a standard testbed for sequence models — into code traces that interleave state reveals through print statements and variable transformations [1][2]. This representation aligns the task with the next-token prediction objective used to train large language models, rather than the sequence-to-sequence format of earlier benchmarks [2]. Transformers, which rely on multi-head attention mechanisms to contextualize tokens within a fixed context window, have dominated language modeling since the 2017 “Attention Is All You Need” paper [3]. Their parallel architecture reduced training time compared to earlier recurrent designs such as long short-term memory networks [3][6]. Yet the new experiments show that even state-of-the-art Transformer models fail to track state reliably in the code-based setup, while linear RNNs succeed [1][2]. The paper also identifies a harder regime. When actions are not always fully observable, the problem becomes one of tracking a probabilistic finite-state automaton with deterministic state reveals [2]. In that setting, linear RNNs can underperform their non-linear counterparts [1][2]. Recurrent neural networks, which process sequential data by passing signals through loops of artificial neurons, have long been used for speech and time-series modeling [6]. Non-linear activation functions give them representational capacity that purely linear recurrences lack, a distinction that matters when observations are incomplete [2][6]. The preprint was first submitted on 16 February 2026 and revised twice, with the latest version posted on 25 June 2026 [1]. The findings add to a growing body of work probing the architectural limits of Transformers, which underpin systems from chatbots to code-generation tools [3][5]. Since the 2020s, generative AI built on Transformer backbones has been widely deployed, but the new results suggest that alternative architectures may be necessary for tasks requiring robust internal state maintenance [2][5].
research-paper
Background sources we checked (10)
- arxiv.org ↗ Over the last years, state-tracking tasks, particularly permutation composition, have become a testbed to understand the limits of sequence models architectures like Transformers and RNNs (linear and non-linear). However, these are often sequence-to-sequence tasks: learning to ma…
- en.wikipedia.org ↗ In deep learning, the transformer is a family of artificial neural network architectures based on the multi-head attention mechanism, in which text is converted to numerical representations called tokens, and each token is converted into a vector via lookup from a word embedding …
- en.wikipedia.org ↗ In machine learning, deep learning (DL) focuses on utilizing multilayered neural networks to perform tasks such as classification, regression, and representation learning. The field takes inspiration from biological neuroscience and revolves around stacking artificial neurons int…
- en.wikipedia.org ↗ Artificial intelligence (AI) is the capability of computational systems to perform tasks typically associated with human intelligence, such as learning, reasoning, problem-solving, perception, and decision-making. It is a field of research in engineering, mathematics and computer…
- en.wikipedia.org ↗ In machine learning, a neural network (NN) or neural net, is a computational model inspired by the structure and functions of biological neural networks. A neural network consists of connected units or nodes called artificial neurons, which loosely model the neurons in the brain.…
- arxiv.org ↗ localtime at arxiv.org We gratefully acknowledge support from the Simons Foundation and member institutions. # > localtime Help| Advanced Search All fields Title Author Abstract Comments Journal reference ACM classification MSC classification Report number arXiv identifier DO…
- arxiv.org ↗ localtime at arxiv.org [](https://www.cornell.edu/) [We gratefully acknowledge support from the Simons Foundation and member institutions.](https://confluence.cornell.edu/x/ALlRF) # [![arxiv l…
- arxiv.org ↗ [2209.14227] UTC Time, Formally Verified ... **arXiv:2209.14227**(cs) ... [Submitted on 28 Sep 2022 ([v1](https://arxiv.org/abs/2209.14227v1)), last revised 13 Dec 2023 (this version, v2)] ... # Title:UTC Time, Formally Verified ... [View PDF](https://arxiv.org/pdf/2209.14227)> >…
- en.wikipedia.org ↗ Coordinated Universal Time (UTC) is the primary time standard globally used to regulate clocks and time. It establishes a reference for the current time, forming the basis for civil time and time zones. UTC facilitates international communication, navigation, scientific research,…
- en.wikipedia.org ↗ An atomic clock is a clock that measures time by monitoring the resonant frequency of atoms. It is based on the fact that atoms have quantised energy levels, and transitions between such levels are driven by very specific frequencies of electromagnetic radiation. This phenomenon …
Sources
- export.arxiv.org — Learning State-Tracking from Code Using Linear RNNs ↗