Robust Trajectory Prediction against Adversarial Attacks

Yulong Cao, Danfei Xu, Xinshuo Weng, Zhuoqing Mao, Anima Anandkumar, Chaowei Xiao, Marco Pavone

Introduction

In autonomous driving, trajectory prediction serves as the critical "crystal ball" that allows an autonomous vehicle (AV) to anticipate the future movements of nearby agents. While state-of-the-art models leverage Deep Neural Networks (DNNs) for this task, they remain notoriously fragile. An adversarial agent—such as a vehicle driven in a specifically calculated, inconspicuous pattern—can trick an AV’s prediction model into hallucinating a safe path when a collision is imminent.

RobustTraj prevents collisions by ensuring accurate trajectory prediction even under adversarial attack, compared to standard models that fail under perturbation.

To address this, we introduce RobustTraj, an adversarial training framework designed to protect AV trajectory prediction models. RobustTraj improves adversarial robustness by up to 46% while maintaining high performance on standard driving data.

Challenges in Robust Prediction

Applying standard adversarial training to trajectory prediction is difficult due to three primary factors:

  1. Model Stochasticity: Most models are probabilistic (e.g., VAEs or GANs). This randomness obfuscates gradients, making it difficult for traditional attacks to find effective perturbations during training.
  2. Performance Trade-offs: Robustness often degrades "clean" performance, which is unacceptable for everyday traffic safety.
  3. Unstable Training: Adversarial noise can cause conditional models to "degenerate," leading them to ignore input history and produce random guesses.

The RobustTraj Framework

RobustTraj tackles these challenges through a three-pronged approach:

  • Deterministic Attack Strategy: To overcome gradient obfuscation, the framework utilizes a deterministic path through probabilistic models. By using the maximum-likelihood sample (the mean of the latent distribution) during the training's inner maximization step, it generates more effective adversarial examples.
  • Hybrid Objective & Regularization: The model employs a hybrid loss function that interleaves adversarial and clean data training. A specific regularization loss ($L_{reg}$) ensures that internal features of adversarial inputs do not deviate significantly from their clean counterparts, anchoring the model to a stable distribution.
  • Kinematic Data Augmentation: Rather than adding arbitrary noise, RobustTraj uses a kinematic bicycle model to generate physically feasible multi-agent trajectories. This ensures the model learns from adversaries that could realistically exist on the road.

Analysis: The Degeneration Hypothesis

A key insight of this work is the "Degeneration Hypothesis." The authors discovered that adversarial noise doesn't just increase error; it causes the model to stop "listening" to the history of other vehicles.

MNIST toy experiments demonstrate the degeneration hypothesis: as adversarial noise increases, the model stops generating the requested digit and produces random outputs, losing correlation with the input context.

Experiments on the MNIST dataset (used as a controlled proxy) showed that as noise levels rise, the model fails to generate the specific digit it was conditioned on, instead producing random digits. RobustTraj mitigates this by enforcing consistency between clean and perturbed latent representations.

Experimental Results

The framework was evaluated using the nuScenes dataset on industry-standard models like AgentFormer and Social-GAN. Key findings include:

  • Significant Robustness Gains: On the AgentFormer model, RobustTraj improved performance on adversarial data by 46% compared to standard models.
  • High Clean Fidelity: This robustness was achieved with only a 3% degradation in performance on normal, clean data.
  • Superiority over Baselines: RobustTraj outperformed existing defense methods (such as trajectory smoothing) by 21% in adversarial scenarios and 9% on clean data.
  • Closed-Loop Safety: When integrated with a Model Predictive Control (MPC) planner, RobustTraj prevented 100% of the collisions caused by the tested attacks in simulation, whereas standard models consistently failed.

Conclusion

RobustTraj demonstrates that physics-informed data augmentation and deterministic gradient estimation can significantly harden trajectory prediction models against malicious agents. While currently focused on CVAE and cGAN architectures, future work will explore extending these defenses to flow-based models and increasingly complex urban environments.

Summary updated

BibTeX
@inproceedings{cao2022robust,
  author = {Yulong Cao and Danfei Xu and Xinshuo Weng and Zhuoqing Mao and Anima Anandkumar and Chaowei Xiao and Marco Pavone},
  title = {{Robust Trajectory Prediction against Adversarial Attacks}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=NTZua4zlzW},
}
Figure