# TextVQA (2019)

> 45,000 questions about signs, labels, clocks and book covers in everyday photos, each answered by ten people.

Page: https://mralbu.github.io/ai-datasets/d/textvqa

## Key facts

- Category: Vision
- Task: Visual question answering requiring reading text in photos
- Creators: Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, Marcus Rohrbach (Facebook AI Research, Georgia Tech)
- Size: 28,408 images, 45,336 questions, 453,360 answers
- Splits: train 34,602, validation 5,000, test 5,734
- Input: An Open Images photo containing scene text and a question about it
- Labels: Ten free-form human answers per question, scored with VQA v2 consensus accuracy
- License: CC BY 4.0 (annotations); images under Open Images / Flickr licenses
- Paper: [Towards VQA Models That Can Read](https://arxiv.org/abs/1904.08920)
- Homepage: https://textvqa.org/
- Hugging Face: [lmms-lab-encoder/textvqa](https://huggingface.co/datasets/lmms-lab-encoder/textvqa)
- Sampled at Hub revision 9c0699cd19768ac5ab97568f6b3cbac4c0062884 (2026-11-22)

## Why it matters

Models trained on VQA v2 could recognize objects and scenes, yet went blind the moment an answer depended on a street sign, a jersey number or a price tag. TextVQA selected images rich in scene text and required every question to rely on reading it. Early systems bolted an external OCR engine onto a VQA model; modern vision-language models read the pixels directly, making TextVQA a standard measure of fine-grained visual resolution from Flamingo and LLaVA to PaliGemma, Qwen2-VL and Molmo.

## Worth knowing

- Uses the same ten-annotator consensus scoring as VQA v2: an answer three of the ten people gave earns about full credit (0.90 under the official leave-one-out average, 1.0 from four).
- Images come from Open Images v3, filtered for categories that often contain text such as billboards, traffic signs, books and whiteboards.
- About 39% of answers don't match an OCR token verbatim, partly from OCR misses and partly from reasoning—for example reading a clock face, adding prices, or deciding which of several labels answers the question.
- Because small scene text turns illegible at 224×224, TextVQA became one of the main benchmarks motivating higher-resolution and dynamic-resolution vision encoders.

## Get the data

A Parquet copy of TextVQA (train, validation and test) with embedded images; the official facebook/textvqa repository uses a legacy loading script.

```bash
# pip install -U huggingface_hub
hf download lmms-lab-encoder/textvqa --repo-type dataset \
  --local-dir textvqa
```

```python
from datasets import load_dataset   # pip install datasets

ds = load_dataset("lmms-lab-encoder/textvqa")
print(ds)
```

```python
import polars as pl

df = pl.read_parquet("hf://datasets/lmms-lab-encoder/textvqa@~parquet/default/validation/*.parquet")
print(df.shape)
```

## Related datasets

- [VQA v2](https://huggingface.co/datasets/lmms-lab-encoder/VQAv2): 2017, general open-ended visual question answering on COCO (on this site: https://mralbu.github.io/ai-datasets/d/vqa-v2)
- [ST-VQA](https://rrc.cvc.uab.es/?ch=11): 2019, concurrent scene-text VQA benchmark scored with ANLS
- [DocVQA](https://huggingface.co/datasets/HuggingFaceM4/DocumentVQA): 2020, reading scanned documents, forms and tables (on this site: https://mralbu.github.io/ai-datasets/d/docvqa)
- [ChartQA](https://huggingface.co/datasets/HuggingFaceM4/ChartQA): 2022, reading and reasoning over real-world charts (on this site: https://mralbu.github.io/ai-datasets/d/chartqa)
- [MMMU](https://huggingface.co/datasets/MMMU/MMMU): 2023, college-level multimodal reasoning (on this site: https://mralbu.github.io/ai-datasets/d/mmmu)

## Landmark papers

- [Iterative Answer Prediction with Pointer-Augmented Multimodal Transformers for TextVQA (M4C)](https://arxiv.org/abs/1911.06258) (2020)

## Papers on this site that use it

- [Flamingo (2022)](https://mralbu.github.io/ai-datasets/p/flamingo.md): Bridged a frozen vision encoder and a frozen LLM with gated cross-attention so one model learns new visual tasks from a few examples in the prompt.
- [Molmo (2024)](https://mralbu.github.io/ai-datasets/p/molmo.md): Matched proprietary frontier VLMs using only open weights and newly collected human speech captions and 2D pointing data—with zero distillation from closed VLMs.
- [PaliGemma (2024)](https://mralbu.github.io/ai-datasets/p/paligemma.md): Paired SigLIP and Gemma-2B with a linear projection, prefix-LM attention and unfrozen multi-resolution pretraining to build a compact 3B transfer base model.
- [Qwen2-VL (2024)](https://mralbu.github.io/ai-datasets/p/qwen2-vl.md): Replaced fixed square crops and patch grids with Naive Dynamic Resolution and Multimodal RoPE so one ViT+LLM reads images and video at their native sizes.
