NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TrajDiffuse: A Conditional Diffusion Model for Environment-Aware Trajectory Prediction

Qingze Tony Liu, Danrui Li, Samuel S. Sohn, Sejong Yoon, Mubbasir Kapadia, Vladimir PavlovicICPR 2024

TL;DR

This paper introduces TrajDiffuse, a novel diffusion model for trajectory prediction that excels at generating diverse and accurate future paths for agents (vehicles, pedestrians) while strictly adhering to environmental constraints like avoiding collisions. By framing trajectory prediction as a conditional "inpainting" task and incorporating a map-based guidance mechanism, TrajDiffuse achieves state-of-the-art performance on challenging datasets.

What Problem Does This Paper Address?

Predicting where an agent (like a car or pedestrian) will go next is crucial for applications ranging from autonomous driving to urban planning. The challenge lies in generating predictions that are not only accurate but also diverse (capturing multiple possible future paths) and, critically, realistic – meaning they don't collide with the environment or other agents. Existing methods often struggle to balance these requirements, frequently sacrificing environmental compliance for diversity or accuracy. This paper tackles the problem of achieving accurate, diverse, and environmentally compliant trajectory predictions simultaneously.

Methods

TrajDiffuse is built upon the foundation of diffusion models, a class of generative models that have shown great success in image and audio generation. The core idea is to start with random noise and iteratively "denoise" it to produce a desired output.

Here's how TrajDiffuse adapts this for trajectory prediction:

  • Conditional Diffusion: Instead of denoising pure noise, TrajDiffuse conditions the process on the agent's past trajectory and a predicted "intent" (like a goal or intermediate waypoints). This is framed as a "denoising inpainting" task, where the model fills in the missing future trajectory.
  • Planning-Based Approach: The model leverages predicted waypoints and a final goal as conditioning signals, aligning with how humans plan their movements.
  • Map-Based Guidance: A novel component is the "map-based gradient guidance module." This module uses the semantic map of the environment (e.g., roads, sidewalks) to guide the diffusion process. It calculates gradients based on the distance to navigable areas and uses them to push the predicted trajectories away from obstacles, ensuring environmental compliance.
  • U-Net Architecture with Attention: A U-Net architecture, enhanced with cross-channel attention, is used to process the trajectory data and environmental information, enabling effective feature extraction and generation.

Datasets

The authors evaluate TrajDiffuse on two publicly available datasets:

  • nuScenes: A large-scale dataset primarily focused on vehicle trajectories, featuring HD semantic maps.
  • PFSD (Path-Finding Synthetic Dataset): A dataset with simulated trajectories designed to create challenging scenarios with complex path-finding environments and non-linear maneuvers.

Key Insights and Ideas

  • Diffusion Models as "Inpainters" for Trajectories: Framing trajectory prediction as a conditional denoising "inpainting" task is a powerful way to leverage diffusion models for this problem. It allows for direct control over the generation process using past observations and future intent.
  • Map-Based Guidance is Crucial for Realism: Explicitly incorporating environmental constraints through a map-based gradient guidance mechanism is key to achieving realistic and collision-free trajectories, a significant improvement over methods that neglect this aspect.
  • Balancing Accuracy, Diversity, and Feasibility: TrajDiffuse demonstrates that it's possible to achieve a strong balance between prediction accuracy, the diversity of predicted paths, and strict adherence to environmental constraints, a trade-off that has plagued previous approaches.
  • Intent Prediction is Key, but Needs Guidance: While using predicted intent (goals/waypoints) is beneficial, the quality of these predictions can still lead to issues. TrajDiffuse's guidance mechanism helps correct for imperfect intent predictions, making the final output more robust.

Key Results

  • State-of-the-Art Performance: TrajDiffuse achieves state-of-the-art (SOTA) or near-SOTA performance across multiple metrics on both the PFSD and nuScenes datasets, including accuracy (ADE, FDE), likelihood (KDE NLL), environmental compliance (ECFL), and diversity (MVE).
  • Superior Environmental Compliance: The model significantly outperforms other methods in Environmental Collision-Free Likelihood (ECFL), often achieving near-perfect scores, indicating its strong ability to avoid collisions.
  • Competitive Diversity: While not always achieving the absolute highest diversity scores, TrajDiffuse maintains competitive diversity while prioritizing feasibility, unlike some methods that sacrifice realism for diversity.
  • Faster Inference: TrajDiffuse demonstrates faster inference times compared to some diffusion-based and other SOTA models, attributed to its "diffusion-as-interpolation" approach and fewer diffusion steps.

Limitations and Future Work

  • Dependency on Intent Prediction: The performance of TrajDiffuse is still dependent on the quality of the predicted intent (waypoints and goal). If these predictions are significantly flawed, the model may struggle. The authors suggest developing a more integrated waypoint prediction module as a future direction.
  • Social Compliance in Dense Scenarios: In very dense multi-agent scenarios (like PFSD), TrajDiffuse's independent prediction approach, while strong in other aspects, lags behind joint prediction models in social compliance (ACFL). The authors suggest exploring multi-agent interaction modeling for future work.
  • Integrating Other Dynamic Scene Elements: The framework could be extended to incorporate other dynamic scene elements and HD-maps more comprehensively.
  • Agent-Agent Interactions: Explicitly modeling interactions between agents is a promising avenue for future research.

Summary updated

BibTeX
@inproceedings{liu2024trajdiffuse,
  author = {Qingze Tony Liu and Danrui Li and Samuel S. Sohn and Sejong Yoon and Mubbasir Kapadia and Vladimir Pavlovic},
  title = {{TrajDiffuse: A Conditional Diffusion Model for Environment-Aware Trajectory Prediction}},
  booktitle = {ICPR},
  year = {2024},
  url = {https://openreview.net/forum?id=a977myvRkW},
}
Figure