TLDR: Current AI models, optimized for parallelism, struggle with long-horizon tasks requiring true sequential computation. This paper introduces ‘recurrence-completeness’ and ‘true depth’ to explain these limitations. It proposes a new architecture combining a Transformer frame-head with an LSTM temporal backbone, trained on GitHub-derived action sequences. Experiments show this recurrence-complete model significantly outperforms parallel models on serial tasks, exhibiting power-law scaling with sequence length and amortizing wall-time costs, suggesting serial computation is crucial for deep credit assignment in agentic systems.
In the rapidly evolving world of artificial intelligence, models like large language models (LLMs) have achieved remarkable success, largely thanks to “attention-like mechanisms” that allow for highly parallel processing. However, new research challenges the prevailing view that traditional recurrent neural networks (RNNs) are no longer essential. This paper, titled “Recurrence-Complete Frame-based Action Models,” argues that for certain complex, long-running AI tasks, true sequential computation is not just an option, but a necessity.
The core of the argument lies in two key concepts: “true depth” and “recurrence-completeness.” True depth refers to the number of operations that absolutely must happen one after another, without any possibility of parallelization. Recurrence-completeness, on the other hand, describes an architecture’s ability to represent any kind of recurrent update, even those that are non-associative and cannot be easily broken down into parallel steps. The authors, including Michael Keiblinger from Prime Intellect, present proofs demonstrating that models with fully parallelizable forward or backward passes cannot be recurrence-complete. This includes many popular architectures like Transformers, State-Space Models (SSMs) such as Mamba, and even “parallelizable RNNs.”
For AI systems that need to perceive and act over extended periods, such as software engineering agents or systems interacting with complex environments, these limitations become critical. The paper introduces the idea of “input-length proportionality,” where correctly understanding observations up to a certain point in time requires a number of sequential steps proportional to the input length. Beyond a certain “input aggregation criticality,” non-recurrence-complete models are predicted to fail at correctly processing long streams of information due to their bounded true depth.
To test these ideas, the researchers designed synthetic tasks like the “Forward-Referencing Jumps Task” and the “Withheld Maze Position Tracking Task.” These tasks specifically demand strictly serial evaluation. The results showed that time-parallel models like Transformers and Mamba experienced significant drops in accuracy as the task depth increased. In stark contrast, a simple, single-layer Long Short-Term Memory (LSTM) network, which inherently performs serial computation, maintained strong performance even at much greater depths.
Motivated by these findings, the paper proposes a novel architecture: a Recurrence-Complete Frame-based Action Model. This model takes a different approach to processing information. Instead of a one-dimensional sequence of tokens, it processes “frames”—fixed-size, complete representations of the input at each moment in time, such as a 2D grid of characters from a terminal. Each frame is initially processed by a “frame-head,” which is a Transformer-based component that embeds the frame into a latent space. Crucially, the temporal integration—how information is carried forward through time—is handled by a residual stack of LSTM cells. This design deliberately embraces non-parallelizable serial computation for the temporal aspect.
The training data for this model is particularly innovative. It’s automatically compiled from Git histories, reconstructing plausible text-editor sessions and capturing the resulting terminal frame buffers. This “text-video with actions” provides a rich, long-horizon dataset for training. To handle the computational demands of full backpropagation through time over potentially thousands of frames, the researchers developed a streaming, recompute-on-the-fly schedule. This approach keeps activation memory usage effectively constant with sequence length, albeit at the cost of increased wall-time.
The empirical results are compelling. The model exhibits a robust “power law” in trained sequence length at a fixed parameter count. This means that increasing the number of frames per example consistently lowers the loss, and this improvement continues even when accounting for the linearly increasing wall-time cost. Beyond a certain point, longer-sequence training runs actually outperform shorter ones in terms of loss versus wall time. Importantly, unlike traditional language models where longer contexts often only improve later tokens, this model shows uniform improvement across both early and late positions, suggesting a genuine enhancement of the model’s “perceptual state.”
Also Read:
- Navigating Complexity: How AI Agents Can Plan Smarter with Abstract Schemas
- ELMUR: Empowering Robots with Persistent Long-Term Memory for Complex Tasks
In conclusion, this research highlights a fundamental limitation of purely parallel architectures for long-horizon, side-effect-laden tasks. It argues that true serial computation, as embodied by recurrence-complete models, is indispensable in such regimes. The proposed Recurrence-Complete Frame-based Action Model offers a promising direction, demonstrating that integrating attention within frames and LSTMs over time can lead to superior performance and scaling for complex agentic tasks. For more technical details, you can read the full paper here.


