TL;DR
ARIAL (Agentic Reasoning for Interpretable Answer Localization) is a modular document visual question answering (DocVQA) framework that replaces monolithic multimodal transformers with an agent-orchestrated pipeline. By coordinating specialized tools for OCR, semantic retrieval, generative reasoning, and bounding-box mapping, ARIAL establishes state-of-the-art results across four major benchmarks while delivering fully traceable, spatially grounded answers.
What Problem Does This Paper Address?
Modern Document VQA models excel at reading forms, invoices, and reports to answer textual questions. However, existing approaches—from layout-aware transformers (e.g., LayoutLMv3) to multimodal LLMs (e.g., GPT-4o, LLaVA)—suffer from two major drawbacks in high-stakes domains:
- Lack of Spatial Grounding: Standard evaluations focus primarily on textual accuracy (ANLS). Consequently, models frequently hallucinate or produce answers without pointing to the exact region in the document where the information originated.
- The "Monolithic" Black Box: Systems that attempt localization (such as DLaVA) typically pack OCR, vision, and language generation into a single end-to-end model. These are computationally heavy, difficult to audit, and prone to losing fine-grained details in dense or degraded scans.
ARIAL tackles this challenge by asking: Can we achieve precise visual answer localization and transparent reasoning by breaking DocVQA down into an orchestrated, tool-using agentic workflow?
Methods
Rather than relying on a single vision-language model, ARIAL introduces a Sense-Think-Act pipeline coordinated by a central planning agent:
[Document Image + Question]
│
▼
[Planning Agent] (LLaMA 4 Scout)
├── 1. RunOCR() ── DB Detector + TrOCR
├── 2. FindText() ── MiniLM-v6 Dense Retrieval
├── 3. AskQA() ── Gemma 3-27B (fine-tuned) / Compute()
└── 4. GroundAnswer() ── Bounding-Box Alignment
│
▼
[Answer String + Grounded Bounding Box + Reasoning Trace]
- Planner Agent: Built on LLaMA 4 Scout, fine-tuned via behavioral cloning on 50 tool-usage demonstration traces (with 5-shot in-context chain-of-thought prompting). It inspects the question and dynamically issues tool calls (
RunOCR,FindText,AskQA,GroundAnswer). - OCR & Layout Parsing: A two-stage pipeline using a Differentiable Binarization (DB) detector (ResNet-50 backbone) to extract bounding boxes, followed by Microsoft TrOCR for text recognition.
- Document-Level RAG: Instead of passing the entire OCR transcript to the LLM, ARIAL indexes text chunks with MiniLM-v6 and retrieves only top-$k$ relevant segments (top-5 for DocVQA, top-3 for forms/receipts). For arithmetic questions, it triggers explicit
Computetool operations. - Answer Generation: A Gemma 3-27B model fine-tuned on 70k document QA pairs generates concise answers conditioned solely on the retrieved context segments.
- Spatial Grounding: Maps the generated answer back to the detected OCR tokens, merging bounding boxes for multi-span answers and isolating supporting evidence for computed answers.
Datasets
The authors evaluated ARIAL on four standard Document AI benchmarks (no new datasets were introduced):
- DocVQA: General scanned documents, letters, reports, and mixed layouts.
- FUNSD: Fully annotated noisy scanned forms with rich spatial structures.
- CORD: Scanned and photo receipts with dense line items.
- SROIE: Scanned receipt dataset for information extraction and key-value parsing.
Evaluations used ANLS (Average Normalized Levenshtein Similarity) for text correctness and mAP@IoU (mean Average Precision across IoU thresholds 0.50–0.95) for bounding-box grounding accuracy.
Key Insights and Ideas
- Modularity beats monolithic backbones: Offloading text detection to dedicated OCR and retrieval to dense embeddings lets the generative LLM focus purely on reasoning. This modular design outperforms end-to-end vision-language models on both text and localization metrics.
- RAG matters even within a single document: In ablation studies, feeding full-page OCR transcripts directly into the LLM dropped DocVQA performance by 2.5 ANLS points. Dense semantic filtering prevents the LLM from getting distracted by extraneous form fields and table noise.
- Adaptive planning is essential: Replacing the LLaMA planning agent with a static, hard-coded execution pipeline dropped DocVQA performance by 5.0 ANLS points and 5.9 mAP points, proving that the agent's ability to branch, backtrack, and invoke arithmetic tools dynamically is critical.
- Auditability by construction: Because every answer is tied to an explicit sequence of tool calls and an OCR bounding box, users can trace the system's exact reasoning path back to original pixel coordinates.
Key Results
ARIAL established new state-of-the-art results across all evaluated benchmarks:
| Dataset | Metric | LayoutLLM | DocLayLLM | DLaVA (OCR-Free) | ARIAL (Ours) |
|---|---|---|---|---|---|
| DocVQA | ANLS / mAP | 74.3 / — | 78.4 / — | 85.9 / 46.2 | 88.7 / 50.1 |
| FUNSD | ANLS / mAP | 80.0 / — | 84.1 / — | 87.6 / 45.5 | 90.0 / 50.3 |
| CORD | ANLS / mAP | 63.1 / — | 71.3 / — | 84.4 / 57.9 | 85.5 / 60.2 |
| SROIE | ANLS | 72.1 | 84.3 | 91.4 | 93.1 |
- On DocVQA, ARIAL outperformed the strongest prior grounding baseline (DLaVA) by +2.8 ANLS and +3.9 mAP.
- On CORD, spatial grounding reached 60.2 mAP, surpassing DLaVA by +2.3 mAP.
Limitations and Future Work
- Inference Latency: Because ARIAL invokes multiple discrete models in sequence, average query latency is 3.2 seconds/query, compared to 0.4–1.2 seconds for monolithic models like DocLayLLM and DLaVA.
- Heavy Compute Footprint: Running the complete pipeline requires substantial infrastructure (the authors evaluated on 4× NVIDIA H100 80GB GPUs to host LLaMA 4 Scout and Gemma 3-27B concurrently).
- Upstream OCR Bottleneck: The spatial grounding precision is strictly upper-bounded by the DB text detector and TrOCR engine; errors during initial token extraction cannot be easily recovered downstream.
Summary updated