State-Covering Trajectory Stitching for Diffusion Planners

Kyowoon Lee, Jaesik Choi

Abstract

Diffusion-based generative models have emerged as a powerful paradigm for long-horizon planning in reinforcement learning. However, these models are often constrained by the quality and diversity of the offline datasets used for training. We present State-Covering Trajectory Stitching (SCoTS), a reward-free framework designed to augment offline datasets by synthesizing long-form trajectories from short, disjoint segments. SCoTS utilizes a temporal distance-preserving latent embedding and a diffusion-based refinement process to create physically consistent and diverse data. Our results demonstrate that SCoTS enables planners to solve tasks far beyond the horizon of the original training data, achieving a 100% success rate on challenging "Giant" maze tasks where traditional models fail.

Introduction

Planning in complex, long-horizon environments remains a fundamental challenge in robotics and reinforcement learning. While diffusion planners have shown promise by generating entire trajectories simultaneously, they suffer from a "data bottleneck." These models typically cannot generalize to trajectories significantly longer or more diverse than those present in their training sets. Existing methods for "stitching" trajectory segments often rely on extrinsic rewards, which are frequently unavailable in real-world or exploratory settings.

Methodology: The SCoTS Framework

SCoTS addresses the data bottleneck through a three-stage pipeline that operates without the need for external reward signals.

1. Temporal Distance-Preserving Embedding

Standard Euclidean distance in state space often fails to capture the true reachability between states. SCoTS learns a latent space where the distance between two points corresponds to their temporal distance (the number of steps required to transition between them). This ensures that segments selected for stitching are dynamically reachable.

2. Directional and Exploratory Stitching

To generate a long trajectory, SCoTS iteratively selects segments from the offline dataset. The selection process is guided by a scoring function that balances two objectives:

  • Progress: Moving toward a target direction in the latent space.
  • Novelty: Prioritizing transitions into less-frequently visited regions of the state space to ensure broad coverage.
A visualization of a long-horizon trajectory synthesized by SCoTS, showing the smooth transition between stitched segments.

3. Diffusion-based Refinement

Directly concatenating segments often results in "jumpy" transitions that violate physical constraints. SCoTS employs a specialized diffusion model, termed the "stitcher," to smooth these connection points. This refinement step ensures that the final augmented trajectories are dynamically consistent and feasible for execution by an agent.

Experimental Evaluation

We evaluated SCoTS using the OGBench benchmark, focusing on PointMaze and AntMaze environments of varying scales (Medium, Large, and Giant). We compared SCoTS-augmented data against standard offline datasets and several baselines, including Compositional Diffuser (CD) and Goal-Conditioned RL (GCIQL).

Comparative analysis of trajectory coverage. SCoTS (Ours) demonstrates superior ability to bridge gaps in offline data compared to the Hierarchical Diffuser (HD) baseline.

Results and Discussion

The experimental results highlight the transformative impact of SCoTS on planning performance. In the "Giant" PointMaze task, a Hierarchical Diffuser trained on SCoTS-augmented data achieved a 100% success rate, a stark contrast to the 0% success rate observed when using the original data. Across all OGBench locomotion tasks, SCoTS maintained an average success rate of 96.8%, outperforming the next best baseline by nearly 20%.

A key insight from our ablation studies is the importance of the novelty score. Without it, the stitching process tends to collapse into a few redundant paths, failing to cover the state space effectively. Furthermore, the diffusion-based refinement step was shown to significantly reduce Dynamic Mean Squared Error (MSE), proving essential for high-fidelity planning.

Conclusion

SCoTS provides a robust, reward-free solution to the data bottleneck in diffusion planning. By leveraging the intrinsic temporal structure of offline data, it enables the generation of high-quality, long-horizon trajectories that significantly enhance the generalization capabilities of RL agents. Future work will explore extending SCoTS to environments with highly asymmetric dynamics and complex object manipulation tasks.

Summary updated

BibTeX
@inproceedings{lee2025state,
  author = {Kyowoon Lee and Jaesik Choi},
  title = {{State-Covering Trajectory Stitching for Diffusion Planners}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=GEzd5K5s5u},
}
Figure