Catalog / Vision
DocVQA (2020)
50,000 questions over 12,767 scanned industry documents—forms, tables, letters and handwritten notes.
Why it matters
Natural-photo VQA rarely tests whether a model can read dense typography, follow a two-column table or link a checkbox to its label. DocVQA turned real archival scans into a question-answering benchmark where layout carries half the meaning. Because small print vanishes when a page is squashed to 224×224 pixels, DocVQA became the stress test that drove modern VLMs toward high-res stages, image tiling and native dynamic resolution.
Get the data
# pip install -U huggingface_hub
hf download HuggingFaceM4/DocumentVQA --repo-type dataset \
--local-dir docvqafrom datasets import load_dataset # pip install datasets
ds = load_dataset("HuggingFaceM4/DocumentVQA")
print(ds)import polars as pl
df = pl.read_parquet("hf://datasets/HuggingFaceM4/DocumentVQA@~parquet/default/validation/*.parquet")
print(df.shape)Single-page DocVQA (Task 1) in Parquet format with embedded page scans, questions, reference answers and layout tags.
- Year
- 2020
- Creators
- Minesh Mathew, Dimosthenis Karatzas, C. V. Jawahar (CVC Barcelona, IIIT Hyderabad)
- Task
- Document visual question answering
- Size
- 12,767 document pages, 50,000 questions
- Splits
- train 39,463 · validation 5,349 · test 5,188
- Input
- A scanned single-page document image and a question about its contents
- Labels
- One or more verbatim reference answers, plus question-type tags (table, form, layout, handwritten, etc.)
- License
- Research use (annotations); document images from UCSF Industry Documents Library
- Paper
- DocVQA: A Dataset for VQA on Document Images
Samples

What is the ‘code’ for the ‘item ‘insurance-placing’?
Show answer
- 4050

What is the specimen ?
Show answer
- 10 rat sera

What is the percentage increase in number of sugar executives in 1944 compared to 1933?
Show 2 accepted answers
- 114%
- 114

How many (in Roman numeral) facilities are there in the floor ?
Show 3 accepted answers
- vii
- VII
- vii.

What is the Agenda for?
Show 2 accepted answers
- Agenda for Menopausal Health Publication Management Meeting
- MENOPAUSAL HEALTH PUBLICATION MANAGEMENT MEETING

How many complaints were received during the financial year ended 31st March 2005?
Show answer
- 65

What is the text printed on the bottom right corner of the page?
Show answer
- CONTA025-023687

What is the year of deposit?
Show answer
- 1976

What is the name of the client?
Show 2 accepted answers
- rjr/now
- RJR/Now

What is the mo.license number?
Show answer
- 1939

How do you remove food particles adhering to the teeth, without a toothbrush?
Show answer
- Rinse your mouth with water

What was the meeting held at Newyork city on June 23-24,2000?
Show 2 accepted answers
- american conservative network regional meeting
- American conservative network regional meeting

From the 103, How many were enrolled?
Show 2 accepted answers
- 100
- N=100

What is the No. of population in Miller county?
Show answer
- 14,700

What is Our Code ?
Show answer
- MVS R439

What is his weight?
Show answer
- 59 kg (130 lb.)

What is the date of correspondence?
Show 2 accepted answers
- JUNE 7, 1990
- June 7, 1990

What is the ‘heading’?
Show 2 accepted answers
- advisory board meeting
- Advisory board meeting
What one record actually looks like (raw JSON, row 5333)
{
"answers": [
"4050"
],
"docId": 14218,
"image": {
"height": 2238,
"src": "samples/docvqa/5333-image.jpg",
"width": 1510
},
"question": "What is the ‘code’ for the ‘item ‘insurance-placing’?",
"questionId": 49127,
"question_types": [
"table/list"
],
"ucsf_document_id": "qtyp0227",
"ucsf_document_page_no": "2"
}Media fields point at a local copy; on Hugging Face they are bytes in a Parquet file.
Sampled 2026-11-22 from HuggingFaceM4/DocumentVQA at revision a44195f
Worth knowing
- Pages come from the UCSF Industry Documents Library—memos, budgets, lab reports and forms spanning decades, many typed or handwritten.
- Scored with ANLS (Average Normalized Levenshtein Similarity), which forgives minor one-character OCR typos while zeroing out responses that drift too far.
- Upgrading PaliGemma from 224px to 896px nearly doubled its DocVQA score (from 43.7 to 84.8), illustrating how severely fixed low-res crops bottleneck document reading.
- Questions are tagged by layout type—tables, forms, figures, lists, yes/no and handwritten text—so errors can be broken down by structure.
Related datasets
- TextVQA: 2019, reading text in everyday street and indoor photosHugging Face ↗TextVQA on this site →
- InfographicVQA: 2021, companion benchmark over tall, visually dense infographicsarxiv.org ↗
- ChartQA: 2022, visual and arithmetic reasoning over plots and chartsHugging Face ↗ChartQA on this site →
- MP-DocVQA: 2023, multi-page extension requiring cross-page lookuparxiv.org ↗
- MMMU: 2023, college-level multimodal reasoningHugging Face ↗MMMU on this site →
- VQA v2: 2017, open-ended questions about everyday photosHugging Face ↗VQA v2 on this site →
Landmark papers
- OCR-free Document Understanding Transformer (Donut) (2022)
- Molmo and PixMo: Open Weights and Open Data for State-of-the-Art Vision-Language Models (Molmo) (2024)Molmo on this site →
- PaliGemma: A versatile 3B VLM for transfer (PaliGemma) (2024)PaliGemma on this site →
- Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolution (Qwen2-VL) (2024)Qwen2-VL on this site →