Introduction
Standard Reinforcement Learning (RL) agents are notoriously data-hungry, often requiring millions of steps to master a single environment. While Meta-RL has improved adaptation speeds, agents still struggle with tasks requiring complex planning over novel spatial or logical structures. This paper introduces the Rapid Task-Solving (RTS) challenge, where an agent must explore an unfamiliar environment and solve a sequence of new tasks immediately by building and reasoning over an internal model.
To address this, the authors propose Episodic Planning Networks (EPNs). EPNs are a meta-RL architecture that leverages iterative self-attention over episodic memory to "learn" a planning algorithm, enabling agents to navigate complex, unseen environments—such as real-world Google StreetView neighborhoods—within a single episode.
Episodic Planning Networks (EPNs)
The core innovation of the EPN is its ability to treat episodic memory not just as a lookup table, but as a graph to be reasoned over. Unlike previous episodic memory agents that simply retrieve and sum relevant memories, the EPN architecture allows for implicit value iteration.
Architecture and Mechanism
The EPN architecture consists of several key components:
- Episodic Memory: The agent maintains a non-parametric buffer storing every transition $(s_t, a_t, s_{t+1})$ encountered during an episode.
- Iterative Self-Attention (The Planner): Instead of simple retrieval, the agent performs multiple iterations of self-attention over the entire memory buffer. This allows information to propagate between related states.
- Policy Network: The agent integrates its current observation with the planner's output to select the optimal action.
By increasing the number of attention iterations (the "thinking time"), the network can pass reward information from a goal state back through remembered transitions, effectively executing a learned version of the Value Iteration algorithm on the fly.
Experimental Evaluation
The authors evaluated EPNs across two distinct domains:
- Memory & Planning Game: A symbolic $4 \times 4$ grid where the agent must learn connectivity through exploration without knowing the layout beforehand.
- One-Shot StreetLearn Navigation: A high-dimensional task using real-world Google StreetView data. The agent must navigate unfamiliar neighborhoods (e.g., moving from London to Warsaw) based on pixel-level inputs.
Key Results
EPNs demonstrated significant improvements over state-of-the-art baselines like Merlin, MRA, and LSTMs, reaching near-optimal performance in environments they had never seen before.
Near-Oracle Efficiency
In the Memory & Planning game, EPNs achieved approximately 98% of the performance of an "Oracle" agent with perfect map knowledge. In contrast, baselines only reached ~35% performance, which is roughly equivalent to an agent that explores well but fails to retain or plan over the map for subsequent tasks.
StreetLearn Mastery
In the StreetLearn environment, EPNs reached an average of 28.7 goals per episode, nearly doubling the performance of the best baselines (which peaked below 15). EPNs showed the ability to navigate held-out maps optimally after only 10–15 tasks, effectively learning the environment's topology in real-time.
Zero-Shot Generalization
EPNs exhibit impressive scalability. Agents trained on small maps (e.g., 5 intersections) successfully navigated much larger maps (9 or 12 intersections) by simply increasing the number of attention iterations at test time, demonstrating that the learned planning algorithm generalizes to larger graphs.
Discussion and Future Work
While EPNs represent a major step toward rapid adaptation, challenges remain. The quadratic scaling of standard self-attention ($N^2$) with memory size limits long-duration application, though more efficient $N \times k$ variants show promise. Future research will focus on "jumpy" planning over temporal abstractions and handling higher levels of partial observability or dynamic environments.
Summary updated