Abstract
This paper introduces L2D2-C, a decentralized and asynchronous framework that enables multiple reinforcement learning agents to learn a sequence of tasks without catastrophic forgetting. By utilizing "modulating masks" to isolate task-specific knowledge within a shared neural backbone, agents can efficiently exchange only the relevant parts of their policies on-demand. This approach leads to faster learning through emergent parallel search and demonstrates extreme robustness to network failures.
Introduction
Reinforcement Learning (RL) agents often struggle with two competing goals: lifelong learning (learning new tasks without forgetting old ones) and distributed learning (scaling up by using multiple agents). Standard distributed RL methods like IMPALA or DD-PPO are designed for parallelizing a single task; when faced with a sequence of different tasks, they suffer from "catastrophic forgetting," where new knowledge overwrites the old. L2D2-C bridges this gap by allowing a collective of decentralized agents to share lifelong learning knowledge efficiently and robustly.
Methods: Modulating Masks and the L2D2-C Protocol
The core of the approach is the use of modulating masks. Instead of training the entire weights of a neural network, all agents share a fixed, randomly initialized "backbone" network. For each task, an agent learns a small, task-specific binary mask that activates or deactivates specific neurons in that backbone. This architecture ensures that knowledge for one task does not interfere with another.
To enable sharing, the authors propose the L2D2-C (Lifelong Learning Distributed Decentralized Collective) protocol. This protocol is fully asynchronous and decentralized, following four steps:
- Identity Query (IDQ): An agent facing a new task asks its peers if they have seen it before.
- Query Response (QR): Peers that have mastered the task respond with their performance metrics.
- Mask Request (MR): The original agent requests the mask from the best-performing peer.
- Mask Transfer (MTR): The peer sends the small, sparse mask, which the requesting agent integrates into its own policy.
Key Results and Insights
The authors evaluated L2D2-C on the CT-graph and Minigrid benchmarks. Key findings include:
- Linear Speedup: In complex environments, a 12-agent collective learned significantly faster than a single agent, with speedup factors often approaching the number of agents. This is driven by "emergent parallel search," where the first agent to escape a local minimum shares its success with the group.
- Superiority to Baselines: L2D2-C outperformed established distributed RL baselines. While baselines could learn individual tasks, they forgot them immediately upon switching; L2D2-C maintained high performance across entire curricula.
- Extreme Network Resilience: The system maintained near-optimal performance even when 75% of communication attempts were dropped. Due to its "insistent" design, agents continue learning locally and retry queries, allowing them to eventually synchronize even under 95% failure rates.
Limitations and Future Work
Currently, the system assumes agents are provided with a "task ID" (a task oracle). Future work will explore autonomous task detection. Additionally, while the current model requires homogeneous agents sharing the same backbone, the authors suggest that knowledge distillation could eventually allow sharing between agents with different architectures. Finally, managing communication overhead in very large networks may require moving from fully connected topologies to more structured "hub-and-spoke" models.
Summary updated