Skip to main content
QUICK REVIEW

[Paper Review] Planning with Diffusion for Flexible Behavior Synthesis

Michael Jänner, Yilun Du|arXiv (Cornell University)|May 20, 2022
Reinforcement Learning in RoboticsComputer Science60 citations
TL;DR

This paper introduces Diffuser, a diffusion-based model that plans by iteratively denoising entire trajectories, enabling long-horizon planning, task compositionality, and test-time flexibility without relying on conventional autoregressive dynamics models.

ABSTRACT

Model-based reinforcement learning methods often use learning only for the purpose of estimating an approximate dynamics model, offloading the rest of the decision-making work to classical trajectory optimizers. While conceptually simple, this combination has a number of empirical shortcomings, suggesting that learned models may not be well-suited to standard trajectory optimization. In this paper, we consider what it would look like to fold as much of the trajectory optimization pipeline as possible into the modeling problem, such that sampling from the model and planning with it become nearly identical. The core of our technical approach lies in a diffusion probabilistic model that plans by iteratively denoising trajectories. We show how classifier-guided sampling and image inpainting can be reinterpreted as coherent planning strategies, explore the unusual and useful properties of diffusion-based planning methods, and demonstrate the effectiveness of our framework in control settings that emphasize long-horizon decision-making and test-time flexibility.

Motivation & Objective

  • Motivate tighter integration of learning and planning by designing a model that is inherently planning-friendly.
  • Develop a trajectory diffusion model that predicts all timesteps non-autoregressively for planning.
  • Enable flexible conditioning of planning via guidance functions (rewards, constraints) during diffusion sampling.
  • Demonstrate long-horizon planning, generalization to new goals, and test-time flexibility across offline and online tasks.

Proposed method

  • Introduce Diffuser, a trajectory-level diffusion probabilistic model that denoises trajectories in parallel across timesteps.
  • Represent trajectories as a 2D array of states and actions; use temporal convolutional blocks to enable local temporal locality.
  • Train the model to predict the denoising step epsilon_theta via a simple L2 objective on noise targets.
  • Use a perturbation function h(tau) to bias sampling toward high-reward or constraint-satisfying trajectories (planning as inference).
  • In reinforcement learning, derive gradients of the cumulative reward J(mu) to guide diffusion sampling (classifier-guided sampling analogue).
  • Optionally treat constraint satisfaction as inpainting by conditioning observed parts of the trajectory (start state, goals, or constraints).

Experimental results

Research questions

  • RQ1Can a non-autoregressive diffusion model reliably plan long-horizon trajectories for control tasks?
  • RQ2Does diffusion-based planning generalize to new goals and unseen reward structures without retraining?
  • RQ3How does conditioning/directed sampling (rewards or constraints) affect plan quality and feasibility?
  • RQ4Is test-time flexibility achievable by composing perturbations to guide planning toward new objectives?

Key findings

  • Diffuser enables long-horizon planning in sparse-reward environments, outperforming model-free baselines in Maze2D tasks.
  • The model exhibits temporal compositionality and can stitch together subsequences to form novel plans.
  • Planning horizon is variable and determined by input noise, not architecture, enabling flexible plan length.
  • Diffuser supports task compositionality; new reward functions can guide planning without retraining the model.
  • In offline RL benchmarks, Diffuser achieves competitive results and can recover effective controllers from heterogeneous data.
  • Guided sampling and inpainting enable goal-conditioned and constraint-satisfaction planning behaviors.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.