[Paper Review] Model-Free Generative Replay for Lifelong Reinforcement Learning: Application to Starcraft-2
This paper proposes a model-free generative replay framework for lifelong reinforcement learning that uses introspective density modeling of deep RL policy latent representations to prevent catastrophic forgetting. By combining wake-sleep cycles with a sleep-phase generative model and random replay buffer, the method achieves 80–90% of expert performance in StarCraft II using only 6% of training samples, with hidden replay architecture showing superior stability and generalization.
One approach to meet the challenges of deep lifelong reinforcement learning (LRL) is careful management of the agent's learning experiences, to learn (without forgetting) and build internal meta-models (of the tasks, environments, agents, and world). Generative replay (GR) is a biologically inspired replay mechanism that augments learning experiences with self-labelled examples drawn from an internal generative model that is updated over time. We present a version of GR for LRL that satisfies two desiderata: (a) Introspective density modelling of the latent representations of policies learned using deep RL, and (b) Model-free end-to-end learning. In this paper, we study three deep learning architectures for model-free GR, starting from a naïve GR and adding ingredients to achieve (a) and (b). We evaluate our proposed algorithms on three different scenarios comprising tasks from the Starcraft-2 and Minigrid domains. We report several key findings showing the impact of the design choices on quantitative metrics that include transfer learning, generalization to unseen tasks, fast adaptation after task change, performance wrt task expert, and catastrophic forgetting. We observe that our GR prevents drift in the features-to-action mapping from the latent vector space of a deep RL agent. We also show improvements in established lifelong learning metrics. We find that a small random replay buffer significantly increases the stability of training. Overall, we find that "hidden replay" (a well-known architecture for class-incremental classification) is the most promising approach that pushes the state-of-the-art in GR for LRL and observe that the architecture of the sleep model might be more important for improving performance than the types of replay used. Our experiments required only 6% of training samples to achieve 80-90% of expert performance in most Starcraft-2 scenarios.
Motivation & Objective
- Address catastrophic forgetting in lifelong reinforcement learning (LRL) by preserving knowledge from previously learned tasks.
- Develop a model-free, end-to-end approach to generative replay that avoids explicit dynamics modeling and reward function learning.
- Enable introspective density modeling of latent policy representations to improve memory consolidation without relying on high-dimensional observation distributions.
- Improve generalization and fast adaptation across sequential tasks in complex environments like StarCraft II and MiniGrid.
- Investigate the impact of replay architecture and auxiliary components (e.g., random replay) on lifelong learning performance metrics.
Proposed method
- Employ a wake-sleep cycle framework: during wake phases, the agent learns current tasks via off-the-shelf deep RL; during sleep phases, it trains a generative model on stored experiences.
- Use a variational autoencoder (VAE) to model the density of latent representations from policy networks, enabling self-supervised replay of observation-action pairs.
- Implement policy distillation to transfer knowledge from past policies into the current policy, consolidating procedural knowledge.
- Introduce a small random replay buffer of original observation-action pairs to stabilize feature space alignment across tasks.
- Evaluate three architectures—naïve GR, hidden replay, and two-headed GR—within the wake-sleep framework to compare generative replay effectiveness.
- Use principal component analysis (PCA) to visualize and compare ground-truth, reconstructed, and generated features in the latent space.
Experimental results
Research questions
- RQ1Can model-free generative replay using latent representations mitigate catastrophic forgetting in lifelong deep reinforcement learning?
- RQ2How does introspective density modeling of policy latent states compare to direct replay of raw trajectories or observations?
- RQ3What is the impact of combining generative replay with a random replay buffer on feature space stability and performance?
- RQ4How do different generative replay architectures (e.g., hidden replay vs. two-headed) affect transfer, generalization, and forgetting metrics?
- RQ5To what extent can a small fraction of training data (e.g., 6%) achieve expert-level performance using this generative replay mechanism?
Key findings
- The hidden replay architecture achieved the best performance, significantly reducing forgetting and improving transfer and generalization across tasks.
- Using only 6% of training samples, the model achieved 80–90% of expert performance on most StarCraft II scenarios.
- Random replay, when combined with hidden replay, improved performance metrics (PM, FTR) and stabilized the latent feature space, reducing drift between tasks.
- Feature space alignment was significantly improved when random replay was used with hidden replay, as shown by PCA visualizations of overlapping distributions across dissimilar tasks.
- The generative model successfully reconstructed and generated meaningful latent features, with reconstructions closely matching ground-truth features in the 'DefeatRoaches' task.
- The sleep-phase generative model effectively consolidated knowledge from prior tasks, enabling faster adaptation to new tasks through distilled policy knowledge.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.