LLM-as-RNN: A Recurrent Language Model for Memory Updates and Sequence Prediction

Yuxing Lu, J. Ben Tamo, Weichen Zhao, Nan Sun, Yishan Zhong +3 more
1/19/2026
cs.CLcs.AIcs.MA

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lu2026llmasrnn,
  title  = {LLM-as-RNN: A Recurrent Language Model for Memory Updates and Sequence Prediction},
  author = {Yuxing Lu and J. Ben Tamo and Weichen Zhao and Nan Sun and Yishan Zhong and Wenqi Shi and Jinzhuo Wang and May D. Wang},
  year   = {2026},
  eprint = {2601.13352},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.13352v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.13352.svg)](https://codeofpaper.com/paper/2601.13352)

Discussion