Human Attention in Visual Question Answering: Do Humans and Deep Networks Look at the Same Regions?

We conduct large-scale studies on `human attention' in Visual Question Answering (VQA) to understand where humans choose to look to answer questions about images. We design and test multiple game-inspired novel attention-annotation interfaces that require the subject to sharpen regions of a blurred image to answer a question. Thus, we introduce the VQA-HAT (Human ATtention) dataset. We evaluate attention maps generated by state-of-the-art VQA models against human attention both qualitatively (via visualizations) and quantitatively (via rank-order correlation). Overall, our experiments show that current attention models in VQA do not seem to be looking at the same regions as humans.


page 1

page 2

page 3


Hierarchical Question-Image Co-Attention for Visual Question Answering

A number of recent works have proposed attention models for Visual Quest...

Answer Questions with Right Image Regions: A Visual Attention Regularization Approach

Visual attention in Visual Question Answering (VQA) targets at locating ...

Knowing Where to Look? Analysis on Attention of Visual Question Answering System

Attention mechanisms have been widely used in Visual Question Answering ...

On the Efficacy of Co-Attention Transformer Layers in Visual Question Answering

In recent years, multi-modal transformers have shown significant progres...

Differential Attention for Visual Question Answering

In this paper we aim to answer questions based on images when provided w...

How good are deep models in understanding the generated images?

My goal in this paper is twofold: to study how well deep models can unde...

Taking a HINT: Leveraging Explanations to Make Vision and Language Models More Grounded

Many vision and language models suffer from poor visual grounding - ofte...

1 Introduction

It helps to pay attention. Humans have the ability to quickly perceive a scene by selectively attending to parts of the image instead of processing the whole scene in its entirety Rensink (2000)

. Inspired by human attention, a recent trend in computer vision and deep learning is to build computational models of attention. Given an input signal, these models learn to attend to parts of it for further processing and have been successfully applied in machine translation

Bahdanau et al. (2014); Firat et al. (2016), object recognition Ba et al. (2015); Mnih et al. (2014); Sermanet et al. (2014), image captioning Xu et al. (2015); Cho et al. (2015) and visual question answering Yang et al. (2015); Lu et al. (2016); Xu & Saenko (2015); Xiong et al. (2016).

Figure 1: Different human attention regions based on question (best viewed in color).

In this work, we study attention for the task of Visual Question Answering (VQA). Unlike image captioning, where a coarse understanding of an image is often sufficient for producing generic descriptions Devlin et al. (2015), visual questions selectively target different areas of an image including background details and underlying context. This suggests that a VQA model may benefit from an explicit or implicit attention mechanism to answer a question correctly.

Figure 2: (a-c): Column 1 shows deblurred image, and column 2 shows human attention map.

In this work, we are interested in the following questions: 1) Which image regions do humans choose to look at in order to answer questions about images? 2) Do deep VQA models with attention mechanisms attend to the same regions as humans?

We design and conduct studies to collect “human attention maps”. fig:teaser shows human attention maps on the same image for two different questions. When asked ‘What type is the surface?’, humans choose to look at the floor, while attention for ‘Which game is being played?’ is concentrated around the player and racket.

These human attention maps can be used both for evaluating machine-generated attention maps and for explicitly training attention-based models.

Contributions. First, we design and test multiple game-inspired novel interfaces for collecting human attention maps of where humans choose to look to answer questions from the large-scale VQA dataset Antol et al. (2015); this VQA-HAT (Human ATtention) dataset will be released publicly. Second, we perform qualitative and quantitative comparison of the maps generated by state-of-the-art attention-based VQA models Yang et al. (2015); Lu et al. (2016) and a task-independent saliency baseline Judd et al. (2009) against our human attention maps through visualizations and rank-order correlation. We find that machine-generated attention maps from the most accurate VQA model have a mean rank-correlation of 0.26 with human attention maps, which is worse than task-independent saliency maps that have a mean rank-correlation of 0.49. It is well understood that task-independent saliency maps have a ‘center bias’ Judd et al. (2009). After we control for this center bias in our human attention maps, we find that the correlation of task-independent saliency is poor (as expected), while trends for machine-generated VQA-attention maps remain the same (which is promising).

2 Related Work

(a) Initial blurred image
(b) Regions sharpened by subject
(c) Attention map
Figure 3: Deblurring procedure to collect attention maps.

Our work draws on recent work in attention-based VQA and human studies in saliency prediction. We work with the free-form and open-ended VQA dataset released by Antol et al. (2015).

VQA Models.

Attention-based models for VQA typically use convolutional neural networks to highlight relevant regions of image given a question. Stacked Attention Networks (SAN) proposed in

Yang et al. (2015) use LSTM encodings of question words to produce a spatial attention distribution over the convolutional layer features of the image. Hierarchical Co-Attention Network Lu et al. (2016) generates multiple levels of image attention based on words, phrases and complete questions, and is the top entry on the VQA Challenge111 as of the time of this submission. Another interesting approach uses question parsing to compose the neural network from modules, attention being one of the sub-tasks addressed by these modules Andreas et al. (2016).

Note that all these works are unsupervised attention models, where “attention” is simply an intermediate variable (a spatial distribution) that is produced by the model to optimize downstream loss (VQA cross-entropy). The fact that some (it’s unclear how many) of these spatial distributions end up being interpretable is simply fortuitous. In contrast, we study where humans choose to look to answer visual questions. These human attention maps can be used to evaluate unsupervised maps.

Human Studies. There’s a rich history of work in collecting eye tracking data from human subjects to gain an understanding of image saliency and visual perception Jiang et al. (2014); Judd et al. (2009); Fei-Fei et al. (2007); Yarbus (1967). Eye tracking data to study natural visual exploration Jiang et al. (2014); Judd et al. (2009) is useful but difficult and expensive to collect on a large scale. Jiang et al. (2015) established mouse tracking as an accurate approach to collecting attention maps. They collected large-scale attention annotations for MS COCO Lin et al. (2014) on Amazon Mechanical Turk (AMT). While Jiang et al. (2015) studies natural exploration and collects task-independent human annotations by asking subjects to freely move the mouse cursor to anywhere they wanted to look on a blurred image, our approach is task-driven.

Specifically, as described in section 3, we collect ground truth attention annotations by instructing subjects to sharpen parts of a blurred image that are important for answering the questions accurately. Section 4 covers evaluation of unsupervised attention maps generated by VQA models against our human attention maps.

3 VQA-HAT (Human ATtention) Dataset

We design and test multiple game-inspired novel interfaces for conducting large-scale human studies on AMT. Our basic interface design consists of a “deblurring” exercise for answering visual questions. Specifically, we present subjects with a blurred image and a question about the image, and ask subjects to sharpen regions of the image that will help them answer the question correctly, in a smooth, click-and-drag, ‘coloring’ motion with the mouse. Successively scrubbing the same region progressively sharpens it. fig:task_steps shows intermediate steps in our attention annotation interface, from a completely blurry image to a deblurred attention map.

Dataset Evaluation. We ran pilot studies on AMT to experiment with multiple interfaces – where we ask just the question, or show both the question and answer, or question, answer as well as original high-resolution image, along with blurred image. In order to quantitatively evaluate the interfaces, we conducted a second human study where (a second set of) subjects where shown the attention-sharpened images generated from each of the attention interfaces from the first experiment and asked to answer the question. The intuition behind this experiment is that if the attention map revealed too little information, this second set of subjects would answer the question incorrectly. Table 1 shows VQA accuracies of the answers given by human subjects under these 3 interfaces. We can see that the “Blurred Image with Answer” interface gives the highest accuracy on evaluation by humans.

Since the payments structure on AMT encourage completing tasks as quickly as possible, this implicitly incentivizes subjects to deblur as few regions as possible, and our human study shows that humans can still answer questions. Thus, overall we achieve a balance between highlighting too little or too much.

Interface Type Human Accuracy
Blurred Image without Answer 75.2
Blurred Image with Answer 78.7
Blurred & Original Image with Answer 71.2
Original Image 80.0
Table 1: Human accuracies to compare the quality of human attention maps collected by different interfaces.

We collected human attention maps for 58475 train (out of 248349 total) and 1374 val (out of 121512 total) question-image pairs in the VQA dataset. Overall, we conducted approximately 20000 Human Intelligence Tasks (HITs) on AMT, among 800 unique workers. fig:human_maps shows examples of collected human attention maps. This VQA-HAT dataset will be released publicly.

Figure 4:

To visualize the collected dataset, we cluster the human attention maps and visualize the average attention map and example questions falling in each of them for 6 selected clusters in fig:analysis.

4 Human Attention Maps vs Unsupervised Attention Models

Now that we have collected human attention maps, we can ask the question – do unsupervised attention models learn to predict attention maps that are similar to human attention maps? To rephrase, do neural networks look at the same regions as humans to answer a visual question?

VQA Attention Models. We evaluate maps generated by the following unsupervised models:

Comparison Metric: Rank Correlation.

We first scale both the machine-generated and human attention maps to 14x14, rank the pixels according to their spatial attention and then compute correlation between these two ranked lists. We choose an order-based metric so as to make the evaluation invariant to absolute spatial probability values which can be made peaky or diffuse by tweaking a ‘temperature’ parameter.

Model Rank-correlation
SAN-2 Yang et al. (2015) 0.249 0.004
HieCoAtt-W Lu et al. (2016) 0.246 0.004
HieCoAtt-P Lu et al. (2016) 0.256 0.004
HieCoAtt-Q Lu et al. (2016) 0.264 0.004
Random 0.000 0.001
Judd et al. Judd et al. (2009) 0.497 0.004
Human 0.623 0.003
Table 2:

Mean rank-correlation coefficients (higher is better); error bars show standard error of means.

Table 2 shows rank-order correlation averaged over all image-question pairs on the validation set. We compare with random attention maps and task-independent saliency maps generated by a model trained to predict human eye fixation locations where subjects are asked to freely view an image for 3 seconds Judd et al. (2009). Both SAN-2 and HieCoAtt attention maps are positively correlated with human attention maps, but not as strongly as task-independent Judd saliency maps. Our findings lead to two take-away messages with significant potential impact on future research in this active field. First, current VQA attention models do not seem to be ‘looking’ at the same regions as humans to produce an answer. Second, as attention-based VQA models become more accurate ( SAN HieCoAtt), they seem to be (slightly) better correlated with humans in terms of where they look. Our dataset will allow for a more thorough validation of this observation as future attention-based VQA models are proposed. To put these numbers in perspective, we computed inter-human agreement on the validation set by collecting 3 human attention maps per image-question pair and computing mean rank-correlation, which is 0.623.

Center Bias. Judd saliency maps aim to predict human eye fixations during natural visual exploration. These tend to have a strong center bias Judd et al. (2009). Although our human attention maps dataset is not an eye tracking study, the center bias still exists albeit not as severe. One potential source of this center bias is the fact that the VQA dataset was human-generated by subjects looking at the images. Thus, salient objects in the center of the image are likely be potential subjects of the questions. We compute rank-correlation of a synthetically generated central attention map with Judd saliency and human attention maps. Judd saliency maps have a mean rank-correlation of 0.877 and human attention maps have a mean rank-correlation of 0.458 on the validation set.

Model Rank-correlation
SAN-2 Yang et al. (2015) 0.038 0.011
HieCoAtt-W Lu et al. (2016) 0.062 0.012
HieCoAtt-P Lu et al. (2016) 0.048 0.010
HieCoAtt-Q Lu et al. (2016) 0.114 0.012
Judd et al. Judd et al. (2009) -0.063 0.009
Table 3: Mean rank-correlation coefficients (higher is better) on the reduced set without center bias; error bars show standard error of means.

To eliminate the effect of center bias in this evaluation, we removed human attention maps that have a positive rank-correlation with the center attention map. We compute rank-correlation of machine-generated attention with human attention on this reduced set. See Table 3. Mean correlation goes down significantly for Judd saliency maps since they have a strong center bias. Relative trends among SAN-2 & HieCoAtt are similar to those over the whole validation set (reported in Table 2). HieCoAtt-Q now has a higher correlation with human attention maps than Judd saliency. This demonstrates that discounting the center bias, VQA-specific machine attention maps correlate better with VQA-specific human attention maps than task independent machine saliency maps.

5 Conclusion & Discussion

We introduce and release the VQA-HAT dataset. This dataset can be used to evaluate attention maps generated in an unsupervised manner by attention-based VQA models, or to explicitly train models with attention supervision for VQA. We quantify whether current attention-based VQA models are ‘looking’ at the same regions of the image as humans do to produce an answer.

Necessary vs Sufficient Maps. Are human attention maps ‘necessary’ and/or ‘sufficient’? If regions highlighted by the human attention maps are sufficient to answer the question accurately, then so is any region that is a superset. For example, if attention mass is concentrated on a ‘cat’ for ‘What animal is present in the picture?’, then an attention map that assigns weights to any arbitrary-sized region that includes the ‘cat’ is sufficient as well. On the contrary, a necessary and sufficient attention map would be the smallest visual region sufficient for answering the question accurately. It is an ill-posed problem to define a necessary attention map in the space of pixels; random pixels can be blacked out and chances are that humans would still be able to answer the question given the resulting subset attention map. Our work thus poses an interesting question for future work – what is the right semantic space in which it is meaningful to talk about necessary and sufficient attention maps for humans?

Acknowledgements. We thank Jiasen Lu and Ramakrishna Vedantam for helpful suggestions and discussions. This work was supported in part by the following: National Science Foundation CAREER awards to DB and DP, Army Research Office YIP awards to DB and DP, ICTAS Junior Faculty awards to DB and DP, Army Research Lab grant W911NF-15-2-0080 to DP and DB, Office of Naval Research grant N00014-14-1-0679 to DB, Paul G. Allen Family Foundation Allen Distinguished Investigator award to DP, Google Faculty Research award to DP and DB, AWS in Education Research grant to DB, and NVIDIA GPU donation to DB.