Task-Relevant Failure Detection for Trajectory Predictors in Autonomous Vehicles

Alec Farid, Sushant Veer, Boris Ivanovic, Karen Leung, Marco Pavone

Introduction

Trajectory forecasting—predicting the future paths of other agents—is a cornerstone of autonomous vehicle (AV) safety. However, because human behavior is stochastic and machine learning models are imperfect, mispredictions are frequent. Current monitoring systems often treat all prediction errors equally, which leads to excessive false alarms or missed safety-critical events. This paper introduces a "task-relevant" failure detector that identifies only the mispredictions that actually impact the AV's safety and planning.

The Problem: Task-Relevance in Prediction

A core challenge in AV safety is that many prediction errors do not impact the vehicle's mission. For instance, if a car is predicted to stay in its lane but instead turns away from the AV, the prediction is technically incorrect but "benign" as it doesn't force a change in the AV's plan. Conversely, "harmful" errors occur when a misprediction leads the AV's motion planner to make an unsafe decision.

Distinguishing between harmful (a) and benign (b) prediction failures.

Existing monitors often fail to provide interpretable performance guarantees or are overly conservative. To solve this, the researchers introduce a method to detect failures specifically within the context of the AV's planning task.

Methodology: p-Quantile Anomaly Detector (QAD)

The authors propose the p-Quantile Anomaly Detector (QAD), which shifts the focus from coordinate-space errors to planning cost.

  1. Cost Propagation: QAD propagates the distribution of predicted trajectories through the AV's planning cost function (incorporating collision risk, goal distance, and comfort).
  2. Anomaly Definition: An anomaly is identified when the actual observed cost falls within the top $p$-quantile of the predicted cost distribution.
  3. Sampling-based Detection: The algorithm samples $M$ trajectories, computes their costs, and triggers a failure if the observed cost exceeds a specific threshold (the $(M-n)$-th largest sampled cost).
  4. Theoretical Guarantees: QAD allows for data-free calibration. Engineers can set parameters $M$ and $n$ to target specific False-Positive (FPR) and False-Negative Rates (FNR) based on analytical upper bounds, eliminating the need for extensive labeled failure datasets.

Evaluation and Results

The method was rigorously tested on the nuScenes and nuPlan datasets. For nuPlan, the authors hand-labeled 2,568 prediction horizons to establish a ground truth for task-relevant failures independent of the planning costs themselves.

ROC curve comparing QAD against standard baselines like Time-to-Collision (TTC) and Likelihood-based detection.

QAD demonstrated state-of-the-art performance, achieving an AUROC of 0.946, significantly outperforming baselines such as Likelihood-based detection (0.693) and Time-to-Collision (0.864). Furthermore, the detector is highly efficient, with a runtime of less than 0.1 ms, making it suitable for real-time deployment.

Discussion and Future Work

QAD acts as a versatile "wrapper" for existing prediction modules, requiring no retraining. Its ability to align monitoring with the downstream planning task reduces false alarms and focuses attention on safety-critical scenarios.

While the current theory couples FPR and FNR bounds, empirical results show both can be minimized simultaneously. Future research may explore using QAD to trigger adaptive planning, where the AV re-plans more frequently only when the environment becomes unpredictable or anomalous.

Summary updated

BibTeX
@inproceedings{farid2022task,
  author = {Alec Farid and Sushant Veer and Boris Ivanovic and Karen Leung and Marco Pavone},
  title = {{Task-Relevant Failure Detection for Trajectory Predictors in Autonomous Vehicles}},
  booktitle = {Conference on Robot Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=oPRhm0Aben_},
}
Figure