TL;DR
This paper introduces DLaVA, a novel, zero-shot, OCR-free pipeline for document visual question answering (VQA). By cleverly constructing an image from text regions and leveraging multimodal large language models (MLLMs), DLaVA achieves state-of-the-art performance while significantly improving trustworthiness and interpretability through enhanced spatial localization.
What Problem Does This Paper Address?
Document Visual Question Answering (VQA) is a challenging task that requires understanding not just the text within a document but also its spatial layout and relationships. Traditional approaches often rely on a multi-step process involving text detection, recognition (OCR), and then reasoning. This pipeline is prone to cascading errors, where mistakes in early stages (like OCR) propagate and lead to incorrect answers or poor localization. Furthermore, existing evaluation metrics often prioritize textual accuracy (e.g., ANLS) over spatial accuracy, which is crucial for real-world applications where pinpointing the exact location of an answer is vital. This can lead to "AI hallucinations" where the model provides a correct answer but misattributes its location, undermining trust.
Methods
DLaVA tackles these issues with a novel, two-stage, OCR-free approach:
- Text Detection and "Constructed Image" Creation: Instead of performing OCR on individual text regions, DLaVA first uses a text detection model (DB-ResNet-50) to identify text segments. These segments are then cropped and organized into a "constructed image." Crucially, each cropped text region is assigned a unique bounding box ID and its corresponding coordinates. This "constructed image" preserves spatial context without relying on explicit text recognition.
- Two-Stage MLLM Processing:
- Stage 1 (Initial Answer Generation): The original document image and the user's question are fed into a Multimodal Large Language Model (MLLM) (specifically, Pixtral-12B in their experiments) to generate an initial textual answer.
- Stage 2 (Spatial Localization Refinement): The "constructed image" (with bounding box IDs), the original image, the question, and the initial answer are then fed back into the MLLM. This stage refines the spatial localization, outputting the final answer along with precise bounding box annotations on the original image.
This OCR-free design bypasses the error-prone OCR step, reduces computational complexity, and avoids context window limitations by consolidating information.
Datasets
The paper evaluates DLaVA on several standard datasets for Visual Information Extraction (VIE) and Document VQA:
- VIE: FUNSD, CORD, SROIE
- Document VQA: DocVQA, RICO, EST-VQA
Key Insights and Ideas
- OCR-Free is the Way to Go (for this task): By eliminating the OCR step, DLaVA sidesteps a major source of errors and computational overhead in traditional document understanding pipelines.
- The "Constructed Image" is Key: Organizing cropped text regions with unique IDs into a single image is an elegant way to preserve spatial relationships for MLLMs without needing explicit text recognition.
- Two-Stage MLLM for Precision: Using the MLLM first for initial answer generation and then again for spatial refinement allows for both accurate textual answers and precise localization.
- Beyond ANLS: IoU Matters: Incorporating Intersection over Union (IoU) metrics alongside ANLS provides a more holistic evaluation, highlighting spatial accuracy and reducing the risk of hallucinated answers.
- Interpretability through Spatial Grounding: By directly linking answers to specific bounding boxes, DLaVA makes its outputs more verifiable and trustworthy.
Key Results
DLaVA demonstrates strong performance across various datasets:
- Document VQA: Achieves an ANLS score of 85.91% on DocVQA, outperforming previous SoTA. It also scores 66.96% on EST-VQA and 76.74% on RICO.
- VIE: Shows exceptional performance on FUNSD (87.57% ANLS), CORD (84.41% ANLS), and SROIE (91.42% ANLS).
- Spatial Localization: Achieves IoU scores (mAP@IoU[0.50:0.95]) of 46.22% on DocVQA, 33.65% on EST-VQA, and 57.86% on SROIE, indicating good spatial precision.
- Efficiency: The OCR-free approach significantly reduces computational complexity compared to traditional methods.
Limitations and Future Work
- Spatial Alignment Challenges: While DLaVA shows improved spatial accuracy, it still faces challenges with precise alignment in some cases, particularly when bounding box definitions differ between ground truth and predictions (e.g., low IoU scores despite high ANLS).
- Future Work: The authors plan to:
- Refine bounding box annotations using techniques like LoRA, LoRA+, QLoRA, and DORA.
- Extend the approach to handle embedded images, tables, and other structured content beyond just text localization.
- Explore incorporating positional priors and cross-field dependencies to further improve alignment.
Summary updated