TL;DR
Refining Compositional Diffusion (RCD) is a training-free guidance method that enables reliable long-horizon trajectory planning by stitching together short-horizon diffusion models. By leveraging a pretrained model's own self-reconstruction error and boundary consistency as gradient signals, RCD eliminates the classic "mode-averaging" failure where planners blend incompatible paths into physically impossible trajectories. It achieves state-of-the-art success rates on complex locomotion and manipulation tasks while running an order of magnitude faster than search-based alternatives.
What Problem Does This Paper Address?
Diffusion models excel at trajectory planning by generating paths directly from data distributions. However, their effectiveness is fundamentally limited by the horizon of their training data; collecting expert demonstrations for every possible long-horizon start-to-goal combination is prohibitively expensive.
To scale up, "compositional" approaches break long trajectories into short, overlapping segments modeled by a single short-horizon diffusion network. At inference time, these segments are stitched together by averaging their score functions (noise predictions) where they overlap.
The fatal flaw in this strategy appears when the local plan distribution is multimodal (e.g., a corridor junction where an agent can turn left or right). If adjacent segments independently commit to different, incompatible paths, averaging their scores cancels out the directional signals. The planner gets stranded in a low-density, physically impossible region—effectively trying to walk straight through a wall.
Prior solutions like CDGS rely on heavy population-based search and post-hoc pruning, which are computationally expensive and don't directly fix the underlying denoising process.
Methods
The authors introduce Refining Compositional Diffusion (RCD), a training-free guidance framework that directly steers the denoising process toward high-density, globally coherent plans using two complementary, zero-shot signals:
- Self-Reconstruction Error ($E_{recon}$): RCD exploits an intrinsic property of diffusion models: samples from high-density regions of the data manifold reconstruct faithfully after a brief noise-denoise cycle, while mode-averaged artifacts do not. Using Tweedie’s formula to estimate the clean trajectory at each denoising step, RCD injects a small amount of noise and measures how well the model can reconstruct the plan. The authors formally prove that minimizing this error is directionally aligned with maximizing the trajectory's log-density (via the diffusion Evidence Lower Bound, or ELBO).
- Overlap Consistency ($E_{ov}$): While $E_{recon}$ ensures global fidelity, $E_{ov}$ targets local boundaries. It penalizes score disagreements between adjacent segments on their shared variables, acting as a relaxation of the hard marginal consistency constraint in factor graphs.
By combining these terms ($E_{RCD} = E_{recon} + \lambda_{ov}E_{ov}$), RCD computes a guidance gradient that corrects the standard reverse diffusion step, tilting the sampling distribution toward realistic, physically feasible paths.
Datasets
RCD was rigorously evaluated on OGBench, a benchmark specifically designed for offline goal-conditioned reinforcement learning and long-horizon composition. The evaluation spanned three distinct task categories using "Stitch" datasets (constructed from short, unconnected trajectory fragments):
- Locomotion: PointMaze, AntMaze, and HumanoidMaze across Medium, Large, and Giant maze configurations.
- Object Manipulation: Multi-cube manipulation (Single, Double, Triple, Quadruple pick-and-place tasks) and AntSoccer.
- Pixel-based Observations: Visual AntMaze (Medium and Large) where planning is performed in a learned 16-dimensional latent space from $64 \times 64$ RGB images.
Key Insights and Ideas
- The Model is Its Own Critic: A pretrained diffusion model already possesses the density information needed to evaluate its own generations. We don't need to train auxiliary classifiers or value functions; we just need to look at the model's self-reconstruction error.
- Parallel Over Sequential Processing: Unlike prior methods that sequentially sweep through segments to propagate context (like CompDiffuser) or repeatedly resample populations (like CDGS), RCD evaluates all segments simultaneously in a single batched network call per denoising step. This makes it incredibly fast.
- Latent Space Robustness: RCD's self-reconstruction error provides a meaningful density signal even when the original pixel-level structure is abstracted away into a highly compressed VAE latent space.
Key Results
- High Plan Feasibility: In the challenging
AntMaze-Giant-Stitchtask, RCD achieved valid plan rates (trajectories that don't penetrate walls) of 85% to 100%, compared to CompDiffuser's dismal 15% to 60%. - Superior Success Rates: RCD consistently outperformed both offline RL baselines and prior compositional diffusion planners. Notably, on
PointMaze-Giant-Stitch, RCD achieved a 100% success rate, outperforming CompDiffuser (69%) and CDGS (74%). - Massive Speedups: Because RCD avoids population-based resampling and processes segments in parallel, it runs an order of magnitude faster than search-based alternatives like CDGS (e.g., 4.6 seconds vs. 56.7 seconds on AntMaze-Giant).
Limitations and Future Work
- Chain-Structured Assumption: RCD currently operates within the Bethe factor graph framework, which assumes a simple chain of sequentially overlapping segments. Extending this guidance to more complex compositional structures (like hierarchical abstractions or factor graphs with loops) remains an open challenge.
- Fixed Planning Horizon: The number of local segments ($M$) must be pre-specified at inference time. A compelling future direction is to adaptively expand or contract the planning horizon dynamically by monitoring the self-reconstruction error during generation.
Summary updated