[Paper Review] TAP: Text-Aware Pre-training for Text-VQA and Text-Caption
This paper proposes Text-Aware Pre-training (TAP), a method that explicitly integrates scene text from OCR into vision-language pre-training to improve multi-modal representation learning for Text-VQA and Text-Caption tasks. By introducing three novel pre-training tasks—masked language modeling, image-text matching, and relative spatial position prediction—TAP significantly enhances alignment between text words, visual objects, and scene text, achieving state-of-the-art performance with +8.3% accuracy on TextVQA and +10.2 CIDEr on TextCaps when pre-trained on the large-scale OCR-CC dataset.
In this paper, we propose Text-Aware Pre-training (TAP) for Text-VQA and Text-Caption tasks. These two tasks aim at reading and understanding scene text in images for question answering and image caption generation, respectively. In contrast to the conventional vision-language pre-training that fails to capture scene text and its relationship with the visual and text modalities, TAP explicitly incorporates scene text (generated from OCR engines) in pre-training. With three pre-training tasks, including masked language modeling (MLM), image-text (contrastive) matching (ITM), and relative (spatial) position prediction (RPP), TAP effectively helps the model learn a better aligned representation among the three modalities: text word, visual object, and scene text. Due to this aligned representation learning, even pre-trained on the same downstream task dataset, TAP already boosts the absolute accuracy on the TextVQA dataset by +5.4%, compared with a non-TAP baseline. To further improve the performance, we build a large-scale dataset based on the Conceptual Caption dataset, named OCR-CC, which contains 1.4 million scene text-related image-text pairs. Pre-trained on this OCR-CC dataset, our approach outperforms the state of the art by large margins on multiple tasks, i.e., +8.3% accuracy on TextVQA, +8.6% accuracy on ST-VQA, and +10.2 CIDEr score on TextCaps.
Motivation & Objective
- To address the limitation of conventional vision-language pre-training in capturing scene text and its relationships with visual and textual modalities.
- To improve joint representation learning among text words, visual objects, and scene text for downstream Text-VQA and Text-Caption tasks.
- To develop a pre-training framework that explicitly incorporates OCR-extracted scene text as an additional input modality.
- To construct a large-scale, scene text-rich image-text dataset (OCR-CC) to further enhance model performance.
Proposed method
- Integrates scene text tokens and their corresponding visual bounding boxes from OCR as an additional input modality during pre-training.
- Proposes a masked language modeling (MLM) task that includes scene text tokens in the masked input to improve cross-modal alignment.
- Designs an image-text matching (ITM) task that evaluates the relevance between image and text inputs, including scene text.
- Introduces a relative (spatial) position prediction (RPP) task to learn spatial relationships between scene text and visual objects.
- Pre-trains the model on a newly constructed large-scale dataset, OCR-CC, containing 1.4 million scene text-related image-text pairs.
- Uses a multi-modal transformer with cross-attention to learn latent alignments between text words, visual objects, and scene text regions.
Experimental results
Research questions
- RQ1Can explicit incorporation of scene text during pre-training improve multi-modal representation learning for Text-VQA and Text-Caption?
- RQ2How does pre-training with scene text affect the alignment between text words, visual objects, and scene text regions?
- RQ3What is the impact of pre-training on a large-scale, scene text-rich dataset (OCR-CC) compared to standard vision-language datasets?
- RQ4To what extent do the proposed pre-training tasks (MLM, ITM, RPP) contribute to downstream performance?
- RQ5Can TAP correct failure cases of non-TAP models that rely solely on visual and textual modality alignment?
Key findings
- TAP improves the non-TAP baseline by +5.4% absolute accuracy on the TextVQA dataset when pre-trained and fine-tuned on the same downstream data.
- When pre-trained on the OCR-CC dataset, TAP achieves +8.3% accuracy on TextVQA, outperforming previous state-of-the-art methods.
- TAP improves performance by +8.6% on ST-VQA and +10.2 CIDEr on TextCaps, demonstrating strong generalization across tasks.
- Coreference score analysis shows a sevenfold increase in scene-text language alignment and twofold increase in scene-text visual alignment, validating improved joint representation learning.
- Qualitative results demonstrate that TAP correctly handles paraphrased questions, references to scene text via intermediate objects, and complex spatial relationships.
- TAP successfully grounds multiple scene text tokens across a long text span, enabling accurate answer generation for multi-word entity queries.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.