Stable Gradients for Stable Learning at Scale in Deep Reinforcement Learning

Roger Creus Castanyer, Johan Obando-Ceron, Lu Li, Pierre-Luc Bacon, Glen Berseth, Aaron Courville, Pablo Samuel Castro

In the world of Supervised Learning (SL), the mantra is simple: "Bigger is better." If you want a more capable model, you add more layers and more parameters. However, in Deep Reinforcement Learning (RL), scaling often feels like a trap. Researchers frequently find that as they increase the depth or width of their networks, performance doesn't just plateau—it collapses.

Performance collapse in standard RL agents as network depth increases.

A new paper from researchers at Mila, Université de Montréal, and Google DeepMind, titled "Stable Gradients for Stable Learning at Scale in Deep Reinforcement Learning," diagnoses why this happens and offers a surprisingly simple cure.

TL;DR

Scaling deep RL models often leads to performance collapse because the inherent "non-stationarity" of RL (shifting data and targets) amplifies gradient pathologies like vanishing signals and dormant neurons. By combining multi-skip residual connections with second-order optimization (Kron), the authors demonstrate that we can finally scale RL agents reliably across a wide variety of tasks.

What Problem Does This Paper Address?

In supervised learning, the data is a fixed target. In RL, the agent is a moving target: it learns from data it collects itself, meaning the data distribution shifts constantly as the policy improves. This is called non-stationarity.

The authors argue that this non-stationarity acts as a "pathology multiplier." Standard deep learning issues—like vanishing gradients or "dead" (inactive) neurons—become catastrophic in RL.

The impact of non-stationarity on training accuracy and gradient norms across different network scales.

As networks get deeper, the gradient signal from the loss function essentially "gets lost" before it can reach the earlier layers of the network. This leads to a loss of "plasticity," where the network becomes unable to adapt to new data, eventually resulting in a total collapse of performance.

Methods

The researchers propose two primary "interventions" to keep gradients healthy as models grow:

  1. Multi-Skip Residuals: Standard residual connections (like those in ResNet) usually skip one or two layers. The authors introduce a "multi-skip" architecture where the features from the initial encoder are broadcast directly to every subsequent layer in the MLP. This ensures that even the deepest layers have a direct "highway" back to the input features, preventing the gradient from vanishing.
  2. Second-Order Optimization (Kron): Most RL agents use first-order optimizers like Adam. These are "curvature-agnostic"—they don't understand the geometry of the loss surface. The authors switch to Kron, a Kronecker-factored second-order optimizer. Kron uses curvature information to make more informed, stable updates, which is crucial when the data distribution is constantly shifting.

Crucially, these aren't new RL algorithms; they are architectural and optimization-level "plumbing" fixes that can be dropped into existing algorithms like PPO, SAC, or DQN.

Datasets

The authors validated their approach across an impressive range of benchmarks:

  • Atari-10 & Full ALE (57 games): The gold standard for discrete-action RL.
  • Isaac Gym: High-performance continuous control tasks (e.g., Cartpole, Anymal).
  • DeepMind Control Suite (DMC): Challenging robotics-style tasks (e.g., Humanoid, Dog).
  • Offline RL Benchmarks: Testing how these interventions help when learning from fixed, pre-collected datasets.
  • Non-stationary CIFAR-10: A "toy" supervised task where labels are periodically shuffled to simulate RL-style non-stationarity.

Key Insights and Ideas

  • The "Flatness" of Failure: The authors found that as deep RL models fail, the "Hessian trace" (a measure of loss curvature) drops to near zero. Essentially, the model finds itself in a perfectly flat region of the loss landscape where it can't find any direction to improve.
  • Dormant Neurons are a Scaling Tax: Without these interventions, scaling depth leads to a massive increase in "dormant neurons"—units that never fire. This means you're paying the computational cost of a large model but only using a tiny fraction of its capacity.
  • Architecture vs. Algorithm: The paper suggests that RL's scaling problems aren't necessarily due to "algorithmic instability" (like the deadly triad) but are often just basic gradient propagation failures that we've already solved in other areas of deep learning.

Key Results

  • PQN Boost: On the full suite of 57 Atari games, their augmented agent outperformed the baseline in 90% of environments, with a median relative improvement of 83.27%.
  • PPO Stability: In Isaac Gym, the baseline PPO agent's performance plummeted as the network grew. The augmented version remained stable and actually improved with scale.
  • Simba on DMC: Even using Simba (an architecture specifically designed for scaling), the default AdamW optimizer led to collapse on complex tasks like "Humanoid Run." Switching to the Kron optimizer restored the "bigger is better" scaling property.
  • Offline RL: The interventions significantly improved performance on sparse-reward tasks, where credit assignment is traditionally very difficult.

Limitations and Future Work

  • Computational Overhead: Second-order optimizers like Kron are more computationally expensive per training step than Adam. While the authors argue this is offset by better sample efficiency and the use of vectorized environments, it remains a factor for resource-constrained settings.
  • The "Foundation Model" Scale: While the authors scaled models significantly larger than standard RL baselines, they haven't yet reached the "billions of parameters" scale seen in LLMs. Testing these interventions at that extreme scale is the natural next step.
  • Hyperparameter Tuning: While Kron is more robust, it still introduces its own set of hyperparameters that may need tuning for specific, novel environments.

Summary updated

BibTeX
@inproceedings{castanyer2025stable,
  author = {Roger Creus Castanyer and Johan Obando-Ceron and Lu Li and Pierre-Luc Bacon and Glen Berseth and Aaron Courville and Pablo Samuel Castro},
  title = {{Stable Gradients for Stable Learning at Scale in Deep Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=Vqj65VeDOu},
}
Figure