Stochastic Trajectory Prediction Under Unstructured Constraints

Hao Ma, Zhiqiang Pu, Shijie Wang, Boyin Liu, Huimu Wang, Yanyan Liang, Jianqiang Yi

TL;DR

This paper introduces Controllable Trajectory Diffusion (CTD), a novel method for predicting human trajectories that can adhere to both structured and unstructured constraints. CTD uses a scoring model to quantify constraint compliance and a conditional diffusion model to generate trajectories that satisfy these constraints, offering a more flexible approach than previous methods.

What Problem Does This Paper Address?

Predicting the future movement of individuals (trajectory prediction) is crucial for applications like autonomous driving and robotics. While existing methods often focus on incorporating social interactions or modeling inherent uncertainties, explicitly handling constraints has been less explored. This is particularly challenging when constraints are "unstructured"—meaning they aren't easily defined by simple mathematical formulas (e.g., "don't go too fast," "prefer to turn left"). Previous approaches often relied on differentiable constraints, limiting their applicability. This paper aims to bridge this gap by developing a method that can predict trajectories while respecting a broader range of constraints, including those that are difficult to formalize mathematically.

Methods

The core of CTD lies in two main components:

  • Scoring Model: This component learns to quantify how well a given trajectory adheres to a specific constraint. It's trained using pairwise comparisons of trajectories, where human annotators (or an automated system for structured constraints) label which trajectory better satisfies the constraint. This process uses the Bradley-Terry-Luce (BTL) model, which is adept at learning preferences from comparisons. The output is a scalar score between 0 and 1, representing the degree of constraint compliance.
  • Conditional Diffusion Model: This is a generative model that learns to predict trajectories. Unlike standard diffusion models, CTD conditions its predictions not only on the historical trajectory but also on the constraint score generated by the scoring model. This allows the diffusion model to generate trajectories that are guided by the desired level of constraint adherence. The model is trained using a denoising process, and during inference, the constraint score is used as a condition to steer the generation.

The paper also mentions an "entropy regularization" term for the scoring model to encourage a more uniform distribution of scores, preventing the model from becoming too confident and thus less flexible.

Datasets

The paper evaluates CTD on three widely-used public datasets for trajectory prediction:

  • Stanford Drone Dataset (SDD): A large-scale collection of aerial videos of diverse agents in complex outdoor environments.
  • ETH/UCY Dataset: This dataset comprises five different scenes (eth, hotel, zara1, zara2, univ) capturing pedestrian movement in various urban environments.

The authors note that for training the scoring model, they used a small fraction (less than 1%) of the data labeled with specific constraints.

Key Insights and Ideas

  • Quantifying Unstructured Constraints: The most significant insight is the idea of quantifying unstructured constraints as a degree of conformity (a score). This allows these otherwise hard-to-define rules to be used as conditioning signals for generative models.
  • Scoring Model as a Constraint Learner: The BTL model effectively learns to interpret and score constraint compliance from pairwise comparisons, even for abstract concepts.
  • Diffusion Models for Controllable Generation: Leveraging diffusion models for trajectory prediction, conditioned on these constraint scores, provides a powerful mechanism for generating diverse and compliant trajectories.
  • Flexibility in Constraint Strength: By adjusting the constraint score during inference, CTD allows for fine-grained control over how strictly a trajectory adheres to a given constraint.
  • Combinatorial Constraints: The framework naturally extends to handling multiple constraints simultaneously by concatenating their scores as conditions for the diffusion model.

Key Results

  • Accuracy: CTD-R (direction constraint) and CTD-S (speed constraint) achieve state-of-the-art or near state-of-the-art performance on the ETH/UCY and SDD datasets in terms of minADE and minFDE metrics, which is surprising as accuracy was not the primary optimization goal.
  • Constraint Adherence: Qualitative results (visualizations in Fig. 3 and Fig. 4) demonstrate that CTD can effectively generate trajectories that semantically align with constraints like "turn right," "slow down," and combinations thereof. The degree of adherence can be controlled by adjusting the input constraint score.
  • Multiple Constraints: The paper shows that CTD can handle multiple constraints simultaneously, as visualized in Fig. 4, where trajectories are influenced by both speed and direction constraints.

Limitations and Future Work

  • Scoring Distribution: The authors note that for the "slow down" constraint, the scoring model's output distribution was concentrated in a lower range ([0, 0.4]), possibly due to the limited size of the labeled scoring dataset. This suggests a trade-off between the efficiency of data labeling and the uniformity of constraint representation.
  • Data Requirements for Scoring: Training the scoring model requires labeled data for specific constraints. While less than 1% of the dataset was used in experiments, obtaining these labels can still be a bottleneck for new or complex constraints.
  • Future Work: The paper suggests that CTD's framework is compatible with structured constraints and that conditioning on multiple variables shows promise for applications like offline reinforcement learning. The flexibility of CTD in handling various constraints opens avenues for more sophisticated and interpretable trajectory prediction systems.

Summary updated

BibTeX
@inproceedings{ma2025stochastic,
  author = {Hao Ma and Zhiqiang Pu and Shijie Wang and Boyin Liu and Huimu Wang and Yanyan Liang and Jianqiang Yi},
  title = {{Stochastic Trajectory Prediction Under Unstructured Constraints}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  doi = {10.1109/icra55743.2025.11127647},
}

Loading related content...

Figure