Recurrent Reinforcement Learning with Memoroids

Steven D. Morad, Chris Lu, Ryan Kortvelesy, Stephan Liwicki, J. Foerster +1 more
2/1/2024

No official code found. Best implementation: proroklab/memoroids (8 stars, last commit 2025-08-29).

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.

View on arXivView PDF

Code Implementations(1)

proroklab/memoroidsCommunity100%
81Shell, PythonJul 29, 20231 years ago

Similar Papers

Cite this paper

@article{morad2024recurrent,
  title  = {Recurrent Reinforcement Learning with Memoroids},
  author = {Steven D. Morad and Chris Lu and Ryan Kortvelesy and Stephan Liwicki and J. Foerster and Amanda Prorok},
  year   = {2024},
  eprint = {2402.09900},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-0459},
  url    = {https://arxiv.org/abs/2402.09900},
  journal = {NEURIPS 2024 2024}
}

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

Discussion