DrM: Mastering Visual Reinforcement Learning through Dormant Ratio Minimization

Guowei Xu, Ruijie Zheng, Yongyuan Liang, Xiyao Wang, Zhecheng Yuan, Tianying Ji, Yu Luo, Xiaoyu Liu, Jiaxin Yuan, Pu Hua, Shuzhen Li, Yanjie Ze, Hal Daumé Iii, Furong Huang, Huazhe Xu

TL;DR

Researchers have discovered that when a reinforcement learning (RL) agent fails to move or learn, its neural network is often filled with inactive, "dormant" neurons. By introducing DrM (Dormant Ratio Minimization), researchers use the health of the neural network as a compass to guide exploration. This approach allows agents to solve complex tasks—like robotic hand manipulation and quadruped locomotion—directly from raw pixels, without any human demonstrations.

The Challenge of Visual RL

Visual Reinforcement Learning aims to teach agents to perform complex physical tasks using only camera feeds as input. While successful in simple simulations, visual RL often hits a wall when faced with high-dimensional "continuous control" tasks, such as a robotic dog with dozens of joints or a dexterous hand trying to turn a doorknob.

The two biggest hurdles in this domain are sample inefficiency (requiring millions of attempts to learn basic movements) and brittleness (an agent might succeed with one random starting "seed" but fail completely with another). The authors observed a specific failure mode: early in training, agents often become "motorically inactive"—they simply stop moving. This lack of movement prevents them from ever discovering rewards, leading to "broken seeds" where the agent learns absolutely nothing.

Methodology: Minimizing the Dormant Ratio

The core innovation of this paper is using the Dormant Ratio as both a diagnostic tool and a control signal. A neuron is considered "dormant" if its average activation is significantly lower than its layer's average.

To combat this, the authors introduce DrM, which consists of three interconnected mechanisms triggered by the network's dormant ratio ($\beta$):

  1. Dormant-ratio-guided Perturbation: If the dormant ratio climbs too high (indicating the network is losing "expressivity"), the algorithm "jolts" the network by performing a soft reset, interpolating current weights with a fresh random initialization.
  2. Awaken Exploration Scheduler: Traditional RL decays exploration noise steadily over time. DrM keeps exploration noise high until the dormant ratio drops below a specific threshold (the "awakening"). This ensures the agent doesn't stop exploring before it has actually started learning.
  3. Dormant-ratio-guided Exploitation: Once the agent "wakes up" (indicated by a low dormant ratio), the algorithm shifts its focus to exploitation. It uses expectile regression to prioritize learning from the most successful trajectories already stored in its memory.

Key Insights: Brain Activity Predicts Body Activity

The most striking finding in the paper is that the dormant ratio acts as a leading indicator for an agent's success.

Dormant ratio acts as a leading indicator of learning, dropping before rewards increase.

In successful runs, the dormant ratio drops sharply before the agent starts receiving any significant reward. This means the network's internal activity can tell us if an agent is about to learn, even if its current performance looks like zero.

Furthermore, there is a direct correlation between "brain" activity and "body" activity. When the dormant ratio is high, the agent is physically stuck. As neurons begin to "fire" more diversely, the agent exhibits meaningful exploratory movements—progressing from crawling, to standing, and finally to walking. The authors draw a parallel to neuroscience's "arousal theory," which suggests that an optimal level of neural activity is essential for attention and learning.

Results: Setting a New Benchmark

The authors evaluated DrM on three rigorous continuous control benchmarks using only pixel observations: the DeepMind Control Suite (including the notoriously difficult "Dog" and "Manipulator" domains), MetaWorld, and Adroit (high-DOF dexterous hand manipulation tasks).

DrM vastly outperforms baselines across DeepMind Control Suite, MetaWorld, and Adroit benchmarks.

DrM sets a new standard for model-free visual RL:

  • First of its Kind: It is the first documented model-free algorithm to consistently solve the Dog and Manipulator tasks in DMC, as well as the Adroit hand tasks, entirely from pixels and without human demonstrations.
  • Unprecedented Efficiency: It requires 45% to 70% fewer samples to match the peak performance of previous state-of-the-art methods like DrQ-v2, ALIX, and TACO.
  • Absolute Robustness: Across 76 different random seeds, DrM had zero "broken seeds." Every single run eventually learned the task, a level of reliability rarely seen in complex RL environments.
  • Higher Asymptotic Performance: In the most challenging tasks, DrM improved final scores by 35% to 75% over the best-performing baselines.

Limitations and Future Work

While DrM is significantly more robust than its predecessors, the authors note that some specific tasks (like "Humanoid Run") still benefit from task-specific hyperparameter tuning to reach their maximum potential. Additionally, the current work focuses exclusively on continuous control. Adapting the dormant ratio minimization logic to discrete action spaces (like Atari games) remains an open area for research. Finally, integrating DrM with intrinsic motivation (curiosity) methods could further boost exploration in environments with extremely sparse rewards.

Summary updated

BibTeX
@inproceedings{xu2024drm,
  author = {Guowei Xu and Ruijie Zheng and Yongyuan Liang and Xiyao Wang and Zhecheng Yuan and Tianying Ji and Yu Luo and Xiaoyu Liu and Jiaxin Yuan and Pu Hua and Shuzhen Li and Yanjie Ze and Hal Daumé III and Furong Huang and Huazhe Xu},
  title = {{DrM: Mastering Visual Reinforcement Learning through Dormant Ratio Minimization}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=MSe8YFbhUE},
}
Figure