Abstract
In non-stationary environments, deep reinforcement learning (RL) agents often experience a phenomenon known as "loss of plasticity," where their ability to learn new information diminishes over time. This paper investigates the underlying causes of this capacity loss through a large-scale empirical study. We identify "activation collapse"—the progressive death of ReLU neurons—as a primary driver of this failure. To mitigate this, we propose the use of Concatenated ReLUs (CReLUs), an architectural modification that preserves gradient flow and maintains the agent's ability to adapt across long-term, multi-task sequences.
Introduction
Standard deep reinforcement learning algorithms are typically evaluated in stationary environments where the underlying dynamics and reward structures remain constant. However, real-world applications often involve non-stationarity, such as sensor drift, changing environmental conditions, or evolving task requirements. In these scenarios, agents must exhibit continual learning.
Recent observations suggest that as neural networks are trained on a sequence of tasks, they do not merely forget previous knowledge (catastrophic forgetting); they actually lose the fundamental capacity to acquire new knowledge. This "loss of plasticity" represents a significant hurdle for long-lived autonomous agents. This study provides a comprehensive investigation into why this occurs and how it can be prevented.
Methodology: The Switching ALE Framework
To study plasticity loss at scale, the authors introduced Switching ALE (S-ALE), a modified version of the Arcade Learning Environment. In this regime, a state-of-the-art Rainbow agent (a DQN variant) is subjected to a continuous cycle of different Atari 2600 games (e.g., Alien → Boxing → Centipede → Alien...).
Unlike standard benchmarks that reset the agent between games, S-ALE requires the agent to maintain its weights and replay buffer across transitions. The study spanned 50 days of wall-clock time and 2 billion interactions, tracking several diagnostic metrics:
- Weight Change: The ℓ₂-norm of weight updates to measure the magnitude of learning.
- Gradient Norms: To assess the strength of the learning signal reaching different layers.
- Activation Sparsity: The ℓ₀-norm of ReLU outputs to determine the percentage of active (firing) neurons.
The Mechanism of Activation Collapse
The investigation revealed that the primary culprit behind plasticity loss is activation collapse. In networks using standard Rectified Linear Units (ReLU), neurons can become "dead" if they consistently output zero. Because the gradient of a zero output is zero, these units stop receiving updates and effectively become useless for future learning.
Key findings regarding this collapse include:
- Extreme Sparsity: In some long-term experiments, the number of active units in the value network dropped to less than 1% of the total capacity.
- The Gradient-Loss Paradox: Even when the agent's loss remained high (indicating poor performance), the gradients collapsed toward zero. This suggests that the network's failure to learn was not due to a lack of error signal, but rather an inability to propagate that signal through the deadened architecture.
- Diminishing Weight Updates: By the 10th visit to a specific game, the network's weights changed 80% less than they did during the first visit, confirming that the network had become rigid and unresponsive to new data.
Mitigation via Concatenated ReLUs (CReLU)
To address activation collapse, the authors tested a simple architectural change: replacing standard ReLUs with Concatenated ReLUs (CReLUs). A CReLU layer processes an input $x$ and produces the output $[ReLU(x), ReLU(-x)]$.
This design acts as a "safety valve" for plasticity. By concatenating the positive and negative rectifications, CReLU ensures that for any non-zero input, at least one of the two resulting outputs will be non-zero. This mathematically prevents the entire layer from collapsing into a dead state, thereby preserving the gradient flow necessary for continual adaptation.
Results and Discussion
The experimental results demonstrate a stark contrast between standard agents and those equipped with CReLU:
- Performance Decay: Standard Rainbow agents exhibited a "sawtooth" performance pattern. While they could initially learn a game, each subsequent return to that game resulted in slower learning and a lower peak performance, eventually leading to total learning failure.
- Sustained Plasticity: Agents using CReLU maintained their learning capacity across successive visits. In games like Boxing and Centipede, CReLU agents eventually matched or even outperformed "reset" agents (those trained from scratch), whereas standard agents completely lost the ability to improve.
- Robustness: This loss of plasticity was consistent across various game sequences and visit lengths (ranging from 10M to 50M frames), suggesting it is a fundamental property of the ReLU-based architecture in non-stationary RL.
Conclusion
While CReLU effectively solves the loss of plasticity, it does not address the separate issue of catastrophic forgetting. Agents still lose proficiency in Game A while learning Game B; however, CReLU ensures they retain the ability to relearn Game A upon returning to it. This research highlights that maintaining the health of internal representations—specifically preventing activation collapse—is a prerequisite for successful continual learning. Future work will likely focus on combining CReLU with memory-retention techniques to solve the stability-plasticity dilemma in its entirety.
Summary updated