NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Rank and Gradient Lost in Non-stationarity: Sample Weight Decay for Mitigating Plasticity Loss in Reinforcement Learning

Zihao Wu, Hongyao Tang, Yi Ma, Jiashun Liu, Yan Zheng, Jianye Hao

TL;DR

Deep Reinforcement Learning (RL) agents often lose their "plasticity"—the ability to learn from new data—as training progresses due to the non-stationary nature of the task. This paper provides a theoretical foundation for why this happens (gradient decay and network rank collapse) and introduces Sample Weight Decay (SWD), a simple age-based weighting scheme for experience replay that restores learning signals and achieves state-of-the-art performance on challenging control tasks.

What Problem Does This Paper Address?

In Deep RL, we expect agents to get smarter over time. However, researchers have observed a frustrating phenomenon called Plasticity Loss: as a neural network trains, its ability to adapt to new information gradually diminishes. It becomes "brittle" or "stale."

This happens because RL is inherently non-stationary. Unlike image recognition, where the dataset is fixed, an RL agent's "dataset" (the replay buffer) changes as the policy improves, and its "targets" change because it uses its own current estimates to calculate future rewards (bootstrapping). While several empirical hacks exist to fix this—like resetting parts of the network or injecting noise—we have lacked a rigorous theoretical understanding of why plasticity disappears in the first place.

Methods

The authors attack the problem from the perspective of network optimization theory using the Neural Tangent Kernel (NTK) framework. They identify two primary theoretical drivers of plasticity loss:

  1. Rank Collapse: The NTK Gram matrix loses rank, meaning the network's effective "fitting capacity" shrinks.
  2. Gradient Attenuation: The magnitude of the gradient signal from new data decays at a rate of $\Theta(1/k)$, where $k$ is the number of iterations. Essentially, the "fitting rate" slows down until the agent stops learning.

To fix the second issue, they propose Sample Weight Decay (SWD). SWD is a "plug-and-play" modification to the experience replay buffer. Instead of sampling all experiences equally, it assigns a weight to each transition based on its "age" (how long ago it was collected).

  • The Formula: $w_i = \max(w_{min}, 1 - \frac{age_i}{T})$, where $T$ is a decay horizon.
  • The Logic: By prioritizing recent data, SWD counteracts the mathematical $1/k$ attenuation, ensuring the gradient signal remains strong enough to escape saddle points and continue adapting.
  • Efficiency: To avoid the computational cost of re-calculating weights for millions of samples, they introduced a bucket-based approximation that provides a 500x speedup in weight computation with negligible performance loss.

Datasets

The authors evaluated SWD across three major reinforcement learning benchmarks:

  • MuJoCo: Standard continuous control tasks (Ant, HalfCheetah, Hopper, Humanoid, Walker2d) using the TD3 algorithm.
  • Arcade Learning Environment (ALE): Pixel-based discrete games (DemonAttack, Phoenix, Breakout) using Double DQN.
  • DeepMind Control (DMC) Suite: Highly complex tasks (Humanoid-Run, Humanoid-Walk, Dog-Run, Dog-Walk) using SAC with the modern SimBa architecture.
Learning curves for TD3 with and without SWD across MuJoCo tasks.

Key Insights and Ideas

  • Theoretical Grounding: This is one of the first papers to move beyond "intuition" for plasticity loss, providing a formal proof that gradient decay is an inherent, unavoidable byproduct of the standard RL training regime.
  • Fitting Capacity vs. Fitting Rate: The paper distinguishes between the network's ability to represent a function (Rank) and the speed at which it can reach that representation (Gradient Magnitude).
  • Orthogonality is Key: Because SWD works at the data distribution level (how we sample) rather than the model level (how we build the network), it can be combined with other methods. The authors showed that combining SWD with "Shrink and Perturb" (S&P) yielded the best overall results.
  • Linear Simplicity: Interestingly, simple linear decay of weights outperformed more aggressive exponential or polynomial decay strategies, which the authors suggest can disrupt learning stability in high-dimensional tasks.

Key Results

  • SOTA Performance: SWD achieved state-of-the-art results on the notoriously difficult DMC Humanoid-Run task.
  • Consistent Gains: Across all benchmarks, SWD improved Interquartile Mean (IQM) scores by 13.7% to 30.1%.
  • High UTD Compatibility: Plasticity loss is usually worse when you perform many updates per environment step (high Update-to-Data ratio). SWD showed its largest improvements (+30.1%) at a UTD of 5, making it ideal for sample-efficient learning.
  • Neural Activity: Using the GraMa metric (which measures gradient-based neuron activity), the authors confirmed that SWD successfully prevents neurons from becoming "dormant" or inactive in the later stages of training.
Aggregate performance metrics showing SWD improvements across DMC, MuJoCo, and ALE tasks.

Limitations and Future Work

  • Benchmark Scope: While the results are impressive on MuJoCo and ALE, the authors acknowledge that evaluation is still restricted to these simulated environments.
  • Theoretical "Tip of the Iceberg": The authors note that their theoretical framework is a preliminary exploration. Future work is needed to extend these insights to even more complex, real-world non-stationary scenarios.
  • Hyperparameter Sensitivity: While SWD showed low sensitivity in a $5 \times 5$ grid search, the decay horizon $T$ still needs to be chosen appropriately for the task's total length.

Summary updated

BibTeX
@inproceedings{wu2026rank,
  author = {Zihao Wu and Hongyao Tang and Yi Ma and Jiashun Liu and YAN ZHENG and Jianye HAO},
  title = {{The Rank and Gradient Lost in Non-stationarity: Sample Weight Decay for Mitigating Plasticity Loss in Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=5DpzzTPnJZ},
}
Figure