Objective Mismatch in Model-based Reinforcement Learning

Nathan O. Lambert, Brandon Amos, Omry Yadan, Roberto Calandra

Introduction

Model-based Reinforcement Learning (MBRL) promises significant data efficiency by allowing agents to learn a "world model" and simulate experiences. Traditionally, these dynamics models are trained using Maximum Likelihood Estimation (MLE) to minimize one-step prediction errors. However, researchers have identified a critical "objective mismatch": a model optimized for global prediction accuracy is not necessarily optimal for maximizing task rewards.

The objective mismatch between maximum likelihood training and reward maximization.

The Problem of Objective Mismatch

In standard MBRL, the dynamics model $f_\theta$ is trained to maximize the likelihood of observed transitions. The underlying assumption is that a more accurate model will lead to a better policy $\pi_\theta$. Yet, in practice, global accuracy often fails to capture the specific "knife-edge" transitions critical for task success. A model might be highly accurate in irrelevant regions of the state space while failing in the narrow corridors necessary for high-reward maneuvers.

Methodology

The study investigates this phenomenon through three primary approaches:

  1. Correlation Analysis: Evaluating the relationship between Log-Likelihood (LL) and Episode Reward across thousands of models trained on diverse datasets (Expert, On-policy, and Grid-sampled) for Cartpole and Half-Cheetah tasks.
  2. Adversarial Attacks: Using zeroth-order optimization (CMA-ES) to fine-tune high-performing models to increase their likelihood while intentionally decreasing their control performance.
  3. Loss Re-weighting: Proposing a mitigation strategy that weights the training loss based on the proximity of data points to an "optimal" trajectory, prioritizing accuracy in task-relevant regions.

Key Insights and Results

The empirical findings suggest that prediction accuracy is a poor proxy for task performance.

Correlation between Log Likelihood and Reward for the Half-Cheetah task, showing a weak relationship ($\rho = 0.19$).
  • Weak Correlation: In many scenarios, the correlation between validation loss and reward was negligible. For instance, in the Half-Cheetah task using sampled data, the correlation coefficient was as low as 0.19, indicating that improving the model's likelihood does not reliably improve performance.
  • Adversarial Decoupling: Adversarial attacks successfully produced models with higher likelihoods but significantly lower rewards. In one Cartpole experiment, a model's reward dropped from 176 to 98 despite an increase in its log-likelihood from 4.83 to 4.85.
  • The "Early Peak" Phenomenon: Rewards often peak early in training, while validation loss continues to improve. This suggests that over-optimizing for global likelihood can lead the model to focus on irrelevant details at the expense of critical control features.

Conclusion and Future Work

The objective mismatch highlights a fundamental gap in how MBRL models are currently trained. While re-weighting losses toward optimal trajectories shows promise, it requires prior knowledge of the task solution. Future research should focus on iterative weighting methods that jointly estimate data importance and dynamics, or "value-aware" loss functions that directly integrate reward signals into the model training objective.

Summary updated

BibTeX
@inproceedings{lambert2020objective,
  author = {Nathan O. Lambert and Brandon Amos and Omry Yadan and Roberto Calandra},
  title = {{Objective Mismatch in Model-based Reinforcement Learning}},
  booktitle = {L4DC},
  year = {2020},
}
Figure