Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Berkeley AI Research 12 min read Research hardMaster

Gradient-based Planning for World Models at Longer Horizons

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.

Assumes: backpropagation through timetrajectory optimizationadversarial exampleslatent dynamics models

Related posts

  • LeRobot v0.6.0: Imagine, Evaluate, Improve

    Hugging Face hardMaster

    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. It also ships six new simulation benchmarks under `lerobot-eval`, a `lerobot-rollout` deployment CLI with DAgger-style human corrections, FSDP and HF Jobs cloud training, depth recording, VLM-based language annotation, and configurable video codecs. Data loading is up to ~2x faster, and the base install has about 40% fewer dependencies.

  • Granite 4.2 LLMs: How They're Built

    Hugging Face hardMaster

    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. SFT uses ~7.2M samples (~100B tokens) mixing agentic trajectories from many harnesses with non-agentic data, filtered by LLM judges and SHA-256 deduplication. A chain of warm-started asynchronous GRPO stages follows: RLVR, skill boosters, agentic RL in real sandboxes for SWE, terminal and search on the 8B and 30B models, and RLHF. The post gives per-stage hyperparameters, a KL schedule tied to reward type, and off-policy handling via bounded staleness and truncated importance sampling.

  • An Introduction to Deep Reinforcement Learning

    Hugging Face easyNovice

    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. The core concepts are the state/action/reward loop, the Markov property, observation vs. state, discrete vs. continuous action spaces, discounting with gamma (typically 0.95–0.99), episodic vs. continuing tasks, and the exploration/exploitation tradeoff. The two main ways to learn an optimal policy are policy-based methods, which map states directly to actions or action distributions, and value-based methods, which learn state values and act greedily toward them. It is the first unit of Hugging Face's free Deep RL course, which goes on to train a lunar lander agent with Stable Baselines3.

  • Policy Gradient with PyTorch

    Hugging Face easyNovice

    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. Their advantages are built-in exploration, robustness to perceptual aliasing, and handling of continuous or high-dimensional action spaces. Their drawbacks are convergence to local maxima, slow training and high variance. Reinforce (Monte Carlo Policy Gradient) collects a full episode, estimates the gradient from the log-probabilities of the actions weighted by the return, and updates the weights. A linked Colab notebook implements it in PyTorch on CartPole-v1, PixelCopter and Pong.

  • Engineering and algorithmic interventions for multimodal post-training at Microsoft scale

    Engineering@Microsoft hardMaster

    Production-scale RL post-training of multimodal Copilot agents fails silently because policy gradient advantage estimates lose informativeness even as aggregate reward climbs. Five interventions address this: a staged curriculum (verifiable rewards only for the first 30% of training, with an entropy floor), an adaptive loop that injects near-miss trajectories when effective sample size drops below 20%, per-trajectory gradient normalization by σ_source·sqrt(length) to cut gradient concentration (Gini ~0.75 to ~0.35), softplus constraint penalties plus an annealed parallelism reward to avoid serial collapse, and mixed-horizon sampling instead of horizon curricula. ESS collapse proved a leading indicator of learning stalls by about 35 epochs, and each fix comes with explicit costs such as ~15% memory overhead or lower peak single-horizon performance.

The quest for software engineering knowledge.

Look:
Layout: