TL;DR
This paper introduces ProtoCRL, a novel architecture for continual reinforcement learning that automatically discovers "event states" using a Variational Gaussian Mixture Model (VGMM). This eliminates the need for manual event definition, a bottleneck in prior methods, and allows agents to retain knowledge of past tasks while learning new ones more effectively, especially under memory constraints.
What Problem Does This Paper Address?
Continual Reinforcement Learning (CRL) aims to train agents that can learn a sequence of tasks without forgetting previously acquired skills. A common technique to combat "catastrophic forgetting" is experience replay, where past experiences are stored and replayed. However, simply replaying all past experiences can be inefficient. A recent approach, Kompella et al. (2023), proposed partitioning the experience replay buffer (ERB) into "event tables," each storing transitions leading to crucial, rare events. This helps the agent revisit important past experiences more frequently. The major challenge with this approach is that identifying these crucial "event states" often requires manual, domain-specific expertise, which is not always feasible or optimal, especially in complex environments. ProtoCRL tackles this by automating the discovery of these event states.
Methods
ProtoCRL introduces a prototype-based architecture that integrates a Variational Gaussian Mixture Model (VGMM) with an experience replay mechanism. Here's a breakdown:
- Encoder: A neural network (fe) transforms raw observations into a compact latent representation. This is a standard component for processing high-dimensional inputs.
- Variational Gaussian Mixture Model (VGMM): This is the core novelty. The VGMM takes the latent representations from the encoder and clusters them into a set of "prototypes." Each prototype represents a cluster of similar, informative states. The VGMM automatically learns the number of components (prototypes) needed, adapting to new tasks. This is a departure from standard GMMs that require a fixed number of components.
- Prototypical Event Tables: Each VGMM component (prototype) defines an "event table" within the experience replay buffer. Transitions whose latent representations are assigned to a particular prototype are stored in the corresponding event table. This effectively automates the creation of event tables, replacing manual definitions.
- Selective Replay: The agent samples experiences from these automatically generated event tables, ensuring that critical transitions for past tasks are revisited. The paper also mentions a "warm start" procedure for the VGMM to establish initial reliable clustering.
Datasets
The experiments were conducted on a sequence of three MiniGrid environments: DoorKey, LavaCrossing, and SimpleCrossing. These are standard benchmarks for grid-world reinforcement learning tasks. No new datasets were introduced.
Key Insights and Ideas
- Automated Event State Discovery: The most significant insight is that a VGMM can effectively learn to cluster latent state representations and automatically identify meaningful "event states" without human intervention. This bypasses the need for manual feature engineering or expert knowledge.
- Adaptive Prototype Learning: The VGMM's ability to dynamically adjust the number of components is crucial for continual learning. As new tasks are introduced, the model can potentially utilize more components to represent new critical events, without needing to pre-specify the total number of event types.
- Prototypes as Meaningful Representations: The learned prototypes are not just arbitrary clusters; they correspond to meaningful environmental events or sub-trajectories, providing insights into the agent's decision-making process.
- Robustness to Task Order: ProtoCRL demonstrates robustness to different task orderings, a desirable trait for agents deployed in dynamic, real-world scenarios where task arrival is unpredictable.
Key Results
- Comparable Performance: ProtoCRL achieved performance comparable to baselines that used manually defined event tables, even outperforming them under memory constraints.
- Improved Performance with Reduced Memory: When the experience replay buffer capacity was reduced, ProtoCRL showed significantly better performance than baselines like NoET (No Event Tables) and ET (Event Tables), demonstrating its sample efficiency. For instance, with a 100K buffer, ProtoCRL achieved an average performance of -1.74 ± 2.24, while NoET was -5.36 ± 3.79.
- Low Forgetting: ProtoCRL exhibited very low forgetting, often close to zero or even negative (indicating improved performance on earlier tasks), especially under memory constraints. For example, with a 2M buffer, ProtoCRL had an average forgetting of 0.03 ± 1.72.
- Robustness to Task Order: In ablation studies, ProtoCRL consistently achieved high average performance and low forgetting across various task permutations, outperforming other methods.
Limitations and Future Work
- Hyperparameter Sensitivity: The effectiveness of the VGMM-based clustering can be sensitive to hyperparameters. The paper mentions that while some parameters were tuned, others like sampling probabilities for event tables were kept uniform, suggesting room for improvement.
- Comparison to World Models: ProtoCRL's performance, while strong, is still lower than state-of-the-art CRL approaches that integrate experience replay with world models (e.g., ContinualDreamer).
- Future Work: The authors suggest exploring tighter integration between ProtoCRL and world-model-based approaches. Additionally, they propose investigating adaptive hyperparameter schemes to automatically tune sensitive parameters and exploring more complex settings.
Summary updated