DiffPlanner: Adaptive Online Diffusion Planning
- DiffPlanner is an adaptive online replanning framework that utilizes diffusion models and likelihood-based criteria to decide when to repair or replace trajectories.
- It features two replanning operators—‘replan with future context’ and ‘replan from scratch’—to balance repair efficiency with trajectory fidelity.
- Empirical results on Maze2D, stochastic locomotion, and robotic control benchmarks demonstrate significant performance gains over fixed-interval replanning.
Searching arXiv for the primary paper and related usages of “DiffPlanner” to ground the article in current literature. DiffPlanner most commonly denotes the adaptive online replanning framework introduced in “Adaptive Online Replanning with Diffusion Models,” where a diffusion planner is converted from a one-shot trajectory generator into an online control layer that monitors whether the currently executed plan still appears feasible, decides when replanning should occur, and edits existing trajectories rather than discarding them outright (Zhou et al., 2023). In this formulation, the central question is not only how to plan with diffusion models, but when to replan, and how to preserve useful structure—especially the original goal state—during repair. The name is also context-dependent in later literature: it reappears in autonomous driving for a transformer-based diffusion planner with flexible guidance (Zheng et al., 26 Jan 2025) and for an open-source modular benchmark inside Autoware (Li et al., 1 Mar 2026).
1. Problem setting and motivation
DiffPlanner is posed in a standard trajectory-optimization setting over state-action trajectories
with stochastic dynamics
and an objective of finding an action sequence maximizing expected return,
As in Diffuser and Decision Diffuser, the planner operates over state-action trajectories and actions are recovered via inverse dynamics from the planned states (Zhou et al., 2023).
The motivation for adaptive replanning is specific to diffusion planners. They are strong at generating complete trajectories, but those trajectories often become invalid during execution because of stochastic transitions, action noise, partial observability, or external changes. Direct open-loop execution causes small errors to accumulate. Replanning naively at every timestep is also undesirable because diffusion sampling is expensive, and frequent switching between newly sampled plans can prevent consistent progress toward any particular goal. DiffPlanner addresses this tension by treating replanning as an online decision problem rather than a fixed schedule.
This framing shifts diffusion planning from single-shot sequence generation to closed-loop control. The diffusion model is used not only to synthesize candidate trajectories, but also to assess whether the current plan still lies on a plausible trajectory manifold for the task.
2. Likelihood-based replanning criterion
The central mechanism for deciding when to replan is a likelihood estimate of the partially executed trajectory under the diffusion model. Let denote the trajectory after replacing executed planned states with observed states: The underlying intuition is that a feasible trajectory should be easy for the diffusion model to denoise or explain, whereas an infeasible one should have low model likelihood (Zhou et al., 2023).
The score is constructed using the same variational denoising objective as Diffuser. For diffusion step , the method corrupts the trajectory with the forward process , then compares the posterior denoising distribution with the model’s reverse transition using
This is evaluated at several fixed diffusion depths and averaged into
The decision policy is a two-threshold scheme.
| Outcome | Trigger | Action |
|---|---|---|
| Continue | Otherwise | Keep executing current plan |
| Replan with future | 0 | Cheap local repair |
| Replan from scratch | 1 or fixed horizon interval reached | Full reverse-diffusion resampling |
In the algorithm, there are two thresholds: a stricter one 2 for “replan from scratch” and a looser one 3 for “replan with future” (with 4). The thresholds used in experiments are 5 for replan-from-scratch and 6 for replan-with-future. Likelihood is estimated using diffusion steps 7 for Maze2D and stochastic environments, and 8 for RLBench (Zhou et al., 2023).
This criterion is the main difference from fixed-interval replanning. Rather than assuming that deviation grows uniformly with time, DiffPlanner asks whether the current plan remains explainable under the learned generative model.
3. Replanning operators and online execution
DiffPlanner provides two primary replanning operators. The first is “replan from scratch.” It ignores the old sample, initializes
9
and runs the full reverse diffusion process for 0 steps,
1
while enforcing the task conditions 2 at each denoising step. This is the most expressive option, but also the most expensive (Zhou et al., 2023).
The second, and preferred, mechanism is “replan with future context.” Here the method repairs only the future portion of the current trajectory while preserving the already executed prefix and the original goal information carried by the tail. If 3 denotes the partially executed plan, the method constructs
4
padding the remainder with repeated copies of the last predicted state-action so that the input length matches the diffusion model. It then applies the forward noising process for only 5 steps,
6
followed by reverse denoising for 7 steps with the same conditioning 8: 9
This operator functions as trajectory editing. It keeps the executed prefix fixed through observation replacement, rewrites the future, and retains goal information encoded in the tail. The paper also discusses “replan from previous context,” which keeps the executed prefix and locally repairs the rest, but empirically finds future-context replanning to work better (Zhou et al., 2023).
At test time, the complete loop is: sample a fresh trajectory; execute one step; replace the planned next state with the observed state; compute the likelihood score 0; then either keep executing, locally repair the tail, or fully resample depending on the score and schedule. The resulting planner is therefore an online controller with a built-in feasibility detector.
4. Empirical behavior and implementation profile
The strongest empirical gains appear on long-horizon planning benchmarks. On Maze2D, the reported scores for the adaptive replanning method are 1 on U-Maze, 2 on Medium, and 3 on Large, compared with Diffuser’s 4, 5, and 6, respectively. The paper summarizes this as a 7 gain over Diffuser on average across Maze2D tasks, and about 8 on the Large setting (Zhou et al., 2023). Qualitatively, the method replans around walls and infeasible branches, whereas fixed-interval replanning can continue following a bad trajectory and waste steps.
On stochastic control tasks, the method is evaluated on a stochastic version of D4RL locomotion with injected transition randomness. Across Hopper and Walker2d variants, it outperforms Decision Diffuser and is competitive with or better than strong offline RL baselines; the reported average normalized return is 9 for the method versus 0 for Decision Diffuser (Zhou et al., 2023). On RLBench robotic control, across open box, close box, and close fridge, the average success rate is 1, above Decision Diffuser’s 2 and far above BC, IQL, and DT baselines.
Ablations are integral to the method’s interpretation. Fixed-interval replanning can help initially but hurts when it becomes too frequent, because the agent never commits to a coherent long-horizon plan. The likelihood-triggered policy also outperforms simpler thresholding based on state distance or past context only. Among the tested repair strategies, “replan with future context” performs best (Zhou et al., 2023).
Implementation follows the Diffuser or Decision Diffuser temporal U-Net: six residual blocks, temporal convolutions, GroupNorm, and Mish activations. Conditioning and timestep embeddings are 128-dimensional MLP outputs. For RLBench, the visual pipeline uses a pretrained CLIP image encoder followed by a 2-layer MLP. Training uses Adam with learning rate 3, batch size 4, and 5 steps. Planning horizon is 6–7 in Maze2D or Multi2D and 8 in stochastic locomotion and RLBench. Full replanning uses substantially more diffusion steps than repair—for example, 9 versus 0 in Maze2D, 1 versus 2 in stochastic locomotion, and 3 versus 4 in RLBench (Zhou et al., 2023).
5. Assumptions, limitations, and common misunderstandings
A common misunderstanding is to treat DiffPlanner as a new base diffusion planner. The paper states the opposite: the overall contribution is not a new planner per se, but an adaptive online control layer over diffusion planners that decides when to trust the current plan and how to edit it efficiently when trust is lost (Zhou et al., 2023).
Its main assumptions are correspondingly explicit. First, the method depends heavily on the quality of the learned diffusion planner: if the model itself does not capture the task distribution well, its likelihood signal may be unreliable. Second, the likelihood-based criterion can miss some failures; the authors note that some planning failures are insensitive to this score, suggesting that it may be beneficial to combine it with other replanning signals. Third, while local repair is cheaper, it can fail when the current trajectory is too corrupted, in which case a full replan from scratch is necessary.
The principal methodological debate surrounding the framework concerns adaptivity versus regularity. Fixed-interval replanning offers simplicity, but the paper’s ablations show that excessive frequency destabilizes long-horizon commitment. DiffPlanner argues for a model-based notion of feasibility instead: the diffusion model itself becomes the detector for when a plan should no longer be trusted. This suggests a different interpretation of diffusion planning, in which denoising likelihood is not merely a training objective but also an online control signal.
6. Later developments and broader uses of the name
Subsequent work extends or reframes different components of the DiffPlanner agenda. AdaptDiffuser turns diffusion planning into a self-evolving process that generates synthetic expert data under reward guidance and finetunes the planner for better seen-task and unseen-task generalization (Liang et al., 2023). LoMAP focuses on reliability, arguing that guided diffusion planners fail because of manifold deviation and proposing a training-free local projection module that snaps guided samples back to a low-rank approximation of the offline trajectory manifold (Lee et al., 1 Jun 2025). Temporal Diffusion Planner distributes denoising effort across the time dimension, reuses noisy long-horizon plans, and adds an automated replanning mechanism to improve decision frequency by 5–6 times while maintaining higher or comparable performance on D4RL (Guo et al., 26 Nov 2025).
Other lines of work modify the temporal structure of diffusion planning rather than the replanning trigger itself. Mixed Density Diffuser uses non-uniform temporal resolution, replacing a fixed step size with a sequence of tunable jump sizes 7 and reporting state-of-the-art results on Maze2D, Franka Kitchen, and Antmaze (Stambaugh et al., 27 Oct 2025). VH-Diffuser treats the horizon as an instance-specific variable predicted from the start-goal pair, thereby addressing length mismatch in goal-conditioned planning (Liu et al., 15 Sep 2025).
In autonomous driving, the name “DiffPlanner” is used in distinct but related senses. “Diffusion-Based Planning for Autonomous Driving with Flexible Guidance” denotes a transformer-based diffusion planner that jointly models prediction and planning and supports training-free classifier guidance for safety, comfort, speed, and drivable-area constraints (Zheng et al., 26 Jan 2025). “An Open-Source Modular Benchmark for Diffusion-Based Motion Planning in Closed-Loop Autonomous Driving” uses DiffPlanner to refer to a modular benchmark that decomposes a monolithic diffusion planner into three executable ONNX modules, reimplements the DPM-Solver++ loop in native C++, and demonstrates a 8 latency reduction from encoder caching in Autoware or AWSIM closed-loop evaluation (Li et al., 1 Mar 2026). This multiplicity of usage means that the term now denotes a family of diffusion-based planning ideas rather than one uniquely fixed architecture.
Taken together, these developments suggest that the original adaptive online replanning formulation occupies a specific position within a broader research program: it addresses the online trust problem of diffusion planners—when to retain, repair, or replace a plan—while later work addresses orthogonal issues such as manifold fidelity, temporal allocation, variable horizon selection, closed-loop deployment, and real-time systems integration.