Lifelong Policy Gradient Learning of Factored Policies for Faster Training Without Forgetting

Jorge A. Mendez, Boyu Wang, Eric EatonarXiv 2020

Introduction

Reinforcement Learning (RL) agents typically require extensive interaction with their environments to master even simple tasks. In a lifelong learning setting, where an agent encounters a sequence of diverse tasks, the goal is to leverage prior knowledge to accelerate the learning of new tasks while preventing the "catastrophic forgetting" of previously learned skills. This paper introduces LPG-FTW (Lifelong Policy Gradient: Faster Training Without Forgetting), a framework designed to achieve efficient transfer and stable performance across a lifetime of tasks.

The Challenge of Lifelong RL

Standard Policy Gradient (PG) methods are notoriously data-hungry and prone to forgetting. When an agent is trained on a new task, updates to its neural network parameters often overwrite the information necessary for previous tasks. Furthermore, many existing lifelong learning methods only refine a policy after it has been independently trained, failing to speed up the initial, costly training phase of a new task.

The LPG-FTW Framework

The core of LPG-FTW is the use of Factored Policies. Instead of maintaining independent weights for each task, the policy parameters $\theta^{(t)}$ for task $t$ are represented as a combination of a shared knowledge base and task-specific components:

$$\theta^{(t)} \approx Ls^{(t)}$$

where $L$ is a shared dictionary of "basis" knowledge and $s^{(t)}$ is a sparse vector of task-specific coefficients.

Key Innovations:

  1. Direct Latent Optimization: Unlike previous "two-step" methods, LPG-FTW optimizes the coefficients $s^{(t)}$ directly using policy gradients during the training of a new task. This allows the agent to "jump-start" learning by searching within the informed subspace defined by $L$.
  2. Hessian-Based Updates: To update the shared dictionary $L$ without causing forgetting, the algorithm uses a second-order (Hessian) approximation of the multi-task objective. This ensures that updates to the shared knowledge base are constrained to directions that do not degrade performance on earlier tasks.
  3. Efficient Initialization: A specialized initialization strategy ensures the dictionary $L$ captures a diverse set of features from the earliest tasks encountered.

Experimental Evaluation

The authors evaluated LPG-FTW on modified MuJoCo environments (HalfCheetah, Hopper, and Walker-2D) with varying physical properties like gravity and body-part sizes, as well as the complex Meta-World benchmark (MT10 and MT50 manipulation tasks).

Key Results

LPG-FTW demonstrated significant improvements in both learning speed and final proficiency. In the MuJoCo domains, the agent consistently reached higher average rewards faster than Single-Task Learning (STL) and the PG-ELLA baseline.

Learning curves across MuJoCo environments showing LPG-FTW (Ours) outperforming baselines in speed and final reward.

Crucially, the framework effectively eliminated catastrophic forgetting. While Elastic Weight Consolidation (EWC) showed performance drops on old tasks as new ones were learned, LPG-FTW maintained stable performance. The "jump-start" effect is also evident, as the agent begins new tasks with a higher initial reward than scratch-trained models.

Performance breakdown showing high initial rewards (Start) and stable final performance (Final) across task sequences.

Discussion and Future Work

LPG-FTW represents a significant step toward practical lifelong RL, being the first such method to scale effectively to the 50-task Meta-World benchmark. Current limitations include the requirement for task indicators and the assumption of a stationary task distribution. Future research may focus on autonomous task inference and adapting to non-stationary environments.

Summary updated

BibTeX
@misc{mendez2020lifelong,
  author = {Jorge A. Mendez and Boyu Wang and Eric Eaton},
  title = {{Lifelong Policy Gradient Learning of Factored Policies for Faster Training Without Forgetting}},
  year = {2020},
  eprint = {2007.07011},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.07011},
}
Figure