TrafficRAG Turns Dashcam Footage Into Legally Grounded Accident Reports
TrafficRAG combines dashcam video understanding with legal knowledge retrieval to automatically assign fault in traffic accidents, hitting 77% legal norm accuracy without any fine-tuning.
Takeaways
- TrafficRAG is a new multimodal RAG framework that turns dashcam video into legally grounded accident liability reports automatically.
- A VLM converts video frames into structured text descriptions, which are then used as retrieval queries -- avoiding direct video-to-vector search.
- Hybrid BM25 + dense retrieval pulls from both a traffic regulation corpus and a judicial case database, then reranks across sources.
- Results: 77.32% Legal Norm Accuracy, 81.71% Factual Faithfulness, and a fault-ratio error of just 5.48% MAE, outperforming all baselines.
- Key limitation: system quality depends on VLM scene description accuracy; low-quality or occluded footage degrades the entire pipeline.
- No code or models released; the paper is available at arxiv.org/abs/2606.01737.
Determining who is at fault after a traffic accident is a slow, expensive, and often inconsistent process. Traffic police, insurance adjusters, and legal teams must manually review footage, cross-reference traffic regulations, and dig through precedent cases -- all while under time pressure and with room for subjective bias. A new paper introduces TrafficRAG, a multimodal Retrieval-Augmented Generation (RAG) framework that automates this entire pipeline: from raw dashcam video to a structured, legally grounded liability report.
The gap nobody closed
Vision-language models (VLMs) have gotten remarkably good at describing what happens in a traffic video. But describing a scene and legally adjudicating it are two very different things. Efficiently and reliably converting accident videos into responsibility attribution and concrete statutory provisions has become a key challenge for traffic police and courts -- the sheer scale and diversity of cases makes manual analysis and statute lookup extremely costly.
Existing methods mostly remain at the perceptual or semantic level -- answering "what type of accident is this?" -- and have not been elevated to the legal level of responsibility attribution and statute application. Meanwhile, legal LLMs are almost entirely built on single-modality "case texts + statutes", without incorporating video evidence into the legal reasoning process.
This creates a clear gap: video models understand the scene but not the law; legal models know the law but cannot watch the footage. TrafficRAG is designed to close that gap.

How it works, step by step
The pipeline has three major stages that convert raw video into a legal report:
- Video-to-text translation. A vision-language model processes sampled frames using CLIP feature encoding, then performs temporal phase parsing to understand the accident sequence. The output is a structured textual description of the accident scenario -- not a vague caption, but a precise, machine-readable summary of what happened, who was involved, and how.
- Hybrid legal retrieval. That structured description becomes the retrieval query. The system runs two retrieval strategies in parallel: BM25 sparse retrieval (keyword-based, good for exact legal terminology) and dense embedding retrieval (semantic, good for conceptually similar cases). This hybrid approach pulls from two knowledge bases -- a traffic regulation corpus and a judicial case database -- and then applies cross-source consistency reranking to surface the most relevant results.
- Legally grounded report generation. An LLM receives the structured accident description plus the retrieved legal clauses and similar historical cases, and generates a standardized liability analysis report that cites specific regulations and assigns fault ratios.
The key design insight is that the VLM never tries to reason about law, and the LLM never tries to watch video. Each component does what it is best at, and the retrieval layer bridges them.

What the numbers say
The team evaluated TrafficRAG on three custom metrics designed specifically for this legal-technical domain:
- Legal Norm Adaptation (LNA) Accuracy -- whether the system correctly identifies and applies the right traffic regulations. TrafficRAG scores 77.32%.
- Factual Faithfulness (FF) -- whether the generated report accurately reflects what actually happened in the video. Score: 81.71%.
- Liability Ratio MAE -- the mean absolute error in the percentage of fault assigned to each party. TrafficRAG achieves a MAE of 5.48%, meaning its fault assignments are on average within about 5 percentage points of the ground truth.
These results consistently outperform baseline methods across all three dimensions. The Factual Faithfulness score is particularly notable -- it means the system rarely hallucinates or misrepresents the accident facts in its final report, a critical requirement for any legally sensitive application.

Why hybrid retrieval matters here
The choice of hybrid BM25 + dense retrieval is not accidental. Legal text is full of precise terminology -- specific article numbers, defined terms, exact phrasing -- where keyword matching (BM25) excels. But finding similar historical cases requires semantic understanding that keyword search misses. In production, retrieval is where most legal AI systems fail: the model reasons fine over the right context, but the right context never reaches it. By running both retrieval paths and reranking across sources, TrafficRAG hedges against the failure modes of each approach individually.
Existing studies mainly focus on describing and interpreting accident videos, leaving room for deeper causal reasoning and integration of legal knowledge. Traffic Accident Responsibility Allocation is a more challenging task that requires multi-step reasoning grounded in traffic regulations. TrafficRAG addresses this by treating legal grounding as a retrieval problem rather than a memorization problem -- which means it does not need to be retrained when regulations change.
Where it fits and where it falls short
The practical use cases are concrete:
- Insurance claim processing -- automated first-pass liability assessment from dashcam footage, reducing adjuster workload.
- Traffic police assistance -- generating a legally referenced draft report from on-scene video, with specific regulation citations.
- Legal discovery support -- surfacing similar precedent cases alongside the accident analysis.
- Fleet management -- systematic post-incident review for commercial fleets with high accident volumes.
That said, there are real limitations to keep in mind. The system depends heavily on the quality of the VLM's initial scene description -- if the video is low resolution, partially occluded, or covers an unusual accident type, the retrieval queries will be noisy and the downstream report will suffer. The knowledge bases are also static snapshots; keeping them current with evolving traffic law requires ongoing curation. And a 5.48% MAE on liability ratios, while impressive for an automated system, is still meaningful in legal contexts where a 10-point difference in fault assignment can determine insurance payouts or criminal liability.
No code or pretrained models are publicly released alongside this paper. The framework is described in enough detail to be reproduced, but practitioners looking to deploy it will need to build their own knowledge bases and integrate their own VLM and LLM components.
The bigger picture
Multimodal large language models provide powerful tools capable of bridging the gap between different data types prevalent in transportation. Their ability to jointly process and reason over visual and textual information opens up new avenues for enhancing situational awareness, automating analysis tasks, and ultimately contributing to safer and more efficient roadway systems. TrafficRAG is a concrete step in that direction -- not by building a single end-to-end model, but by carefully composing existing components into a pipeline where each piece is accountable for a specific, well-defined subtask.
The real breakthrough here is architectural: converting video evidence into text before retrieval sidesteps the notoriously hard problem of video-to-vector search, while keeping the legal reasoning grounded in retrieved facts rather than model memory. That design pattern -- VLM as a structured transcriber, retrieval as the legal librarian, LLM as the report writer -- is likely to generalize well beyond traffic accidents to other domains where visual evidence must be reconciled with a formal rule corpus.