---
title: "Gradient-based Planning for World Models at Longer Horizons"
description: "GRASP is a gradient-based planner for learned world models that makes long-horizon planning tractable by lifting the trajectory into virtual states (collocation) so model evaluations run in parallel across time and avoid exploding/vanishing gradients from deep rollouts."
url: "https://swe.quest/articles/gradient-based-planning-for-world-models-at-longer-horizons-5ad914a02a501cb0"
canonical: "https://bair.berkeley.edu/blog/2026/04/20/grasp/"
source: "Berkeley AI Research"
published: "2026-04-20"
difficulty: "hard"
kind: "Research"
reading_minutes: 12
tags: ["machine-learning","algorithms"]
---

# Gradient-based Planning for World Models at Longer Horizons

A post on [Berkeley AI Research](https://swe.quest/sources/bair.md), published 2026-04-20, 12 min read, Research. Original: [https://bair.berkeley.edu/blog/2026/04/20/grasp/](https://bair.berkeley.edu/blog/2026/04/20/grasp/)

## Summary

GRASP is a gradient-based planner for learned world models that makes long-horizon planning tractable by lifting the trajectory into virtual states (collocation) so model evaluations run in parallel across time and avoid exploding/vanishing gradients from deep rollouts. Because deep world models are adversarially sensitive to state inputs off the data manifold, GRASP stops gradients through the state input and relies only on well-behaved, low-dimensional action Jacobians, adding a dense goal-shaping term to prevent trivial minima. Exploration comes from injecting Gaussian noise into state iterates while actions follow deterministic descent, with periodic syncs back to true rollout gradients.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Machine learning](https://swe.quest/tags/machine-learning.md) (AI & ML)
- [Algorithms](https://swe.quest/tags/algorithms.md) (Architecture & design)

## Prerequisites

- backpropagation through time
- trajectory optimization ([easy posts on Performance engineering](https://swe.quest/tags/performance.md?difficulty=easy))
- adversarial examples
- latent dynamics models

## Keywords

GRASP, world models, collocation, Push-T, BallNav, dimpled manifold

## Related posts

- [LeRobot v0.6.0: Imagine, Evaluate, Improve](https://swe.quest/articles/lerobot-v0-6-0-imagine-evaluate-improve-6d62fd5c84e31d6d.md): Hugging Face · 2026-07-07 · Hard · 12 min read · Machine learning, Model training, Evaluation, Open source
  LeRobot v0.6.0 targets the full robot learning loop. It adds world-model policies (VLA-JEPA, LingBot-VA, FastWAM) that use future prediction during training while keeping inference cheap, new VLAs (GR00T N1.7, MolmoAct2, EO-1, EVO1, Multitask DiT), and a unified reward models API with Robometer and zero-shot TOPReward.
- [Granite 4.2 LLMs: How They're Built](https://swe.quest/articles/granite-4-2-llms-how-they-re-built-f6c9c0279aa17b80.md): Hugging Face · 2026-08-25 · Hard · 22 min read · Model training, LLMs, AI agents
  Granite 4.2 is IBM's family of dense decoder-only reasoning LLMs (3B, 8B, 30B), post-trained from Granite-4.1 bases pre-trained on ~15T tokens with a five-phase schedule reaching 512K context.
- [An Introduction to Deep Reinforcement Learning](https://swe.quest/articles/an-introduction-to-deep-reinforcement-learning-d17541fa32bf28e1.md): Hugging Face · 2022-05-04 · Easy · 16 min read · Machine learning, Model training
  Deep reinforcement learning trains an agent to act in an environment through trial and error, using rewards as its only feedback, with the goal of maximizing expected cumulative (discounted) return.
- [Policy Gradient with PyTorch](https://swe.quest/articles/policy-gradient-with-pytorch-8cc397d15e17e5f8.md): Hugging Face · 2022-06-30 · Easy · 7 min read · Machine learning, Model training, Python
  Policy-gradient methods optimize a stochastic policy directly via gradient ascent on expected return, instead of deriving a policy from learned Q-values as in Deep Q-Learning.
- [Engineering and algorithmic interventions for multimodal post-training at Microsoft scale](https://swe.quest/articles/engineering-and-algorithmic-interventions-for-multimodal-post-training-at-fe8208ec9b40ef0c.md): Engineering@Microsoft · 2026-02-27 · Hard · 10 min read · Model training, AI agents, LLMs, Machine learning
  Production-scale RL post-training of multimodal Copilot agents fails silently because policy gradient advantage estimates lose informativeness even as aggregate reward climbs.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
