TL;DR
Making decisions on the fly usually forces agents into an awkward choice: react quickly using short-sighted instincts, or grind to a halt calculating complex future plans from scratch at every single step. Generative Trajectory Planning (GTP) bridges this divide by training a diffusion model to act as an intuitive "imagination engine" that proposes sensible multi-step action sequences, which are then rapidly refined and scored using learned world models. It’s a clean, intuitive synthesis of generative AI and classical control that solves complex robotic manipulation tasks where standard reinforcement learning completely flatlines.
What Problem Does This Paper Address?
Online decision-making—where an agent learns by interacting with an unknown world from scratch—suffers from a fundamental tug-of-war.
On one side is Reinforcement Learning (RL). RL compresses the entire future into a single number (a value function) and trains a reactive policy to take one step at a time. It’s fast at test time, but trying to propagate long-term consequences backward one step at a time is like playing a game of telephone: errors accumulate, and random, single-step twitches rarely lead to coherent, long-term exploration.
On the other side is Trajectory Optimization (TO) (like Model Predictive Control). TO explicitly plans entire sequences of future actions. However, solving a high-dimensional optimization problem from scratch at every millisecond is computationally brutal, and simple sampling distributions (like Gaussians) fail to capture complex, multimodal behaviors.
Meanwhile, recent diffusion policies have excelled offline, yet when brought online, researchers usually force them into standard RL frameworks as mere policy replacements—inheriting RL's exact same blind spots. How do we get fast, structured, long-horizon planning online?
Methods
Instead of treating a diffusion model as a reactive policy, GTP treats it as a learned proposal distribution for a planner. The architecture relies on four components learned jointly online: a conditional diffusion prior over action sequences, an ensemble of dynamics models (to predict next states), a reward model, and a terminal value function.
Here is what is novel about how GTP puts them together:
- Diffusion Beam Search: Rather than optimizing from scratch, GTP samples candidate action sequences from the diffusion prior and refines them via iterative beam search. Step by step, it locks in promising early actions ("prefixes"), duplicates them, and re-imagines the remaining future steps ("suffixes") by partially adding noise and denoising them through the diffusion model.
- Optimistic Acting, Conservative Learning: To explore effectively, GTP looks at the disagreement across its dynamics ensemble. When acting, it scores trajectories using the maximum predicted return across the ensemble—betting optimistically on uncertain, potentially high-reward futures. When updating its value function, it takes the median across the ensemble and weights multi-step horizons by inverse variance, preventing wild model hallucinations from corrupting learning.
- Escaping Mode Collapse: If a generative model only trains on its own best plans, it quickly becomes narrow-minded. Before distilling winning plans back into the diffusion prior, GTP nudges them upward along the reward gradient using a few steps of Langevin ascent, continually injecting fresh, higher-scoring behaviors.
Datasets
Because this is an online learning setting, there are no static datasets—agents collect their own transitions from scratch over 1 million environment steps. GTP is evaluated across three continuous-control benchmark suites:
- OpenAI Gym MuJoCo: Five standard proprioceptive locomotion tasks (Hopper, Walker2d, HalfCheetah, Ant, Humanoid).
- Fetch Manipulation: Three contact-rich, long-horizon robotic arm tasks (FetchPush, FetchPick&Place, FetchSlide).
- PushT-Vision: A high-dimensional, image-based manipulation task built on prior implicit behavioral cloning benchmarks, testing whether GTP scales to visual observations via latent representations.
Key Insights and Ideas
- Generative models are better proposals than policies: Using a diffusion model just to output actions (like QSM or DPMD) fails on long-horizon manipulation. Pairing that exact same generative machinery with explicit model-based search unlocks dramatic jumps in capability.
- Gaussian noise doesn't understand geometry: Visualizing where agents explore on the PushT task reveals a striking contrast. Model-based planners using Gaussian noise (like TD-MPC2) flail broadly across the workspace because independent per-step noise destroys temporal coordination. GTP’s diffusion prior generates smooth, correlated trajectories that zero in on the T-block’s contours and contact points.
- Planning horizon is bounded by physics, not stability: Sweeping the planning horizon up to 16 steps shows GTP remains rock-solid during training. Performance only dips on chaotic, contact-heavy tasks like HalfCheetah because rolling out imperfect dynamics models too far accumulates prediction error—not because the planner or value learning blows up.
Key Results
GTP matches or beats state-of-the-art model-free (SAC, TD3), diffusion-policy (QSM, DPMD), trajectory optimization (CEM-MPC), and world-model (DreamerV3, TD-MPC2) baselines:
- Locomotion: GTP (with horizon $H=4$) takes first place across all five MuJoCo tasks, notably scoring 6660 on Humanoid-v4 (vs. 5269 for DPMD and 4160 for TD-MPC2) and 13,944 on HalfCheetah-v4.
- Robotic Manipulation: Reactive RL and diffusion policies fail almost completely on Fetch tasks (0–14% success). GTP achieves 100%, 98%, and 76% success on FetchPush, Pick&Place, and Slide, respectively, converging faster and without the seed instability seen in TD-MPC2 (which averaged 67% on FetchPush).
- Visual Control: On PushT-Vision at 1M steps, GTP hits 99% success. Every single learning-based baseline—including DreamerV3, SAC, and TD-MPC2—scores 0% in this default regime (TD-MPC2 requires 3x the data to eventually catch up).
Limitations and Future Work
- Computational Overhead: Running iterative beam search and diffusion denoising inside an ensemble rollout isn't free. While the authors show you can amortize costs by reusing elite trajectories during training or executing multiple actions before replanning, inference-time compute remains heavier than a simple feedforward policy.
- Reliance on Terminal Value Functions: Because long dynamics rollouts accumulate error on complex physics, GTP still leans on a learned value function to bootstrap returns past horizon $H$. In ultra-sparse reward settings where value estimates struggle, this remains a bottleneck.
- Future Directions: The authors point toward reducing dependence on terminal value functions, designing faster inference-time search algorithms, and scaling GTP to richer, real-world visual manipulation tasks.
Summary updated