Parallel Stochastic Gradient-Based Planning for World Models
Michael Psenka, Michael Rabbat, Aditi Krishnapriyan, Yann LeCun, Amir Bar
TL;DR
We address planning with learned vision-based world models, where long horizons and high-dimensional state spaces create difficult optimization landscapes. GRASP (Gradient RelAxed Stochastic Planner) lifts intermediate states to enable time-parallel optimization, uses Langevin-style state perturbations for exploration, and employs stop-gradient on state inputs to stabilize gradients, with periodic full-gradient rollouts to refine solutions. The method outperforms zero-order methods like CEM and vanilla gradient-based planning on long-horizon tasks, while remaining competitive on short-horizon problems. This approach offers practical improvements for robust, scalable planning in visual world models and suggests broader potential for parallelized, gradient-based planning in learned dynamics.
Abstract
World models simulate environment dynamics from raw sensory inputs like video. However, using them for planning can be challenging due to the vast and unstructured search space. We propose a robust and highly parallelizable planner that leverages the differentiability of the learned world model for efficient optimization, solving long-horizon control tasks from visual input. Our method treats states as optimization variables ("virtual states") with soft dynamics constraints, enabling parallel computation and easier optimization. To facilitate exploration and avoid local optima, we introduce stochasticity into the states. To mitigate sensitive gradients through high-dimensional vision-based world models, we modify the gradient structure to descend towards valid plans while only requiring action-input gradients. Our planner, which we call GRASP (Gradient RelAxed Stochastic Planner), can be viewed as a stochastic version of a non-condensed or collocation-based optimal controller. We provide theoretical justification and experiments on video-based world models, where our resulting planner outperforms existing planning algorithms like the cross-entropy method (CEM) and vanilla gradient-based optimization (GD) on long-horizon experiments, both in success rate and time to convergence.
