Loss of Plasticity in Continual Deep Reinforcement Learning

Zaheer Abbas, Rosie Zhao, Joseph Modayil, Adam White, Marlos C. Machado

Abstract

In this paper, we characterize the behavior of canonical value-based deep reinforcement learning (RL) approaches under varying degrees of non-stationarity. In particular, we demonstrate that deep RL agents lose their ability to learn good policies when they cycle through a sequence of Atari 2600 games. This phenomenon is alluded to in prior work under various guises—e.g., loss of plasticity, implicit under-parameterization, primacy bias, and capacity loss. We investigate this phenomenon closely at scale and analyze how the weights, gradients, and activations change over time in several experiments with varying experimental conditions (e.g., similarity between games, number of games, number of frames per game). Our analysis shows that the activation footprint of the network becomes sparser, contributing to the diminishing gradients. We investigate a remarkably simple mitigation strategy—Concatenated ReLUs (CReLUs) activation function—and demonstrate its effectiveness in facilitating continual learning in a changing environment.

Introduction

A significant challenge in Deep Reinforcement Learning (RL) is the "loss of plasticity": the observation that as an agent learns more, it becomes progressively worse at learning new tasks. While standard deep RL successes often occur in stationary environments, real-world applications are inherently non-stationary. When agents are moved between tasks, they do not merely forget previous knowledge (catastrophic forgetting); they lose the fundamental capacity to master new information. This paper investigates the internal mechanics of this "learning engine" stall, identifying "activation collapse" as a primary driver.

Methodology: Switching ALE

To study this phenomenon at scale, the authors introduce Switching ALE (S-ALE). In this setup, instead of training on a single Atari game for a long duration, the agent cycles through a sequence of different games (e.g., Alien $\rightarrow$ Atlantis $\rightarrow$ Boxing $\rightarrow$ ... $\rightarrow$ Alien). This forces the agent to adapt repeatedly to new reward structures and visual inputs.

The researchers tracked several internal metrics to diagnose the failure:

  • Weight Change: Measuring the movement of network parameters during updates.
  • Gradient Norms: Assessing the magnitude of signals used for optimization.
  • Activation Sparsity ($\ell_0$ norm): Monitoring the percentage of active neurons (non-zero outputs) for given inputs.

The Mechanism of Plasticity Loss: Activation Collapse

The study identifies activation collapse as the culprit. As agents cycle through tasks, the number of active neurons in the value and advantage networks drops significantly, sometimes to less than 1%.

Standard ReLU activations output zero for any negative input. If a neuron's weights shift such that it consistently outputs zero for the current data distribution, its gradient becomes zero. This "dead neuron" can no longer contribute to learning, even if the environment changes. Consequently, even when the agent experiences high loss (indicating poor performance), the gradients remain near zero because the network has become too sparse to propagate signals.

Mitigation Strategy: Concatenated ReLUs (CReLUs)

The authors propose a structural fix: replacing standard ReLUs with Concatenated ReLUs (CReLUs). A CReLU applies a ReLU to both the input and its negation: $CReLU(x) = [ReLU(x), ReLU(-x)]$. This design ensures that for any non-zero input, at least one half of the activation pair remains non-zero, preventing the activation footprint from shrinking and keeping gradients flowing.

Key Results

The experimental results demonstrate a clear decay in the learning capacity of standard Rainbow agents. In the S-ALE setup, performance on games like Alien drops significantly with each revisit. By the 10th iteration, weight changes are reduced to only 20% of their initial magnitude.

Figure 1: Performance decay in Alien over multiple iterations of the S-ALE cycle.

In more extreme cases, such as Boxing, the standard agent's performance decays toward zero over time, illustrating a near-total loss of plasticity.

Figure 3: Severe loss of plasticity in Boxing, where performance eventually decays toward zero.

Crucially, the authors found that CReLU restores learning potential. While standard agents decay, CReLU agents maintain their ability to learn across all visits, sometimes even improving peak performance on subsequent visits. This benefit is attributed to the activation logic rather than increased parameter count, as "Smaller CReLU" variants with fewer parameters still maintained plasticity.

Conclusion and Future Work

While CReLU effectively addresses the loss of plasticity, it does not solve catastrophic forgetting; agents still relearn games from scratch upon each visit. Furthermore, a "scratch gap" remains, where continual learners perform slightly worse than agents trained from a fresh start. Future work involves combining plasticity-preserving methods with stability-focused approaches to achieve true lifelong learning.

Summary updated

BibTeX
@inproceedings{abbas2023loss,
  author = {Zaheer Abbas and Rosie Zhao and Joseph Modayil and Adam White and Marlos C. Machado},
  title = {{Loss of Plasticity in Continual Deep Reinforcement Learning}},
  booktitle = {CoLLAs},
  year = {2023},
  url = {https://openreview.net/forum?id=EXQmVvuRNV},
}
Figure