SingularTrajectory: Universal Trajectory Predictor Using Diffusion Model

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

TL;DR

SingularTrajectory introduces a universal framework that unifies five distinct human trajectory prediction tasks into a single architecture. By projecting diverse motion patterns into a mathematically shared "Singular space" and refining them using environment-adaptive anchors and a diffusion model, it eliminates the need for task-specific tuning and sets a new standard for generalization.

What Problem Does This Paper Address?

Predicting where pedestrians will walk is a foundational challenge for autonomous driving, crowd simulation, and robotics. However, the research landscape is highly fragmented into five distinct sub-tasks based on data constraints:

  1. Stochastic: Predicting multiple plausible future paths from an 8-frame history.
  2. Deterministic: Predicting the single most likely future path.
  3. Momentary Observation: Predicting paths using an extremely brief history (just 2 frames).
  4. Domain Adaptation: Training on one location and testing on an unfamiliar one.
  5. Few-Shot Learning: Training effectively with highly limited data (e.g., 10%).

Up until now, state-of-the-art models designed for one of these tasks suffered massive performance drops when applied to others. This is because different input/output lengths and modalities have traditionally been treated as entirely separate data spaces. The authors of this paper tackle a fundamental question: Can we design a single, universal architecture that excels across all five trajectory prediction tasks?

Methods

The authors present SingularTrajectory, which unifies these tasks through three core components:

  • Singular Space Construction: To bridge different trajectory lengths and modalities, the authors apply Truncated Singular Value Decomposition (SVD) to the training dataset to extract principal, low-rank motion components (basis vectors). They then use Cardinal B-splines to interpolate these vectors. This allows any trajectory—regardless of its frame length—to be projected into a unified embedding space called Singular space.
Figure 1. An overview of our SingularTrajectory framework. All relevant human trajectory prediction tasks can be represented in our Singular space, a unified feature embedding space for human dy- namics. Using the embedding features, our diffusion-based model for a universal trajectory prediction makes prediction for all the tasks in this same space.
  • Environment-Adaptive Anchors: Traditional anchor-based methods use fixed prototype paths that often ignore the physical environment, sometimes placing paths through walls or obstacles. SingularTrajectory uses an off-the-shelf semantic segmentation model to generate a binary traversability map of the scene. It then computes a vector field that dynamically deforms and pushes misplaced anchors out of non-traversable zones and onto actual walkways.
Figure 2. Visualization of the trajectories in Singular space. (a) The circle and triangle markers indicate the history and future trajectory coordinates, respectively. Each color also refers to each associated task. (b-d) Each marker in the Singular space corresponds to each trajectory in raw data. And, the slicing planes, representing a set of arrows, mean human dynamics of straight forward motions and turning motions.
  • Diffusion-Based Predictor: Rather than generating future trajectories entirely from scratch (pure Gaussian noise), the framework uses a transformer-based diffusion model to predict residuals (adjustments) to the adaptive anchors. A cascaded denoising process progressively refines these prototype paths, conditioned on historical trajectories, social interactions, and environmental context.

Datasets

The model was trained and evaluated on two standard, widely recognized pedestrian trajectory benchmarks:

  • ETH
  • UCY

Together, these datasets comprise 1,536 pedestrians across five unique real-world environments: ETH, Hotel, Univ, Zara1, and Zara2.

Key Insights and Ideas

  • Human Motion is Universal: Even if task constraints change (such as having access to 2 frames of history versus 8), underlying human motion dynamics share primitive geometric patterns. Mapping them to a continuous mathematical space removes the need for task-specific architectures.
  • Anchors as Strong Priors: Denoising a residual from a physically plausible, environment-aware anchor is significantly easier and more robust for a diffusion model than trying to generate a complex trajectory out of thin air.
  • SVD as a Low-Pass Filter: Representing trajectories via SVD coefficients naturally filters out high-frequency sensor noise. This property yields substantial performance gains in real-world scenes with noisy coordinate tracking (like the ETH and Hotel scenes).

Key Results

SingularTrajectory demonstrates remarkable consistency and state-of-the-art performance across all evaluation metrics:

  • Deterministic & Stochastic Tasks: The model matches or outperforms specialized baselines. For deterministic tracking, it reduces the Average Displacement Error (ADE) to 0.47 and Final Displacement Error (FDE) to 0.90 on average across the benchmarks.
  • Momentary Observation: Despite receiving only 2 frames of history, SingularTrajectory achieves an ADE/FDE of 0.25/0.40—performing nearly on par with top-tier models that utilize the full 8-frame history.
  • Few-Shot & Domain Adaptation: When trained on just 10% of the data, the model significantly outperforms existing architectures, which easily overfit under data constraints. It also excels in zero-shot transfer scenarios (e.g., training on ETH and testing on Hotel), demonstrating true generalization.
The denoising process progressively refining prototype paths across diffusion steps.

Limitations and Future Work

  • Diffusion Step Diminishing Returns: The ablation studies reveal that increasing the number of diffusion steps beyond $M=10$ actually causes a slight drop in performance. This happens because excessive denoising steps attenuate the structural prior information provided by the initial prototype anchor.
  • Upstream Dependencies: The environment-adaptive anchor system relies heavily on the accuracy of the external semantic segmentation model. If the segmentation model misidentifies an obstacle as a walkway, the anchor deformation process will inherit that error.

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