From MIRAGE to CLEAR: Component-Level Explainable Anomaly Reasoning for Autonomous Vehicle Perception Systems
Key Contributions & Takeaways
- When a self-driving car’s perception breaks, most tools only flag that something is wrong. MIRAGE-CLEAR points to the module actually at fault (sign reading, lane keeping, or object detection) and explains the call.
- Every finding is backed by the rule book. CLEAR grounds its reasoning in the MUTCD, the U.S. traffic-control standard, so each answer cites a real regulation. That turns an opaque model into audit-ready evidence for laws like the EU AI Act.
- It knows when it isn’t sure. CLEAR reaches 95.2% accuracy at spotting anomalies and 84% at blaming the right module for clear sign failures. When fog or glare hits several modules at once, it spreads its confidence instead of guessing, which matches the physics.
When a self-driving car’s perception fails, today’s tools can tell you that it failed, but not which part. Only 4% of real disengagements get a clear cause, so safety fixes have nothing to aim at.
MIRAGE builds a dataset of realistic, rule-breaking driving scenes with known causes. CLEAR then reasons over each scene in three steps to name the module at fault.
CLEAR spots anomalies with 95.2% accuracy and traces clear sign failures to the right module 84% of the time, with every answer citing a real traffic regulation.
Two streams meet in the middle. Real scenes become text and then embeddings; the MUTCD rule book does the same. Matching the two picks the regulation that governs each scene, and an LLM then writes a controlled violation of it.
scenes
Waymo, Argoverse 2
anomalies
MUTCD-aligned
Every anomaly breaks a real section of the U.S. traffic-control manual, so a violation is verifiable, not a subjective label. Four kinds are injected:
A required sign is missing or wrongly placed.
Faded markings or a partly hidden sign.
A school-zone rule active without its warning.
Fog, glare, deep shadow, or heavy rain.
Each layer narrows the question and reports its own metrics. The confidence needed to move on rises at every step, so a layer that is not sure stops rather than guessing. The last layer maps the failure onto one of three perception modules.
Sign modification, occlusion, or misplacement.
Lane markings, merging areas, or road boundaries.
Obstacles, pedestrians, or other vehicles.
Thresholds rise with the stakes, so a shaky early call never cascades into a confident wrong module.
Every answer must fit a fixed JSON schema and a fixed set of labels, so the model cannot invent categories or ramble.
Rewriting the prompts three ways moves accuracy by only a hair. The structure does the work, not clever wording.
rewrites
accuracy (L1)
TSR violations (L3)
overall
accuracy
Spotting that something is wrong is the solved part of the problem, and CLEAR does it cleanly and with well-calibrated confidence.
Naming the violation type is harder. The confusion matrix shows where it slips: Subtle and Contextual blur into each other, because faded wear and situation-dependent rules often show up together in real scenes.
| predicted → | ||||
| Direct | Subtle | Context. | Environ. | |
| Direct | 69.2 | 13.5 | 10.5 | 6.8 |
| Subtle | 15.0 | 60.0 | 18.0 | 7.0 |
| Contextual | 10.5 | 18.0 | 58.0 | 13.5 |
| Environmental | 6.5 | 12.0 | 19.5 | 62.0 |
This is the contribution no prior method offers. Each module is easiest to pin down on its own kind of failure.
Accuracy drops when a violation spans module boundaries, which is exactly what you would expect: those failures are, by definition, harder to pin on one module.
Strict single-guess accuracy is 41.7%. That looks weak until you allow a second guess (Top-2 lifts it to 74.6%) and look at how CLEAR spreads its confidence. The misses are physics, not sloppy reasoning.
Sure, and correctly sure. Confidence piles onto one module.
Correctly unsure. Fog and glare really do break all three at once.
With three modules, blind Top-2 guessing would score 66.7%. CLEAR beats that, and when it is unsure it says so: the true module lands in its top two most of the time. That is what auditable uncertainty looks like.
The answer is not enough; the reasoning has to hold up too. Coverage and coherence fade as the questions get harder, but the regulation citations stay accurate throughout, which is what keeps the whole pipeline regulator-ready.
| Layer | Compl. | Consist. | MUTCD |
|---|---|---|---|
| L1 Detection | 94.0 | 91.5 | 82.4 |
| L2 Classification | 86.5 | 84.0 | 77.8 |
| L3 Attribution | 71.0 | 73.2 | 75.6 |
| Average | 83.8 | 82.9 | 78.6 |
{ "anomaly_detected": true, "confidence": 0.92, "reasoning": "STOP sign at ground level: violates MUTCD 2B.04 (7-ft mounting height).", "indicators": [ "improper placement", "height violation" ] }
Existing tools detect that something failed, not where. CLEAR is the first to reach module-level resolution on real, observational data.
Grounding every answer in the MUTCD turns opaque model output into traceable, regulator-readable evidence, with a section number you can look up.
When CLEAR spreads its confidence, it is correctly modeling physics: fog and rain really do break several modules at once. The apparent misses are honest, not sloppy.
CLEAR was run on GPT-4o-mini as the primary model, with Phi-4 and Phi-4-mini as open alternatives, over 17,541 API calls. Layer 1 used a balanced 11,694-scene set (5,847 anomalous scenes paired with 5,847 normal ones); Layers 2 and 3 used the 5,847 anomalous scenes. The diagrams above rebuild the paper’s framework and result figures; exact tables are in the PDF.
“When a self-driving car's perception fails, today's tools tell you that it failed, not which part. MIRAGE-CLEAR traces each failure to a specific module and cites the regulation it broke.”

David Fernandez is a PhD candidate in Computer Science at Clemson University and an AI Researcher at BMW Group. His research focuses on safe, efficient, and explainable AI, spanning large language models, vision-language models, agentic systems, and adversarial robustness. His 10 papers include six first-authored studies on component-level explainability, zero-shot reasoning, and adversarial scenario analysis.
At BMW Group, he develops enterprise AI agents, automated prompt optimization, and defenses against multi-turn adversarial attacks. His work also includes edge AI for industrial agentic systems.
Through Clemson’s Virtual Prototyping of Ground Systems (VIPR-GS) program, he develops explainable reasoning and multimodal evaluation systems for the U.S. Army’s Next Generation Combat Vehicle program.