SingularTrajectory: Universal Trajectory Predictor Using Diffusion Model

Inhwan Bae, Young-Jae Park, Hae-Gon Jeon

Introduction

Predicting human movement is a fundamental challenge for autonomous systems, ranging from self-driving vehicles to social robots. Despite significant progress, the field of trajectory prediction remains fragmented into specialized sub-tasks. Models are typically optimized for specific conditions: some focus on stochastic multi-path generation, others on deterministic accuracy, and still others on scenarios with limited data (few-shot) or short-term observations (momentary).

This specialization creates a "generality gap." A model trained for high-fidelity stochastic prediction often fails when presented with only two frames of history or when moved to a new geographical domain. Furthermore, many existing models rely on fixed "anchors"—predefined prototype paths—that do not account for environmental constraints, often leading to predictions that pass through non-traversable obstacles like walls or fountains.

SingularTrajectory addresses these issues by introducing a universal framework that unifies five distinct trajectory prediction tasks into a single "Singular space." By combining Singular Value Decomposition (SVD) with an environment-aware diffusion process, the model achieves state-of-the-art performance across diverse scenarios without requiring task-specific architectural changes.

Methodology

The SingularTrajectory framework is built upon three core pillars designed to standardize motion representation and improve environmental grounding.

1. Singular Space Construction

To bridge the gap between different input lengths and task requirements, the authors move away from raw coordinate systems. Instead, they employ Truncated SVD to extract the principal components of human motion from the training data. By utilizing Cardinal B-splines to interpolate these components, the model projects trajectories of any duration into a unified $K$-dimensional embedding space. This "Singular space" acts as a universal grammar for movement, allowing the model to treat a 2-frame snippet and an 8-frame history as mathematically comparable entities.

2. Adaptive Anchors and Traversability Fields

To ensure physical plausibility, the model incorporates environmental context early in the prediction pipeline. Using semantic segmentation maps, the framework generates a traversability field. If a prototype anchor path is initialized over a non-traversable area, a vector field "nudges" the anchor toward the nearest valid walkway. This adaptive anchoring ensures that the subsequent refinement process begins from a spatially sensible starting point, preventing the model from struggling to correct "impossible" paths later on.

3. Diffusion-Based Residual Refiner

While standard diffusion models generate data from pure Gaussian noise, SingularTrajectory utilizes a more efficient residual denoising approach. The model starts with the adaptive anchor and uses a transformer-based diffusion process to predict the "residuals"—the fine-grained differences between the anchor and the ground truth. By focusing on these small corrections rather than generating the entire path from scratch, the model achieves high accuracy in significantly fewer steps ($M=10$), making it more computationally viable for real-time applications.

Experimental Evaluation

The model was evaluated on the ETH and UCY datasets, which encompass 1,536 pedestrians across five real-world social scenes (ETH, Hotel, Univ, Zara1, and Zara2). The researchers tested SingularTrajectory against specialized state-of-the-art (SOTA) models across five benchmarks: Stochastic, Deterministic, Momentary Observation, Domain Adaptation, and Few-shot learning.

Key Results

  • Domain Adaptation: In the "B2A" test (training on the Hotel scene and testing on ETH), SingularTrajectory achieved an Average Displacement Error (ADE) of 0.66, a substantial improvement over the previous SOTA of 0.87.
  • Few-Shot Learning: When trained on only 10% of the available data, the model reached an average ADE of 0.23, remarkably outperforming many models trained on full datasets.
  • Momentary Observation: The model demonstrated high resilience to limited history. Even when restricted to two frames of observation, the Singular space representation allowed it to capture motion flow effectively, matching the performance of models with full 8-frame histories.
  • Qualitative Performance: Visualizations indicate that the adaptive anchor mechanism successfully prevents trajectories from intersecting building corners and other obstacles, a common failure mode in models like PECNet or MID.

Discussion and Future Work

The success of SingularTrajectory suggests that human motion follows a shared underlying logic that can be captured in a unified latent space. By treating the environment as a primary constraint via adaptive anchors and refining paths through residual diffusion, the model overcomes the limitations of task-specific architectures.

However, some limitations remain. The model's reliance on off-the-shelf semantic segmentation means that errors in scene parsing can propagate to the trajectory prediction. Additionally, while the residual diffusion process is faster than standard diffusion, it still carries a higher computational cost than simple feed-forward networks. Future research may focus on integrating more complex agent-to-agent interaction modeling directly within the Singular space to better navigate extremely crowded environments.

Summary updated

BibTeX
@inproceedings{bae2024singulartrajectory,
  author = {Inhwan Bae and Young-Jae Park and Hae-Gon Jeon},
  title = {{SingularTrajectory: Universal Trajectory Predictor Using Diffusion Model}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure