
imperfect VQA models, humans often want to verify the
answer. The inspection process may be trivial for a single
image but can take a significant amount of time to examine
every image and the complete text words.
To address these two challenges, we propose a focal
visual-text attention (FVTA) model for sequential data
1
.
Our model is motivated by the reasoning process of humans.
In order to answer a question, a human would first quickly
skim the input and then focus on a few, small temporal re-
gions in the visual-text sequences to derive an answer. In
fact, statistics suggest that, on average, humans only need
1.5 images to answer a question after the skimming [9]. In-
spired by this process, FVTA first learns to localize relevant
information within a few, small, temporally consecutive re-
gions over the input sequences, and learns to infer an an-
swer based on the cross-modal statistics pooled from these
regions. FVTA proposes a novel kernel to compute the at-
tention tensor that jointly models the latent information in
three sources: 1) answer-signaling words in the question, 2)
temporal correlation within a sequence, and 3) cross-modal
interaction between the text and image. FVTA attention al-
lows for collective reasoning by the attention kernel learned
over a few, small, consecutive sub-sequences of text and
image. It can also produce a list of evidential images/texts
to justify the reasoning. As shown in Fig. 1, the highlighted
cubes are regions of high activations in the proposed FVTA.
To summarize, the contribution of this paper is threefold:
• We propose a novel attention kernel for VQA on
visual-text data. Experiments show that it outperforms
existing attention methods.
• The proposed attention tensor can be used to localize
evidential image and text snippets to explain the rea-
soning process. We quantitatively verify that the evi-
dence produced by our method are more correlated to
that of human annotators.
• Our method achieves the state-of-the-art results on two
VQA benchmarks.
2. Related Work
Visual Question Answering. Image-based visual ques-
tion answering has received a large amount of interest in the
computer vision community. A lot of efforts have been con-
ducted on single image QA datasets [2, 12, 31, 17, 26, 1],
where a common practice is to train a classifier by combin-
ing both question feature and visual features. A recent di-
rection is on the question answering based on videos, which
is more relevant to this work. A number of research stud-
ies have been carried on MovieQA [22, 10, 15], with movie
clips, scripts, and descriptions. Because it is expensive to
1
Code and models are released at https://memexqa.cs.cmu.
edu/fvta.html
annotate the video-based QA datasets, some research stud-
ies generate QA datasets by harvesting online videos and
descriptions [30, 29], while a recent study [7] considers
question answering using animated GIFs. This work dif-
fers from the existing video-based QA in two aspects: (1)
video-based QA is to answer questions based on a single
video, while our work can handle general visual-text se-
quences, where one user may have more than one video or
albums of photos. (2) most existing video-based QA meth-
ods map one video sequence with text into a context feature
vector, while our work explores a more fine-grained model
by modeling the correlation between query and sequence
data at every time step. To this end, we experiment on the
MemexQA dataset [9]. The sequential data in MemexQA
involves multiple modalities, including titles, timestamps,
GPS and visual content, render it an ideal test bed for QA
research over visual-text sequence data. Unlike the model
in [9], our method also uses the text embedding of the an-
swer choices as the input to answer a question.
Attention Mechanism. This work can be viewed as a
novel attention model for multiple variable-length sequen-
tial inputs, to take into account not only the visual-text in-
formation but also the temporal dependency. Our work ex-
tends the previous studies of using attention model for Im-
age QA [20, 4, 26, 13, 27, 16, 5, 3]. A key difference
between our method and classical attention model lies in
the fact we are modeling the correlation at every time step,
across multiple sequences. Existing attention mechanisms
for VQA mainly focus on attention within spatial regions of
an image [31] or within a single sequence [7], and hence,
may not fully exploit the multiple sequences and multiple
time steps nature. As Fig. 3 shows, our attention is applied
to a three-dimensional tensor, while the classic soft atten-
tion model is applied to a vector or matrix.
3. Approach
3.1. Problem Formulation
We start the discussion by formally defining the prob-
lem. Let Q = q
1
, · · · , q
M
represent a question of M words
Q ∈ Z
M
, where each word is an integer index in the vocab-
ulary. Define a context visual-text sequence of T examples
X = x
1
, · · · , x
T
, where for each example, x
img
t
represents
an image. x
txt
t
is its corresponding text sentence, where its
i-th word is indexed by x
txt
ti
. Following [2, 31], the answer
to a question is an integer y ∈ [1, L] over the answer vocab-
ulary of size L. Given a collection of n questions and their
context sequences, we are interested in learning a model
maximizing the following likelihood:
argmax
Θ
n
X
i=1
log P (y
i
|Q
i
, X
i
; Θ) (1)
where Θ represents the model parameters. Given the visual-
text sequence input X
img
, X
txt
, we obtain a good joint
评论