Abstract
Lifelong reinforcement learning (RL) requires agents to learn a sequence of tasks while avoiding catastrophic forgetting and maintaining the ability to adapt to new environments. Traditional expansion-based methods often rely on explicit task boundaries and suffer from poor scalability. We present a Bayesian non-parametric framework using a Dirichlet Process Mixture Model (DPMM) that dynamically expands network capacity without predefined task signals. By employing the Chinese Restaurant Process as a prior and a robust initial model via domain randomization, our approach clusters similar tasks and facilitates positive transfer. Experimental results across continuous control domains demonstrate superior adaptation speed and stability compared to state-of-the-art baselines.
Introduction
Reinforcement learning agents in dynamic environments face the stability-plasticity dilemma: they must retain old knowledge (stability) while remaining flexible enough to acquire new skills (plasticity). Catastrophic forgetting remains a primary hurdle. While expansion-based methods offer a solution by adding dedicated parameters for new tasks, they typically require explicit "task boundaries"—external signals indicating a change in the environment—which are often unavailable in real-world settings. Furthermore, uncontrolled expansion leads to poor scalability.
Methodology
Our framework addresses these challenges by treating task assignments as latent variables within a Dirichlet Process Mixture Model (DPMM).
- Dynamic Expansion via CRP: We use the Chinese Restaurant Process (CRP) as a prior for task clustering. This allows the agent to either assign a new task to an existing cluster of similar models or instantiate a new cluster if the task is sufficiently novel.
- Online Inference and Update: An Expectation-Maximization (EM) procedure is utilized. In the E-step, the agent infers the most likely cluster for the current task based on observed transitions and rewards. In the M-step, the parameters of the corresponding task model are updated.
- Robust Prior: To accelerate adaptation for new clusters, we initialize them with a robust prior trained through domain randomization. This provides a "warm start," allowing the model to generalize quickly to unseen tasks.
Experimental Results
We evaluated the proposed method against several baselines, including Progressive Neural Networks, Reservoir Sampling (Experience Replay), and Elastic Weight Consolidation, across tasks like 2D Navigation, MuJoCo Reacher, and MuJoCo Hopper.
As shown in the performance analysis, our method achieves significantly higher returns and faster adaptation than the baselines. In the 2D Navigation task, near-optimal performance is reached within approximately 20 episodes, whereas competing methods require significantly more data or fail to reach the same performance ceiling.
In the Hopper domain, our method maintained a numerical average return of 0.05 ± 0.11, outperforming the Progressive baseline (-2.62 ± 0.15). Qualitative analysis of the latent space confirmed that the model effectively compressed 50 sequential task instances into just 4 distinct clusters, demonstrating its scalability and ability to identify underlying task similarities.
Conclusion
This work demonstrates that Bayesian non-parametric models can effectively manage the stability-plasticity dilemma in lifelong RL without requiring explicit task boundaries. By combining latent task inference with robust priors, the system achieves efficient knowledge transfer and scalable growth. Future research will focus on improving likelihood estimation using generative models like VAEs to further enhance task detection in high-dimensional environments.
Summary updated