Skip to main content
QUICK REVIEW

[Paper Review] Lifelong Reinforcement Learning with Modulating Masks

Eseoghene Ben-Iwhiwhu, Saptarshi Nath|arXiv (Cornell University)|Dec 21, 2022
Reinforcement Learning in RoboticsComputer Science6 citations
TL;DR

This paper introduces modulating masks for lifelong reinforcement learning (LRL), enabling continual learning across sequential tasks without catastrophic forgetting. By training task-specific masks that modulate a shared backbone policy network—particularly with PPO and IMPALA agents—it achieves superior performance and enables forward transfer via linear combinations of past masks, solving extremely sparse-reward tasks from scratch that standard RL fails to address.

ABSTRACT

Lifelong learning aims to create AI systems that continuously and incrementally learn during a lifetime, similar to biological learning. Attempts so far have met problems, including catastrophic forgetting, interference among tasks, and the inability to exploit previous knowledge. While considerable research has focused on learning multiple supervised classification tasks that involve changes in the input distribution, lifelong reinforcement learning (LRL) must deal with variations in the state and transition distributions, and in the reward functions. Modulating masks with a fixed backbone network, recently developed for classification, are particularly suitable to deal with such a large spectrum of task variations. In this paper, we adapted modulating masks to work with deep LRL, specifically PPO and IMPALA agents. The comparison with LRL baselines in both discrete and continuous RL tasks shows superior performance. We further investigated the use of a linear combination of previously learned masks to exploit previous knowledge when learning new tasks: not only is learning faster, the algorithm solves tasks that we could not otherwise solve from scratch due to extremely sparse rewards. The results suggest that RL with modulating masks is a promising approach to lifelong learning, to the composition of knowledge to learn increasingly complex tasks, and to knowledge reuse for efficient and faster learning.

Motivation & Objective

  • Address catastrophic forgetting and interference in lifelong reinforcement learning (LRL) by leveraging modulating masks to isolate task-specific policy parameters.
  • Enable forward transfer in LRL by reusing knowledge from previously learned tasks through linear combinations of learned masks.
  • Extend the application of modulating masks—previously used in supervised lifelong learning—to deep reinforcement learning with policy gradient methods.
  • Demonstrate scalability and efficiency of the mask-based approach in complex environments like Minigrid, Metaworld, and ProcGen with sparse rewards.
  • Investigate the representational capacity and memory efficiency of mask-based lifelong RL, proposing strategies to reduce storage via mask superposition.

Proposed method

  • Adapt modulating masks—learned via gradient descent—for deep policy networks in PPO and IMPALA agents, where each mask modulates the backbone network's parameters or activations.
  • Train task-specific masks independently while keeping the backbone network fixed, ensuring no catastrophic forgetting across tasks.
  • Use linear combinations of previously trained masks as initialization for new tasks, enabling knowledge transfer and faster convergence.
  • Apply gradient-based optimization to fine-tune the coefficients of the linear mask combination during new task learning, enabling efficient adaptation.
  • Introduce a task oracle to identify task boundaries and assign the correct mask during inference, with future work exploring integration with task detection methods.
  • Explore memory efficiency by reducing mask storage through scalar masks per layer or limiting the number of stored masks, with new tasks learned as superpositions of existing ones.

Experimental results

Research questions

  • RQ1Can modulating masks effectively prevent catastrophic forgetting in lifelong reinforcement learning across diverse continuous and discrete control tasks?
  • RQ2To what extent can linear combinations of previously learned masks accelerate learning of new tasks in LRL, especially in environments with sparse rewards?
  • RQ3How does the use of modulating masks compare to standard LRL baselines in terms of cumulative performance and stability across sequential task learning?
  • RQ4What is the impact of mask sparsity and representational capacity on policy performance and generalization in lifelong RL?
  • RQ5Can the mask-based approach be extended to handle unknown or dynamically changing task boundaries through integration with task detection mechanisms?

Key findings

  • The modulating mask approach achieved superior performance on LRL benchmarks including Minigrid, CT-Graph, Metaworld, and ProcGen, with no observed catastrophic forgetting.
  • Linear combinations of past masks enabled forward transfer, allowing the agent to solve tasks with extremely sparse rewards—as low as 5.6×10⁻⁶ per episode—using only random exploration.
  • The method demonstrated faster convergence on new tasks when initialized with a linear combination of prior masks, significantly outperforming training from scratch.
  • The approach is memory-efficient: storing only a limited number of masks and reusing them via linear superposition reduces storage requirements, especially as the number of tasks grows.
  • The use of scalar masks per layer or sparse binary masks maintains performance while reducing memory footprint, suggesting scalability to large task sets.
  • The method's effectiveness was validated across multiple RL algorithms (PPO and IMPALA), indicating broad applicability to deep policy optimization frameworks.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.