TL;DR
This paper introduces SimpleDoc, a novel framework for Document Visual Question Answering (DocVQA) that efficiently retrieves and reasons over multi-modal documents. By combining embedding-based retrieval with a novel summary-based re-ranking mechanism and an iterative reasoning agent, SimpleDoc achieves state-of-the-art performance with significantly fewer retrieved pages compared to existing methods.
What Problem Does This Paper Address?
Document Visual Question Answering (DocVQA) is a challenging task that requires understanding information spread across multiple pages and various modalities (text, tables, images) within documents. Existing approaches often struggle with the complexity of long documents, the need to cross-reference information across pages, and the integration of diverse data formats. While Retrieval-Augmented Generation (RAG) has shown promise, current methods can be overly complex, computationally expensive, or fail to fully leverage the capabilities of modern Visual Language Models (VLMs). The authors aim to develop a more efficient and effective DocVQA framework that addresses these challenges.
Methods
SimpleDoc employs a two-stage approach:
- Offline Document Processing:
- Page Embedding: Each page of a document is converted into a dense visual embedding using a VLM (specifically, ColPali's strategy with ColQwen-2.5).
- Page Summarization: A general VLM is used to generate a concise, 3-5 sentence summary for each page, capturing its salient information. These summaries are designed to be generally relevant for potential future queries.
- Online Iterative Question Answering:
- Dual-Cue Page Retrieval:
- Initial Retrieval: The system first retrieves candidate pages based on embedding similarity between the query and page embeddings.
- Dual-Cue Page Retrieval:
- Summary-Based Re-ranking: An LLM then uses the query and the summaries of the retrieved pages to re-rank them, selecting the most relevant subset. This dual-cue approach aims to improve retrieval precision.
- Reasoning Agent: A VLM-based reasoning agent takes the re-ranked pages (as images and text) and a working memory (initialized with a document-level summary) as input.
- Iterative Refinement: The agent iteratively reasons over the provided context. If the answer is found, it's provided. If not, and if more information is likely present, the agent generates a refined query to retrieve additional pages. This process continues until an answer is found, the question is deemed unanswerable, or a maximum iteration limit is reached. The working memory is updated at each step to retain crucial information.
Datasets
The paper evaluates SimpleDoc on four diverse DocVQA benchmarks:
- MMLongBench: Designed for long PDFs with complex layouts and multi-modal components.
- LongDocURL: A large-scale benchmark for document retrieval and reasoning.
- PaperTab: Focuses on extracting and interpreting tabular data from research papers.
- FetaTab: A table-based QA dataset using tables extracted from Wikipedia articles.
The authors also compare their method to baselines on these datasets, including M3DocRAG and MDocAgent.
Key Insights and Ideas
- Dual-Cue Retrieval is Key: The combination of embedding similarity and summary-based re-ranking significantly improves retrieval precision. Relying solely on embedding retrieval leads to a substantial drop in accuracy and retrieval F1 score.
- Summaries as Efficient Filters: VLM-generated summaries act as an effective and lightweight way to filter and re-rank pages, reducing the number of pages that need to be processed by the reasoning agent.
- Iterative Refinement for Complex Queries: The iterative nature of the reasoning agent, coupled with a memory module, allows SimpleDoc to progressively refine its understanding and target missing information, leading to better performance on multi-step questions.
- Leveraging VLMs for Efficiency: SimpleDoc demonstrates that modern VLMs can be effectively utilized for both retrieval and reasoning in a streamlined, single-agent framework, avoiding the complexity of multi-agent systems.
- Trade-off Between Coverage and Conciseness: The paper highlights that simply increasing the number of retrieved pages (top-k) doesn't always lead to better performance; a balance between coverage and conciseness is crucial. SimpleDoc achieves high accuracy with a significantly lower number of pages used.
Key Results
- SimpleDoc achieves the highest average accuracy of 70.12% across four DocVQA datasets, outperforming baselines by 3.2% on average.
- It significantly outperforms MDocAgent by +5.3% on MMLongBench and +9.1% on LongDocURL.
- SimpleDoc requires an average of only 3.5 pages per question, compared to MDocAgent's 4 pages for a lower accuracy.
- The iterative refinement strategy shows a trend of progressively improving accuracy with additional iterations, while the number of query updates decreases, indicating efficient information gathering.
- Disabling the memory module results in a small accuracy decrease, but it becomes critical for multi-step questions.
Limitations and Future Work
- Single-Document Focus: The current work focuses on single-document VQAs. The authors suggest that the embedding retrieval method could be extended to retrieve from a larger document database.
- Test-Time Scaling: The current approach focuses on test-time scaling methods. Future work could explore RAG methods that require training.
- Graph-Based Methods: Graph-based database and retrieval methods are identified as promising future directions.
- Model Size: While SimpleDoc performs well with larger models, the paper also shows competitive results with smaller VLM variants, suggesting potential for efficiency.
- Table-Centric Performance: While generally robust, SimpleDoc performs slightly lower than MDocAgent on heavily table-centric datasets, possibly due to MDocAgent's specialized agents for modalities like tables.
Summary updated