Multi-task Learning and Catastrophic Forgetting in Continual Reinforcement Learning

João Ribeiro, Francisco S. Melo, João Dias

TL;DR

This paper demonstrates that training a reinforcement learning agent on multiple similar tasks simultaneously enhances its ability to learn a new, related task more efficiently than single-task agents. Furthermore, by integrating Elastic Weight Consolidation (EWC), these multi-task agents can effectively retain knowledge of previous environments, significantly mitigating the "catastrophic forgetting" typically seen when neural networks are trained on a sequence of tasks.

What Problem Does This Paper Address?

Deep Reinforcement Learning (RL) has achieved remarkable success in complex domains, but it faces two major hurdles on the path to general intelligence: transfer learning and catastrophic forgetting.

Most RL agents are specialists; an agent trained to play Space Invaders usually starts from scratch if asked to play Demon Attack, even though the games share similar mechanics. Furthermore, if that agent does learn the second game, it often completely loses the ability to play the first—a phenomenon known as catastrophic forgetting. The authors investigate whether a multi-task approach can create a "better student" that transfers knowledge to new games while using EWC to ensure it doesn't forget its "old lessons."

Methods

The researchers built their approach on the GA3C (Asynchronous Advantage Actor-Critic on GPU) algorithm. They introduced three key modifications to enable continual, multi-task learning:

  1. Hybrid Multi-task Architecture: Instead of one agent per game, they used a single global network where multiple "actor-learners" interact with different environments simultaneously.
  2. Shared Feature Representation: The architecture uses shared convolutional layers (the "input network") to process raw pixels across all tasks, while maintaining task-specific output layers (heads) for the actor and critic. This encourages the model to learn high-level features common to all shooting games.
  3. Elastic Weight Consolidation (EWC): To prevent forgetting, they added a regularization term to the loss function. This term uses the Fisher information matrix to identify which weights are most important for previous tasks and penalizes the network for changing them too drastically when learning a new task.
Figure 1: Summarized architecture for the multi-task, EWC-enhanced GA3C. Several actor- learners interact asynchronously with multiple (possibly different) environment instances. As with the original GA3C architecture, each actor-learner submits prediction requests to the actor-critic network using trainer threads. See main text for further network through predictor threads and feed experience batches details.

Datasets

The study utilized the Atari 2600 platform via the OpenAI Gym toolkit. They selected three "bottom-up" shooting games that share similar visual and control logic:

  • Source Tasks: Space Invaders and Demon Attack.
  • Target Task: Phoenix (used to test transfer learning).

Key Insights and Ideas

  • Multi-tasking as a Feature Extractor: The core idea is that learning two similar games simultaneously forces the shared convolutional layers to ignore task-specific noise and focus on universal concepts like "projectiles," "enemies," and "lateral movement."
  • The EWC Stability-Plasticity Trade-off: The authors observed that while EWC prevents forgetting, it makes the agent "less willing" to move away from old parameters. This creates a slight drag on learning speed for the new task, but the benefit of retaining old knowledge outweighs this minor performance hit.
  • Scalable Continual Learning: Unlike "Progressive Networks" which add new neural columns for every new task (leading to parameter explosion), this approach maintains a single shared backbone, making it much more scalable for long sequences of tasks.

Key Results

The authors compared their multi-task agent (HybridNet) against single-task agents (SpaceNet and DemonNet).

  • Superior Transfer: When moved to the new task (Phoenix), the HybridNet outperformed both single-task agents. At episode 200,000, HybridNet achieved an average score of 8,587.3, while the single-task counterparts trailed at approximately 6,000–6,100.
Figure 3: Evaluation of the SpaceNet, DemonNet and HybridNet agents, as they trained on Phoenix for 50, 000 additional episodes. The PhoenixNet performance after training on Phoenix for 150, 000 episodes is provided for reference.
  • Mitigating Forgetting: Without EWC, agents experienced total catastrophic forgetting. For example, performance on Space Invaders plummeted from a score of ~533 to ~80 after learning Phoenix. With EWC ($\lambda=50$), the agent maintained a score of 547.5, effectively preserving its original skill level.
Performance of HybridNet augmented with EWC on original tasks.

Limitations and Future Work

The authors acknowledge a few areas for improvement:

  • Statistical Significance: Due to computational costs, only one instance of each agent was trained. Future work would benefit from multiple runs to ensure results aren't due to random initialization.
  • Task Imbalance: In the multi-task phase, Demon Attack episodes lasted longer than Space Invaders, leading to the agent playing fewer episodes of the former. This created a slight performance bias.
  • Algorithm Comparison: The study focused on EWC; the authors suggest comparing these results against other continual learning methods like Learning Without Forgetting (LWF) or online-EWC.

Summary updated

BibTeX
@inproceedings{ribeiro2019multi,
  author = {João Ribeiro and Francisco S. Melo and João Dias},
  title = {{Multi-task Learning and Catastrophic Forgetting in Continual Reinforcement Learning}},
  booktitle = {GCAI},
  year = {2019},
  doi = {10.29007/g7bg},
}
Figure