TL;DR
While prediction-based curiosity helps reinforcement learning (RL) agents explore sparse-reward environments, it suffers from "catastrophic forgetting," causing agents to mistakenly re-explore familiar areas. This paper introduces FARCuriosity (Fragmentation-and-Recall Curiosity), a neuro-inspired framework that segments environments into distinct local subspaces based on "surprisal" and stores specialized curiosity modules in long-term memory. By recalling these modules when re-entering familiar spaces, FARCuriosity prevents forgetting and significantly improves exploration performance in complex, heterogeneous Atari games.
What Problem Does This Paper Address?
In reinforcement learning, agents often struggle when external rewards are sparse. To encourage exploration, researchers use prediction-based intrinsic rewards (or "curiosity"): the agent receives a bonus reward for visiting states where its forward-dynamics model makes poor predictions. As the agent visits a state more often, the model should learn its dynamics, the prediction error should drop, and the curiosity bonus should decrease.
However, deep neural networks suffer from catastrophic forgetting. As an agent successfully explores deeper into a large, multi-stage environment, its network updates on new observations and forgets the dynamics of the early stages it previously mastered. Consequently, the curiosity reward for the starting areas goes back up, trapping the agent in a loop of re-exploring old states instead of pushing forward.
Methods
Inspired by how the mammalian episodic memory system divides continuous experience into distinct events based on contextual shifts, the authors propose FARCuriosity.
Instead of training a single monolithic curiosity module on the entire environment, FARCuriosity dynamically fragments the environment and manages a library of local curiosity modules using a dual-memory system:
- Fragmentation (Short-Term Memory to Long-Term Memory): The agent monitors "surprisal" (the current prediction error). If the ratio of the current surprisal to the running average exceeds a dynamic threshold ($\rho$), it indicates a major context shift. The agent saves the current local curiosity module and the current observation (acting as a lookup key) into Long-Term Memory (LTM), then initializes a brand-new module in Short-Term Memory (STM).
- Recall (Long-Term Memory to Short-Term Memory): At every time step, the agent computes the cosine similarity between its current encoded observation and the keys stored in LTM. If the similarity exceeds a recall threshold ($\psi = 0.99$), the agent swaps the active STM module with the matching historical module from LTM, preserving localized exploration knowledge.
FARCuriosity is implemented on top of Random Network Distillation (RND) as the curiosity mechanism and Proximal Policy Optimization (PPO) for policy training.
Datasets
The authors evaluated their approach across three distinct environments:
- Toy Grid World ($10 \times 10$): A custom grid environment with randomized 32-dimensional vector observations, used to isolate the exact environmental conditions that trigger catastrophic forgetting.
- MiniGrid (MultiRoom-N6): A procedurally-generated grid world consisting of six rooms connected by doors, used to test how forgetting affects count-based exploration methods.
- Atari Benchmark Suite: 16 diverse games from the Arcade Learning Environment (including Jamesbond, Frostbite, River Raid, and Montezuma's Revenge) selected to evaluate the agent across varying levels of visual and structural heterogeneity.
Key Insights and Ideas
- Forgetting Happens Even With Resets: Standard RL setups reset the agent to a fixed starting state at the beginning of each episode, which was traditionally assumed to prevent forgetting. The authors reveal that if an agent survives longer and explores further (causing a gradual increase in episode length), the massive influx of new, non-i.i.d. observations still forces the network to forget the initial states.
- Even Tiny Forgetting is Fatal: Using a decaying count-based model in MiniGrid, the authors demonstrated that a mere 0.1% forgetting rate per iteration completely tanks exploration performance, reducing the agent's success rate to nearly zero.
- Environmental Heterogeneity Dictates Success: The authors mathematically defined environmental "heterogeneity" based on pixel variance across trajectories. FARCuriosity shines in highly heterogeneous, multi-stage environments where distinct visual shifts occur, but provides less benefit in highly uniform, homogeneous environments.
Key Results
- Stable Intrinsic Rewards: In Jamesbond, vanilla RND's intrinsic reward for the starting state continuously climbed over 100 million frames, proving it was forgetting. FARCuriosity successfully stabilized the intrinsic reward after an initial learning phase.
- Superior Atari Performance: FARCuriosity significantly outperformed vanilla RND and PPO in 8 out of the 16 Atari games. The gains were most dramatic in highly heterogeneous games:
- Jamesbond: Average score of 13,073.0 (FARCuriosity) vs. 2,946.2 (RND).
- Frostbite: Average score of 9,392.1 (FARCuriosity) vs. 2,282.0 (RND).
- Aggregated Success: Evaluated across all 16 games using the Interquartile Mean (IQM), FARCuriosity achieved a score of 0.91, comfortably beating vanilla RND (0.68) and baseline PPO (0.69).
Limitations and Future Work
- Homogeneous Environments: In visually uniform environments (like Tennis), the dynamic threshold can trigger excessive or erroneous fragmentation, which slightly degrades performance compared to vanilla RND.
- Lack of Direct Semantic Evaluation: The authors did not explicitly evaluate the semantic quality or interpretability of the generated fragments, leaving the exact alignment between fragments and game "stages" unmeasured.
- Future Directions: The authors suggest developing more sophisticated fragmentation criteria that move beyond raw visual features or simple surprisal statistics, alongside optimizing long-term memory capacity management.
Summary updated