Introduction
Document Question Answering (DQA) involves extracting information from visually rich documents such as receipts, forms, and infographics. Historically, this task has been approached using multimodal models that combine vision encoders with language models to interpret both textual content and spatial layout. However, as Large Language Models (LLMs) have advanced in reasoning capabilities, researchers from Google Research have questioned the necessity of the "vision" component. This study investigates whether a text-only LLM, provided with serialized OCR output, can achieve competitive performance on DQA benchmarks without explicit visual or spatial features.
Methodology
The researchers proposed a streamlined, three-step pipeline to decouple visual processing from linguistic reasoning:
- OCR Extraction: An off-the-shelf Optical Character Recognition engine identifies text within the document image.
- Serialization: The 2D layout of extracted text is converted into a 1D string. The study explored various "reading orders," most notably a "Raster Scan" heuristic that groups text into lines based on vertical proximity, mimicking human reading patterns.
- LLM Reasoning: The serialized text is fed into a Flan-T5 model (ranging from 250M to 11B parameters) using a simple prompt format:
Context: [OCR text], Question: [Q], Answer:.
Notably, this architecture utilizes no visual features or bounding box coordinates, relying entirely on the sequence of words.
The Critical Role of Reading Order
A key finding of the research is that the performance of LLMs in DQA is highly sensitive to the order of the input text. The authors introduced "Reading Order Perplexity" (ROP) to quantify how confusing a text sequence is for the model. They found that a jumbled reading order significantly degrades performance, even when all necessary information is present in the prompt.
The "Raster Scan" heuristic proved particularly effective, outperforming the default output of many OCR engines. By correctly sequencing the text, the LLM can leverage its internal world knowledge and reasoning to reconstruct the relationships between document elements that were originally conveyed through layout.
Experimental Results
The approach was evaluated across six diverse benchmarks: DocVQA, OCR-VQA, InfoVQA, TextVQA, ChartQA, and AI2D. The results were surprisingly robust. The largest model, Flan-T5-XXL, achieved performance nearly on par with state-of-the-art (SOTA) multimodal models:
- OCR-VQA: 70.5% accuracy (SOTA: 71.3%).
- DocVQA: 78.5 ANLS score (SOTA: 84.7).
- InfoVQA: 45.2 score, trailing SOTA by approximately 2%.
In several instances, this "blind" LLM approach outperformed earlier specialized multimodal architectures like LayoutLMv3, suggesting that a powerful language backbone can often compensate for the lack of explicit spatial encoding.
Limitations and Conclusion
Despite its success, the LLM-only approach has inherent limitations. It fails on queries requiring purely visual reasoning (e.g., identifying colors or facial expressions) and struggles with extremely dense or non-linear layouts where 1D serialization cannot capture complex spatial relationships. Additionally, long documents may exceed the LLM's context window.
The study concludes that for many DQA tasks, spatial layout primarily serves as a guide for reading order. Once the text is correctly serialized, the LLM's reasoning capabilities are often sufficient. The authors suggest that this approach should serve as a baseline for future multimodal research to ensure that new models are providing genuine visual-reasoning value beyond what a strong LLM can achieve with text alone.
Summary updated