TL;DR
Autonomous vehicles need to know when a perception failure actually threatens safety, but evaluating the system-level impact of these errors in real-time is computationally prohibitive. This paper introduces SPARQ, a deep Q-network that acts as a real-time (42 Hz) safety monitor and recovery planner, detecting critical perception misses and instantly serving up safe alternative trajectories.
What Problem Does This Paper Address?
Perception systems in autonomous vehicles (AVs) aren't perfect—they occasionally miss objects or misclassify elements in a scene. However, triggering a fail-safe maneuver (like slamming on the brakes) for every minor perception error is impractical and disruptive. For instance, missing a parked car far off the vehicle's path doesn't matter, whereas missing a pedestrian directly ahead is catastrophic. We only need to react to task-relevant perception failures.
Existing approaches to identify and mitigate these failures fall short: modular analytical pipelines (which simulate plausible scenes and evaluate risks) are too slow to run online, while reachability-based methods (like Hamilton-Jacobi reachability) are overly conservative, often forcing the vehicle to an unnecessary halt. The authors address this gap by creating a system-level safety monitor that is both highly accurate and fast enough for real-time deployment.
Methods
The authors propose SPARQ (Safety evaluation for Perception And Recovery Q-network). Instead of running a slow, multi-step analytical pipeline online, SPARQ uses a lightweight, transformer-based encoder-decoder neural network to approximate three heavy blocks: a plausible scene generator, a safety monitor, and a recovery planner.
SPARQ takes three main inputs:
- Scene Context: Ego-vehicle history, surrounding agent histories, and road graph elements (processed via PointNet).
- Perception Monitor Output: Coarse runtime feedback localizing a potential perception error (e.g., the estimated position/velocity of a missed agent).
- Candidate Ego Plan: The trajectory proposed by the AV's primary planner.
The network processes these inputs using Multi-Axial Attention to handle temporal and spatial dimensions efficiently, ultimately outputting a safety classification: Safe, Risky, or Critical.
Because SPARQ is a neural network, it can parallelize computations. During runtime, it evaluates a batch of alternative trajectories alongside the candidate plan in a single forward pass. If the candidate plan is flagged as unsafe, SPARQ instantly selects a safe alternative from the batch to execute plan repair.
Datasets
The model was trained and validated using the nuPlan-Vegas dataset. To generate realistic training data, the authors sampled real-world driving logs and systematically simulated perception failures. Crucially, they prioritized simulating missing agents near existing agents in the scene. This design choice preserved realistic multi-agent interaction dynamics without requiring complex artificial behavior modeling. The final dataset comprised 1.5 million monitored scenes.
Key Insights and Ideas
- Neural Distillation for Real-Time Safety: The core innovation is replacing an intricate, multi-block analytical pipeline with a single neural approximation. This shift moves the heavy computational burden offline, allowing the system to run at an operational frequency of ~42 Hz.
- A Double-Duty Safety Filter: Even in the absence of perception failures, SPARQ functions as an effective general-purpose safety filter. It successfully filtered out 96% of unsafe plans generated by the base planner due to complex scene dynamics.
- The Trap of Simplified Dynamics: Traditional reachability baselines often rely on simplified unicycle models to remain computationally tractable. Surprisingly, this simplification causes them to miss certain critical failure scenarios. Because SPARQ learns from a planner utilizing richer, differentially-flat vehicle dynamics, it functions as a more accurate safety monitor.
Key Results
- High Accuracy & Speed: SPARQ achieved an overall accuracy and recall of 90% on unseen testing data while sustaining a runtime frequency of 42 Hz.
- Rapid Plan Repair: When a candidate plan is deemed unsafe, SPARQ requires only 0.006 seconds to propose a safer alternative trajectory.
- Superior Performance Over Baselines: Compared to Forward Reachable Tube (FRT) and Two-Player Cooperative Game baselines, SPARQ demonstrated a much higher F1 score (0.91 vs. 0.57–0.77) and precision (0.93 vs. 0.61–0.85). It successfully balanced safety and performance without suffering from the over-conservatism that causes baselines to freeze the vehicle.
Limitations and Future Work
- Out-of-Distribution (OOD) Robustness: The authors note the need to explore OOD robustness to ensure the monitor remains reliable under distribution shifts, such as unfamiliar geographical locations or novel driving behaviors from other agents.
- Multi-Modal Reasoning: Future iterations will look into integrating natural-language-based descriptions of scenes and failures as inputs to the encoder, enabling multi-modal safety assessment.
Summary updated