Skip to main content
QUICK REVIEW

[Paper Review] DocVQA: A Dataset for VQA on Document Images

Minesh Mathew, Dìmosthenis Karatzas|arXiv (Cornell University)|Jul 1, 2020
Multimodal Machine Learning ApplicationsComputer Science37 references8 citations
TL;DR

This paper introduces DocVQA, a large-scale dataset of 50,000 question-answer pairs across 12,767 document images, designed to advance visual question answering on document images by requiring models to understand both textual content and document layout. The best-performing model, BERT-Large fine-tuned on both SQuAD and DocVQA, achieves 55.77% exact match accuracy, significantly below human performance (94.36%), highlighting the need for better integration of visual and structural cues in document understanding.

ABSTRACT

We present a new dataset for Visual Question Answering (VQA) on document images called DocVQA. The dataset consists of 50,000 questions defined on 12,000+ document images. Detailed analysis of the dataset in comparison with similar datasets for VQA and reading comprehension is presented. We report several baseline results by adopting existing VQA and reading comprehension models. Although the existing models perform reasonably well on certain types of questions, there is large performance gap compared to human performance (94.36% accuracy). The models need to improve specifically on questions where understanding structure of the document is crucial. The dataset, code and leaderboard are available at docvqa.org

Motivation & Objective

  • To address the gap in holistic document image understanding by introducing a VQA task that requires reasoning beyond simple text extraction.
  • To motivate a 'purpose-driven' approach in document analysis, where models are driven by user queries rather than isolated extraction tasks.
  • To provide a large-scale, diverse dataset of real-world document images with complex, open-ended questions requiring multimodal understanding.
  • To benchmark existing VQA and reading comprehension models on document images and identify key failure modes, especially in layout and structural reasoning.

Proposed method

  • The dataset comprises 12,767 real document images from 5 industries and multiple decades, annotated with 50,000 natural language questions categorized by reasoning type.
  • Questions are designed to require understanding of layout, structure, tables, forms, and non-textual visual cues such as tick boxes and diagrams.
  • Baseline models include heuristic methods (e.g., OCR substring matching), VQA models (LoRRA, M4C), and BERT-based question answering models fine-tuned on DocVQA and SQuAD.
  • The M4C model is adapted to use both visual features and OCR-extracted text, with ablation studies on dynamic vocabulary and object features.
  • BERT-based models are fine-tuned on DocVQA using question-answer pairs, with ablation on pretraining data (SQuAD vs. no SQuAD pretraining).
  • Performance is evaluated using exact match (Acc.) and average normalized L2 distance (ANLS), with human performance used as an upper bound.

Experimental results

Research questions

  • RQ1How well do existing VQA and reading comprehension models generalize to real document images with complex layouts and multimodal cues?
  • RQ2What types of questions are most challenging for current models, and where do they fail compared to human performance?
  • RQ3To what extent does pretraining on SQuAD improve performance on document VQA, and how does fine-tuning on DocVQA alone affect results?
  • RQ4How critical is the integration of layout and structural information for answering questions that require document-level reasoning?
  • RQ5Can models trained on generic VQA or text QA datasets effectively handle the open-ended, document-specific reasoning required in DocVQA?

Key findings

  • The best-performing model, BERT-Large fine-tuned on both SQuAD and DocVQA, achieves 55.77% exact match accuracy on the test set, significantly below human performance of 94.36%.
  • Models trained on SQuAD and fine-tuned on DocVQA outperform models trained only on DocVQA, indicating the benefit of pretraining on large-scale reading comprehension.
  • The M4C model performs best among VQA baselines, with ANLS of 0.665 on the test set, but still lags behind BERT-based models.
  • The OCR substring baseline achieves over 85% accuracy, but suffers from false positives due to spurious matches (e.g., '2' in '2020' for answer '2').
  • Performance varies significantly by question type: models struggle most with layout-based questions (e.g., identifying table structure or figure positions), while performing better on direct text extraction.
  • Human performance is consistent across question types, while model performance varies widely, indicating that current models fail to generalize across reasoning types, especially those requiring structural understanding.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.