Discriminator Augmented Model-Based Reinforcement Learning

Behzad Haghgoo, Allan Zhou, Archit Sharma, Chelsea Finn

TL;DR

Model-based reinforcement learning (MBRL) often stumbles when learned transition models fail to capture complex, multi-modal dynamics. This paper introduces Discriminator Augmented MBRL (DAM), a framework that uses a discriminator to reweight simulated transitions via likelihood-free importance sampling, correcting value estimation bias during planning. This correction also enables a novel training objective that biases the dynamics model toward high-return trajectories to minimize value estimation variance.

What Problem Does This Paper Address?

In MBRL, an agent learns a model of the environment dynamics to simulate rollouts and plan actions, drastically improving sample efficiency compared to model-free RL. However, even high-capacity deep neural networks struggle to fit stochastic, multi-modal distributions faithfully.

Most existing remedies assume the one-step model is mostly correct and focus on limiting compounding rollout errors (e.g., short rollouts). But when the ground-truth transitions are inherently multi-modal (such as traffic interactions or slipping on ice), the learned model can generate unrealistic states even in a single step. Planning directly on these flawed simulations biases the predicted returns and leads the agent to choose suboptimal or disastrous actions.

Methods

DAM tackles model error by re-framing value estimation as an importance sampling (IS) problem:

  1. Discriminator as a Density-Ratio Estimator:
    Instead of trusting the learned transition dynamics $q(s' \mid s, a)$, the authors train a binary classifier (discriminator $D$) to distinguish between real transitions $(s, a, s') \sim p$ and simulated ones $(s, a, s') \sim q$. From Bayes' rule, the discriminator's logits $\tilde{D}$ yield the density ratio without needing the intractable true transition likelihood: $$w(s', a, s) = \frac{p(s' \mid s, a)}{q(s' \mid s, a)} = \exp(\tilde{D}(s', a, s))$$
  2. Temporal Importance-Weighted Planning:
    During sampling-based planning (e.g., random shooting), DAM weights per-timestep rewards using accumulated transition weights up to that timestep, providing an unbiased value estimate under the true environment distribution.

  3. Minimum-Variance Dynamics Objective:
    Because the discriminator corrects for model bias during planning, the dynamics model no longer needs to be trained strictly via maximum likelihood estimation (MLE). The authors derive the optimal sampling distribution $q^*(\tau) \propto R(\tau)p(\tau)$ that minimizes the variance of the value estimator, resulting in an objective that weights gradient updates proportionally to trajectory returns $R(\tau)$.

   [Real Data p] + [Model Rollouts q]
                 │
                 ▼
     [Train Discriminator D]
                 │
     w = exp(Logits(D)) ──► [Reweighted Planning: R = Σ (Π w) * r]
                                       ▲
[Return-Weighted Model Training] ──────┘

Datasets

The authors design and evaluate on two custom continuous control environments featuring stochastic, multi-modal dynamics:

  • IcyRoad: A vehicle moves along an icy path. Driving above a speed threshold introduces a random probability of swerving off the road to either the left or right (multi-modal outcome), leading to a heavy penalty.
  • Intersection: The agent approaches an intersection where an oncoming car will turn either left or right with equal probability. Driving into the intersection too aggressively risks a collision.

Key Insights and Ideas

  • Classification is easier than density modeling: Accurately modeling complex continuous distributions is notoriously hard. Discriminating whether a generated transition looks real or fake is often a much easier learning problem.
  • Breaking free from MLE: Standard MBRL forces models to optimize log-likelihood over the entire state-action distribution. By decoupling model fitting from unbiasedness (handled by the discriminator), models can focus their finite capacity on high-return states where accurate planning matters most.
  • Component synergy: Training with the minimum-variance objective alone actually harms performance because it introduces severe model bias. It only succeeds when paired with the discriminator's importance sampling correction.

Key Results

The authors evaluated DAM against standard MBRL baselines across 10 rounds of model training and environment interactions, testing both unimodal (Gaussian) and multimodal (Mixture Density Network) dynamics:

  • IcyRoad: Full DAM combined with a multimodal dynamics model achieved the highest return of $7.94 \pm 0.92$, compared to the baseline multimodal return of $5.34 \pm 0.84$. Using discriminator correction alone on a unimodal model significantly boosted return from $0.71 \pm 1.72$ (baseline) to $4.88 \pm 0.50$.
  • Intersection: Multimodal DAM outperformed all configurations, scoring $97.72 \pm 5.127$ compared to the multimodal baseline's $29.58 \pm 0.105$.
  • Discriminator Correction Alone: For unimodal models, adding the discriminator during planning consistently rescued performance (e.g., increasing returns from 62.67 to 87.79 in Intersection), though adding the minimum-variance objective on top only yielded gains when the underlying model was multimodal.

Limitations and Future Work

  • Benchmark Complexity: Experiments are limited to two synthetic, low-dimensional toy driving tasks; scaling to high-dimensional state spaces (e.g., pixel-based control) remains unproven.
  • Support Coverage Assumptions: Importance sampling requires the support of the true dynamics $p$ to be covered by the learned model $q$. Large distribution mismatches can cause variance in importance weights to explode over long horizons.
  • Sample Horizon compounding: While per-timestep weighting helps, multiplying density ratios over extended planning horizons can still become noisy.

Summary updated

BibTeX
@inproceedings{haghgoo2021discriminator,
  author = {Behzad Haghgoo and Allan Zhou and Archit Sharma and Chelsea Finn},
  title = {{Discriminator Augmented Model-Based Reinforcement Learning}},
  booktitle = {DeepRL @ NeurIPS},
  year = {2021},
  url = {https://openreview.net/forum?id=mhsaUIrsHZs},
}
Figure