Recurrent Action Transformer with Memory

E. Cherepanov, A. Staroverov, A. Kovalev, A. Panov
6/1/2023
23 citations
transformer-attentionrl

Official code: AIRI-Institute/RATE (3 stars, Jupyter Notebook, MIT, last commit 2024-09-24). Most starred: CognitiveAISystems/RATE, a community implementation (27 stars, Python, MIT, last commit 2025-11-23, 9.0× the official stars). 1 more implementation below.

Abstract

Transformers have become increasingly popular in offline reinforcement learning (RL) due to their ability to treat agent trajectories as sequences, reframing policy learning as a sequence modeling task. However, in partially observable environments (POMDPs), effective decision-making depends on retaining information about past events -- something that standard transformers struggle with due to the quadratic complexity of self-attention, which limits their context length.

Show full abstract

One solution to this problem is to extend transformers with memory mechanisms. We propose the Recurrent Action Transformer with Memory (RATE), a novel transformer-based architecture for offline RL that incorporates a recurrent memory mechanism designed to regulate information retention. We evaluate RATE across a diverse set of environments: memory-intensive tasks (ViZDoom-Two-Colors, T-Maze, Memory Maze, Minigrid-Memory, and POPGym), as well as standard Atari and MuJoCo benchmarks. Our comprehensive experiments demonstrate that RATE significantly improves performance in memory-dependent settings while remaining competitive on standard tasks across a broad range of baselines. These findings underscore the pivotal role of integrated memory mechanisms in offline RL and establish RATE as a unified, high-capacity architecture for effective decision-making over extended horizons. Code: https://sites.google.com/view/rate-model/.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
AIRI-Institute/RATEOfficial3Jupyter NotebookMIT2024-09-24
CognitiveAISystems/RATECommunity27PythonMIT2025-11-23
MIT
30Jupyter Notebook, PythonSep 24, 20242 years agoMIT
MIT

🔥 [ICLR 2026] Official implementation of Recurrent Action Transformer with Memory, an offline RL agent with memory mechanisms. https://sites.google.com/view/rate-model/

273Python, ShellOct 14, 20241 years agoMIT
deep-learninglong-contextmemorymemory-rlrate+4 more

Similar Papers

Cite this paper

@article{cherepanov2023recurrent,
  title  = {Recurrent Action Transformer with Memory},
  author = {E. Cherepanov and A. Staroverov and A. Kovalev and A. Panov},
  year   = {2023},
  eprint = {2306.09459},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2306.09459},
  journal = {International Conference on Learning Representations}
}

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/2306.09459.svg)](https://codeofpaper.com/paper/2306.09459)

Discussion