Efficient Deep Reinforcement Learning Requires Regulating Overfitting

Qiyang Li, Aviral Kumar, Ilya Kostrikov, Sergey Levine

TL;DR

Deep reinforcement learning (RL) should theoretically learn faster by taking more gradient steps per environment interaction. In practice, however, this often leads to performance collapse. This paper identifies overfitting—specifically, high temporal-difference (TD) error on a validation set—as the primary culprit. To address this, the authors introduce AVTD, an online model selection method that automatically picks the best regularization strategy to keep learning on track.

The Challenge of Sample Efficiency

In off-policy reinforcement learning, researchers strive for "sample efficiency," aiming to learn as much as possible from every piece of data collected. A common strategy is to increase the Update-to-Data (UTD) ratio: taking many gradient steps for every single transition recorded from the environment.

While this sounds promising in theory, high UTD ratios (e.g., 20 updates per step) often cause agents to perform significantly worse than those with a standard UTD of 1. Historically, researchers have blamed this on "overestimation bias" (the agent being too optimistic about bad actions) or "non-stationarity" (the data distribution shifting too fast).

The authors of this paper argue against these traditional explanations. Instead, they demonstrate that the agent simply overfits to its small pool of experience, losing the ability to generalize to new states.

Performance and TD errors across different UTD ratios. Notice how UTD=20 has the lowest training error but the highest validation error and worst return.

As shown above, while training TD error (how well the agent fits its current data) decreases with more updates, validation TD error (how well it predicts rewards on held-out data) spikes dramatically, correlating directly with a collapse in overall return.

Methods: Introducing AVTD

To isolate variables like data quality and distribution shift, the authors first conducted a "forensic" analysis of RL failure modes using a tandem learning setup, replaying logged data to agents. Confirming that validation TD error is the true bottleneck, they propose AVTD (Automatic model selection using Validation TD error) to fix it:

  1. Ensemble of Experts: Train several RL agents in parallel, each utilizing a different regularization technique (e.g., Weight Decay, Dropout, LayerNorm, or Resets).
  2. Shared Experience: All agents contribute to and learn from a single, shared replay buffer.
  3. Validation Set: A small portion of transitions is explicitly set aside as a validation set.
  4. Hill-Climbing on Generalization: At each step, the system calculates the validation TD error for all agents. The agent with the lowest validation error is chosen to interact with the environment.

Key Insights and Results

The researchers evaluated AVTD on standard continuous control benchmarks, including the DeepMind Control Suite (DMC) and OpenAI Gym (MuJoCo).

  • Validation TD Error is the "North Star": The authors show that validation TD error is a much more reliable predictor of agent performance than traditional metrics like Q-value overestimation.
  • Regularization is Task-Dependent: There is no "silver bullet" regularizer. Dropout might work best for Gym tasks, while Weight Decay or LayerNorm might excel in DMC. This explains why previous state-of-the-art methods often failed when transferred to new domains.
Impact of various regularization techniques on Return, Training TD, and Validation TD. Effective regularizers successfully suppress Validation TD error.
  • Robustness Across Domains: AVTD consistently matched or outperformed the best individual regularization schemes. In an aggregate ranking across 13 tasks, AVTD achieved an average rank of 2.92, significantly better than fixed strategies like DroQ (4.12) or Weight Decay (3.49).
  • Closing the Gap: On the hardest tasks (like humanoid-run), AVTD outperformed all prior methods, closing the gap toward an "Oracle" (a theoretical best-case selector) by 30%.
  • Training vs. Validation: Selecting an agent based on training error is disastrous—it picks the agent that overfits the most, leading to the worst performance. Using a held-out validation set is mandatory.

Limitations and Future Work

The primary drawback of AVTD is its computational cost. Because it requires training multiple agents in parallel, the wall-clock time and memory usage increase linearly with the number of candidate regularizers, even though they share a replay buffer.

Furthermore, while the paper proves that certain regularizers work by reducing validation error, it doesn't fully explain the underlying mechanics of why specific tasks favor specific regularizers (e.g., why Dropout helps in Gym but not DMC).

For future work, the authors suggest that instead of running parallel agents, researchers could explore dynamically tuning a single agent's regularization strength (similar to a learning rate scheduler) based on the validation TD error signal.

Summary updated

BibTeX
@inproceedings{li2023efficient,
  author = {Qiyang Li and Aviral Kumar and Ilya Kostrikov and Sergey Levine},
  title = {{Efficient Deep Reinforcement Learning Requires Regulating Overfitting}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=14-kr46GvP-},
}
Figure