CATPlan: Loss-based Collision Prediction in End-to-End Autonomous Driving

Ziliang Xiong, Shipeng Liu, Nathaniel Helgesen, Joakim Johnander, Per-Erik ForssénarXiv 2025 · DOI

Abstract

End-to-end (E2E) autonomous driving (AD) systems offer streamlined architectures by mapping raw sensor data directly to vehicle waypoints. However, their "black-box" nature often lacks explicit safety quantification during inference. We introduce RiskMonitor, a plug-and-play safety module designed to estimate collision risk by predicting whether a model's internal collision loss will be triggered. By decoding high-dimensional internal "tokens" rather than relying on noisy trajectory outputs, RiskMonitor significantly improves safety. Our evaluations on nuScenes and NeuroNCAP demonstrate that RiskMonitor achieves up to 92.2% AUROC and reduces collision rates by 66.5% in safety-critical scenarios without requiring retraining of the primary driving model.

Introduction

End-to-end autonomous driving models are gaining traction for their ability to avoid the information bottlenecks inherent in modular stacks. Despite their performance, these models typically do not output a real-time risk score. While they are trained using a collision loss—a penalty for proximity to obstacles—this metric is absent during deployment.

Traditional methods for estimating risk involve post-hoc analysis, such as comparing the ego-vehicle's planned path against the predicted trajectories of other agents. However, these methods are prone to accumulated prediction errors. If the perception or motion prediction layers produce even slight inaccuracies, the resulting risk assessment becomes unreliable, leading to dangerous false negatives where the system fails to anticipate a crash.

Methodology: The Token-Driven Approach

To address the limitations of post-hoc methods, we propose RiskMonitor, a lightweight transformer-based module that operates alongside a frozen E2E planner (such as UniAD or VAD).

The RiskMonitor architecture (a) utilizes internal tokens to predict risk, avoiding the error accumulation seen in traditional prediction-driven baselines (b).

Key Technical Innovations

  • Token-Driven Estimation: Instead of analyzing final output trajectories, RiskMonitor leverages internal features (tokens) from the perception and planning layers. These tokens contain rich, high-dimensional information that has not yet been compressed into a 2D path, preserving critical safety cues.
  • Loss Prediction as Classification: We frame risk estimation as a binary classification task: "Will the collision loss be greater than zero for this specific plan?" This approach is more robust than attempting to regress exact loss values, which can be noisy.
  • Transformer Decoder Architecture: The module employs a transformer decoder to perform cross-attention between "ego plan tokens" and "agent motion tokens," effectively modeling the complex interactions between the self-driving vehicle and its environment.
  • Addressing Data Imbalance: Because collisions are rare in standard datasets, we utilize bagging ensembles, undersampling, and Focal Loss to ensure the model learns to identify high-risk events with high precision.

Experimental Evaluation

We evaluated RiskMonitor across two benchmarks to test both predictive accuracy and real-world safety impact:

  1. nuScenes: A large-scale real-world dataset used for open-loop testing to evaluate risk prediction on pre-recorded logs.
  2. NeuroNCAP: A closed-loop simulator using neural rendering to create safety-critical scenarios (e.g., side-impacts and stationary obstacles) where the agent's decisions actively influence the environment.

Key Results and Insights

RiskMonitor consistently outperformed baseline methods across various planners and metrics. As shown in the table below, the module achieved a significant performance lead in AUROC and Average Precision (AP).

Quantitative comparison of RiskMonitor against various baselines using UniAD and VAD planners on the nuScenes dataset.

Major Findings

  • "The Tokens Know More": Internal model features are far more reliable indicators of risk than explicit trajectory predictions. Baselines like GMMs often performed near random-guessing levels because they were limited by their own output errors.
  • Plug-and-Play Safety: RiskMonitor can be integrated into existing, deployed E2E planners without retraining the massive primary model, making it a highly practical safety enhancement.
  • Safety Gains: In closed-loop NeuroNCAP testing, a simple "brake-on-risk" policy using RiskMonitor reduced the average collision rate by 66.5%. The model captured 50% of all collisions with 67.5% precision, effectively distinguishing genuine threats from "ghost" obstacles.

Limitations and Future Work

While RiskMonitor shows great promise, some challenges remain. Performance can degrade when the model encounters environments significantly different from its training data (distribution shift). Additionally, current simulations lack complex environmental factors like adverse weather or deformable objects. Future research will focus on disentangling aleatoric uncertainty (environmental randomness) from epistemic uncertainty (model knowledge gaps) to enable even more sophisticated safety interventions.

Conclusion

RiskMonitor demonstrates that internal representations in E2E models contain latent safety information that is often lost in final outputs. By shifting from prediction-driven to token-driven risk monitoring, we can provide a robust, interpretable safety layer for autonomous systems, significantly reducing collision rates in critical scenarios.

Summary updated

BibTeX
@misc{xiong2025catplan,
  author = {Ziliang Xiong and Shipeng Liu and Nathaniel Helgesen and Joakim Johnander and Per-Erik Forssén},
  title = {{CATPlan: Loss-based Collision Prediction in End-to-End Autonomous Driving}},
  year = {2025},
  eprint = {2503.07425},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.07425},
}
Figure