Overview
Memory Maze is a new 3D benchmark designed to isolate and measure long-term memory in reinforcement learning (RL) agents. While current state-of-the-art algorithms can master small environments, they fall significantly short of human performance on larger scales, revealing a major gap in AI's ability to build and maintain internal "mental maps" of complex spaces.
What Problem Does This Paper Address?
Deep RL has conquered Atari and Go, but agents still struggle in "partially observed" environments—places where they cannot see everything at once and must remember what is around the corner.
The authors argue that existing benchmarks fail to measure memory effectively for two reasons:
- Confounding Challenges: Often, an agent fails a task not because it forgot the way, but because it never found the goal in the first place (an exploration problem).
- Trivial Solutions: Some 3D benchmarks include "cheats," like a distant skyline that makes orientation trivial, or tasks that only require remembering a single bit of information (e.g., "did I turn left or right?").
To solve this, the authors created Memory Maze, a scavenger-hunt style environment that forces agents to remember wall layouts, their own location, and the positions of multiple objects simultaneously.
Methods
The researchers introduced a suite of randomized 3D mazes built using the MuJoCo physics engine. In each episode, an agent is tasked with finding a series of colored objects. Once it touches the "prompted" color, a new target is chosen. To get a high score, the agent must learn the maze layout during the initial exploration and then navigate efficiently to targets for the rest of the episode.
The paper evaluates two heavy-hitting RL architectures:
- DreamerV2: A model-based agent that learns a "world model" to predict future outcomes.
- IMPALA: A high-throughput model-free agent.
A key technical contribution is the application of Truncated Backpropagation Through Time (TBTT). Unlike standard training which often resets an agent's "memory" (recurrent state) at the start of every small batch of data, TBTT carries that state forward. This allows the agent to learn dependencies across much longer time horizons.
Datasets and Environment Scaling
The authors released several resources to the community, including four maze sizes (9x9, 11x11, 13x13, and 15x15) and 30 million steps of recorded offline experience for both the smallest and largest mazes.
These datasets include "ground truth" metadata (like the full maze map and exact object coordinates) that are not shown to the agent but are used for probing—testing if the agent’s internal representations actually contain a map of the world.
Key Insights and Results
- Bootstrapping Memory: By occasionally spawning the agent near a target, the authors ensure the agent learns the "reward" quickly. This shifts the bottleneck of the task from finding the object to remembering where it was for next time.
- The TBTT Advantage: The researchers found that standard DreamerV2 struggled significantly. However, simply enabling TBTT—allowing the agent's internal state to persist across training batches—dramatically improved performance on smaller mazes.
- Model-Free vs. Model-Based Scaling: Interestingly, while the model-based Dreamer excelled on small maps, the model-free IMPALA was more robust on the largest (15x15) mazes. The authors hypothesize that model-free agents might be better at "forgetting" irrelevant visual details, focusing only on the memory needed to solve the task.
- Human Superiority: On the largest 15x15 maze, a human player achieved a score of ~67.7, while the best AI (IMPALA) only managed ~17.7. This highlights a massive "memory gap."
- Probing Success: Using the offline dataset, the authors showed they could "read" the maze layout directly from a trained agent's internal state with 94% accuracy on small mazes. This proves the agents are indeed building internal spatial maps.
- Complexity Matters: AI performance drops off a cliff as maze size increases. On the 9x9 maze, agents are near-human; on the 15x15, they are barely better than a "no-memory" baseline.
Limitations and Future Work
The authors acknowledge that while they tested strong baselines, they did not include newer Transformer-based architectures (like GTrXL) because public implementations were not available at the time.
Future research could use Memory Maze to test if Transformers or specialized "episodic memory" modules can bridge the gap to human-level navigation. Additionally, the benchmark currently focuses on spatial memory; future iterations could include "semantic" memory tasks where objects change properties or meanings over time.
Summary updated