Measure Gradients, Not Activations! Enhancing Neuronal Activity in Deep Reinforcement Learning

Abstract

Deep reinforcement learning (RL) agents frequently suffer from neuronal activity loss, which impairs their ability to adapt to new data and learn continually. A common method to quantify and address this issue is the $\tau$-dormant neuron ratio, which uses activation statistics to measure the expressive ability of neurons. While effective for simple MLP-based agents, this approach loses statistical power in more complex architectures. To address this, we argue that in advanced RL agents, maintaining a neuron's **learning capacity**, its ability to adapt via gradient updates, is more critical than preserving its expressive ability. Based on this insight, we shift the statistical objective from activations to gradients, and introduce **GraMa** (**Gra**dient **Ma**gnitude Neural Activity Metric), a lightweight, architecture-agnostic metric for quantifying neuron-level learning capacity. We show that **GraMa** effectively reveals persistent neuron inactivity across diverse architectures, including residual networks, diffusion models, and agents with varied activation functions. Moreover, **re**setting neurons guided by **GraMa** (**ReGraMa**) consistently improves learning performance across multiple deep RL algorithms and benchmarks, such as MuJoCo and the DeepMind Control Suite. **We make our code available.**

Cite

Text

Liu et al. "Measure Gradients, Not Activations! Enhancing Neuronal Activity in Deep Reinforcement Learning." Advances in Neural Information Processing Systems, 2025.

Markdown

[Liu et al. "Measure Gradients, Not Activations! Enhancing Neuronal Activity in Deep Reinforcement Learning." Advances in Neural Information Processing Systems, 2025.](https://mlanthology.org/neurips/2025/liu2025neurips-measure/)

BibTeX

@inproceedings{liu2025neurips-measure,
  title     = {{Measure Gradients, Not Activations! Enhancing Neuronal Activity in Deep Reinforcement Learning}},
  author    = {Liu, Jiashun and Wu, Zihao and Obando-Ceron, Johan and Castro, Pablo Samuel and Courville, Aaron and Pan, Ling},
  booktitle = {Advances in Neural Information Processing Systems},
  year      = {2025},
  url       = {https://mlanthology.org/neurips/2025/liu2025neurips-measure/}
}