Abstract
In Model-Based Reinforcement Learning (MBRL), agents typically rely on one-step dynamics models to simulate the environment. However, recursive application of these models leads to compounding errors, where small initial inaccuracies cause simulated trajectories to diverge rapidly from reality. We introduce the Diffusion World Model (DWM), a conditional diffusion model that predicts entire multistep sequences of states and rewards in a single forward pass. By modeling the joint distribution of trajectories rather than individual steps, DWM effectively eliminates compounding errors. Our evaluation on the D4RL benchmark demonstrates that DWM achieves a 44% performance improvement over standard one-step models and maintains high return even at extended simulation horizons of up to 31 steps.
1. Introduction: The Compounding Error Problem
Traditional MBRL approaches utilize "one-step" models to predict the next state $s_{t+1}$ given the current state $s_t$ and action $a_t$. To plan over a long horizon, the agent must call this model recursively. This process is inherently fragile: a minor prediction error at the first step becomes the input for the second, leading to a "drift" that compounds exponentially. Consequently, simulated trajectories often become useless beyond a short horizon, limiting the effectiveness of value expansion and planning.
The Diffusion World Model (DWM) addresses this by asking: What if we predicted the entire future sequence at once? By shifting from recursive one-step modeling to joint sequence modeling, DWM avoids the accumulation of errors that plagues traditional dynamics models.
2. The Diffusion World Model (DWM)
DWM is a conditional diffusion model designed for offline reinforcement learning. Its architecture and training objective focus on three key innovations:
2.1 Multistep Joint Prediction
Unlike autoregressive or one-step models, DWM is trained to model the joint distribution of a sequence of future states and rewards simultaneously: $$p_\theta(r_t, s_{t+1}, r_{t+1}, \dots, s_{t+T-1}, r_{t+T-1} | s_t, a_t, g_t)$$ This approach ensures that the entire trajectory is globally consistent, rather than being a chain of locally predicted steps.
2.2 Conditioning and Optimistic Guidance
The model is conditioned on the current state ($s_t$), the current action ($a_t$), and a "return-to-go" (RTG) target ($g_t$). This conditioning allows for "optimistic guidance": by setting a high RTG target during inference, the model can be encouraged to generate high-quality trajectories even when the training data is mediocre.
2.3 Diffusion-MVE Integration
DWM is integrated into a framework called Diffusion Model Based Value Expansion (Diffusion-MVE). In this setup, DWM generates synthetic future trajectories to estimate short-term returns. These estimates are then used to regularize and improve the value estimation (the "critic") of offline RL algorithms such as TD3+BC or IQL. Notably, DWM does not model future actions, simplifying the generative task and focusing purely on the environment's response.
3. Experimental Results
The researchers evaluated DWM on the D4RL benchmark, focusing on locomotion tasks (Hopper, Walker2d, HalfCheetah) across various data quality levels.
3.1 Robustness to Simulation Horizon
A critical finding is DWM's stability across long horizons. While one-step models see their performance collapse as the simulation horizon increases, DWM remains remarkably stable.
As shown in Figure 1, in the Walker2d environment, the one-step model's performance drops to near zero after just a 5-step horizon. In contrast, DWM's performance remains high and flat all the way to 31 steps, proving that joint sequence modeling is inherently more robust than recursive modeling.
3.2 Benchmark Performance
DWM-based algorithms achieved a 44% performance gain over their one-step dynamics model counterparts. Furthermore, DWM outperforms Transformer-based world models by 37.5%, likely because Transformers—being autoregressive—still suffer from a form of compounding error that the non-autoregressive diffusion process avoids.
As illustrated in Figure 3, DWM consistently provides higher returns across different environments and horizons compared to one-step baselines. DWM effectively closes the gap between model-based and state-of-the-art model-free methods like TD3+BC and IQL.
4. Discussion and Future Work
DWM represents a significant step forward in making model-based RL more robust. By leveraging diffusion to predict entire trajectories, it bypasses the most significant bottleneck in MBRL: compounding error. Additionally, by using "stride sampling" to skip steps in the denoising process, DWM achieves inference speeds 4.6x faster than previous diffusion-based methods like Decision Diffuser.
However, challenges remain. Currently, a separate DWM must be trained for each environment, suggesting a need for multi-task world models. Furthermore, while faster than previous diffusion models, DWM is still more computationally intensive than simple MLPs. Future research will explore DWM's application in online RL settings and its ability to handle the exploration-exploitation trade-off.
Summary updated