Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answering
This CVPR paper is the Open Access version, provided by the Computer Vision Foundation. Except for this watermark, it is identical to the version available on IEEE Xplore.
Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answering
Virginia Tech Army Research Laboratory Georgia Institute of Technology
{ygoyal, tjskhot}@vt.edu douglas.a.summers-stay.civ@mail.mil {dbatra, parikh}@gatech.edu
Abstract
摘要
Problems at the intersection of vision and language are of significant importance both as challenging research questions and for the rich set of applications they enable. However, inherent structure in our world and bias in our language tend to be a simpler signal for learning than visual modalities, resulting in models that ignore visual information, leading to an inflated sense of their capability.
视觉与语言交汇处的问题,既是有挑战性的研究课题,也能支撑一批丰富的应用,因而十分重要。然而,我们世界中固有的结构以及语言中的偏差,往往比视觉模态更易于作为学习信号,结果是模型忽视视觉信息,从而对其能力产生夸大的印象。
We propose to counter these language priors for the task of Visual Question Answering (VQA) and make vision (the V in VQA) matter! Specifically, we balance the popular VQA dataset [3] by collecting complementary images such that every question in our balanced dataset is associated with not just a single image, but rather a pair of similar images that result in two different answers to the question. Our dataset is by construction more balanced than the original VQA dataset and has approximately twice the number of image-question pairs. Our complete balanced dataset is publicly available at http://visualqa.org/ as part of the 2nd iteration of the Visual Question Answering Dataset and Challenge (VQA v2.0).
我们提议针对视觉问答(Visual Question Answering,VQA)这一任务来对抗这些语言先验,并让视觉(VQA 中的 V)真正起作用。具体而言,我们通过收集互补图像来平衡流行的 VQA 数据集 [3],使得平衡集中的每个问题不再只对应单张图像,而是对应一对相似图像,且这两张图对同一问题给出两个不同的答案。我们的数据集在构造上比原版 VQA 数据集更平衡,图像-问题对的数量大约是原来的两倍。完整的平衡数据集作为 Visual Question Answering Dataset and Challenge 的第 2 轮(VQA v2.0),公开发布在 http://visualqa.org/。
We further benchmark a number of state-of-art VQA models on our balanced dataset. All models perform significantly worse on our balanced dataset, suggesting that these models have indeed learned to exploit language priors. This finding provides the first concrete empirical evidence for what seems to be a qualitative sense among practitioners.
我们还在平衡数据集上评测了若干当时先进的 VQA 模型。所有模型在我们的平衡集上表现都明显更差,表明这些模型确实学会了利用语言先验。这一发现,为实践者中似乎已有的定性直觉,提供了首份具体的经验证据。
Finally, our data collection protocol for identifying complementary images enables us to develop a novel interpretable model, which in addition to providing an answer to the given (image, question) pair, also provides a counter-example based explanation. Specifically, it identifies an image that is similar to the original image, but it believes has a different answer to the same question. This can help in building trust for machines among their users.
最后,用于识别互补图像的数据收集规程使我们能够开发一种新的可解释模型:它除了为给定的(图像,问题)对提供答案外,还提供基于反例的解释。具体来说,它会找出一张与原图相似、但模型认为对同一问题有不同答案的图像。这有助于在用户中间为机器建立信任。
The first two authors contributed equally.
图 1:来自我们平衡 VQA 数据集的例子。
1. Introduction
1. 引言
Language and vision problems such as image captioning [8, 4, 7, 19, 40, 21, 28] and visual question answering (VQA) [3, 26, 27, 10, 31] have gained popularity in recent years as the computer vision research community is progressing beyond “bucketed” recognition and towards solving multi-modal problems.
随着计算机视觉研究界走出“分桶式”识别、转向求解多模态问题,图像描述 [8, 4, 7, 19, 40, 21, 28] 和视觉问答(VQA)[3, 26, 27, 10, 31] 等语言与视觉问题近年来受到欢迎。
The complex compositional structure of language makes problems at the intersection of vision and language challenging. But recent works [6, 47, 49, 16, 18, 1] have pointed out that language also provides a strong prior that can result in good superficial performance, without the underlying models truly understanding the visual content.
语言复杂的组合结构,使视觉与语言交汇处的问题具有挑战性。但近期工作 [6, 47, 49, 16, 18, 1] 指出,语言也提供了一种强先验,可以在底层模型并未真正理解视觉内容的情况下,带来表面上不错的表现。
This phenomenon has been observed in image captioning [6] as well as visual question answering [47, 49, 16, 18, 1]. For instance, in the VQA [3] dataset, the most common sport answer “tennis” is the correct answer for 41% of the questions starting with “What sport is”, and “2” is the correct answer for 39% of the questions starting with “How many”. Moreover, Zhang et al. [47] points out a particular ‘visual priming bias’ in the VQA dataset – specifically, subjects saw an image while asking questions about it. Thus, people only ask the question “Is there a clock tower in the picture?” on images actually containing clock towers. As one particularly perverse example – for questions in the VQA dataset starting with the n-gram “Do you see a \ldots”, blindly answering “yes” without reading the rest of the question or looking at the associated image results in a VQA accuracy of 87%!
这一现象在图像描述 [6] 和视觉问答 [47, 49, 16, 18, 1] 中都已被观察到。例如,在 VQA [3] 数据集中,最常见的运动答案 “tennis” 是 41% 以 “What sport is” 开头的问题的正确答案,而 “2” 是 39% 以 “How many” 开头的问题的正确答案。此外,Zhang 等人 [47] 指出 VQA 数据集中存在一种特定的“视觉启动偏差”:具体而言,受试者是在看着图像的同时提出关于该图的问题。因此,人们只会在确实含有钟楼的图像上问 “Is there a clock tower in the picture?”。一个尤其乖张的例子是:对 VQA 数据集中以 n-gram “Do you see a \ldots” 开头的问题,不读问题的其余部分、也不看所配图像,盲目回答 “yes”,VQA 准确率就能达到 87%!
These language priors can give a false impression that machines are making progress towards the goal of understanding images correctly when they are only exploiting language priors to achieve high accuracy. This can hinder progress in pushing state of art in the computer vision aspects of multi-modal AI [39, 47].
这些语言先验会造成一种虚假印象:机器正在朝着正确理解图像这一目标取得进展,而它们其实只是在利用语言先验来获得高准确率。这会妨碍在多模态人工智能的计算机视觉方面推进前沿 [39, 47]。
In this work, we propose to counter these language biases and elevate the role of image understanding in VQA. In order to accomplish this goal, we collect a balanced VQA dataset with significantly reduced language biases. Specifically, we create a balanced VQA dataset in the following way – given an (image, question, answer) triplet from the VQA dataset, we ask a human subject to identify an image that is similar to but results in the answer to the question to become (which is different from ). Examples from our balanced dataset are shown in Fig. 1. More random examples can be seen in Fig. 2 and on the project website.
在本工作中,我们提议对抗这些语言偏差,并提升图像理解在 VQA 中的作用。为达成这一目标,我们收集了一个语言偏差显著减少的平衡 VQA 数据集。具体做法如下:给定 VQA 数据集中的一个(图像,问题,答案)三元组 ,我们请一位标注者找出一张与 相似、但使问题 的答案变为 (与 不同)的图像 。平衡集中的例子见图 1。更多随机例子见图 2 和项目网站。
Our hypothesis is that this balanced dataset will force VQA models to focus on visual information. After all, when a question has two different answers for two different images, the only way to know the right answer is by looking at the image. Language-only models have simply no basis for differentiating between the two cases – and , and by construction must get one wrong. We believe that this construction will also prevent language+vision models from achieving high accuracy by exploiting language priors, enabling VQA evaluation protocols to more accurately reflect progress in image understanding.
我们的假设是,这个平衡数据集将迫使 VQA 模型关注视觉信息。毕竟,当同一个问题对两张不同的图像有两个不同的答案时,要知道正确答案,唯一的办法就是看图。纯语言模型完全没有依据来区分 和 这两种情形,按构造必然会错一个。我们相信,这一构造也将阻止语言+视觉模型靠利用语言先验获得高准确率,从而使 VQA 评测规程能更准确地反映图像理解方面的进展。
Our balanced VQA dataset is also particularly difficult because the picked complementary image is close to the original image in the semantic (fc7) space of VGGNet [37] features. Therefore, VQA models will need to understand the subtle differences between the two images to predict the answers to both the images correctly.
我们的平衡 VQA 数据集还格外困难,因为选出的互补图像 在 VGGNet [37] 特征的语义(fc7)空间中靠近原图 。因此,VQA 模型需要理解这两张图之间的细微差别,才能对两张图都预测出正确答案。
Note that simply ensuring that the answer distribution is uniform across the dataset would not accomplish the goal of alleviating language biases discussed above. This is because language models exploit the correlation between question n-grams and the answers, e.g. questions starting with “Is there a clock” has the answer “yes” 98% of the time, and questions starting with “Is the man standing” has the answer “no” 69% of the time. What we need is not just higher entropy in across the dataset, but higher entropy in so that image must play a role in determining . This motivates our balancing on a per-question level.
需要注意,仅仅确保整个数据集上的答案分布 是均匀的,并不能实现上面讨论的减轻语言偏差这一目标。因为语言模型利用的是问题 n-gram 与答案之间的相关,例如以 “Is there a clock” 开头的问题有 98% 的答案是 “yes”,以 “Is the man standing” 开头的问题有 69% 的答案是 “no”。我们需要的不只是整个数据集上 有更高的熵,而是 有更高的熵,从而使图像 必须在决定 时起作用。这就是我们在每个问题层面上做平衡的动机。
Our complete balanced dataset contains approximately 1.1 Million (image, question) pairs – almost double the size of the VQA [3] dataset – with approximately 13 Million associated answers on the 200k images from COCO [23]. We believe this balanced VQA dataset is a better dataset to benchmark VQA approaches.
我们完整的平衡数据集包含大约 110 万个(图像,问题)对,几乎是 VQA [3] 数据集的两倍,并在来自 COCO [23] 的约 20 万张图像上带有大约 1300 万个相应答案。我们相信,这一平衡 VQA 数据集是评测 VQA 方法的更好数据集。
Finally, our data collection protocol enables us to develop a counter-example based explanation modality. We propose a novel model that not only answers questions about images, but also ‘explains’ its answer to an image-question pair by providing “hard negatives” i.e., examples of images that it believes are similar to the image at hand, but it believes have different answers to the question. Such an explanation modality will allow users of the VQA model to establish greater trust in the model and identify its oncoming failures.
最后,我们的数据收集规程使我们能够发展一种基于反例的解释模态。我们提出一种新模型:它不仅回答关于图像的问题,还通过提供“困难负例”来“解释”它对一个图像-问题对的答案,即它认为与当前图像相似、但对该问题有不同答案的图像例子。这样一种解释模态将使 VQA 模型的用户能够对模型建立更大的信任,并识别其即将出现的失败。
Our main contributions are as follows:
我们的主要贡献如下:
(1) We balance the existing VQA dataset [3] by collecting complementary images such that almost every question in our balanced dataset is associated with not just a single image, but rather a pair of similar images that result in two different answers to the question. The result is a more balanced VQA dataset, which is also approximately twice the size of the original VQA dataset.
(1) 我们通过收集互补图像来平衡已有的 VQA 数据集 [3],使得平衡集中几乎每个问题不再只对应单张图像,而是对应一对相似、但对同一问题给出两个不同答案的图像。结果是一个更平衡的 VQA 数据集,规模也大约是原版 VQA 数据集的两倍。
(2) We evaluate state-of-art VQA models (with publicly available code) on our balanced dataset, and show that models trained on the existing ‘unbalanced’ VQA dataset perform poorly on our new balanced dataset. This finding confirms our hypothesis that these models have been exploiting language priors in the existing VQA dataset to achieve higher accuracy.
(2) 我们在平衡数据集上评估当时先进的 VQA 模型(代码已公开),并表明在已有“不平衡” VQA 数据集上训练的模型,在我们的新平衡集上表现较差。这一发现证实了我们的假设:这些模型一直在利用已有 VQA 数据集中的语言先验来获得更高的准确率。
(3) Finally, our data collection protocol for identifying complementary scenes enables us to develop a novel interpretable model, which in addition to answering questions about images, also provides a counter-example based explanation – it retrieves images that it believes are similar to the original image but have different answers to the question. Such explanations can help in building trust for machines among their users.
(3) 最后,用于识别互补场景的数据收集规程使我们能够开发一种新的可解释模型:它除了回答关于图像的问题外,还提供基于反例的解释——检索出它认为与原图相似、但对同一问题有不同答案的图像。这样的解释有助于在用户中间为机器建立信任。
2. Related Work
2. 相关工作
Visual Question Answering. A number of recent works have proposed visual question answering datasets [3, 22, 26, 31, 10, 46, 38, 36] and models [9, 25, 2, 43, 24, 27, 47, 45, 44, 41, 35, 20, 29, 15, 42, 33, 17]. Our work builds on top of the VQA dataset from Antol et al. [3], which is one of the most widely used VQA datasets. We reduce the language biases present in this popular dataset, resulting in a dataset that is more balanced and about twice the size of the VQA dataset. We benchmark one ‘baseline’ VQA model [24], one attention-based VQA model [25], and the winning model from the VQA Challenge 2016 [9] on our balanced VQA dataset, and compare them to a language-only model.
视觉问答。近期有许多工作提出了视觉问答数据集 [3, 22, 26, 31, 10, 46, 38, 36] 和模型 [9, 25, 2, 43, 24, 27, 47, 45, 44, 41, 35, 20, 29, 15, 42, 33, 17]。我们的工作建立在 Antol 等人 [3] 的 VQA 数据集之上,这是使用最广泛的 VQA 数据集之一。我们减少了这一流行数据集中存在的语言偏差,得到一个更平衡、规模约为原版两倍的数据集。我们在平衡 VQA 数据集上评测了一个“基线” VQA 模型 [24]、一个基于注意力的 VQA 模型 [25],以及 VQA Challenge 2016 的获胜模型 [9],并把它们与一个纯语言模型加以比较。
Data Balancing and Augmentation. At a high level, our work may be viewed as constructing a more rigorous evaluation protocol by collecting ‘hard negatives’. In that spirit, it is similar to the work of Hodosh et al. [14], who created a binary forced-choice image captioning task, where a machine must choose to caption an image with one of two similar captions. To compare, Hodosh et al. [14] implemented hand-designed rules to create two similar captions for images, while we create a novel annotation interface to collect two similar images for questions in VQA.
数据平衡与增强。在较高层次上,我们的工作可以看作是通过收集“困难负例”来构造更严格的评测规程。就此精神而言,它与 Hodosh 等人 [14] 的工作相似:后者创建了一项二元迫选图像描述任务,机器必须在两个相似的描述中为图像选择一个。相比较而言,Hodosh 等人 [14] 用手工设计的规则为图像生成两个相似描述,而我们则创建了一种新的标注界面,为 VQA 中的问题收集两张相似图像。
Perhaps the most relevant to our work is that of Zhang et al. [47], who study this goal of balancing VQA in a fairly restricted setting – binary (yes/no) questions on abstract scenes made from clipart (part of the VQA abstract scenes dataset [3]). Using clipart allows Zhang et al. to ask human annotators to “change the clipart scene such that the answer to the question changes”. Unfortunately, such fine-grained editing of image content is simply not possible in real images. The novelty of our work over Zhang et al. is the proposed complementary image data collection interface, application to real images, extension to all questions (not just binary ones), benchmarking of state-of-art VQA models on the balanced dataset, and finally the novel VQA model with counter-example based explanations.
与我们工作最相关的,也许是 Zhang 等人 [47]:他们在相当受限的设定下研究平衡 VQA 这一目标,即在由 clipart 构成的抽象场景(VQA 抽象场景数据集 [3] 的一部分)上处理二元(是/否)问题。使用 clipart 使 Zhang 等人可以请标注者“修改 clipart 场景,使问题的答案发生变化”。不幸的是,这种对图像内容的细粒度编辑在真实图像中根本无法做到。我们相对 Zhang 等人的新意在于:所提出的互补图像数据收集界面、应用到真实图像、扩展到全部问题(不只是二元问题)、在平衡集上对当时先进 VQA 模型的评测,以及最终带有基于反例解释的新 VQA 模型。
Models with explanation. A number of recent works have proposed mechanisms for generating ‘explanations’ [13, 34, 48, 11, 32] for the predictions made by deep learning models, which are typically ‘black-box’ and non-interpretable. [13] generates a natural language explanation (sentence) for image categories. [34, 48, 11, 32] provide ‘visual explanations’ or spatial maps overlaid on images to highlight the regions that the model focused on while making its predictions. In this work, we introduce a third explanation modality: counter-examples, instances the the model believes are close to but not belonging to the category predicted by the model.
带解释的模型。近期有许多工作提出了为深度学习模型的预测生成“解释”的机制 [13, 34, 48, 11, 32],这些模型通常是“黑箱”且不可解释的。[13] 为图像类别生成自然语言解释(句子)。[34, 48, 11, 32] 提供“视觉解释”,或叠加在图像上的空间图,以标出模型在做出预测时所关注的区域。在本工作中,我们引入第三种解释模态:反例,即模型认为接近、但不属于其所预测类别的实例。
3. Dataset
3. 数据集
We build on top of the VQA dataset introduced by Antol et al. [3]. VQA real images dataset contains just over 204K images from COCO [23], 614K free-form natural language questions (3 questions per image), and over 6 million free-form (but concise) answers (10 answers per question). While this dataset has spurred significant progress in VQA domain, as discussed earlier, it has strong language biases.
我们建立在 Antol 等人 [3] 提出的 VQA 数据集之上。VQA 真实图像数据集包含略多于 20.4 万张来自 COCO [23] 的图像、61.4 万个自由形式的自然语言问题(每张图 3 个问题),以及超过 600 万个自由形式(但简短)的答案(每个问题 10 个答案)。尽管该数据集推动了 VQA 领域的显著进展,但如前所述,它具有很强的语言偏差。
Our key idea to counter this language bias is the following – for every (image, question, answer) triplet in the VQA dataset, our goal is to identify an image that is similar to , but results in the answer to the question to become (which is different from ). We built an annotation interface (shown in Fig. 3) to collect such complementary images on Amazon Mechanical Turk (AMT). AMT workers are shown 24 nearest-neighbor images of , the question , and the answer , and asked to pick an image from the list of 24 images for which “makes sense” and the answer to is not .
我们对抗这一语言偏差的关键想法如下:对 VQA 数据集中的每一个(图像,问题,答案)三元组 ,我们的目标是找出一张与 相似、但使问题 的答案变为 (与 不同)的图像 。我们搭建了一个标注界面(见图 3),在 Amazon Mechanical Turk(AMT)上收集这样的互补图像。AMT 工作者会看到 的 24 张最近邻图像、问题 和答案 ,并被要求从这 24 张图中选出一张 ,使得 对它“说得通”,且 的答案不是 。
To capture “question makes sense”, we explained to the workers (and conducted qualification tests to make sure that they understood) that any premise assumed in the question must hold true for the image they select. For instance, the question “What is the woman doing?” assumes that a woman is present and can be seen in the image. It does not make sense to ask this question on an image without a woman visible in it.
为了把握“问题说得通”,我们向工作者说明(并组织资格测试以确认他们理解):问题中假定的任何前提,必须在他们所选的图像上成立。例如,问题 “What is the woman doing?” 假定图中有一位可以看到的女性。在一张看不到女性的图像上问这个问题是说不通的。
图 2:来自我们所提出的平衡 VQA 数据集的随机例子。每个问题配有两张相似、但对问题有不同答案的图像。
We compute the 24 nearest neighbors by first representing each image with the activations from the penultimate (‘fc7’) layer of a deep Convolutional Neural Network (CNN) – in particular VGGNet [37] – and then using -distances to compute neighbors.
我们先用深度卷积神经网络(CNN)——具体是 VGGNet [37]——倒数第二层(‘fc7’)的激活来表示每张图像,再按 距离计算 24 个最近邻。
After the complementary images are collected, we conduct a second round of data annotation to collect answers on these new images. Specifically, we show the picked image with the question to 10 new AMT workers, and collect 10 ground truth answers (similar to [3]). The most common answer among the 10 is the new answer .
在收集到互补图像之后,我们进行第二轮数据标注,为这些新图像收集答案。具体而言,我们把选出的图像 和问题 展示给 10 名新的 AMT 工作者,并收集 10 个真实答案(与 [3] 类似)。10 个答案中最常见的就是新答案 。
图 3:我们用于收集互补图像的 Amazon Mechanical Turk(AMT)界面快照。
This two-stage data collection process finally results in pairs of complementary images and that are semantically similar, but have different answers and respectively to the same question . Since and are semantically similar, a VQA model will have to understand the subtle differences between and to provide the right answer to both images. Example complementary images are shown in Fig. 1, Fig. 2, and on the project website.
这一两阶段数据收集过程最终得到成对的互补图像 和 :它们在语义上相似,但对同一问题 分别有不同的答案 和 。由于 和 语义相似,VQA 模型必须理解它们之间的细微差别,才能对两张图都给出正确答案。互补图像的例子见图 1、图 2 和项目网站。
Note that sometimes it may not be possible to pick one of the 24 neighbors as a complementary image. This is because either (1) the question does not make sense for any of the 24 images (e.g. the question is ‘what is the woman doing?’ and none of the neighboring images contain a woman), or (2) the question is applicable to some neighboring images, but the answer to the question is still (same as the original image ). In such cases, our data collection interface allowed AMT workers to select “not possible”.
需要注意,有时可能无法从 24 个近邻中选出一张互补图像。原因或者是 (1) 该问题对这 24 张图中的任何一张都说不通(例如问题是 ‘what is the woman doing?’,而邻近图像中都没有女性),或者是 (2) 问题适用于某些邻近图像,但答案仍是 (与原图 相同)。在这些情形下,我们的数据收集界面允许 AMT 工作者选择 “not possible”。
We analyzed the data annotated with “not possible” selection by AMT workers and found that this typically happens when (1) the object being talked about in the question is too small in the original image and thus the nearest neighbor images, while globally similar, do not necessarily contain the object resulting in the question not making sense, or (2) when the concept in the question is rare (e.g., when workers are asked to pick an image such that the answer to the question “What color is the banana?” is NOT “yellow”).
我们分析了 AMT 工作者标注为 “not possible” 的数据,发现这通常发生在:(1) 问题中谈到的物体在原图中太小,因而最近邻图像虽然全局相似,却不一定包含该物体,导致问题说不通;或者 (2) 问题中的概念很少见(例如,当工作者被要求选出一张图,使得 “What color is the banana?” 的答案不是 “yellow”)。
In total, such “not possible” selections make up 22% of all the questions in the VQA dataset. We believe that a more sophisticated interface that allowed workers to scroll through many more than 24 neighboring images could possibly reduce this fraction. But, (1) it will likely still not be 0 (there may be no image in COCO where the answer to “is the woman flying?” is NOT “no”), and (2) the task would be significantly more cumbersome for workers, making the data collection significantly more expensive.
合计起来,这类 “not possible” 选择占 VQA 数据集全部问题的 22%。我们相信,若采用更复杂的界面,让工作者可以浏览远多于 24 张邻近图像,有可能降低这一比例。但是,(1) 它很可能仍不会是 0(COCO 中可能根本没有一张图使 “is the woman flying?” 的答案不是 “no”),而且 (2) 任务对工作者会烦琐得多,从而使数据收集昂贵得多。
We collected complementary images and the corresponding new answers for all of train, val and test splits of the VQA dataset. AMT workers picked “not possible” for approximately 135K total questions. In total, we collected approximately 195K complementary images for train, 93K complementary images for val, and 191K complementary images for test set. In addition, we augment the test set with 18K additional (question, image) pairs to provide additional means to detect anomalous trends on the test data. Hence, our complete balanced dataset contains more than 443K train, 214K val and 453K test (question, image) pairs. Our complete balanced dataset is publicly available for download.
我们为 VQA 数据集的全部训练、验证和测试划分收集了互补图像及相应的新答案。AMT 工作者对大约 13.5 万个问题选择了 “not possible”。合计我们为训练集收集了大约 19.5 万张互补图像,为验证集收集了 9.3 万张,为测试集收集了 19.1 万张。此外,我们还为测试集增补了约 18K 个额外的(问题,图像)对,以便提供更多手段来检测测试数据上的异常趋势。因此,我们完整的平衡数据集包含超过 443K 个训练、214K 个验证和 453K 个测试(问题,图像)对。完整平衡数据集公开发布供下载。
We use the publicly released VQA evaluation script in our experiments. The evaluation metric uses 10 ground-truth answers for each question to compute VQA accuracies. As described above, we collected 10 answers for every complementary image and its corresponding question to be consistent with the VQA dataset [3]. Note that while unlikely, it is possible that the majority vote of the 10 new answers may not match the intended answer of the person picking the image either due to inter-human disagreement, or if the worker selecting the complementary image simply made a mistake. We find this to be the case – i.e., to be the same as – for about 9% of our questions.
实验中我们使用公开发布的 VQA 评测脚本。该评测指标对每个问题使用 10 个真实答案来计算 VQA 准确率。如上所述,为与 VQA 数据集 [3] 保持一致,我们为每张互补图像及其对应问题收集了 10 个答案。需要注意,尽管不太可能,10 个新答案的多数票仍可能与选图者的预期答案不一致,原因或是标注者之间的分歧,或是选择互补图像的工作者只是出了错。我们发现大约 9% 的问题属于这种情况,即 与 相同。
While comparing the distribution of answers per question-type in our new balanced VQA dataset with the original (unbalanced) VQA dataset [3], we notice several interesting trends. First, binary questions (e.g. “is the”, “is this”, “is there”, “are”, “does”) have a significantly more balanced distribution over “yes” and “no” answers in our balanced dataset compared to unbalanced VQA dataset. “baseball” is now slightly more popular than “tennis” under “what sport”, and more importantly, overall “baseball” and “tennis” dominate less in the answer distribution. Several other sports like “frisbee”, “skiing”, “soccer”, “skateboarding”, “snowboard” and “surfing” are more visible in the answer distribution in the balanced dataset, suggesting that it contains heavier tails. Similar trends are found for colors, animals, numbers, etc. A visualization can be found here. Quantitatively, we find that the entropy of answer distributions averaged across various question types (weighted by frequency of question types) increases by 56% after balancing, confirming the heavier tails in the answer distribution.
在比较新平衡 VQA 数据集与原版(不平衡)VQA 数据集 [3] 中按问题类型划分的答案分布时,我们注意到若干有意思的趋势。首先,二元问题(例如 “is the”、“is this”、“is there”、“are”、“does”)在平衡集上的 “yes” 与 “no” 分布,比不平衡 VQA 数据集显著更均衡。在 “what sport” 下,“baseball” 现在略比 “tennis” 更常见,更重要的是,总体上看 “baseball” 和 “tennis” 在答案分布中的主导程度下降。若干其他运动,如 “frisbee”、“skiing”、“soccer”、“skateboarding”、“snowboard” 和 “surfing”,在平衡集的答案分布中更加可见,表明它具有更重的尾部。颜色、动物、数字等也有类似趋势。可视化见此处。定量上,我们发现按问题类型频率加权、在各类问题类型上平均的答案分布熵,在平衡后提高了 56%,证实了答案分布具有更重的尾部。
As the statistics show, while our balanced dataset is not perfectly balanced, it is significantly more balanced than the original VQA dataset. The resultant impact of this balancing on performance of state-of-the-art VQA models is discussed in the next section.
正如这些统计所示,我们的平衡数据集并非完美平衡,但已显著比原版 VQA 数据集更平衡。这一平衡对当时先进 VQA 模型表现的影响,在下一节讨论。
4. Benchmarking Existing VQA Models
4. 对已有 VQA 模型的评测
Our first approach to training a VQA model that emphasizes the visual information over language-priors-alone is to re-train the existing state-of-art VQA models (with code publicly available [24, 25, 9]) on our new balanced VQA dataset. Our hypothesis is that simply training a model to answer questions correctly on our balanced dataset will already encourage the model to focus more on the visual signal, since the language signal alone has been impoverished. We experiment with the following models:
我们训练强调视觉信息、而不只依赖语言先验的 VQA 模型的第一种途径,是把已有的先进 VQA 模型(代码已公开 [24, 25, 9])在新的平衡 VQA 数据集上重新训练。我们的假设是:仅仅训练模型在平衡集上正确回答问题,就已经会鼓励模型更多地关注视觉信号,因为单靠语言信号已经变弱。我们实验了下列模型:
Deeper LSTM Question + norm Image (d-LSTM+n-I) [24]: This was the VQA model introduced in [3] together with the dataset. It uses a CNN embedding of the image, a Long-Short Term Memory (LSTM) embedding of the question, combines these two embeddings via a point-wise multiplication, followed by a multi-layer perceptron classifier to predict a probability distribution over 1000 most frequent answers in the training dataset.
Deeper LSTM Question + norm Image(d-LSTM+n-I)[24]:这是 [3] 在发布数据集时一并引入的 VQA 模型。它使用图像的 CNN 嵌入和问题的长短期记忆(LSTM)嵌入,通过逐点相乘结合这两种嵌入,再接一个多层感知机分类器,以预测训练集中 1000 个最常见答案上的概率分布。
Hierarchical Co-attention (HieCoAtt) [25]: This is a recent attention-based VQA model that ‘co-attends’ to both the image and the question to predict an answer. Specifically, it models the question (and consequently the image via the co-attention mechanism) in a hierarchical fashion: at the word-level, phrase-level and entire question-level. These levels are combined recursively to produce a distribution over the 1000 most frequent answers.
Hierarchical Co-attention(HieCoAtt)[25]:这是一种当时较新的、基于注意力的 VQA 模型,它对图像和问题同时做“协同注意”以预测答案。具体而言,它以层次方式对问题建模(并因而通过协同注意机制对图像建模):在词级、短语级和整个问题级。这些层级被递归地组合,以产生在 1000 个最常见答案上的分布。
Multimodal Compact Bilinear Pooling (MCB) [9]: This is the winning entry on the real images track of the VQA Challenge 2016. This model uses a multimodal compact bilinear pooling mechanism to attend over image features and combine the attended image features with language features. These combined features are then passed through a fully-connected layer to predict a probability distribution over the 3000 most frequent answers. It should be noted that MCB uses image features from a more powerful CNN architecture ResNet [12] while the previous two models use image features from VGGNet [37].
Multimodal Compact Bilinear Pooling(MCB)[9]:这是 VQA Challenge 2016 真实图像赛道的获胜条目。该模型使用多模态紧凑双线性池化机制,对图像特征做注意力,并把经过注意力的图像特征与语言特征结合。这些结合后的特征再通过一个全连接层,预测在 3000 个最常见答案上的概率分布。应当指出,MCB 使用来自更强 CNN 结构 ResNet [12] 的图像特征,而前两个模型使用来自 VGGNet [37] 的图像特征。
Baselines: To put the accuracies of these models in perspective, we compare to the following baselines:
基线:为了给这些模型的准确率提供参照,我们与下列基线加以比较:
Prior: Predicting the most common answer in the training set, for all test questions. The most common answer is “yes” in both the unbalanced and balanced sets.
Prior:对所有测试问题预测训练集中最常见的答案。在不平衡集和平衡集中,最常见答案都是 “yes”。
Language-only: This language-only baseline has a similar architecture as Deeper LSTM + Norm I [24] except that it only accepts the question as input and does not utilize any visual information. Comparing VQA models to language-only ablations quantifies to what extent VQA models have succeeded in leveraging the image to answer the questions.
Language-only:这一纯语言基线与 Deeper LSTM + Norm I [24] 具有相似的结构,只不过它只接受问题作为输入,不利用任何视觉信息。把 VQA 模型与纯语言消融相比较,可以量化 VQA 模型在利用图像来回答问题方面取得了多大成功。
| Approach | UU | UB | BB | |
|---|---|---|---|---|
| Prior | 27.38 | 24.04 | 24.04 | 24.04 |
| Language-only | 48.21 | 41.40 | 41.47 | 43.01 |
| d-LSTM+n-I [24] | 54.40 | 47.56 | 49.23 | 51.62 |
| HieCoAtt [25] | 57.09 | 50.31 | 51.88 | 54.57 |
| MCB [9] | 60.36 | 54.22 | 56.08 | 59.14 |
Table 1: Performance of VQA models when trained/tested on unbalanced/balanced VQA datasets. UB stands for training on Unbalanced train and testing on Balanced val datasets. UU, and BB are defined analogously.
| 方法 | UU | UB | BB | |
|---|---|---|---|---|
| Prior | 27.38 | 24.04 | 24.04 | 24.04 |
| Language-only | 48.21 | 41.40 | 41.47 | 43.01 |
| d-LSTM+n-I [24] | 54.40 | 47.56 | 49.23 | 51.62 |
| HieCoAtt [25] | 57.09 | 50.31 | 51.88 | 54.57 |
| MCB [9] | 60.36 | 54.22 | 56.08 | 59.14 |
表 1:VQA 模型在不平衡/平衡 VQA 数据集上训练/测试时的表现。UB 表示在不平衡训练集上训练、在平衡验证集上测试。UU、 和 BB 按同样方式定义。
The results are shown in Table 1. For fair comparison of accuracies with original (unbalanced) dataset, we create a balanced train set which is of similar size as original dataset (referred to as in table). For benchmarking, we also report results using the full balanced train set.
结果见表 1。为了与原版(不平衡)数据集公平比较准确率,我们创建了一个与原版数据集规模相近的平衡训练集(表中记为 )。为了做评测,我们也报告使用全部平衡训练集的结果。
We see that the current state-of-art VQA models trained on the original (unbalanced) VQA dataset perform significantly worse when evaluated on our balanced dataset, compared to evaluating on the original unbalanced VQA dataset (i.e., comparing UU to UB in the table). This finding confirms our hypothesis that existing models have learned severe language biases present in the dataset, resulting in a reduced ability to answer questions correctly when the same question has different answers on different images. When these models are trained on our balanced dataset, their performance improves (compare UB to in the table). Further, when models are trained on complete balanced dataset (twice the size of original dataset), the accuracy improves by 2-3% (compare to BB). This increase in accuracy suggests that current VQA models are data starved, and would benefit from even larger VQA datasets.
可以看到,在原版(不平衡)VQA 数据集上训练的当时先进 VQA 模型,在我们的平衡数据集上评估时,表现明显差于在原版不平衡 VQA 数据集上评估(即比较表中的 UU 与 UB)。这一发现证实了我们的假设:已有模型已经学会了数据集中存在的严重语言偏差,因而当同一问题在不同图像上有不同答案时,正确回答的能力下降。当这些模型在我们的平衡数据集上训练时,表现有所提高(比较表中的 UB 与 )。进一步地,当模型在完整平衡数据集(约原版两倍大小)上训练时,准确率再提高 2–3%(比较 与 BB)。这一准确率提升表明,当前的 VQA 模型处于数据饥饿状态,会受益于更大的 VQA 数据集。
As the absolute numbers in the table suggest, there is significant room for improvement in building visual understanding models that can extract detailed information from images and leverage this information to answer free-form natural language questions about images accurately. As expected from the construction of this balanced dataset, the question-only approach performs significantly worse on the balanced dataset compared to the unbalanced dataset, again confirming the language-bias in the original VQA dataset, and its successful alleviation (though not elimination) in our proposed balanced dataset.
正如表中的绝对数字所表明的,在构建能够从图像中提取细节信息、并利用这些信息准确回答关于图像的自由形式自然语言问题的视觉理解模型方面,仍有很大的改进余地。正如这一平衡数据集的构造所预期的,纯问题方法在平衡集上的表现明显差于不平衡集,再次证实了原版 VQA 数据集中的语言偏差,以及它在我们所提出的平衡数据集中得到了成功减轻(尽管尚未消除)。
Note that in addition to the lack of language bias, visual reasoning is also challenging on the balanced dataset since there are pairs of images very similar to each other in image representations learned by CNNs, but with different answers to the same question. To be successful, VQA models need to understand the subtle differences in these images.
需要注意,除了缺少语言偏差之外,平衡集上的视觉推理也很有挑战性,因为存在一些在 CNN 学到的图像表示中彼此非常相似、但对同一问题有不同答案的图像对。要取得成功,VQA 模型需要理解这些图像中的细微差别。
The paired construction of our dataset allows us to analyze the performance of VQA models in unique ways. Given the prediction of a VQA model, we can count the number of questions where both complementary images received correct answer predictions for the corresponding question , or both received identical (correct or incorrect) answer predictions, or both received different answer predictions. For the HieCoAtt [25] model, when trained on the unbalanced dataset, 13.5% of the pairs were answered correctly, 59.9% of the pairs had identical predictions, and 40.1% of the pairs had different predictions. In comparison, when trained on balanced dataset, the same model answered 17.7% of the pairs correctly, a 4.2% increase in performance! Moreover, it predicts identical answers for 10.5% fewer pairs (49.4%). This shows that by training on balanced dataset, this VQA model has learned to tell the difference between two otherwise similar images. However, significant room for improvement remains. The VQA model still can not tell the difference between two images that have a noticeable difference – a difference enough to result in the two images having different ground truth answers for the same question asked by humans.
我们数据集的成对构造,使我们能以独特的方式分析 VQA 模型的表现。给定一个 VQA 模型的预测,我们可以统计:有多少问题中两张互补图像 对相应问题 都得到了正确的答案预测,或都得到了相同的(正确或错误的)答案预测,或得到了不同的答案预测。对 HieCoAtt [25] 模型而言,在不平衡数据集上训练时,13.5% 的配对被正确回答,59.9% 的配对具有相同预测,40.1% 的配对具有不同预测。相比之下,在平衡数据集上训练时,同一模型正确回答了 17.7% 的配对,表现提高了 4.2%!而且,它给出相同答案的配对减少了 10.5 个百分点(为 49.4%)。这表明,通过在平衡集上训练,该 VQA 模型已经学会分辨两张本来相似的图像。然而,仍有很大的改进余地。该 VQA 模型仍然无法分辨两张具有明显差异的图像——这种差异足以使两张图对人类所问的同一问题具有不同的真实答案。
Analysis of Accuracies for Different Answer Types: We further analyze the accuracy breakdown over answer types for Multimodal Compact Bilinear Pooling (MCB) [9] and Hierarchical Co-attention (HieCoAtt) [25] models.
不同答案类型上的准确率分析:我们进一步分析 Multimodal Compact Bilinear Pooling(MCB)[9] 和 Hierarchical Co-attention(HieCoAtt)[25] 模型按答案类型划分的准确率。
| Approach | Ans Type | UU | UB | |
|---|---|---|---|---|
| MCB [9] | Yes/No | 81.20 | 70.40 | 74.89 |
| MCB [9] | Number | 34.80 | 31.61 | 34.69 |
| MCB [9] | Other | 51.19 | 47.90 | 47.43 |
| MCB [9] | All | 60.36 | 54.22 | 56.08 |
| HieCoAtt [25] | Yes/No | 79.99 | 67.62 | 70.93 |
| HieCoAtt [25] | Number | 34.83 | 32.12 | 34.07 |
| HieCoAtt [25] | Other | 45.55 | 41.96 | 42.11 |
| HieCoAtt [25] | All | 57.09 | 50.31 | 51.88 |
Table 2: Accuracy breakdown over different answer types achieved by MCB [9] and HieCoAtt [25] models when trained/tested on unbalanced/balanced VQA datasets.
| 方法 | 答案类型 | UU | UB | |
|---|---|---|---|---|
| MCB [9] | Yes/No | 81.20 | 70.40 | 74.89 |
| MCB [9] | Number | 34.80 | 31.61 | 34.69 |
| MCB [9] | Other | 51.19 | 47.90 | 47.43 |
| MCB [9] | All | 60.36 | 54.22 | 56.08 |
| HieCoAtt [25] | Yes/No | 79.99 | 67.62 | 70.93 |
| HieCoAtt [25] | Number | 34.83 | 32.12 | 34.07 |
| HieCoAtt [25] | Other | 45.55 | 41.96 | 42.11 |
| HieCoAtt [25] | All | 57.09 | 50.31 | 51.88 |
表 2:MCB [9] 和 HieCoAtt [25] 模型在不平衡/平衡 VQA 数据集上训练/测试时,按不同答案类型划分的准确率。
The results are shown in Table 2. First, we immediately notice that the accuracy for the answer-type “yes/no” drops significantly from UU to UB (10.8% for MCB and 12.4% for HieCoAtt). This suggests that these VQA models are really exploiting language biases for “yes/no” type questions, which leads to high accuracy on unbalanced val set because the unbalanced val set also contains these biases. But performance drops significantly when tested on the balanced val set which has significantly reduced biases.
结果见表 2。首先,我们立刻注意到,答案类型 “yes/no” 的准确率从 UU 到 UB 显著下降(MCB 约 10.8%,HieCoAtt 约 12.4%)。这表明这些 VQA 模型确实在利用 “yes/no” 类问题中的语言偏差,从而在不平衡验证集上获得高准确率,因为不平衡验证集也包含这些偏差。但在偏差显著减少的平衡验证集上测试时,表现明显下降。
Second, we note that for both the state-of-art VQA models, the largest source of improvement from UB to is the “yes/no” answer-type (4.5% for MCB and 3% for HieCoAtt) and the “number” answer-type (3% for MCB and 2% for HieCoAtt).
其次,我们注意到,对这两个当时先进的 VQA 模型而言,从 UB 到 的最大改进来源是 “yes/no” 答案类型(MCB 约 4.5%,HieCoAtt 约 3%)和 “number” 答案类型(MCB 约 3%,HieCoAtt 约 2%)。
This trend is particularly interesting since the “yes/no” and “number” answer-types are the ones where existing approaches have shown minimal improvements. For instance, in the results announced at the VQA Real Open Ended Challenge 2016, the accuracy gap between the top-4 approaches is a mere 0.15% in “yes/no” answer-type category (and a gap of 3.48% among the top-10 approaches). Similarly, “number” answer-type accuracies only vary by 1.51% and 2.64% respectively. The primary differences between current generation of state-of-art approaches seem to come from the “other” answer-type where accuracies vary by 7.03% and 10.58% among the top-4 and top-10 entries.
这一趋势特别有意思,因为 “yes/no” 和 “number” 正是已有方法改进最小的答案类型。例如,在 VQA Real Open Ended Challenge 2016 公布的结果中,前 4 名方法在 “yes/no” 答案类型上的准确率差距仅为 0.15%(前 10 名之间的差距为 3.48%)。类似地,“number” 答案类型的准确率分别只相差 1.51% 和 2.64%。当时一代先进方法之间的主要差别,似乎来自 “other” 答案类型,前 4 名和前 10 名条目的准确率分别相差 7.03% 和 10.58%。
This finding suggests that language priors present in the unbalanced VQA dataset (particularly in the “yes/no” and “number” answer-type questions) lead to similar accuracies for all state-of-art VQA models, rendering vastly different models virtually indistinguishable from each other (in terms of their accuracies for these answer-types). Benchmarking these different VQA models on our balanced dataset (with reduced language priors) may finally allow us to distinguish between ‘good’ models (ones that encode the ‘right’ inductive biases for this task, such as attention-based or compositional models) from others that are simply high-capacity models tuning themselves to the biases in the dataset.
这一发现表明,不平衡 VQA 数据集中存在的语言先验(尤其是在 “yes/no” 和 “number” 类问题中)使所有先进 VQA 模型都得到相近的准确率,从而使差异很大的模型在这些答案类型的准确率上几乎无法区分。在我们语言先验已减弱的平衡数据集上评测这些不同的 VQA 模型,也许最终能让我们把“好”模型(为该任务编码了“正确”归纳偏置的模型,例如基于注意力或组合式的模型)与那些只是高容量、在数据集偏差上自我调节的模型区分开来。
5. Counter-example Explanations
5. 反例解释
We propose a new explanation modality: counter-examples. We propose a model that when asked a question about an image, not only provides an answer, but also provides example images that are similar to the input image but the model believes have different answers to the input question. This would instill trust in the user that the model does in fact ‘understand’ the concept being asked about. For instance, for a question “What color is the fire-hydrant?” a VQA model may be perceived as more trustworthy if in addition to saying “red”, it also adds “unlike this” and shows an example image containing a fire-hydrant that is not red.
我们提出一种新的解释模态:反例。我们提出一种模型:当被问到关于一张图像的问题时,它不仅给出答案,还给出与输入图像相似、但模型认为对输入问题有不同答案的示例图像。这将使用户相信,模型确实“理解”所问的概念。例如,对问题 “What color is the fire-hydrant?”,如果一个 VQA 模型在说 “red” 之外,还加上 “unlike this”,并展示一张含有非红色消防栓的示例图像,它可能会被看作更可信。
It could easily also convey what color it thinks the fire-hydrant is in the counter-example. We will explore this in future work.
它也很容易同时说明,它认为反例中消防栓是什么颜色。我们将在未来工作中探索这一点。
5.1. Model
5.1. 模型
Concretely, at test time, our “negative explanation” or “counter-example explanation” model functions in two steps. In the first step, similar to a conventional VQA model, it takes in an (image, question) pair as input and predicts an answer . In the second step, it uses this predicted answer along with the question to retrieve an image that is similar to but has a different answer than to the question . To ensure similarity, the model picks one of nearest neighbor images of , as the counter-example.
具体而言,在测试时,我们的“负例解释”或“反例解释”模型分两步运作。第一步与常规 VQA 模型类似,以一个(图像,问题)对 为输入,预测一个答案 。第二步,它利用这个预测答案 和问题 ,检索一张与 相似、但对问题 的答案不同于 的图像。为确保相似性,模型从 的 个最近邻图像 中选出一张作为反例。
How may we find these “negative explanations”? One way of picking the counter-example from is to follow the classical “hard negative mining” strategy popular in computer vision. Specifically, simply pick the image that has the lowest where . We compare to this strong baseline. While this ensures that is low for , it does not ensure that the “makes sense” for . Thus, when trying to find a negative explanation for “Q: What is the woman doing? A: Playing tennis”, this “hard negative mining” strategy might pick an image without a woman in it, which would make for a confusing and non-meaningful explanation to show to a user, if the goal is to convince them that the model has understood the question. One could add a component of question relevance [30] to identify better counter-examples.
怎样找到这些“负例解释”?从 中挑选反例的一种办法,是沿用计算机视觉中流行的经典“困难负例挖掘”策略。具体而言,直接选出 最低的那张图像,其中 。我们与这一强基线进行比较。这虽然保证了 上的 较低,却并不保证 对 “说得通”。因此,在为 “Q: What is the woman doing? A: Playing tennis” 寻找负例解释时,这种“困难负例挖掘”策略可能会选出一张没有女性的图像;如果目标是让用户相信模型已经理解了问题,把这样的解释展示给用户会令人困惑,也没有意义。可以加入问题相关性 [30] 这一成分,以识别更好的反例。
Instead, we take advantage of our balanced data collection mechanism to directly train for identifying a good counter-example. Note that the picked by humans is a good counter-example, by definition. is relevant to (since workers were asked to ensure it was), has a different answer than (the original answer), and is similar to . Thus, we have supervised training data where is a counter-example from () for question and answer . We train a model that learns to provide negative or counter-example explanations from this supervised data.
相反,我们利用平衡数据收集机制,直接训练如何识别一个好的反例。注意,由人选出的 按定义就是一个好的反例。 与 相关(因为工作者被要求确保这一点), 具有不同于 (原答案)的答案 ,且 与 相似。因此,我们拥有有监督的训练数据,其中 是 ()中针对问题 和答案 的一个反例。我们从这些有监督数据出发,训练一个学会提供负例或反例解释的模型。
To summarize, during test time, our model does two things: first it answers the question (similar to a conventional VQA model), and second, it explains its answer via a counter-example. For the first step, it is given as input an image and a question , and it outputs a predicted answer . For the second (explaining) step, it is given as input the question , an answer to be explained , and a set from which the model has to identify the counter-example. At training time, the model is given image , the question , and the corresponding ground-truth answer to learn to answer questions. It is also given , , (human-picked), () to learn to explain.
概括地说,在测试时,我们的模型做两件事:首先它回答问题(与常规 VQA 模型类似),其次它通过一个反例来解释其答案。对第一步,输入是一张图像 和一个问题 ,输出是预测答案 。对第二步(解释),输入是问题 、待解释的答案 ,以及一个集合 ,模型须从中识别出反例。在训练时,模型被给定图像 、问题 和相应的真实答案 ,以学习回答问题;同时被给定 、、人工选出的 以及 (),以学习解释。
In practice, this answer to be explained would be the answer predicted by the first step . However, we only have access to negative explanation annotations from humans for the ground-truth answer to the question. Providing to the explanation module also helps in evaluating the two steps of answering and explaining separately.
实践中,这个待解释的答案会是第一步预测的答案 。然而,我们只拥有针对问题真实答案 的人工负例解释标注。向解释模块提供 ,也有助于把回答和解释这两步分开来评估。
Our model architecture contains two heads on top of a shared base ‘trunk’ – one head for answering the question and the other head for providing an explanation. Specifically, our model consists of three major components:
我们的模型结构在一个共享的基础“主干”之上有两个头:一个头用于回答问题,另一个头用于提供解释。具体而言,我们的模型由三个主要部分组成:
- Shared base: The first component of our model is learning representations of images and questions. It is a 2-channel network that takes in an image CNN embedding as input in one branch, question LSTM embedding as input in another branch, and combines the two embeddings by a point-wise multiplication. This gives us a joint embedding, similar to the model in [24]. The second and third components – the answering model and the explaining model – take in this joint embedding as input, and therefore can be considered as two heads over this first shared component. A total of 25 images – the original image and 24 candidate images are passed through this shared component of the network.
- 共享基础:我们模型的第一部分是学习图像和问题的表示。它是一个双通道网络,一个分支以图像 CNN 嵌入为输入,另一个分支以问题 LSTM 嵌入为输入,再通过逐点相乘结合这两种嵌入。这就得到一个联合的 嵌入,与 [24] 中的模型类似。第二和第三部分——回答模型和解释模型——都以这个联合 嵌入为输入,因而可以看作是这一共享第一部分之上的两个头。共有 25 张图像——原图 和 24 张候选图像 ——被送过网络的这一共享部分。
- Answering head: The second component is learning to answer questions. Similar to [24], it consists of a fully-connected layer fed into a softmax that predicts the probability distribution over answers given the embedding. Only the embedding corresponding to the original image is passed through this component and result in a cross-entropy loss.
- 回答头:第二部分是学习回答问题。与 [24] 类似,它由一个全连接层接入 softmax 组成,在给定 嵌入的条件下预测答案上的概率分布。只有对应于原图 的 嵌入被送过这一部分,并产生交叉熵损失。
- Explaining head: The third component is learning to explain an answer via a counter-example image. It is a 2-channel network which linearly transforms the joint embedding (output from the first component) and the answer to be explained (provided as input) into a common embedding space. It computes an inner product of these 2 embeddings resulting in a scalar number for each image in (also provided as input, from which a counter-example is to be picked). These inner-product values for candidate images are then passed through a fully connected layer to generate scores , where . The candidate images are then sorted according to these scores as being most to least likely of being good counter-examples or negative explanations. This component is trained with pairwise hinge ranking losses that encourage , , i.e. the score of the human picked image is encouraged to be higher than all other candidate images by a desired margin of (a hyperparameter) and a slack of . This is of course the classical ‘constraint form’ of the pairwise hinge ranking loss, and we minimize the standard expression .
- 解释头:第三部分是学习通过一张反例图像来解释答案 。它是一个双通道网络,把联合 嵌入(第一部分的输出)和待解释的答案 (作为输入提供)线性变换到一个共同的嵌入空间。它对这两个嵌入计算内积,从而为 中的每张图像(也作为输入提供,将从中挑选反例)得到一个标量。这 张候选图像的 个内积值再通过一个全连接层,生成 个分数 ,其中 。然后按这些分数 把 张候选图像 从最可能到最不可能成为好的反例或负例解释加以排序。这一部分用成对铰链排序损失来训练,该损失鼓励 ,,也就是鼓励人工选出的图像 的分数比所有其他候选图像高出一个期望间隔 (一个超参数)并带有松弛 。这当然就是成对铰链排序损失的经典“约束形式”,我们最小化标准表达式 。
Note that in theory, one could provide as input during training instead of . After all, this matches the expected use case scenario at test time. However, this alternate setup (where is provided as input instead of ) leads to a peculiar and unnatural explanation training goal – specifically, the explanation head will still be learning to explain since that is the answer for which we collected negative explanation human annotations. It is simply unnatural to build that model that answers a question with but learn to explain a different answer ! Note that this is an interesting scenario where the current push towards “end-to-end” training for everything breaks down.
注意,理论上可以在训练时提供 而不是 作为输入。毕竟这与测试时预期的使用情形相符。然而,这一替代设置(以 而不是 作为输入)会导致一种古怪且不自然的解释训练目标——具体而言,解释头仍将学习解释 ,因为我们收集的人工负例解释标注是针对 的。构建一个用 回答问题、却学习解释另一个不同答案 的模型,根本就是不自然的!注意,这是一个有意思的情形:当前把一切都做成“端到端”训练的潮流,在这里行不通。
The combined loss function for the shared component is
共享部分的组合损失函数是
where, the first term is the cross-entropy loss (for training the answering module) on , the second term is the sum of pairwise hinge losses that encourage the explaining model to give high score to image (picked by humans) than other s in , and is the trade-off weight parameter between the two losses.
其中,第一项是 上的交叉熵损失(用于训练回答模块),第二项是成对铰链损失之和,用于鼓励解释模型给图像 (由人选出)打出高于 中其他 的分数, 是两项损失之间的权衡权重参数。
5.2. Results
5.2. 结果
Fig. 4 shows qualitative examples of negative explanations produced by our model. We see the original image , the question asked , the answer predicted by the VQA head in our model, and top three negative explanations produced by the explanation head. We see that most of these explanations are sensible and reasonable – the images are similar to but with answers that are different from those predicted for .
图 4 给出了我们模型所产生的负例解释的定性例子。我们看到原图 、所问的问题 、模型中 VQA 头预测的答案 ,以及解释头产生的前三个负例解释。可以看到,这些解释大多合情合理:图像与 相似,但答案不同于对 所预测的答案。
图 4:我们的模型生成的三个反例或负例解释(右侧三列),以及输入图像(左)、输入问题 和预测答案 。
For quantitative evaluation, we compare our model with a number of baselines:
为进行定量评估,我们将我们的模型与若干基线加以比较:
Random: Sorting the candidate images in randomly. That is, a random image from is picked as the most likely counter-example.
Random:随机排列 中的候选图像。也就是说,从 中随机选一张作为最可能的反例。
Distance: Sorting the candidate images in increasing order of their distance from the original image . That is, the image from most similar to is picked as the most likely counter-example.
Distance:按与原图 的距离递增排列候选图像。也就是说,把 中与 最相似的图像选为最可能的反例。
VQA Model: Using a VQA model’s probability for the predicted answer to sort the candidate images in ascending order of . That is, the image from least likely to have as the answer to is picked as the most likely counter-example.
VQA Model:用一个 VQA 模型对预测答案的概率,按 升序排列候选图像。也就是说,把 中最不可能以 作为 之答案的图像选为最可能的反例。
Note that while – the image picked by humans – is a good counter-example, it is not necessarily the unique (or even the “best”) counter-example. Humans were simply asked to pick any image where makes sense and the answer is not . There was no natural criteria to convey to humans to pick the “best” one – it is not clear what “best” would mean in the first place. To provide robustness to this potential ambiguity in the counter-example chosen by humans, in a manner similar to the ImageNet [5] top-5 evaluation metric, we evaluate our approach using the Recall@5 metric. It measures how often the human picked is among the top-5 in the sorted list of s in our model produces.
需要注意,尽管 ——由人选出的图像——是一个好的反例,它却不一定是唯一的(甚至不一定是“最好的”)反例。标注者只是被要求选出任何一张 说得通且答案不是 的图像。并没有一种自然的标准可以传达给标注者,让他们选出“最好的”那一张——首先就不清楚“最好”意味着什么。为了对人类所选反例中的这种潜在歧义提供稳健性,我们以类似于 ImageNet [5] top-5 评测指标的方式,用 Recall@5 指标来评估我们的方法。它衡量的是:人工选出的 出现在我们模型所产生的 中 排序列表前 5 位的频率。
| Random | Distance | VQA [3] | Ours | |
|---|---|---|---|---|
| Recall@5 | 20.79 | 42.84 | 21.65 | 43.39 |
Table 3: Negative or counter-example explanation performance of our model compared to strong baselines.
| Random | Distance | VQA [3] | Ours | |
|---|---|---|---|---|
| Recall@5 | 20.79 | 42.84 | 21.65 | 43.39 |
表 3:我们的模型与强基线相比,在负例或反例解释上的表现。
In Table 3, we can see that our explanation model significantly outperforms the random baseline, as well as the VQA [3] model. Interestingly, the strongest baseline is Distance. While our approach outperforms it, it is clear that identifying an image that is a counter-example to from among ’s nearest neighbors is a challenging task. Again, this suggests that visual understanding models that can extract meaningful details from images still remain elusive.
在表 3 中可以看到,我们的解释模型明显优于随机基线以及 VQA [3] 模型。有意思的是,最强的基线是 Distance。尽管我们的方法超过了它,但可以清楚地看到,从 的最近邻中识别出一张作为 之反例的图像,仍是一项有挑战的任务。这再次表明,能够从图像中提取有意义细节的视觉理解模型,仍然不易获得。
6. Conclusion
6. 结论
To summarize, in this paper we address the strong language priors for the task of Visual Question Answering and elevate the role of image understanding required to be successful on this task. We develop a novel data-collection interface to ‘balance’ the popular VQA dataset [3] by collecting ‘complementary’ images. For every question in the dataset, we have two complementary images that look similar, but have different answers to the question.
概括地说,本文针对视觉问答任务中的强语言先验,并提升在该任务上取得成功所需的图像理解的作用。我们开发了一种新的数据收集界面,通过收集“互补”图像来“平衡”流行的 VQA 数据集 [3]。对数据集中的每个问题,我们都有两张看起来相似、但对问题有不同答案的互补图像。
This effort results in a dataset that is not only more balanced than the original VQA dataset by construction, but also is about twice the size. We find both qualitatively and quantitatively that the ‘tails’ of the answer distribution are heavier in this balanced dataset, which reduces the strong language priors that may be exploited by models. Our complete balanced dataset is publicly available at http://visualqa.org/ as part of the 2nd iteration of the Visual Question Answering Dataset and Challenge (VQA v2.0).
这一努力得到的数据集,不仅在构造上比原版 VQA 数据集更平衡,规模也大约是原来的两倍。我们从定性和定量两方面都发现,这一平衡数据集中答案分布的“尾部”更重,从而减弱了可能被模型利用的强语言先验。完整的平衡数据集作为 Visual Question Answering Dataset and Challenge 的第 2 轮(VQA v2.0),公开发布在 http://visualqa.org/。
We benchmark a number of (near) state-of-art VQA models on our balanced dataset and find that testing them on this balanced dataset results in a significant drop in performance, confirming our hypothesis that these models had indeed exploited language biases.
我们在平衡数据集上评测了若干(接近)先进的 VQA 模型,并发现在这一平衡集上测试会带来显著的表现下降,从而证实了我们的假设:这些模型确实利用了语言偏差。
Finally, our framework around complementary images enables us to develop a novel explainable model – when asked a question about an image, our model not only returns an answer, but also produces a list of similar images that it considers ‘counter-examples’, i.e. where the answer is not the same as the predicted response. Producing such explanations may enable a user to build a better mental model of what the system considers a response to mean, and ultimately build trust.
最后,围绕互补图像的框架使我们能够开发一种新的可解释模型:当被问到关于一张图像的问题时,我们的模型不仅返回一个答案,还产生一组它视为“反例”的相似图像,即答案与所预测回答不同的图像。产生这样的解释,可能使用户更好地在头脑中建立关于系统认为一个回答意味着什么的模型,并最终建立信任。
Acknowledgements
致谢
We thank Anitha Kannan and Aishwarya Agrawal for helpful discussions. This work was funded in part by NSF CAREER awards to DP and DB, an ONR YIP award to DP, ONR Grant N00014-14-1-0679 to DB, a Sloan Fellowship to DP, ARO YIP awards to DB and DP, an Allen Distinguished Investigator award to DP from the Paul G. Allen Family Foundation, ICTAS Junior Faculty awards to DB and DP, Google Faculty Research Awards to DP and DB, Amazon Academic Research Awards to DP and DB, AWS in Education Research grant to DB, and NVIDIA GPU donations to DB. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. Government, or any sponsor.
References
参考文献
[1] A. Agrawal, D. Batra, and D. Parikh. Analyzing the Behavior of Visual Question Answering Models. In EMNLP, 2016. 1
[2] J. Andreas, M. Rohrbach, T. Darrell, and D. Klein. Deep compositional question answering with neural module networks. In CVPR, 2016. 2
[3] S. Antol, A. Agrawal, J. Lu, M. Mitchell, D. Batra, C. L. Zitnick, and D. Parikh. VQA: Visual Question Answering. In ICCV, 2015. 1, 2, 3, 4, 5, 8
[4] X. Chen and C. L. Zitnick. Mind’s Eye: A Recurrent Visual Representation for Image Caption Generation. In CVPR, 2015. 1
[5] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and L. Fei-Fei. ImageNet: A Large-Scale Hierarchical Image Database. In CVPR, 2009. 8
[6] J. Devlin, S. Gupta, R. B. Girshick, M. Mitchell, and C. L. Zitnick. Exploring nearest neighbor approaches for image captioning. CoRR, abs/1505.04467, 2015. 1
[7] J. Donahue, L. A. Hendricks, S. Guadarrama, M. Rohrbach, S. Venugopalan, K. Saenko, and T. Darrell. Long-term Recurrent Convolutional Networks for Visual Recognition and Description. In CVPR, 2015. 1
[8] H. Fang, S. Gupta, F. N. Iandola, R. Srivastava, L. Deng, P. Dollár, J. Gao, X. He, M. Mitchell, J. C. Platt, C. L. Zitnick, and G. Zweig. From Captions to Visual Concepts and Back. In CVPR, 2015. 1
[9] A. Fukui, D. H. Park, D. Yang, A. Rohrbach, T. Darrell, and M. Rohrbach. Multimodal Compact Bilinear Pooling for Visual Question Answering and Visual Grounding. In EMNLP, 2016. 2, 5, 6
[10] H. Gao, J. Mao, J. Zhou, Z. Huang, and A. Yuille. Are you talking to a machine? dataset and methods for multilingual image question answering. In NIPS, 2015. 1, 2
[11] Y. Goyal, A. Mohapatra, D. Parikh, and D. Batra. Towards Transparent AI Systems: Interpreting Visual Question Answering Models. In ICML Workshop on Visualization for Deep Learning, 2016. 3
[12] K. He, X. Zhang, S. Ren, and J. Sun. Deep residual learning for image recognition. In CVPR, 2016. 5
[13] L. A. Hendricks, Z. Akata, M. Rohrbach, J. Donahue, B. Schiele, and T. Darrell. Generating visual explanations. In ECCV, 2016. 3
[14] M. Hodosh and J. Hockenmaier. Focused evaluation for image description with binary forced-choice tasks. In Workshop on Vision and Language, Annual Meeting of the Association for Computational Linguistics, 2016. 2, 3
[15] I. Ilievski, S. Yan, and J. Feng. A focused dynamic attention model for visual question answering. CoRR, abs/1604.01485, 2016. 2
[16] A. Jabri, A. Joulin, and L. van der Maaten. Revisiting Visual Question Answering Baselines. In ECCV, 2016. 1
[17] K. Kafle and C. Kanan. Answer-type prediction for visual question answering. In CVPR, 2016. 2
[18] K. Kafle and C. Kanan. Visual Question Answering: Datasets, Algorithms, and Future Challenges. CoRR, abs/1610.01465, 2016. 1
[19] A. Karpathy and L. Fei-Fei. Deep Visual-Semantic Alignments for Generating Image Descriptions. In CVPR, 2015. 1
[20] J.-H. Kim, S.-W. Lee, D.-H. Kwak, M.-O. Heo, J. Kim, J.-W. Ha, and B.-T. Zhang. Multimodal Residual Learning for Visual QA. In NIPS, 2016. 2
[21] R. Kiros, R. Salakhutdinov, and R. S. Zemel. Unifying Visual-Semantic Embeddings with Multimodal Neural Language Models. TACL, 2015. 1
[22] R. Krishna, Y. Zhu, O. Groth, J. Johnson, K. Hata, J. Kravitz, S. Chen, Y. Kalantidis, L.-J. Li, D. A. Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. arXiv preprint arXiv:1602.07332, 2016. 2
[23] T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft COCO: Common Objects in Context. In ECCV, 2014. 2, 3
[24] J. Lu, X. Lin, D. Batra, and D. Parikh. Deeper LSTM and normalized CNN Visual Question Answering model. https://github.com/VT-vision-lab/VQA_LSTM_CNN, 2015. 2, 5, 7
[25] J. Lu, J. Yang, D. Batra, and D. Parikh. Hierarchical Question-Image Co-Attention for Visual Question Answering. In NIPS, 2016. 2, 5, 6
[26] M. Malinowski and M. Fritz. A Multi-World Approach to Question Answering about Real-World Scenes based on Uncertain Input. In NIPS, 2014. 1, 2
[27] M. Malinowski, M. Rohrbach, and M. Fritz. Ask your neurons: A neural-based approach to answering questions about images. In ICCV, 2015. 1, 2
[28] J. Mao, W. Xu, Y. Yang, J. Wang, and A. L. Yuille. Explain Images with Multimodal Recurrent Neural Networks. In NIPS, 2014. 1
[29] H. Noh and B. Han. Training recurrent answering units with joint loss minimization for vqa. CoRR, abs/1606.03647, 2016. 2
[30] A. Ray, G. Christie, M. Bansal, D. Batra, and D. Parikh. Question Relevance in VQA: Identifying Non-Visual And False-Premise Questions. In EMNLP, 2016. 7
[31] M. Ren, R. Kiros, and R. Zemel. Exploring models and data for image question answering. In NIPS, 2015. 1, 2
[32] M. T. Ribeiro, S. Singh, and C. Guestrin. “Why Should I Trust You?”: Explaining the Predictions of Any Classifier. In Knowledge Discovery and Data Mining (KDD), 2016. 3
[33] K. Saito, A. Shin, Y. Ushiku, and T. Harada. Dualnet: Domain-invariant network for visual question answering. CoRR, abs/1606.06108, 2016. 2
[34] R. R. Selvaraju, A. Das, R. Vedantam, M. Cogswell, D. Parikh, and D. Batra. Grad-CAM: Why did you say that? Visual Explanations from Deep Networks via Gradient-based Localization. arXiv preprint arXiv:1610.02391, 2016. 3
[35] K. J. Shih, S. Singh, and D. Hoiem. Where to look: Focus regions for visual question answering. In CVPR, 2016. 2
[36] A. Shin, Y. Ushiku, and T. Harada. The Color of the Cat is Gray: 1 Million Full-Sentences Visual Question Answering (FSVQA). arXiv preprint arXiv:1609.06657, 2016. 2
[37] K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 2, 4, 5
[38] M. Tapaswi, Y. Zhu, R. Stiefelhagen, A. Torralba, R. Urtasun, and S. Fidler. MovieQA: Understanding Stories in Movies through Question-Answering. In CVPR, 2016. 2
[39] A. Torralba and A. Efros. Unbiased look at dataset bias. In CVPR, 2011. 2
[40] O. Vinyals, A. Toshev, S. Bengio, and D. Erhan. Show and Tell: A Neural Image Caption Generator. In CVPR, 2015. 1
[41] P. Wang, Q. Wu, C. Shen, A. van den Hengel, and A. R. Dick. Explicit knowledge-based reasoning for visual question answering. CoRR, abs/1511.02570, 2015. 2
[42] Q. Wu, P. Wang, C. Shen, A. van den Hengel, and A. R. Dick. Ask me anything: Free-form visual question answering based on knowledge from external sources. In CVPR, 2016. 2
[43] C. Xiong, S. Merity, and R. Socher. Dynamic memory networks for visual and textual question answering. In ICML, 2016. 2
[44] H. Xu and K. Saenko. Ask, Attend and Answer: Exploring Question-Guided Spatial Attention for Visual Question Answering. In ECCV, 2016. 2
[45] Z. Yang, X. He, J. Gao, L. Deng, and A. Smola. Stacked Attention Networks for Image Question Answering. In CVPR, 2016. 2
[46] L. Yu, E. Park, A. C. Berg, and T. L. Berg. Visual Madlibs: Fill-in-the-blank Description Generation and Question Answering. In ICCV, 2015. 2
[47] P. Zhang, Y. Goyal, D. Summers-Stay, D. Batra, and D. Parikh. Yin and Yang: Balancing and Answering Binary Visual Questions. In CVPR, 2016. 1, 2, 3
[48] B. Zhou, A. Khosla, A. Lapedriza, A. Oliva, and A. Torralba. Learning Deep Features for Discriminative Localization. In CVPR, 2015. 3
[49] B. Zhou, Y. Tian, S. Sukhbaatar, A. Szlam, and R. Fergus. Simple Baseline for Visual Question Answering. CoRR, abs/1512.02167, 2015. 1



