Diffusion Subgoal Planning for Long-Horizon Offline Goal-Conditioned Reinforcement Learning

Hengrui Zhang, Yuhu Cheng, C.L.Philip Chen, Xuesong WangNeurIPS 2026

TL;DR

When teaching AI agents to solve long, multi-step tasks from static datasets, relying on estimated "value maps" to pick intermediate waypoints often fails because those maps become noisy and unreliable over long distances. Diffusion Subgoal Planning (DSP) throws out explicit value-based waypoint selection altogether, replacing the high-level planner with a guided generative flow model. By imagining subgoals grounded directly in the training data and steering them toward the final target with classifier-free guidance, DSP navigates complex mazes and robotic puzzles far more reliably than prior hierarchical methods.

What Problem Does This Paper Address?

Imagine trying to navigate across a massive, pitch-black maze using only a memory of random walks other people took in the past. This is the core challenge of offline goal-conditioned reinforcement learning (GCRL): learning to reach arbitrary goals using a fixed, reward-free dataset without being allowed to practice in the live environment.

Usually, agents learn a value function—essentially a mental compass estimating how close any state is to the final goal. Over short distances, that compass works great. Over long horizons, however, sparse signals and compounding errors turn the value landscape into a noisy mess.

Hierarchical RL tries to fix this via divide-and-conquer: a high-level manager picks nearby subgoals (waypoints), and a low-level worker executes the motor actions to reach them. Yet a stubborn bottleneck remains. While the worker enjoys easy, short-horizon instructions, the manager still relies on that noisy, long-distance value compass to pick the waypoints in the first place. In complex mazes, value noise tricks the manager into proposing subgoals stuck in dead ends or inside walls. The authors ask: Can we keep the hierarchy, but ditch value-based high-level guidance?

Methods

Enter Diffusion Subgoal Planning (DSP), a two-level framework that splits generative planning from value-based execution.

  • What’s standard (Low-Level Worker): DSP keeps the low-level policy and implicit Q-learning value setup from prior work (specifically HIQL). Because low-level execution only cares about reaching nearby waypoints $k$ steps away, local value estimates are clean enough to train the action policy via advantage-weighted regression.
  • What’s new (High-Level Generative Manager): Instead of querying a value function to pick subgoals, DSP frames waypoint selection as probabilistic inference using flow matching (a deterministic cousin of diffusion models that learns a velocity field to transport random noise into realistic states).

During training, a single network learns two things via random goal-dropout: an unconditional velocity field (what subgoals are naturally reachable from here in the dataset?) and a goal-conditioned velocity field (what subgoals lead toward the target $g$?). At test time, DSP blends the two using Classifier-Free Guidance (CFG)—pushing the generated waypoint away from generic reachable states and toward goal-relevant ones using a guidance dial $\omega$.

DSP Training and Inference Algorithms

Datasets

The authors evaluate DSP on OGBench, an offline GCRL benchmark built to stress-test long-horizon reasoning, trajectory stitching, and multi-goal composition across 18 datasets:

  • Locomotion: Maze navigation (medium, large, giant, and teleport layouts) controlling point masses, ant quadrupeds, and high-dimensional humanoid bodies, plus antsoccer (navigating while dribbling a ball).
  • Manipulation: A 6-DoF robotic arm interacting with objects in cube (single/double), scene-play (buttons, drawers, windows), and puzzle ($3\times3$ and $4\times4$ combinatorial tasks).

Key Insights and Ideas

  • Cutting the horizon-noise cord: Using a 1D mathematical toy model, the authors prove that traditional hierarchical planners still suffer from an error path that scales with the total task distance divided by step size ($T/k$). As tasks get longer, value-based direction picking degrades toward a coin flip. DSP severs this explicit value-noise path at the high level.
  • CFG is secretly RL policy extraction: In one of the paper's neatest theoretical "aha" moments, the authors prove that applying Classifier-Free Guidance to relabeled offline trajectories mathematically equals implicit relative-advantage-weighted policy extraction. Subtracting the unconditional flow from the conditional flow amplifies high-advantage subgoals in the exact same order a true value function would—without ever computing a noisy high-level value!
  • Topology-respecting trajectories: Because generative models naturally hug the distribution of the training data, DSP proposes smooth waypoints through valid corridors rather than hallucinating shortcuts through walls.
Comparing high-level subgoals: Value-based HIQL gets trapped in local optima (red box), while DSP generates smooth, topologically valid paths.

Key Results

Across 18 OGBench tasks, DSP achieves the highest overall aggregate score (1090.2), outperforming strong hierarchical baselines like OTA (920.4), Pi-HIQL (658.0), and standard HIQL (648.0).

  • Long-horizon navigation shines: On antmaze-medium, DSP hits a near-perfect 98.4% success rate. On antsoccer-arena, where dynamics are coupled with an external object, DSP reaches 76.6% compared to HIQL's 60.6% and OTA's 39.8%.
  • Multi-step manipulation: While flat policies remain slightly better on compact, local tasks like cube-single (GCIVL gets 53.4% vs. DSP's 41.0%), DSP dominates tasks requiring sequential coordination—scoring 62.6% on scene-play (vs. HIQL's 37.2%) and 27.6% on puzzle-4x4 (nearly doubling Pi-HIQL's 13.6%).

Limitations and Future Work

  • No hard feasibility guarantee (The Guidance Trade-off): Cranking up the guidance scale $\omega$ isn't a free lunch. In an ablation on AntMaze-Giant and Scene-Play, moderate guidance ($\omega = 3$ or $5$) boosted task success by over 23 percentage points compared to unguided conditional generation ($\omega = 1$). However, pushing $\omega$ to 10 shoved generated subgoals off the training data manifold—causing state validity, low-level reachability, and overall task success to plummet.
  • Horizon still matters: The authors candidly note that removing value noise doesn't make DSP immune to task length; if offline data coverage is sparse over massive horizons, the learned generative distribution itself can still degrade. Future directions are not explicitly discussed in the main text.

Summary updated

Abstract

Offline goal-conditioned reinforcement learning (GCRL) learns goal-directed policies from reward-free data, but in long-horizon tasks, goal-conditioned value functions often provide unstable guidance due to sparse rewards and discounting. Hierarchical methods partially mitigate this issue via subgoal decomposition; however, high-level decision-making still relies on noise-sensitive value estimates, leading to unstable behavior in complex environments. We address this limitation by proposing \textbf{D}iffusion \textbf{S}ubgoal \textbf{P}lanning (\textbf{DSP}), a diffusion-based framework for high-level subgoal generation. DSP casts high-level planning as guided generative inference over goal-conditioned subgoals and learns both conditional and unconditional flows, enabling classifier-free guidance to introduce a goal-directed bias at inference time. By removing explicit value-based guidance from high-level planning, DSP generates reachable and goal-directed subgoals through a generative model while retaining hierarchical execution. Experiments on offline GCRL benchmarks demonstrate that DSP outperforms prior methods on a range of navigation and manipulation tasks, with particularly strong performance in maze environments that require multi-step subgoal planning.
BibTeX
@inproceedings{zhang2026diffusion,
  author = {Hengrui Zhang and Yuhu Cheng and C.L.Philip Chen and Xuesong Wang},
  title = {{Diffusion Subgoal Planning for Long-Horizon Offline Goal-Conditioned Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ezp2TvIFGP},
}
Figure