LLM-as-RNN: A Recurrent Language Model for Memory Updates and Sequence Prediction
Not on the map. Why?
Abstract (arXiv)
Large language models are strong sequence predictors, yet standard inference relies on immutable context histories. After making an error at generation step t, the model lacks an updatable memory mechanism that improves predictions for step t+1. We propose LLM-as-RNN, an inference-only framework that turns a frozen LLM into a recurrent predictor by representing its hidden state as natural-language memory. This state, implemented as a structured system-prompt summary, is updated at each timestep via feedback-driven text rewrites, enabling learning without parameter updates. Under a fixed token budget, LLM-as-RNN corrects errors and retains task-relevant patterns, effectively performing online learning through language. We evaluate the method on three sequential benchmarks in healthcare, meteorology, and finance across Llama, Gemma, and GPT model families. LLM-as-RNN significantly outperforms zero-shot, full-history, and MemPrompt baselines, improving predictive accuracy by 6.5% on average, while producing interpretable, human-readable learning traces absent in standard context accumulation.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 27 of its 46 references that are in the map. First posted on arXiv 19 Jan 2026.
Builds on
27 of 46 references.
References · 27
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Mamba: Linear-Time Sequence Modeling with Selective State Spacescited by 4,616
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
- 2014Learning Phrase Representations using RNN Encoder-Decoder for Statistical Machine Translationcited by 4,016
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2014Sequence to Sequence Learning with Neural Networkscited by 2,974
- 2014Empirical Evaluation of Gated Recurrent Neural Networks on Sequence Modelingcited by 2,341
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
15 more
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2023Language Models Don't Always Say What They Think: Unfaithful Explanations in Chain-of-Thought Promptingcited by 1,081
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
- 2022What Can Transformers Learn In-Context? A Case Study of Simple Function Classescited by 700
- 2022What learning algorithm is in-context learning? Investigations with linear modelscited by 671
- 2013Speech Recognition with Deep Recurrent Neural Networkscited by 666
- 2014Neural Turing Machinescited by 630
- 2014Memory Networkscited by 354
- 2023How Language Model Hallucinations Can Snowballcited by 310
- 2024Simple linear attention language models balance the recall-throughput tradeoffcited by 197
- 2025From Human Memory to AI Memory: A Survey on Memory Mechanisms in the Era of LLMscited by 119
- 2024Large Language Models for Time Series: A Surveycited by 113
- 2024Empowering Time Series Analysis with Large Language Models: A Surveycited by 60
- 2024Larimar: Large Language Models with Episodic Memory Controlcited by 53
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Meta Context Engineering via Agentic Skill Evolutioncited by 42
- 2026Meta Context Engineering via Agentic Skill Evolution29 Jan 2026