Recurrent Reinforcement Learning with Memoroids
Steven D. Morad, Chris Lu, Ryan Kortvelesy, Stephan Liwicki, Jakob N. Foerster, Amanda Prorok
Abstract
Memory models such as Recurrent Neural Networks (RNNs) and Transformers address Partially Observable Markov Decision Processes (POMDPs) by mapping trajectories to latent Markov states. Neither model scales particularly well to long sequences, especially compared to an emerging class of memory models called Linear Recurrent Models. We discover that the recurrent update of these models resembles a monoid, leading us to reformulate existing models using a novel monoid-based framework that we call memoroids. We revisit the traditional approach to batching in recurrent reinforcement learning, highlighting theoretical and empirical deficiencies. We leverage memoroids to propose a batching method that improves sample efficiency, increases the return, and simplifies the implementation of recurrent loss functions in reinforcement learning.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
2 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Investigating Memory in RL with POPGym Arcade cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
- Investigating Memory in RL with POPGym Arcade cites Resurrecting Recurrent Neural Networks for Long Sequences
- Investigating Memory in RL with POPGym Arcade cites Structured State Space Models for In-Context Reinforcement Learning
- Investigating Memory in RL with POPGym Arcade cites Linear Transformers Are Secretly Fast Weight Programmers
- Resurrecting Recurrent Neural Networks for Long Sequences cites Combining Recurrent, Convolutional, and Continuous-time Models with Linear State Space Layers
- Structured State Space Models for In-Context Reinforcement Learning cites Combining Recurrent, Convolutional, and Continuous-time Models with Linear State Space Layers
- Linear Transformers Are Secretly Fast Weight Programmers cites Transformers are RNNs: Fast Autoregressive Transformers with Linear Attention
Cited by top-tier papers2
Builds on12
- Transformers are RNNs: Fast Autoregressive Transformers with Linear AttentionAngelos Katharopoulos, Apoorv Vyas, Nikolaos Pappas, François FleuretICML 2020 · 2,665 citations
- Combining Recurrent, Convolutional, and Continuous-time Models with Linear State Space LayersAlbert Gu, Isys Johnson, Karan Goel, Khaled Saab et al.NeurIPS 2021 · 1,280 citations
- Resurrecting Recurrent Neural Networks for Long SequencesAntonio Orvieto, Samuel L. Smith, Albert Gu, Anushan Fernando et al.ICML 2023 · 474 citations
- Linear Transformers Are Secretly Fast Weight ProgrammersImanol Schlag, Kazuki Irie, Jürgen SchmidhuberICML 2021 · 394 citations
- Structured State Space Models for In-Context Reinforcement LearningChris Lu, Yannick Schroecker, Albert Gu, Emilio Parisotto et al.NeurIPS 2023 · 164 citations
Related papers
- Recurrent Action Transformer with MemoryEgor Cherepanov, Aleksei Staroverov, Alexey Kovalev, Aleksandr PanovICLR 2026 · 14 citations
- Rethinking Transformers in Solving POMDPsChenhao Lu, Ruizhe Shi, Yuyao Liu, Kaizhe Hu et al.ICML 2024 · 10 citations
- Recurrent Model-Free RL Can Be a Strong Baseline for Many POMDPsTianwei Ni, Benjamin Eysenbach, Ruslan SalakhutdinovICML 2022 · 162 citations
- Reinforcement Learning with Fast and Forgetful MemorySteven D. Morad, Ryan Kortvelesy, Stephan Liwicki, Amanda ProrokNeurIPS 2023 · 10 citations
- Memo: Training Memory-Efficient Embodied Agents with Reinforcement LearningGunshi Gupta, Karmesh Yadav, Zsolt Kira, Yarin Gal et al.NeurIPS 2025 · 9 citations
