Traffic document processing with large language models: A benchmark for information extraction from noisy OCR
Abstract
The accurate extraction of structured information from scanned administrative documents remains a key challenge in traffic management systems and logistics workflows. This study presents a hybrid AI pipeline that integrates Optical Character Recognition (OCR) and Large Language Models (LLMs) for robust information extraction from noisy, semi-structured documents. While prior studies often treat OCR and language understanding as separate stages, we jointly evaluate them across multiple OCR engines (Tesseract, PaddleOCR) and instruction-tuned LLMs (e.g., Mistral, LLaMA) on real-world documents such as rate confirmations and commercial driver licenses. Our approach addresses the critical but underexplored problem of interpreting fragmented and layout-free OCR text using LLMs, proposing tailored prompt strategies to maximize accuracy without relying on template-based rules. We show that specific LLMs exhibit resilience to OCR noise and can infer document semantics with minimal supervision. Results show that PaddleOCR provides more complete text at a higher cost, Mistral 7B with JSON-style prompting yields the most reliable structured outputs, and vision grounding reduces hallucinations while improving the extraction of location and time fields. By releasing code, annotations, and evaluation scripts, this work establishes a reproducible benchmark for OCR–LLM pipelines, highlighting both their limitations and potential in logistics, compliance, and back-office automation.