Dynamic Update-to-Data Ratio: Minimizing World Model Overfitting

Nicolai Dorka, Tim Welschehold, Wolfram Burgard

Overview

This paper introduces DUTD (Dynamic Update-to-Data ratio), a method that automatically balances under- and overfitting in model-based reinforcement learning (RL). By monitoring performance on a small, continuously updated validation set, DUTD dynamically adjusts the number of training updates per environment step. This approach significantly outperforms fixed-ratio baselines and eliminates the need for expensive hyperparameter tuning.

The "Goldilocks" Problem of UTD Ratios

In model-based RL, an agent learns a "world model"—a simulator of its environment—to plan its actions. A critical hyperparameter in this process is the Update-to-Data (UTD) ratio, which defines how many gradient steps the model takes for every new piece of experience collected.

Finding the right UTD ratio is challenging:

  1. Too few updates (Underfitting): The model fails to learn the environment's nuances, leading to poor planning.
  2. Too many updates (Overfitting): The model "memorizes" its limited experience and fails to generalize to new states.

In standard supervised learning, "early stopping" on a fixed validation set helps find the sweet spot. However, in RL, the dataset is non-stationary—it grows and changes as the agent explores. A UTD ratio that works at the start of training might cause massive overfitting later on. Currently, researchers spend massive computational resources grid-searching for a single "best" fixed ratio, which is often still sub-optimal.

Methods: Dynamic Adjustment via Validation

The authors propose DUTD, an online version of early stopping adapted for dynamic datasets.

Flowchart illustrating the DUTD reinforcement learning loop, where a validation set is used to dynamically update the UTD ratio.
  • Validation Buffer: The agent sets aside a small portion (roughly 10%) of its collected experience into a separate validation buffer that is strictly withheld from training.
  • Dynamic Adjustment: Every $k$ environment steps, the world model is evaluated on this validation buffer.
  • If the validation loss decreases compared to the last check, the model is likely underfitting, so DUTD increases the UTD ratio (trains harder).
  • If the validation loss increases, the model is likely overfitting, so DUTD decreases the UTD ratio (trains less).
  • Log-space Scaling: The ratio is adjusted by multiplying or dividing by a constant factor, allowing for fine-grained control at high training intensities.

The authors integrated DUTD into DreamerV2, a state-of-the-art model-based RL algorithm, replacing its fixed training schedule with this adaptive one.

Key Insights

  • RL is Supervised Learning on a Moving Target: By treating world model learning as a supervised sub-problem, the authors successfully ported a classic regularization technique (validation-based stopping) into the complex RL loop.
  • The "Sweet Spot" Moves: The optimal UTD ratio isn't a single number; it fluctuates throughout the learning process. DUTD captures this "moving target" automatically.
  • Robustness to Learning Rates: Strikingly, DUTD makes the agent much more robust to the choice of learning rate. If a suboptimal learning rate is chosen, the algorithm simply adjusts the UTD ratio to compensate, maintaining high performance.
  • Efficiency via Autonomy: DUTD reaches performance levels competitive with the absolute best results found via exhaustive hyperparameter grid searches, but it achieves this in a single run.

Experimental Results

The method was evaluated on two standard RL benchmarks: the DeepMind Control Suite (DMC) for continuous control tasks, and Atari 100k, a benchmark of 26 classic games where the agent is limited to only 100,000 interaction steps.

Performance comparison showing DUTD-DreamerV2 significantly outperforming the baseline DreamerV2 across Median, IQM, Mean, and Optimality Gap metrics.
  • Atari 100k: DUTD achieved a 300% increase in the Interquartile Mean (IQM) score compared to the default DreamerV2 configuration. It even outperformed the human baseline in mean score without requiring any additional data augmentation.
  • DMC: DUTD matched or improved performance across all 20 tested environments. In many cases, it reached asymptotic performance twice as fast as the baseline.
  • Generalization: The authors also applied DUTD to PlaNet (another model-based RL algorithm), showing similar performance gains and proving the method is general-purpose.

Limitations and Future Work

  • Validation Set Selection: The method relies on the validation set being representative. If the agent collects highly repetitive data for its validation set, the signal for over/underfitting might weaken.
  • Computational Overhead: While DUTD optimizes the number of updates, high UTD ratios remain computationally expensive. For complex models, very high ratios might bottleneck training on certain hardware.
  • Model-Free RL: Currently, DUTD is designed for world models with supervised objectives. Finding non-supervised objectives to evaluate model-free RL agents on validation sets is a promising future direction.

Summary updated

BibTeX
@inproceedings{dorka2023dynamic,
  author = {Nicolai Dorka and Tim Welschehold and Wolfram Burgard},
  title = {{Dynamic Update-to-Data Ratio: Minimizing World Model Overfitting}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
}
Figure