arXiv(opens in a new tab)cs.CLApr 2019Cited by 13 papers on PaperVantage

Manuscript Offprint

arXiv:1904.08920

Towards VQA Models That Can Read

Amanpreet Singh, Vivek Natarajan, Meet Shah, Yu Jiang, Xinlei Chen, Dhruv Batra, Devi Parikh, Marcus Rohrbach

Abstract

Studies have shown that a dominant class of questions asked by visually impaired users on images of their surroundings involves reading text in the image. But today's VQA models can not read! Our paper takes a first step towards addressing this problem. First, we introduce a new "TextVQA" dataset to facilitate progress on this important problem. Existing datasets either have a small proportion of questions about text (e.g., the VQA dataset) or are too small (e.g., the VizWiz dataset). TextVQA contains 45,336 questions on 28,408 images that require reasoning about text to answer. Second, we introduce a novel model architecture that reads text in the image, reasons about it in the context of the image and the question, and predicts an answer which might be a deduction based on the text and the image or is composed of the strings found in the image. Consequently, we call our approach Look, Read, Reason & Answer (LoRRA) 1^{1}. We show that LoRRA outperforms existing state-of-the-art VQA models on our TextVQA dataset. We find that the gap between human performance and machine performance is significantly larger on TextVQA than on VQA 2.0, suggesting that TextVQA is well-suited to benchmark progress along directions complementary to VQA 2.0.

1. Introduction

The focus of this paper is endowing Visual Question Answering (VQA) models a new capability – the ability to read text in images and answer questions by reasoning over the text and other visual content.

VQA has witnessed tremendous progress. But today’s VQA models fail catastrophically on questions requiring reading! 2^{2} This is ironic because these are exactly the ques-

Figure

What does it say near the star on the tail of the plane?

Ground Truth

Prediction

jet

nothing

(a)

What is the time on bottom middle phone?

Ground Truth

Prediction

15:20

12:00

(b)

Figure

What is the top oz?

Ground Truth

Prediction

16

red

(c)

What is the largest

denomination on table?

Ground Truth

Prediction

500

unknown

(d)

Figure 1: Examples from our TextVQA dataset. TextVQA questions require VQA models to understand text embedded in the images to answer them correctly. Ground truth answers are shown in green and the answers predicted by a state-of-the-art VQA model (Pythia [17]) are shown in red. Clearly, today's VQA models fail at answering questions that involve reading and reasoning about text in images.

tions visually-impaired users frequently ask of their assistive devices. Specifically, the VizWiz study [5] found that up to 21% of these questions involve reading and reasoning about the text captured in the images of a user's surroundings – ‘what temperature is my oven set to?’, ‘what denomination is this bill?’.

Consider the question in Fig. 1(a) – ‘What does it say near the star on the tail of the plane?’ from the TextVQA dataset. With a few notable exceptions, today’s state-of-

1^{1}Code is available at https://github.com/facebookresearch/pythia

2^{2}All top entries in the CVPR VQA Challenges (2016-18) struggle to answer questions in category requiring reading correctly.

art VQA models are predominantly monolithic deep neural networks (without any specialized components). Consider what we are asking such models to learn; for answering these questions, the model must learn to

• realize when the question is about text ('What ... say?'),

• detect image regions containing text ('15:20', '500'),

  • convert pixel representations of these regions (convolutional features) to symbols ('15:20') or textual representations (semantic word-embeddings),

• jointly reason about detected text and visual content, e.g. resolving spatial or other visual reference relations ('tail of the plane ... on the back') to focus on the correct regions.

• finally, decide if the detected text needs to be ‘copy-pasted’ as the answer (e.g. ‘16’ in Fig. 1 (c)) or if the detected text informs the model about an answer in the answer space (e.g. answering ‘jet’, in Fig. 1(a)).

When laid out like that, it is perhaps unsurprising why today’s models have not been able to make progress on questions requiring reading and reasoning about text in the images – simply put, despite all the strengths of deep learning, it seems hopelessly implausible that all of the above skills will simply emerge in a monolithic network all from the distant supervision of VQA accuracy.

Fortunately, we can do more than just hope. Optical Character Recognition (OCR) is a mature sub-field of computer vision. A key thesis of our work is the following – we should bake in inductive biases and specialized components (e.g. OCR) into models to endow them with the different skills (e.g. reading, reasoning) required by the all-encompassing task of VQA.

Specifically, we propose a new VQA model that includes OCR as a module. We call it Look, Read, Reason & Answer (LoRRA). Our model architecture incorporates the regions (bounding boxes) in the image containing text as entities to attend over (in addition to object proposals). It also incorporates the actual text recognized in these regions (e.g. '15:20') as information (in addition to visual features) that the model learns to reason over. Finally, our model includes a mechanism to decide if the answer produced should be 'copied' over from the OCR output (in more of a generation or slot-filling flavor), or should be deduced from the text (as in a standard discriminative prediction paradigm popular among existing VQA models). Our model learns this mechanism end-to-end. While currently limited in scope to OCR, our model is as an initial step towards endowing VQA models with the ability to reason over unstructured sources of external knowledge (in this case text found in a test image) and accommodate multiple streams of information flow (in this case predicting an answer from a predetermined vocabulary or generating an answer via copy).

One reason why there has been limited progress on VQA models that can read and reason about text in images is because such questions, while being a dominant category in real applications for aiding visually impaired users [5], are infrequent in the standard VQA datasets [3, 10, 51] because they were not collected in the settings that mimic those of visually impaired users. While the VizWiz dataset [13] does contain data collected from visually impaired users, the effective size of the dataset is small due to 58% of the questions being “unanswerable”. This makes it challenging to study the problem systematically, train effective models, or even draw sufficient attention to this important skill that current VQA models lack.

To this end, we introduce the TextVQA dataset. It contains 45,336 questions asked by (sighted) humans on 28,408 images from the Open Images dataset [27] from categories that tend to contain text e.g. “billboard”, “traffic sign”, “whiteboard”. Questions in the dataset require reading and reasoning about text in the image. Each question-image pair has 10 ground truth answers provided by humans.

Models that do well on this dataset will not only need to parse the image and the question as in traditional VQA, but also read the text in the image, identify which of the text might be relevant to the question, and recognize whether a subset of the detected text can directly be the answer (e.g., in the case of ‘what temperature is my oven set to?’) or additional reasoning is required on the detected text to answer the question (e.g., ‘which team is winning?’).

Overall, our contributions are:

• We introduce a novel dataset (TextVQA) containing questions which require the model to read and reason about the text in the image to be answered.

• We propose Look, Read, Reason & Answer (LoRRA): a novel model architecture which explicitly reasons over the outputs from an OCR system when answering questions.

• LoRRA outperforms existing state-of-the-art VQA models on our TextVQA as well as VQA 2.0 dataset.

References (46)