Dynamic Memory-based Curiosity: A Bootstrap Approach for Exploration

Zijian Gao, YiYing Li, Kele Xu, Yuanzhao Zhai, Dawei Feng, Bo Ding, XinJun Mao, Huaimin Wang

TL;DR

This paper introduces DyMeCu (Dynamic Memory-based Curiosity), a novel intrinsic reward mechanism for reinforcement learning that mimics human curiosity by utilizing a dynamically growing memory module alongside dual online learners. By formulating curiosity as the information gap between these dual learners when encountering unfamiliar states, DyMeCu significantly improves exploration efficiency and outperforms competitive baselines across both the DeepMind Control Suite and Atari benchmarks.

What Problem Does This Paper Address?

Reinforcement learning (RL) agents frequently struggle in environments where extrinsic rewards are sparse or entirely absent. To encourage agents to explore, researchers often design "curiosity" mechanisms that provide intrinsic rewards for discovering novel states.

However, existing curiosity methods fall short of mimicking human curiosity. For instance, Random Network Distillation (RND) relies on a fixed, randomly initialized target network to evaluate novelty. Because this "memory" is static, it cannot retain contextual knowledge or adapt to dynamic environments. Other prediction-based methods require heavy computational ensembles to estimate uncertainty. This paper addresses the need for a lightweight, developmental curiosity mechanism that dynamically consolidates environmental context into memory over time.

Methods

DyMeCu introduces a novel bootstrap-driven framework consisting of three main components: a Dynamic Memory Model ($M_\omega$) and Dual Online Learners ($f_{\theta_1}$ and $f_{\theta_2}$).

Figure 1: DyMeCu employs a novel learning framework to build the intrinsic reward for RL, which consists of a dynamic memory and dual online learners. The information discrepancy of the current state compared with the retrieved information from the memory makes curiosity arouse. We get the curiosity-based intrinsic reward for agent learning by calculating the information gap between dual online learners. Then the state information can be dynamically consolidated into the memory in the bootstrap paradigm for curiosity fading.
  1. Target Generation: For any given state $s_t$, the dynamic memory model outputs a target latent representation $z^\omega_t$.
  2. Dual Learning: The dual online learners (which share the same architecture as the memory model but have distinct parameters) attempt to predict this target representation by minimizing their respective mean squared errors against $z^\omega_t$.
  3. Intrinsic Reward Calculation: The intrinsic reward ($r^{int}_t$) is defined as the squared distance between the outputs of the two online learners: $$r^{int}_t = \|z^{\theta_1}_t - z^{\theta_2}_t\|^2$$
  4. Memory Consolidation: After each training step, the memory model's parameters ($\omega$) are updated using an Exponential Moving Average (EMA) of the dual learners' parameters: $$\omega \leftarrow \alpha\omega + (1 - \alpha)\frac{\theta_1 + \theta_2}{2}$$

Datasets

The authors evaluated DyMeCu on two standard reinforcement learning benchmarks:

  • DeepMind Control Suite (DMC): Evaluated across three domains of increasing difficulty—Walker, Quadruped, and Jaco Arm—each containing four distinct tasks. Agents underwent 2 million steps of unsupervised pre-training (intrinsic rewards only) followed by 100k steps of fine-tuning (extrinsic rewards only).
  • Atari Suite: Tested on a subset of 26 classic Atari games for 100 million running steps, evaluated under both joint reward (intrinsic + extrinsic) and intrinsic-only settings.

Key Insights and Ideas

  • The "Imitator" Intuition: If the dynamic memory already thoroughly understands a state, the dual online learners (acting as imitators of the memory) can easily converge on identical representations, resulting in a small information gap and low curiosity. Conversely, if a state is novel, the memory's target is unstable or unfamiliar, causing the dual learners to produce highly divergent encodings—sparking curiosity.
  • Dynamic vs. Static Memory: Unlike RND's static target network, DyMeCu's memory continuously evolves via EMA. This allows the agent to phase out curiosity for states it has already mastered, mimicking the psychological phenomenon of "curiosity fading."
  • Efficient Uncertainty Estimation: While ensemble methods like Disagreement require training multiple networks to estimate state uncertainty, DyMeCu achieves superior performance using just two online learners, preserving computational efficiency.

Key Results

DyMeCu achieved state-of-the-art performance across both benchmarks:

  • DeepMind Control Suite: DyMeCu outperformed all 8 competitive baselines (including ICM, RND, and APT) across all 12 tasks. It improved average fine-tuning performance by 18.3% on Walker, 26.6% on Quadruped, and 21.0% on Jaco Arm, while demonstrating significantly faster convergence speeds.
Figure 2: Performance of different methods in the fine-tuning phase on DeepMind Control Suite.
  • Atari Suite: In the 26-game subset, DyMeCu achieved the highest Mean Human-Normalized Score (3.019) compared to ICM (2.861) and Disagreement (2.767), securing the top score in 10 out of 26 games. On games like Jamesbond, DyMeCu's final reward was more than three times higher than the baselines.
Figure 3: Performance comparison on Atari games subsets using both intrinsic rewards and extrinsic rewards.

Limitations and Future Work

While the paper demonstrates the robustness of DyMeCu across various hyperparameter settings (such as the EMA decay rate $\alpha$), it does not deeply explore potential failure modes, such as the "noisy TV problem" common to curiosity-based agents.

For future directions, the authors briefly note that DyMeCu's dynamic memory consolidation mechanism holds promise for continual learning scenarios, where it could potentially be adapted to mitigate the challenge of catastrophic forgetting.

Summary updated

BibTeX
@misc{gao2022dynamic,
  author = {Zijian Gao and YiYing Li and Kele Xu and Yuanzhao Zhai and Dawei Feng and Bo Ding and XinJun Mao and Huaimin Wang},
  title = {{Dynamic Memory-based Curiosity: A Bootstrap Approach for Exploration}},
  year = {2022},
  eprint = {2208.11349},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2208.11349},
}
Figure