AI Datasets
Esc

    ↑↓ move↵ open/ search from any page

    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 docvqa

    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

    Showing 6 of 18 sampled rows(from 5,349 in the validation split)

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

    table/list
    Show answer
    • 4050

    What is the specimen ?

    form
    Show answer
    • 10 rat sera

    What is the percentage increase in number of sugar executives in 1944 compared to 1933?

    handwrittentable/list
    Show 2 accepted answers
    • 114%
    • 114

    How many (in Roman numeral) facilities are there in the floor ?

    table/list
    Show 3 accepted answers
    • vii
    • VII
    • vii.

    What is the Agenda for?

    layout
    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?

    free_text
    Show answer
    • 65
    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

    Related datasets

    Landmark papers