Spatially Conditioned Trajectory Diffusion

Yefim Nudelman, Dor Atzmon, Tom TirerarXiv 2026 · arXiv

TL;DR

Spatially Conditioned Trajectory Diffusion (SCTD) is a novel generative model for robot motion planning that "sees" its environment through a grid of spatial tokens. By integrating map geometry directly into the diffusion process via cross-attention, it generates smooth, obstacle-aware trajectories without the need for computationally expensive sampling-time guidance, significantly outperforming existing baselines in complex multi-robot scenarios.

What Problem Does This Paper Address?

Multi-Robot Motion Planning (MRMP) is a classic "double-whammy" challenge: robots must navigate around static environmental obstacles while simultaneously avoiding collisions with each other.

Current diffusion-based planners typically handle obstacles in one of two ways. Some use sampling-time guidance, which essentially "nudges" the trajectory away from obstacles using cost-function gradients during every step of the denoising process. This is slow and often results in jagged, unnatural paths. Others use global map embeddings, compressing the entire workspace into a single vector, which often loses the fine-grained spatial detail needed to navigate tight corners or complex detours.

SCTD aims to bridge this gap by creating a model that is inherently aware of the workspace geometry, allowing it to "route" trajectories naturally through free space.

Methods

The core innovation of SCTD lies in how it represents and queries the environment:

  1. Spatial Map Tokens: Instead of a single vector, a convolutional encoder transforms a 2D occupancy grid into a 16x16 grid of "spatial tokens." Each token contains features describing a specific region of the workspace.
  2. Cross-Attention Architecture: The model uses a temporal U-Net as its denoiser. Throughout the network, trajectory features use cross-attention to query these spatial tokens. This allows the model to "look" at specific parts of the map relevant to the current segment of the path it is generating.
  3. Two-Stage Training:
    • Stage 1: The map encoder is pretrained to predict Signed Distance Functions (SDF). This forces the encoder to learn a rich geometric representation of the obstacles.
  4. Stage 2: The encoder and the diffusion model are trained jointly on expert trajectories (generated via RRTConnect and optimized with GPMP2).
  5. Multi-Robot Coordination: For multi-robot tasks, SCTD is plugged into a high-level Conflict-Based Search (CBS) framework. While the model handles static obstacles through its internal conditioning, it uses lightweight inter-agent guidance to resolve conflicts between robots.
The SCTD training and inference pipeline.

Datasets

The authors evaluated SCTD using several benchmarks:

  • Procedural Environments: A large-scale dataset of 45,450 maps containing random disks and rectangles, used for training and primary evaluation.
  • Held-out Tasks: 15,000 tasks on 500 maps never seen during training.
  • Out-of-Distribution (OOD) Scenes: The model was tested on the "Conveyor" and "Highways" environments from the MMD paper, but with new, unseen obstacles added to block standard routes.

Key Insights and Ideas

  • Spatial Awareness > Global Compression: The "aha moment" is that maintaining the spatial structure of the map (via tokens) is far more effective than compressing it. An ablation study showed that SCTD’s spatial tokens achieved a 73.7% success rate on hard detours, while a global embedding model managed only 2.6%.
  • Conditioning vs. Guidance: By making the model map-aware internally, the authors could disable static-obstacle guidance. This is the "secret sauce" for trajectory quality; because the model isn't being "pushed" by gradients, it produces much smoother, more natural-looking paths.
  • Zero-Shot Generalization: Even though the model was trained on simple procedural maps, it generalized remarkably well to complex OOD environments (like the Highways scene) simply by being provided with the updated occupancy grid.
Qualitative comparison of SCTD and MPD on a hard-detour task.

Key Results

  • Higher Success Rates: On 15,000 held-out tasks, SCTD achieved a 90.5% success rate on the first sample, compared to 82.3% for the popular Motion Planning Diffusion (MPD) baseline.
  • Hard Detours: The performance gap widened on difficult tasks. On "hard-detour" scenarios, SCTD’s success rate was 72.7% vs. MPD’s 33.8%.
  • Superior Smoothness: SCTD trajectories are significantly smoother. The average maximum turn angle for SCTD was 17.8°, whereas MPD (relying on guidance) produced much sharper turns averaging 125.6°.
  • Multi-Robot Scaling: When integrated with CBS, SCTD outperformed both MMD and SMD baselines across all team sizes, successfully planning for teams of up to 15 robots.
Multi-robot trajectory comparisons for teams of 6, 9, and 15 robots.

Limitations and Future Work

  • Fixed Horizon: The current model generates trajectories with a fixed length of 64 waypoints. This might be inefficient for very short paths or insufficient for extremely long, winding ones.
  • 2D Constraints: The evaluation was limited to 2D planar workspaces. Extending this to 3D (e.g., for drones) would require 3D spatial tokens (voxels), which would increase computational complexity.
  • Static Map Assumption: While the model handles new obstacles well, it assumes the map is provided as a static occupancy grid at the start of planning. Integrating real-time sensor data (like point clouds) directly into the spatial tokens is a promising future direction.

Summary updated

Abstract

Multi-Robot Motion Planning (MRMP) requires trajectories that avoid environmental obstacles and collisions between robots in a shared workspace. Diffusion-based planners often address obstacle avoidance through sampling-time guidance, while some conditioned approaches aggregate map geometry into a global representation. We present Spatially Conditioned Trajectory Diffusion (SCTD), a map-conditioned trajectory generator for multi-robot planning. SCTD retains multiple position-aware occupancy tokens accessed through cross-attention throughout a temporal U-Net, with hard endpoint inpainting enforcing start and goal states. One model trained on single-robot demonstrations across procedural environments generates obstacle-aware trajectories without sampling-time obstacle-cost guidance. High-level Conflict-Based Search (CBS) coordinates these trajectories through constrained replanning, retaining inter-agent guidance during sampling and reusing the model across workspace layouts and team sizes. Experiments assess single-robot success and trajectory quality, generalization to unfamiliar layouts with added obstacles, and coordinated multi-robot planning. On 15,000 held-out tasks, SCTD achieves higher success than the evaluated guided diffusion baseline, with the largest gains on hard-detour tasks, while trajectory-quality comparisons show smoother trajectories. Conditioning ablations show higher success with spatial tokens than with a global map embedding, and map-replacement tests demonstrate dependence on the supplied geometry. The resulting multi-robot system achieves higher team success than the compared diffusion baselines, with experiments covering teams of up to 15 robots.
BibTeX
@misc{nudelman2026spatially,
  author = {Yefim Nudelman and Dor Atzmon and Tom Tirer},
  title = {{Spatially Conditioned Trajectory Diffusion}},
  year = {2026},
  eprint = {2611.26127},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.26127},
}
Figure