Abstract
Deep reinforcement learning faces significant challenges in sample efficiency for high-dimensional complex sequential decision problems. While model-based reinforcement learning (MBRL) addresses this by learning a world model, performance is often hindered by model inaccuracies. We present World Model with Trajectory Discrimination (WMTD), which incorporates a trajectory discriminator to learn temporal dynamics and weight state value estimations. By prioritizing high-fidelity simulated trajectories, WMTD achieves state-of-the-art performance and improved sample efficiency on DeepMind Control tasks.
Introduction
Reinforcement Learning (RL) typically requires vast amounts of data. Model-Based RL (MBRL) mitigates this by learning a "world model" to simulate environment interactions. However, as predictions extend into the future, errors accumulate—a phenomenon known as compounding error. These "hallucinations" can mislead the agent, resulting in unstable policies. WMTD addresses this by quantifying the realism of imagined trajectories and adjusting the learning process accordingly.
Methods: World Model with Trajectory Discrimination
WMTD extends the Dreamer framework, which utilizes a Recurrent State-Space Model (RSSM). The core innovation lies in the integration of a trajectory discriminator and a weighted value estimation mechanism.
Trajectory Discrimination Architecture
The system employs a neural network discriminator ($D$) that shares a feature extractor with the world model. It is trained to distinguish between authentic environment trajectories and "fake" ones generated through action noise and observation shuffling. This process forces the model to capture the underlying temporal dynamics of the environment.
Weighted Value Estimation
Instead of treating all imagined steps equally, WMTD uses the discriminator’s output to compute a weight ($\omega_x$) for each state value estimate. If the discriminator identifies a trajectory step as highly realistic, it receives a higher weight; conversely, steps that appear erroneous are down-weighted. This "informed" weighting replaces standard exponential decay, providing a more robust signal for policy optimization.
Experimental Results
The algorithm was benchmarked on the DeepMind Control Suite (DMC). WMTD demonstrated superior sample efficiency, particularly in tasks like "Reacher Easy," where it scored 992 at 100k steps, significantly outperforming the baseline Dreamer (314). At 500k steps, WMTD achieved state-of-the-art or near-SOTA performance across most tasks with remarkably low variance, indicating high training stability.
Conclusion
WMTD successfully addresses the compounding error problem in MBRL by treating temporal dynamics as a learnable feature for quality control. By "distrusting" inaccurate imaginations, the agent learns more effectively from its world model. Future work will explore dynamic imagination horizons and applications in more complex, partially observable environments.
Summary updated