Risk Map as Middleware: Toward Interpretable Cooperative End-to-End Autonomous Driving for Risk-Aware Planning

Mingyue Lei, Zewei Zhou, Hongchen Li, Jiaqi Ma

Abstract

Autonomous driving systems currently face a dichotomy between modular pipelines, which offer interpretability but suffer from error propagation, and end-to-end (E2E) systems, which optimize for performance but operate as "black boxes." This paper introduces RiskMM, a framework that bridges this gap by utilizing a "Risk Map" as an interpretable middleware. By integrating Vehicle-to-Everything (V2X) cooperation with a differentiable, learning-based Model Predictive Control (MPC) planner, RiskMM achieves safer, more transparent navigation. Experimental results on the V2XPnP-Seq dataset demonstrate that RiskMM outperforms existing baselines and even surpasses human safety benchmarks in complex urban environments.

Introduction

The development of autonomous vehicles (AVs) is largely divided into two paradigms. Modular systems—which separate perception, prediction, and planning—allow for human-readable intermediate outputs but are prone to catastrophic failures if a single module fails. Conversely, E2E systems optimize the entire stack simultaneously, reducing error propagation but sacrificing interpretability. Furthermore, single-vehicle systems are inherently limited by their sensor range and line-of-sight, making them vulnerable to occlusions, such as pedestrians emerging from behind obstacles.

RiskMM addresses these challenges by proposing a cooperative E2E framework. It introduces a Bird’s Eye View (BEV) Risk Map as a human-interpretable intermediate representation that guides a physics-constrained planner. By leveraging V2X communication, the system extends its perception beyond the ego-vehicle's immediate surroundings, enabling safer navigation in dense traffic.

Methodology

The RiskMM architecture is composed of three integrated stages designed to maintain both performance and transparency.

1. Scenario Awareness and V2X Fusion

The system begins by extracting features from LiDAR point clouds and HD maps. To overcome the limitations of individual sensors, RiskMM employs a Transformer-based architecture to fuse data across two dimensions: temporal (integrating information over time) and spatial (fusing data from multiple agents via V2X). This allows the ego-vehicle to "see" through the sensors of nearby vehicles and infrastructure, effectively eliminating blind spots caused by occlusions.

2. Risk Recognition as Middleware

The core innovation of RiskMM is the generation of a BEV Risk Map. Rather than simply detecting objects, the model uses multi-head cross-attention to identify areas with a high likelihood of future collisions. These high-attention regions are projected onto a grid, creating a spatial representation of risk. This map serves as the "middleware"—a window into the model’s decision-making process that allows developers to verify if the system has correctly identified environmental hazards.

3. Interpretable Trajectory Planning

Instead of directly regressing coordinates through a neural network, RiskMM utilizes a learning-based Model Predictive Control (MPC) module. This module is:

  • Differentiable: The MPC is formulated to allow gradients to flow back through the planner, enabling end-to-end training of the entire perception-to-planning pipeline.
  • Physics-Aware: It incorporates explicit vehicle dynamics and constraints, such as speed limits and acceleration bounds.
  • Interpretable: The model learns cost parameters with physical significance, such as the penalty for lateral acceleration or the weight assigned to specific risk zones. This allows the system to adapt its driving style—becoming more conservative in high-risk areas—based on learned spatiotemporal features.

Experimental Evaluation

Dataset

The authors evaluated RiskMM using V2XPnP-Seq, the largest real-world sequential V2X dataset available. The dataset includes 40,000 frames of dense traffic data across 24 complex urban scenarios, including roundabouts and T-junctions, providing a rigorous testing ground for cooperative driving.

Performance Metrics

RiskMM demonstrated superior performance compared to state-of-the-art baselines like V2X-ViT and CooperRisk:

  • Perception: Achieved a 75.8% Average Precision (AP) and an Occupancy Prediction AUC of 0.525.
  • Planning: Reduced the Average Displacement Error (ADE) to 0.384m, significantly outperforming standard E2E and modular baselines.
  • Safety: A safety-reinforced variant, RiskMM, achieved a Collision Rate (CR) of 0.138, which is lower than the human driver ground truth of 0.142* recorded in the dataset.
  • Robustness: The system remained stable even when subjected to simulated communication delays and sensor noise, proving its viability for real-world V2X deployment.

Discussion and Limitations

RiskMM successfully demonstrates that risk can be treated as a learned attention mechanism. By supervising the planning trajectory, the model implicitly learns to identify hazards without requiring manual, rule-based risk labels. This provides a scalable way to build interpretable E2E systems.

However, several challenges remain:

  1. Implicit Learning: Currently, the Risk Map is learned from planning trajectories. Future research could explore semi-supervised methods to incorporate expert-defined risk metrics for even greater reliability.
  2. Communication Constraints: While the model uses feature compression, scaling V2X to hundreds of agents in high-density areas may still face bandwidth limitations.
  3. Adversarial Behavior: The current MPC assumes a degree of predictability in road users. Handling highly erratic or adversarial agents remains an open area for exploration.

Conclusion

RiskMM represents a significant step toward safe and interpretable autonomous driving. By using a Risk Map as a bridge between perception and a physics-constrained MPC planner, the framework combines the optimization benefits of E2E learning with the transparency of modular systems. Its ability to outperform human safety benchmarks in cooperative scenarios highlights the transformative potential of V2X-enabled autonomous navigation.

Summary updated

BibTeX
@article{lei2026risk,
  author = {Mingyue Lei and Zewei Zhou and Hongchen Li and Jiaqi Ma and Jia Hu},
  title = {{Risk Map as Middleware: Toward Interpretable Cooperative End-to-End Autonomous Driving for Risk-Aware Planning}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2026},
  doi = {10.1109/lra.2025.3636031},
}
Figure