World Models via Policy-Guided Trajectory Diffusion

Marc Rigter, Jun Yamada, Ingmar Posner
12/13/2023
48 citations
cs.LGcs.AI
diffusion-flowrl

Official code: marc-rigter/polygrad-world-models (77 stars, Python, MIT, last commit 2024-03-22).

Abstract

World models are a powerful tool for developing intelligent agents. By predicting the outcome of a sequence of actions, world models enable policies to be optimised via on-policy reinforcement learning (RL) using synthetic data, i.e. in "in imagination".

Show full abstract

Existing world models are autoregressive in that they interleave predicting the next state with sampling the next action from the policy. Prediction error inevitably compounds as the trajectory length grows. In this work, we propose a novel world modelling approach that is not autoregressive and generates entire on-policy trajectories in a single pass through a diffusion model. Our approach, Policy-Guided Trajectory Diffusion (PolyGRAD), leverages a denoising model in addition to the gradient of the action distribution of the policy to diffuse a trajectory of initially random states and actions into an on-policy synthetic trajectory. We analyse the connections between PolyGRAD, score-based generative models, and classifier-guided diffusion models. Our results demonstrate that PolyGRAD outperforms state-of-the-art baselines in terms of trajectory prediction error for short trajectories, with the exception of autoregressive diffusion. For short trajectories, PolyGRAD obtains similar errors to autoregressive diffusion, but with lower computational requirements. For long trajectories, PolyGRAD obtains comparable performance to baselines. Our experiments demonstrate that PolyGRAD enables performant policies to be trained via on-policy RL in imagination for MuJoCo continuous control domains. Thus, PolyGRAD introduces a new paradigm for accurate on-policy world modelling without autoregressive sampling.

View on arXivView PDF

Code Implementations(1)

MIT

Official code for "World Models via Policy-Guided Trajectory Diffusion", TMLR 2024

773PythonDec 12, 20232 years agoMIT

Similar Papers

Cite this paper

@article{rigter2023world,
  title  = {World Models via Policy-Guided Trajectory Diffusion},
  author = {Marc Rigter and Jun Yamada and Ingmar Posner},
  year   = {2023},
  eprint = {2312.08533},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.08533v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.08533.svg)](https://codeofpaper.com/paper/2312.08533)

Discussion