Long-Horizon Online Planning via Temporal Hierarchical Diffusion

Juyan Zhang, Rhys Newbury, Tin Tran, Hanna Kurniawati, Dana Kulic, Michael BurkearXiv 2026

TL;DR

Diffusion models are great at planning robot trajectories from demonstrations, but generating long plans in real time is painfully slow. Temporal Hierarchical Diffusion (THD) fixes this by planning like a telescope: it sketches a sparse path to a distant goal, then recursively zooms in only on the immediate next steps. This cuts per-step planning cost to $\mathcal{O}(\log T)$, letting a 7-DoF robot arm plan in joint space at up to 160 Hz—with no value functions required.

What Problem Does This Paper Address?

Learning to plan from demonstrations frees us from hand-crafting environment maps and physics models, and diffusion planners are a popular choice because they naturally capture multimodal trajectories (like going left or right around an obstacle).

However, running diffusion planners online over long horizons is a computational bottleneck:

  • Flat planners (like Diffusion Forcing) generate one short, fixed-length trajectory chunk at a time. Because each chunk only sees a local window, they tend to lose track of distant goals unless propped up by external signals, such as a value function or goal-aware guidance.
  • Hierarchical planners (like Simple Hierarchical Diffuser) solve the goal-tracking problem by generating sparse subgoals first and filling in the gaps. The catch? Existing methods expand the entire dense trajectory at every replanning step. Their compute cost still scales with the total horizon $T$, making them too slow for fast, online control.

Methods

THD organizes a trajectory of length $T$ as a $K$-ary tree and introduces left-recursive inference to keep planning fast:

  1. Global Anchoring: Given the current state and a distant goal, a single diffusion model $M_\theta$ generates $K$ sparse waypoints spanning the entire horizon.
  2. Left-Recursive Refinement: Instead of filling in every segment, THD only zooms in on the leftmost segment (between the current state and the first waypoint), treating it as a smaller subproblem. It repeats this for $L$ levels until the immediate next steps are dense enough for execution, while distant segments remain sparse.
  3. Resolution-Aware Training: To handle any level of the tree with one model, THD conditions $M_\theta$ on a log-normalized temporal resolution $h$ representing how many steps lie between the start and goal.
  4. Online Reuse & Path Shortcutting: As the robot executes the dense local plan, it reuses previously generated waypoints as local goals, keeping per-step planning at $\mathcal{O}(\log T)$. An optional Online Path Shortcutting module checks in parallel if the robot has reached a state planned for later; if so, it jumps ahead and discards the intermediate detour.
Fig. 2: Left-recursive inference in Temporal Hierarchical Diffusion (THD). A long-horizon trajectory is decomposed into a tree with a fixed branching factor K; we use K = 4 to illustrate left recursion, where K is the number of nodes in each denoising call, including the start and goal states. Nodes: double-lined blue and red circles are the start state (0) and the goal state (T); single-lined blue circles are intermediate subgoals. Edges: horizontal paths show the temporal order of states in the plan; orange dashed arrows show the hierarchical denoising descent. Factorization: to minimize online latency, THD spends its compute on recursively denoising only the leftmost segment. This yields a dense local plan for immediate execution, while distant segments (gray masks) stay unexpanded as a lightweight sparse global plan. Intuitively, we expect a trade-off in computational complexity and path quality depending on the branching structure.

Datasets

The authors evaluate THD on standard 2D navigation benchmarks and a newly introduced high-dimensional task:

  • D4RL & OGBench: Standard PointMaze and AntMaze navigation tasks across increasing sizes (Umaze, Medium, Large, Giant).
  • PandaMaze (New): A 7-DoF Franka Emika Panda arm must navigate a 12×12 2D maze (PandaMaze-Giant) using 2,000-step trajectories in joint-angle space—tested both in simulation and on a physical robot.

Key Insights and Ideas

  • Tree structure replaces value functions: By anchoring every local segment to sparse global waypoints, THD learns long-term correlations directly from the data, removing the need for external value functions or goal-aware guidance.
  • Lazy refinement pays off: A robot doesn't need a dense, millisecond-by-millisecond plan for what it will do 1,000 steps from now. Refining only the immediate segment drops per-step compute from $\mathcal{O}(T)$ to $\mathcal{O}(\log T)$.
  • Speed compensates for suboptimal paths: Without a value function, THD sometimes inherits suboptimal detours from exploratory demonstrations. Yet its low latency means it still wins on wall-clock time—and online path shortcutting trims many of those detours away.

Key Results

  • OGBench PointMaze: THD matches the 100% success rate of the strongest baseline (PMCTD) on Medium, Large, and Giant mazes, while running 13–42× faster per step (e.g., 13.22 ms vs. 563.99 ms on Giant). With path shortcutting (THD-PS), it achieves the lowest wall-clock time across all three mazes.
  • PandaMaze-Giant (7-DoF): THD reaches a 92% success rate at 14.27 ms/step, far outperforming SHD (52%, offline), Diffusion Forcing (16%), and PMCTD (4%).
  • Physical Franka Panda: Deployed on a real robot arm, THD plans in 7-DoF joint space at ~160 Hz (6 ms/step) and succeeds in all 5 real-world trials on unseen start-goal pairs.
Fig. 3: Physical deployment on a Franka Panda: (a)–(d) snapshots of the pen-holding end-effector tracing the maze over time.

Limitations and Future Work

  • Suboptimal demonstrations: Because THD lacks a value function, it inherits backtracking behavior from exploratory datasets, resulting in longer paths (more execution steps) than value-guided baselines.
  • Controller sensitivity: On AntMaze-Giant with a learned Diffusion-QL controller, THD's backtracking segments caused the controller to overshoot (78% success vs. 86.7% for PMCTD). Swapping in a more robust goal-reaching central pattern generator (CPG) controller boosted THD to 98%, showing that the plans themselves are feasible but can challenge less robust learned controllers.

Summary updated

BibTeX
@misc{zhang2026long,
  author = {Juyan Zhang and Rhys Newbury and Tin Tran and Hanna Kurniawati and Dana Kulic and Michael Burke},
  title = {{Long-Horizon Online Planning via Temporal Hierarchical Diffusion}},
  year = {2026},
  eprint = {2612.00910},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.00910},
}
Figure