Compositional Diffusion with
Maximal-Noise Transitions for Long-Horizon Planning

Under Review

TL;DR:  Compositional diffusion can average incompatible local modes into an infeasible plan. MaxCD changes the sampling transition on overlaps to reduce persistent mode-averaging, without retraining or additional denoiser evaluations.

Success rate versus planning time for CompDiffuser, ECD, CDGS and MaxCD

Planning success and runtime. Success rates and per-plan runtimes averaged over PointMaze-Giant-Stitch and AntMaze-Giant-Stitch. CDGS adds denoiser evaluations for resampling and candidate ranking, while ECD adds corrections to the composed plan. On these two mazes, MaxCD achieves the highest success rate among the compared methods with 7–10% more planning time than CompDiffuser and no additional denoiser evaluations.

Mode-Averaging Problem in Compositional Diffusion

When local plan distributions are multimodal, neighboring local plans may be denoised toward incompatible modes. A local plan conditioned on these neighbors through its overlaps can then have a denoised estimate between the modes, in a low-density region. The composed plan can therefore be infeasible even when each mode represents feasible local behavior. In the circular-arc example, the local diffusion model is trained on short segments along the circle, and three overlapping local plans are composed to connect the start start and goal goal. A trajectory is valid when all its states and segment midpoints lie within the shaded ring, so feasible plans follow either the upper or the lower half of the circle. Invalid plans are drawn in red. CompDiffuser often generates trajectories through the interior of the circle, where they depart from the regions supported by the training data, and increasing the number of denoising steps does not reliably resolve this. Using the same trained model and composition rule, MaxCD produces more valid plans along the circle.

Recorded denoising of 100 composed plans (400 steps, same initial noise). Each frame shows the actual noisy plans at that step; the counts are the plans currently inside the ring. Left: CompDiffuser. Right: MaxCD.

Blue, purple and red training trajectory segments on a circle, with three positions per segment

Training segments. Short segments, each represented by three positions along a 60° arc.

Valid rate across denoising step counts for MaxCD and CompDiffuser

Valid rate vs. denoising steps. With more denoising steps, the valid rate improves substantially for MaxCD but remains low for CompDiffuser.


Persistence of Mode-Averaging Under the Sampling Transition

Let yj(t) denote local plan j at denoising step t. The sampling transition combines the denoised estimate, the noise direction predicted from the current state, and fresh Gaussian noise:

y_j at t-1 equals sqrt(alpha at t-1) times the denoised estimate y-hat_j,0 at t, plus sqrt(1 minus alpha at t-1 minus sigma_t squared) times epsilon_theta(y_j at t, t), plus sigma_t times z

Scroll equations horizontally to read all terms.

The predicted noise direction is computed from the current noisy state and reused to construct the next state. Substituting the definition of the denoised estimate makes this dependence explicit:

y_j at t-1 equals c_t times y_j at t, plus (sqrt(alpha at t-1) minus c_t sqrt(alpha at t)) times the denoised estimate y-hat_j,0 at t, plus sigma_t times z

where c_t = sqrt((1 - alpha_{t-1} - sigma_t^2) / (1 - alpha_t)). For a fixed denoised estimate, the retained state component ctyj(t) carries part of the current noisy state into the next state, even when fresh Gaussian noise is added. Increasing the noise standard deviation σt reduces ct. At the maximal admissible value, sigma_t = sqrt(1 - alpha_{t-1}), the coefficient becomes zero. The denoised estimate still depends on the current plan and its neighbors. In the local model analyzed in Proposition 1, the denoised estimate stays at the midpoint between two incompatible modes while an overlap coordinate is in the mode-averaged region. Maximal-noise transitions minimize the probability of remaining in this region throughout a fixed sequence of denoising steps. Retaining the predicted noise direction increases this probability under the same model.


Maximal-Noise Transitions on Overlaps

Motivated by this analysis, Maximal-Noise Compositional Diffusion (MaxCD) applies maximal-noise transitions to the overlaps of local plans. Setting sigma_t = sqrt(1 minus alpha at t-1) removes the predicted noise direction and gives the full-band maximal-noise candidate:

The candidate y-bar_j at t-1 equals sqrt(alpha at t-1) times the denoised estimate y-hat_j,0 at t, plus sqrt(1 minus alpha at t-1) times independent standard Gaussian noise z

Scroll the equation horizontally to read all terms.

Here z is standard Gaussian noise sampled independently at each transition. Subsequent denoising conditioned on neighboring local plans can move the overlap estimate away from a mode-averaged state toward a supported mode.

Preserving fine details

The denoised estimate used in the maximal-noise transition approximates a posterior mean, in which uncertain fine details can be averaged out. Repeatedly applying this transition across all frequency components can therefore suppress fine details. To preserve them, a spectral split applies maximal-noise transitions to low-frequency components, which can revise coarse trajectory geometry, and retains the original transition for high-frequency components. The split is taken along the local-plan horizon in planning and along the spatial dimensions in panorama generation.

Panorama crops from the same prompt and seed: full-band maximal noise above, spectral split below

Effect of the spectral split. Same prompt and seed. Top: full-band maximal noise over-smooths the image. Bottom: the spectral split preserves fine details.

Compositional update

Neighboring local plans exchange information through their overlaps. We apply the candidate with the spectral split to the overlap coordinates of interior local plans and retain the original transition elsewhere. The start- and goal-conditioned plans keep the original transition throughout. The update is used only while t/T > γ, reserving the low-noise stages for refinement with the original transition. Both candidates reuse the same denoised estimate and noise prediction, so MaxCD requires no retraining or additional denoiser evaluations. The main OGBench success-rate and panorama experiments use a common noise-level threshold γ = 0.2 and spectral bandwidth ρ = 0.25, without tuning these hyperparameters separately for each task.

Sampling procedures of CompDiffuser, CDGS and MaxCD, showing the spectral split, overlap mask and noise-level threshold

Overview of MaxCD, compared with CompDiffuser and CDGS. Top: CompDiffuser applies the original transition at each denoising step. Middle: CDGS performs U resampling iterations before evaluating and repopulating candidate plans. Bottom: MaxCD replaces the predicted noise direction with fresh Gaussian noise in the low-frequency components, while retaining the original transition for high-frequency components. The update applies to overlap coordinates (cyan) only when t/T > γ, with the original transition retained elsewhere and during final refinement.


Plan Feasibility Analysis

We sample 20 plans for each of the five test-time tasks in AntMaze-Giant-Stitch and measure the valid plan rate, the fraction of plans that do not pass through maze walls, for CompDiffuser (CD), ECD, CDGS and MaxCD with the same pretrained local model and start and goal conditions. CompDiffuser produces many infeasible plans that pass through walls, while MaxCD generates more valid plans that follow the corridors. In the paper's AntMaze comparison, MaxCD raises the mean valid plan rate from 36% to 86% across the five tasks. The appendix provides the same comparison on PointMaze-Giant-Stitch.

Denoising on AntMaze-Giant-Stitch, Task 4. Recorded noisy plans at steps 0–50 for the same start and goal. Plans passing through walls are red, and wall-valid plans are green.
Maze
Plan feasibility comparison, five tasks by four methods

Plan feasibility on the maze selected above. Rows are Tasks 1–5 and columns are CD, ECD, CDGS and MaxCD. Each panel shows 20 plans from the start start to the goal goal; plans crossing walls are red, valid plans are green, and the percentages are the valid plan rates.


Qualitative Results in OGBench

These videos show MaxCD plans executed in the five evaluation tasks of each environment. PointMaze, AntMaze and HumanoidMaze use plans in the 2D x–y position space, executed with a PD controller for PointMaze and learned inverse dynamics models for AntMaze and HumanoidMaze. AntSoccer uses a 17D planner that includes the ant and ball positions and the joint positions of the ant, together with an inverse dynamics model. Cube uses full-state plans executed by goal-conditioned Diffusion Q-Learning policies. Blue, pink and yellow markers indicate the start, goal and current planned subgoal. In Cube, translucent cubes show the goal configuration and dotted traces show the executed cube positions. Failed episodes are labeled when the recorded rollout set contains no successful episode for that task.

Environment
Maze
Task 1
Task 2
Task 3
Task 4
Task 5


Panoramic Image Generation

The same transition applies to image composition. We generate 512 × 4608 panoramas by composing 17 overlapping 512 × 512 windows of Stable Diffusion 2.0 with 50% overlap. MaxCD is applied to GSC using the spatial-frequency spectral split on the shared panorama latent. In the paper's evaluation, MaxCD improves visual consistency and prompt alignment over GSC with nearly the same generation time. Select a prompt to view an example generated by MaxCD.

Prompt

MaxCD

MaxCD panorama

Denoising Process

GSC and MaxCD generate the selected prompt from the same initial noise over 50 denoising steps. Each frame shows the decoded noisy panorama latent at that step.

Prompt

GSC (original transition)

MaxCD (with the spectral split)

0.0 / 0.0 s

Conclusion

MaxCD addresses persistent mode-averaging by changing the sampling transition on overlaps. The spectral split preserves the original transition on high-frequency components, with no retraining or additional denoiser evaluations. Experiments show improved plan feasibility and higher success rates on challenging locomotion and object manipulation tasks, with substantial gains on the Giant mazes. The same transition improves visual consistency and prompt alignment in panorama generation with nearly the same generation time as the base sampler.