Not All Errors Are Made Equal: A Regret Metric for Detecting System-level Trajectory Prediction Failures

Kensuke Nakamura, Thomas Tian, Andrea Bajcsy

TL;DR

This paper introduces a novel "regret" metric to identify when trajectory prediction errors in robots actually lead to poor real-world performance, rather than just being minor inaccuracies. This system-level failure detection method is crucial for improving robot safety and efficiency, and the authors show that fine-tuning prediction models on these identified "high-regret" scenarios significantly boosts performance.

What Problem Does This Paper Address?

As robots increasingly operate alongside humans in complex environments like autonomous driving and social navigation, they rely on predicting human behavior. While current prediction models can be inaccurate, not all prediction errors are equally problematic. Many errors might not significantly impact the robot's overall performance or safety. The challenge is to distinguish between these minor prediction inaccuracies and "system-level" failures where a misprediction directly leads to a suboptimal or even dangerous robot action (e.g., a collision). Existing methods often focus on component-level errors (like average prediction error) which don't capture this crucial system-level impact, leading to inefficient monitoring and improvement strategies.

Methods

The core contribution is a new metric for identifying system-level prediction failures: generalized regret. This metric is inspired by the mathematical concept of regret, which measures the difference between the optimal action a robot could have taken and the action it did take.

The authors propose a probabilistic generalization of regret. This is key because:

  1. It doesn't require an explicit reward function, making it compatible with "reward-free" planners like generative models.
  2. It normalizes the "quality" of a decision across different contexts, addressing a calibration issue with traditional regret metrics.

The generalized regret is calculated by comparing the likelihood of the robot's executed action versus the likelihood of the optimal action, given the observed human behavior and environment context. This likelihood is derived from the robot's own planning model. High generalized regret indicates a significant degradation in closed-loop robot performance due to prediction errors.

Datasets

  • nuScenes: Used for pre-training the base Agentformer human prediction model.
  • BITS simulator: Used to generate a closed-loop autonomous driving dataset (96 scenarios) for evaluating the regret metric and fine-tuning strategies.
  • Hardware experiments: Conducted on an Interbotix LoCoBot for social navigation tasks.
  • Synthetic dataset: A dataset of 10,000 human-robot trajectories generated via simple rules was used to train the generative VQ-VAE planner.

The paper does not introduce a new benchmark dataset but rather uses existing datasets and a simulated environment to create a dataset of deployment interactions for evaluation.

Key Insights and Ideas

  • Not all prediction errors are equal: The paper strongly emphasizes that focusing solely on prediction accuracy (component-level) is insufficient. System-level impact is what truly matters for robot performance and safety.
  • Regret as a unified metric: The generalized regret metric provides a principled way to quantify system-level failures, bridging the gap between prediction accuracy and actual robot behavior.
  • Generative planner compatibility: The probabilistic nature of the generalized regret metric makes it applicable to a wider range of robot planners, including modern generative models that don't rely on explicit reward functions.
  • High-regret data is highly informative for learning: Fine-tuning prediction models on a small subset of high-regret scenarios (identified by the new metric) leads to significant performance improvements, even outperforming training on larger, less informative datasets.
  • Open-loop and closed-loop performance correlation: The paper finds that open-loop prediction improvements only correlate with closed-loop performance gains in challenging, high-regret scenarios. This suggests that improving predictions in these critical situations is key to improving overall system performance.

Key Results

  • Qualitative demonstration: Figure 3 and Figure 6 visually demonstrate how the regret metric correctly identifies scenarios where prediction failures lead to collisions or undesirable behavior, while flagging nominal scenarios with low regret.
  • Comparison with other metrics: The generalized regret metric (GRM) shows better alignment with system-level failures compared to component-level metrics like ADE. It also outperforms other system-level metrics like TRFD, which incorrectly flags all scenarios as anomalous in their experiments.
  • Fine-tuning benefits:
    • Fine-tuning the Agentformer model on high-regret data (High-regret-FT) significantly improved closed-loop performance in both high-regret and low-regret scenarios.
  • Specifically, high-regret scenarios saw a -53% reduction in robot regret and a -65% reduction in collision cost.
  • High-regret-FT was competitive with a privileged baseline (All-FT) that had access to all data, despite using only 23% of the deployment data.
  • Open-loop prediction accuracy improvements from fine-tuning only correlated with closed-loop performance gains in high-regret scenes.

Limitations and Future Work

  • Parameter tuning: The method requires setting a parameter p to determine the top p-quantile of regret scenarios to consider as failures. Poor tuning could lead to misclassification.
  • Out-of-distribution data: Extremely out-of-distribution interaction data might lead to poor regret estimates in generative planner settings.
  • Data quality: Accurate regret calculation relies on high-quality logged data from perception modules. Failures in perception tracking could corrupt regret estimates.
  • Future Work:
    • Complementing the regret metric with an anomaly detector for highly out-of-distribution data.
  • Extending the approach to other domains like collaborative manipulation.
  • Investigating the use of regret-identified datasets for runtime monitors to anticipate failures online.

Summary updated

BibTeX
@inproceedings{nakamura2024not,
  author = {Kensuke Nakamura and Thomas Tian and Andrea Bajcsy},
  title = {{Not All Errors Are Made Equal: A Regret Metric for Detecting System-level Trajectory Prediction Failures}},
  booktitle = {Conference on Robot Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=G0jqGG8Tta},
}
Figure