Unraveling the Complexity of Memory in RL Agents: an Approach for Classification and Evaluation
Egor Cherepanov, Nikita Kachaev, Artem Zholus, Alexey K. Kovalev, Aleksandr I. Panov
TL;DR
The paper tackles inconsistencies in how memory is defined and evaluated in reinforcement learning under partial observability. It introduces a neuroscience-inspired taxonomy that separates Memory Decision Making (Memory DM) from Meta-Reinforcement Learning (Meta-RL) and distinguishes short-term memory ($K$) vs long-term memory through the correlation horizon ($\xi$) and an effective context ($K_{eff}$) governed by memory mechanisms $\mu(K)$. A robust experimental methodology is proposed to test LTM and STM in Memory DM using memory-intensive environments, with formal notions like the context border $\overline{K}$ to separate memory types; the approach is validated on Passive-T-Maze and Minigrid-Memory with memory-enhanced baselines. The results demonstrate that misconfigurations can lead to misleading conclusions about an agent's memory capabilities, whereas following the framework yields clearer, fair comparisons and practical guidance for designing memory-aware RL agents.
Abstract
The incorporation of memory into agents is essential for numerous tasks within the domain of Reinforcement Learning (RL). In particular, memory is paramount for tasks that require the utilization of past information, adaptation to novel environments, and improved sample efficiency. However, the term ``memory'' encompasses a wide range of concepts, which, coupled with the lack of a unified methodology for validating an agent's memory, leads to erroneous judgments about agents' memory capabilities and prevents objective comparison with other memory-enhanced agents. This paper aims to streamline the concept of memory in RL by providing practical precise definitions of agent memory types, such as long-term versus short-term memory and declarative versus procedural memory, inspired by cognitive science. Using these definitions, we categorize different classes of agent memory, propose a robust experimental methodology for evaluating the memory capabilities of RL agents, and standardize evaluations. Furthermore, we empirically demonstrate the importance of adhering to the proposed methodology when evaluating different types of agent memory by conducting experiments with different RL agents and what its violation leads to.
