TrajPAC: Towards Robustness Verification of Pedestrian Trajectory Prediction Models

Liang Zhang, Nathaniel Xu, Pengfei Yang, Gaojie Jin, Cheng-Chao Huang, Lijun Zhang

Introduction

As autonomous vehicles and robots move into human-centric environments, they rely heavily on predicting where pedestrians will walk next. While current deep learning models are highly accurate, they are notoriously brittle. A tiny, imperceptible change in a pedestrian's past path can cause a model to predict a wildly different—and potentially dangerous—future path.

TrajPAC is a new framework designed to formally verify the robustness of these pedestrian trajectory prediction models. By utilizing a "Probably Approximately Correct" (PAC) approach, researchers can efficiently certify whether a model’s predictions remain stable and accurate even when faced with small, adversarial perturbations in input data.

Problem Statement

The authors identify three major gaps in current trajectory prediction research:

  1. Lack of Formal Definitions: Most robustness research focuses on finding specific attacks rather than providing a mathematical definition of robustness for regression-based trajectory models.
  2. Verification vs. Attack: Existing methods usually try to "break" a model but do not provide a way to verify robustness across all possible points in a disturbance interval.
  3. Interpretability: There is a lack of tools to explain which parts of a trajectory are most sensitive to noise when a model fails.

The TrajPAC Framework

TrajPAC treats complex trajectory models as "black boxes." Instead of analyzing massive neural networks directly—which is computationally prohibitive—TrajPAC learns a local, simplified affine (linear) approximation of the model.

The TrajPAC workflow: sampling input trajectories to learn a local PAC model for robustness analysis.

Robustness Definitions

The framework introduces two key definitions:

  • Label Robustness: Does the model still predict the ground truth accurately after an input perturbation?
  • Pure Robustness: Does the model's prediction stay consistent with its original (pre-perturbation) prediction?

Because the learned PAC model is mathematically tractable, the authors can provide probabilistic guarantees about the original model's behavior. To handle high dimensionality, they use a two-phase approach that identifies the most important features before performing the full robustness analysis.

Experimental Evaluation

The authors evaluated TrajPAC using industry-standard benchmarks (ETH/UCY and the Stanford Drone Dataset) against four state-of-the-art models: Trajectron++, MemoNet, AgentFormer, and MID.

Robustness verification results across different scenes and models. Green checkmarks indicate verified robustness.

Key Findings

  • Model Comparison: MemoNet demonstrated the strongest label robustness, likely because its instance-based approach anchors predictions to a memory of past trajectories. Trajectron++ generally outperformed AgentFormer in terms of stability.
  • The "Present" Matters Most: Sensitivity analysis revealed that steps closer to the current time ($t=0$) are significantly more critical than older data points. Perturbing the most recent positions is the most effective way to "confuse" a model.
  • Efficiency and Soundness: TrajPAC can perform verification in just a few seconds once the local PAC model is learned. Empirically, in cases where TrajPAC certified a model as robust, traditional adversarial attacks (like PGD) were unable to find any counterexamples.

Conclusion

TrajPAC bridges the gap between empirical performance and formal safety guarantees in trajectory prediction. By providing tight ADE (Average Displacement Error) upper bounds and identifying critical path segments, it offers both a verification tool and an interpretability aid for safety-critical autonomous systems. Future work aims to incorporate more complex semantic safety properties, such as ensuring predictions do not cross into restricted zones like active traffic lanes.

Summary updated

BibTeX
@inproceedings{zhang2023trajpac,
  author = {Liang Zhang and Nathaniel Xu and Pengfei Yang and Gaojie Jin and Cheng-Chao Huang and Lijun Zhang},
  title = {{TrajPAC: Towards Robustness Verification of Pedestrian Trajectory Prediction Models}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure