arXiv is now an independent nonprofit! Learn more
License: CC BY 4.0
arXiv:2310.16590v1 [cs.CV] 25 Oct 2023

𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}: Boosting 𝕍{\mathbb{V}}isual 𝔻{\mathbb{D}}ialog with Cascaded Spatial-Temporal
Multi-Modal 𝔾{\mathbb{GR}}aphs

Adnen Abdessaied    Lei Shi    Andreas Bulling Affiliation: University of Stuttgart Affiliation: {adnen.abdessaied, lei.shi, andreas.bulling}@vis.uni-stuttgart.de
Abstract

We propose 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} [Uncaptioned image] Our project web-page is accessible here. – a novel visual dialog model that combines pre-trained language models (LMs) with graph neural networks (GNNs). Prior works mainly focused on one class of models at the expense of the other, thus missing out on the opportunity of combining their respective benefits. At the core of 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  is a novel integration mechanism that alternates between spatial-temporal multi-modal GNNs and BERT layers, and that covers three distinct contributions: First, we use multi-modal GNNs to process the features of each modality (image, question, and dialog history) and exploit their local structures before performing BERT global attention. Second, we propose hub-nodes that link to all other nodes within one modality graph, allowing the model to propagate information from one GNN (modality) to the other in a cascaded manner. Third, we augment the BERT hidden states with fine-grained multi-modal GNN features before passing them to the next 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layer. Evaluations on VisDial v1.0, VisDial v0.9, VisDialConv, and VisPro show that 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  achieves new state-of-the-art results across all four datasets.

1 Introduction

Visual dialog is a multi-modal task to assess how well an artificial agent can hold a conversation with a human on a visual content using natural language [9]. Visual dialog differs from other tasks, such as visual [3] or video question answering [55], in that it requires the agent to answer a series of temporally dependent questions. That is, the agent not only has to reason about the visual input but also has to leverage the context of previous rounds to be able to answer the current question correctly. Although other datasets have been proposed for this task [45, 27], VisDial [9] has established itself as the de-facto standard because of its challenging, open-ended, and real-world nature.

Early visual dialog models on this dataset were based on recurrent networks [18] within deep neural architectures ranging from vanilla LSTMs [17] over memory nets [54] to hierarchical structures [46]. More recently, graph neural networks (GNNs) have been proposed and have been shown to produce more fine-grained features based on the local structures of each modality [6, 15, 19, 30, 20]. Other works have focused on attention models and pre-trained language models (LM) [9, 44, 38, 1], fine-tuned for the visual dialog task [37, 32, 52, 61]. However, both methodological approaches have so far remained separate despite their complementary strengths and weaknesses: While GNNs are effective at exploiting local structure, they struggle to capture the global inter-modal context, especially in a rich multi-modal task like visual dialog. In contrast, transformer-based models [50] (e.g. BERT [10]) excel at learning the global context using self and global attention but often fail to exploit local intra-modal structures within each modality and suffer from the lack of inductive bias [56].

We posit that it is essential to exploit both local intra-modal structures and the global inter-modal context: Each modality is composed of smaller entities whose relationships have to be separately captured and understood by the model (i.e. the objects in the image, the words that constitute the question, and the rounds that form the history). At the same time, the inter-dependency of the modalities and the global context are equally important for a model to be able to answer the current question efficiently. Implementing this idea, we propose 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  – the first visual dialog model to combine transformer-based LMs and GNNs. Each of our proposed layers alternates between GNNs that use hub-nodes to propagate information from one modality graph to another to alleviate the lack of inter-modal context, as well as BERT layers to learn the global intra-model context. The contributions of our work are threefold:

  • A novel integration method of GNNs into transformer-based models that alternates between multi-modal graph aggregation and BERT layers. The GNNs exploit the local structure of each modality to augment the BERT hidden states with their fine-grained features before passing them to the next 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layer in an attempt to mitigate their lack of inductive bias.

  • A novel feature propagation technique for multi-modal GNNs that relies on hub-nodes that link to all other nodes of the other modality in a cascaded manner, thus alleviating the lack of inter-modal context within the multi-modal graphs.

  • Our model achieves new state-of-the-art results on VisDial v1.0, VisDial v0.9, VisDialConv, and VisPro datasets, thereby outperforming strong baselines on all four datasets.

Refer to caption
Figure 2: 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  takes an image, a question, and a history consisting of the previous turns as input together with their respective graph structures. Each 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}-layer is composed of cascaded multi-modal graphs and a vanilla BERT layer.

2 Related Work

2.1 GNNs for Visual Dialog

GNN-EM [65] was one of the earliest models to deploy GNNs for visual dialog. It relied on building graphically structured neural networks to approximate the learning and inference processes of graphical models [34, 48, 33, 12]. FGA [44] developed a general attention mechanism that borrowed from the core idea of GNN message passing, and that was able to combine representations of any number of utilities. CAG [15] proposed representing the image as a fully-connected graph of objects whose adjacency matrices could be dynamically updated using a question-based attention mechanism. GOG [6] proposed representing each modality as a graph before processing them by a light-weight fusion module [38] to rank the candidate answers. Similarly to CAG [15], DualVD [21] proposed representing the image as a graph consisting of connected objects. They argued that the visual view helped to capture the appearance-level information, including objects and their relationships, while the semantic view enabled the agent to understand high-level visual semantics from the whole image to the local regions [21].

Our model differs from the aforementioned works in two major aspects: (1) Instead of concatenating the GNN node features, we propose using hub-nodes that link to all remaining nodes within a given modality. We argue that this improves the feature fusion on a local scale given that GNNs can freely learn how to integrate information extracted from previous modalities. (2) We marry GNNs with pre-trained LMs (BERT) in a novel way to benefit from the advantages of both worlds. Contrarily to [57, 59] where simple integration approaches for plain uni-modal tasks were introduced, we propose a sophisticated integration method for the complex and rich multi-modal visual dialog task: We first exploit the local multi-modal structures through GNNs before propagating inter-modal information in a cascaded manner via hub-nodes to finally enhance the hidden states of each BERT layer. To the best of our knowledge, we are the first to propose this for the visual dialog task.

2.2 Language Models for Visual Dialog

ViLBERT [35] and XLMERT [49] were among the first attempts to leverage pre-trained LMs for vision-language tasks (e.g. VQA [3], VCR [64], and image retrieval [60]). Concretely, they used a transformer encoder as a backbone and deployed a two-stream architecture to separately encode text and visual input. VisDial-BERT [37] built on top of ViLBERT and specifically adapted it to the visual dialog task, achieving new state-of-the-art performance on VisDial, and thus becoming the standard baseline for this dataset. More recently, UTC [5] was introduced as an improvement of VisDial-BERT and used two inter-task contrastive losses to improve training. Another class of models used a single stream to encode the multi-modal input such as B2T2 [2], VisualBERT [31], VL-BERT [47], and UNITER [8]. VD-BERT [52] adapted a single stream VQA model [66] to the visual dialog task and managed to achieve good performance without relying on external datasets.

Contrarily to the aforementioned works, our model relies on the power of cascaded GNNs to exploit local structures within each modality and, thus produce more fine-grained representations for subsequent BERT layers. To the best of our knowledge, this combination of GNNs and pre-trained LMs has not been explored before for visual dialog.

3 Method

As shown in Figure 2, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  consists of four main components: a) a graph construction and pruning module, (b) a backbone operating on alternating cascaded multi-modal graphs and BERT layers, (c) multiple loss heads (next sentence prediction nsp\mathcal{L}_{nsp}, masked language modelling mlm\mathcal{L}_{mlm}, masked region modelling mrm\mathcal{L}_{mrm}, and multi-modal graph edge masking (gem\mathcal{L}^{\mathcal{I}}_{gem}, gem𝒬\mathcal{L}^{\mathcal{Q}}_{gem}, gem\mathcal{L}^{\mathcal{H}}_{gem})) , and (d) a prediction module to rank a set of candidate answers.

3.1 Problem Formulation

Given a question Qt\texttt{Q}_{\texttt{t}} grounded on an image I at tt-th turn, as well as its dialog history Ht={C,(Q1,A1),,(Qt-1,At-1)}\texttt{H}_{\texttt{t}}=\{\texttt{C},\texttt{(Q}_{\texttt{1}},\texttt{A}_{\texttt{1}}\texttt{)},...,\texttt{(Q}_{\texttt{t-1}},\texttt{A}_{\texttt{t-1}}\texttt{)}\} (where C denotes the image caption), the model is tasked to predict its answer At\texttt{A}_{\texttt{t}} by ranking a list of N=100N=100 answer candidates {A^t1,A^t2,,A^t100}\{\hat{\texttt{A}}_{\texttt{t}}^{\texttt{1}},\hat{\texttt{A}}_{\texttt{t}}^{\texttt{2}},...,\hat{\texttt{A}}_{\texttt{t}}^{\texttt{100}}\}.

3.2 Graph Construction and Pruning

Image Modality. The image graph constructor 𝒢(.)\mathcal{G_{I}}(.) treats each object in the image as a node and relies on spatial relationships to construct the graph topology, i.e. the adjacency matrix, where each edge represents a relationship between two objects in the image. The objects 𝐈={𝐯1,,𝐯Ni}\mathbf{I}=\{\mathbf{v}_{1},...,\mathbf{v}_{N_{i}}\} are obtained using Faster R-CNN [43] pre-trained on Visual Genome [28] where each object feature 𝐯i\mathbf{v}_{i} is a 20482048 dimensional vector and Ni=36N_{i}=36. Similar to [58], we distinguish between 1111 relations based on the (x1,y1,x2,y2)(x_{1},y_{1},x_{2},y_{2}) object coordinates. Specifically, the overlapping region and spatial coordinates of two regions are used to judge whether an edge exists between them or not.

Question Modality. The question graph constructor 𝒢𝒬(.)\mathcal{G_{Q}}(.) treats each word in the question as a node and relies on dependency relations to construct the graph topology, i.e. the adjacency matrix, where each edge represents a relationship between two words in the question. To extract these relationships, we use the neural dependency parser of Stanza [42] that yields 4747 relations.

History Modality. The history graph constructor 𝒢𝒬(.)\mathcal{G_{Q}}(.) treats each dialog round as a node and relies on coreference relations to construct the graph topology, i.e. the adjacency matrix, where each edge represents a relationship between two rounds in the history.

As can be seen in Figure 2, the topology of all multi-modal graphs is computed once during a pre-processing stage and is always kept constant over time. We refer to the supplementary material for additional details.

3.3 Proposed Layer

3.3.1 Transformer Features

Inline with previous works, we use VisDial-BERT [37] layers within our novel GNN-enhanced approach. For a given image-question pair at round tt, we first concatenate the caption C, the previous dialog rounds Ht\texttt{H}_{\texttt{t}}, the current question Qt\texttt{Q}_{\texttt{t}}, and a candidate answer A~t\tilde{\texttt{A}}_{\texttt{t}} to form the textual input

𝐓={[CLS]C[SEP]Q1[SEP]A1,..,Qt[SEP]A~t},\mathbf{T}=\{\texttt{[CLS]}\,\texttt{C}\,\texttt{[SEP]}\,\texttt{Q}_{\texttt{1}}\texttt{[SEP]}\texttt{A}_{\texttt{1}},..,\texttt{Q}_{\texttt{t}}\,\texttt{[SEP]}\,\tilde{\texttt{A}}_{\texttt{t}}\}, (1)

where [CLS] and [SEP] are the special classification and separation tokens, respectively. As in [37, 52, 61, 5], we use a special learnable token [IMG], and initialise it using mean pooling of the object sequence. The hidden features of the [IMG] token are used in conjunction with those of [CLS] by means of element-wise multiplication to produce the final input features of the NSP head.

Finally, the two sequences are used as input for the language and vision streams of the VisDial-BERT layer to obtain the hidden states 𝐓h(l)\mathbf{T}_{h}^{(l)} and 𝐈h(l)\mathbf{I}_{h}^{(l)}, where ll is the 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layer index.

Method VisPro VisDialConv
NDCG\uparrow MRR\uparrow R@1\uparrow R@5\uparrow R@10\uparrow Mean\downarrow NDCG\uparrow MRR\uparrow R@1\uparrow R@5\uparrow R@10\uparrow Mean\downarrow
MCA-I [1] 59.8059.80 57.8857.88 45.3945.39 72.2472.24 82.7682.76 5.845.84 52.0752.07 55.5555.55 41.6541.65 72.4772.47 83.8183.81 5.925.92
MCA-I-HConcQ [1] 61.0861.08 61.7961.79 48.9548.95 77.5077.50 86.5886.58 4.724.72 54.8454.84 62.0662.06 47.4247.42 80.1080.10 88.8788.87 4.374.37
MCA-I-HGuidedQ [1] 61.3561.35 60.1360.13 47.1147.11 75.2675.26 86.1886.18 5.235.23 53.8153.81 62.2962.29 48.3548.35 80.1080.10 88.7688.76 4.424.42
MCA-I-VGH [1] 61.6861.68 59.3359.33 46.1846.18 75.5375.53 86.7186.71 5.075.07 55.4855.48 58.4858.48 44.5444.54 74.9574.95 86.1986.19 5.185.18
MCA-I-H [1] 61.7261.72 59.6259.62 45.9245.92 77.1177.11 86.4586.45 4.854.85 53.0153.01 61.2461.24 47.6347.63 79.0779.07 87.9487.94 4.774.77
Student [22] - - - - - - 59.3059.30 - - - - -
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} 67.09\mathbf{67.09} 66.82\mathbf{66.82} 54.47\mathbf{54.47} 81.71\mathbf{81.71} 91.44\mathbf{91.44} 3.54\mathbf{3.54} 60.35\mathbf{60.35} 69.89\mathbf{69.89} 57.21\mathbf{57.21} 85.97\mathbf{85.97} 92.68\mathbf{92.68} 3.15\mathbf{3.15}
Table 1: Performance comparison on VisPro. The best and second-best results are in bold and underlined, respectively. \uparrow indicates higher is better and \downarrow indicates lower is better.

3.3.2 Spatial-Temporal GNN Features

Node Features.

As illustrated in Figure 2, the multi-modal GNNs of the ll-th 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layer get their node features from the hidden states of the previous VisDial-BERT layer (or from the embedding layers in the first step). It is worth noting that the special tokens [IMG] and [CLS] are not included in the graph features. The nodes of the image and question graphs are gathered from the image and question token embeddings of the (l1)(l-1)-th layer, i.e. {𝐈h,i(l1)}i=1Ni\{\mathbf{I}_{h,i}^{(l-1)}\}_{i=1}^{N_{i}} and {𝐓h,i(l1)}i=sqsq+Nq\{\mathbf{T}_{h,i}^{(l-1)}\}_{i=s_{q}}^{s_{q}+N_{q}}, where sqs_{q} and NqN_{q} denote the index of the first question token and the length of the question, respectively. We use the special [SEP] tokens to represent each dialog round in the history and gather their hidden states from 𝐓h(l1)\mathbf{T}_{h}^{(l-1)} to get the node features of the history graph. The node features of the question and history graphs have to be extracted carefully since the textual input, i.e. where the question starts and ends and where the [SEP] tokens are located, varies within 𝐓h(l1)\mathbf{T}_{h}^{(l-1)} for each dialog and round.

Hub-node Features.

To make each modality aware of the other in a cascaded manner, we introduce hub-nodes as illustrated in Figure 2. As a result, the history becomes aware of the image, the question becomes aware of the history, and finally the image becomes aware of the question. The hub-node within each graph links to all other nodes using a special edge feature to propagate information on a local scale from one modality to the other before applying self- and cross-attention. To obtain the hub-node features, we train attention-based graph embeddings for each modality, i.e. fθ(.)f_{\theta_{\mathcal{I}}}(.), fθ𝒬(.)f_{\theta_{\mathcal{Q}}}(.), and fθ(.)f_{\theta_{\mathcal{H}}}(.), which take the node features of the corresponding graph and output a single vector representing it. For example, the image hub-node \mathcal{I}, is computed from the image graph node features 𝐈G\mathbf{I}_{{G}} of the ll-th layer as follows:

\displaystyle\mathcal{I} =fθ(𝐈G)=iαi𝐯ifor𝐯i𝐈G,\displaystyle=f_{\theta_{\mathcal{I}}}(\mathbf{I}_{{G}})=\sum_{i}\alpha_{i}\mathbf{v}_{i}\,\,\mathrm{for}\,\,\mathbf{v}_{i}\in\mathbf{I}_{{G}}, (2)
α\displaystyle\alpha ={α}i=MLP(𝐈G),\displaystyle=\{\alpha\}_{i}=\mathrm{MLP}(\mathbf{I}_{{G}}), (3)

where MLP is a multi-layer perceptron that maps from the node features’ vector space to \mathbb{R} and θ\theta_{\mathcal{I}} is the set of learnable parameters of the embedding. The question hub-node 𝒬\mathcal{Q} and history hub-node \mathcal{H} are obtained in the same manner.

3.3.3 Graph Aggregation

Our multi-modal graphs are a variant of graph attention networks [51], although other types of GNNs can be used within each 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layer. Each multi-modal graph uses KK layers (purple boxes in Figure 2) to propagate information between the nodes. For example, the kk-th image graph layer receives the node features from the previous graph layer and updates them as follows:

𝐈G(k)={𝐯1(k),..,𝐯Ni(k),𝐯Ni+1(k)=𝒬}=GNN(𝐈G(k1)),\displaystyle\mathbf{I}^{(k)}_{G}=\{\mathbf{v}_{1}^{(k)},..,\mathbf{v}_{N_{i}}^{(k)},\underbrace{\mathbf{v}_{N_{i}+1}^{(k)}}_{=\mathcal{Q}}\}=\mathrm{GNN}_{\mathcal{I}}(\mathbf{I}^{(k-1)}_{G}), (4)
𝐯i(k)=GeLU(h=1H𝐯~i(k,h)+𝐯i(k1)),\displaystyle\mathbf{v}_{i}^{(k)}=\mathrm{GeLU}\left(\displaystyle\mathrel{\mathop{\parallel}_{h=1}^{H}}\tilde{\mathbf{v}}_{i}^{(k,h)}+\mathbf{v}_{i}^{(k-1)}\right), (5)
𝐯~i(k,h)=f(vs𝒩vtαst(k,h)𝐦st(k,h))1hH,\displaystyle\tilde{\mathbf{v}}_{i}^{(k,h)}=f(\sum_{v_{s}\in\mathcal{N}_{v_{t}}}\alpha_{s\rightarrow t}^{(k,h)}\mathbf{m}_{s\rightarrow t}^{(k,h)})\,\,\forall 1\leq h\leq H, (6)

where \parallel and HH are the concatenation operation and the number of GNN attention heads, respectively. 𝒩vt\mathcal{N}_{v_{t}} represents the neighbourhood of node vtv_{t}, αst\alpha_{s\rightarrow t} denotes the attention weight that scales the message 𝐦st(k,h)\mathbf{m}_{s\rightarrow t}^{(k,h)} between a source node 𝐯s\mathbf{v}_{s} and a target node 𝐯t\mathbf{v}_{t}, and ff is a linear layer. The messages 𝐦st(k,h)\mathbf{m}_{s\rightarrow t}^{(k,h)} between the nodes are computed following:

𝐦st(k,h)=gh(𝐯s(k1),𝐞st),\mathbf{m}_{s\rightarrow t}^{(k,h)}=g_{h}(\mathbf{v}_{s}^{(k-1)},\mathbf{e}_{s\rightarrow t}), (7)

where ghg_{h} is a linear layer and 𝐞st\mathbf{e}_{s\rightarrow t} is the edge feature between the nodes 𝐯s\mathbf{v}_{s} and 𝐯t\mathbf{v}_{t}. We omitted the ll index of the 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layer in the previous equations for brevity. The kk-th question and history graph layers update their node features 𝐐G(k)\mathbf{Q}_{G}^{(k)} and 𝐇G(k)\mathbf{H}_{G}^{(k)} in the same manner.

3.3.4 Hidden States Enhancement

The outputs of the multi-modal graphs of the last KK-th layer, i.e. 𝐈G(l,K)\mathbf{I}_{G}^{(l,K)}, 𝐐G(l,K)\mathbf{Q}_{G}^{(l,K)} and 𝐇G(l,K)\mathbf{H}_{G}^{(l,K)}, are used to enhance the hidden states of the following BERT layer. First, the GNN features are scattered back to their corresponding places within the VisDial-BERT hidden states. Then, we apply a fusion operation inspired by the idea of residual connections [16] as illustrated in Figure 2. Our experiments show that this step is crucial and leads to significant improvements in performance. These operations can be summarised as follows:

𝐈~hl=𝐈hl(𝐈G(l,K),Idxv),𝐈^hl=λ𝐈h+(1λ)𝐈~hl,\displaystyle\tilde{\mathbf{I}}_{h}^{l}=\mathbf{I}_{h}^{l}\oslash(\mathbf{I}_{G}^{(l,K)},\mathrm{Idx}_{v}),\,\,\hat{\mathbf{I}}_{h}^{l}=\lambda\mathbf{I}_{h}+(1-\lambda)\tilde{\mathbf{I}}_{h}^{l}, (8)
𝐓~hl=(𝐓hl(𝐐G(l,K),Idxq))(𝐇G(l,K),Idxh),\displaystyle\tilde{\mathbf{T}}_{h}^{l}=\big(\mathbf{T}_{h}^{l}\oslash(\mathbf{Q}_{G}^{(l,K)},\mathrm{Idx}_{q})\big)\oslash\big(\mathbf{H}_{G}^{(l,K)},\mathrm{Idx}_{h}\big), (9)
𝐓^hl=λ𝐓h+(1λ)𝐓~hlforλ[0,1],\displaystyle\hat{\mathbf{T}}_{h}^{l}=\lambda\mathbf{T}_{h}+(1-\lambda)\tilde{\mathbf{T}}_{h}^{l}\quad\mathrm{for}\,\,\lambda\in[0,1], (10)

where \oslash denote the scatter operation and Idx\mathrm{Idx}_{*} the indices of the graph nodes features with respect to the BERT hidden states. The final enhanced features 𝐈^hl\hat{\mathbf{I}}_{h}^{l} and 𝐓^hl\hat{\mathbf{T}}_{h}^{l} are passed to the next BERT layer.

3.4 Loss Heads

We complement the traditional losses used for the visual dialog task (masked language modelling mlm\mathcal{L}_{\textrm{mlm}}, masked region modelling mrm\mathcal{L}_{\textrm{mrm}}, and next sentence prediction nsp\mathcal{L}_{\textrm{nsp}}) with graph edge masking gem\mathcal{L}_{\textrm{gem}} to improve learning of the local structure of each modality, and thus to enhance the feature representation of our multi-modal graphs.

Masked Language and Region Modelling.

Similar to masked language modelling introduced in [10], we randomly masked 10%10\% of the text tokens and image objects with the special token [MASK] and the model had to recover them based on the surrounding tokens and cross-modal clues:

mlm\displaystyle\mathcal{L}_{\textrm{mlm}} =𝔼(𝐰,𝐈)Str[logP(wm|𝐰\m,𝐡[IMG])],\displaystyle=-\mathbb{E}_{(\mathbf{w},\mathbf{I})\sim S_{tr}}\left[logP(w_{m}|\mathbf{w}_{\backslash m},\mathbf{h}_{\texttt{[IMG]}})\right], (11)
mrm\displaystyle\mathcal{L}_{\textrm{mrm}} =𝔼(𝐰,𝐈)Str[logP(𝐯m|𝐈\m,𝐡[CLS])],\displaystyle=-\mathbb{E}_{(\mathbf{w},\mathbf{I})\sim S_{tr}}\left[logP(\mathbf{v}_{m}|\mathbf{I}_{\backslash m},\mathbf{h}_{\texttt{[CLS]}})\right], (12)

where wmw_{m}, 𝐯m\mathbf{v}_{m}, and StrS_{tr} denote the masked words, the masked regions, and the training set, respectively.

Next Sentence Prediction.

The aim of next sentence prediction (NSP) is to identify whether the appended answer A~t\tilde{\texttt{A}}_{\texttt{t}} is correct or not, i.e.

nsp=𝔼(𝐰,𝐈)Str[logP(y|(𝐰,𝐈))],\mathcal{L}_{\textrm{nsp}}=-\mathbb{E}_{(\mathbf{w},\mathbf{I})\sim S_{tr}}\left[logP(y|\aleph(\mathbf{w},\mathbf{I}))\right], (13)

where y{0,1}y\in\{0,1\} is a ground-truth binary label, and (.,.)\aleph(.,.) is the binary answer prediction head operating on the element-wise product of the [IMG] and [CLS] token representations.

Figure 3: Only edges connecting two unmasked node features are eligible for masking with a 15%15\% probability.
Graph Edge Masking.

We introduce the multi-modal graph edge masking to alleviate the potential problem of having well-trained BERT layers but not sufficiently trained GNNs. Given that, by design, our GNNs receive their features from the previous BERT layer, they inherit some masked node representations. In order to make the edge prediction task stable, we only masked 15%15\% of the edges connecting two unmasked node features as illustrated in Figure 3. The representations of these nodes were then used to predict the masked edges. For the example of the image graph, this results in the following loss:

gem=𝔼(𝐰,𝐈)Str[logP(ym(i,j)|𝐡𝐯i,𝐡𝐯j)],\mathcal{L}^{\mathcal{I}}_{\textrm{gem}}=-\mathbb{E}_{(\mathbf{w},\mathbf{I})\sim S_{tr}}\left[logP(y_{m}^{(i,j)}|\mathbf{h}_{\mathbf{v}_{i}},\mathbf{h}_{\mathbf{v}_{j}})\right], (14)

where ym(i,j)y_{m}^{(i,j)} is the ground-truth edge type between the nodes 𝐯i\mathbf{v}_{i} and 𝐯j\mathbf{v}_{j}. The question and history edge graph masking losses gem𝒬\mathcal{L}^{\mathcal{Q}}_{\textrm{gem}} and gem\mathcal{L}^{\mathcal{H}}_{\textrm{gem}} are obtained in a similar manner.

Total Loss.

We adopt a two-stage approach to train our model. First, we train it on a warm-up task of masked token and graph edge prediction, i.e. using the total loss warm\mathcal{L}_{\textrm{warm}}:

warm=α1(mlm+mrm)+α2GEM,\displaystyle\mathcal{L}_{\textrm{warm}}=\alpha_{1}(\mathcal{L}_{\textrm{mlm}}+\mathcal{L}_{\textrm{mrm}})+\alpha_{2}\mathcal{L}_{\textrm{GEM}}, (15)
GEM=GEM+GEM𝒬+GEM.\displaystyle\mathcal{L}_{\textrm{GEM}}=\mathcal{L}_{\textrm{GEM}}^{\mathcal{I}}+\mathcal{L}_{\textrm{GEM}}^{\mathcal{Q}}+\mathcal{L}_{\textrm{GEM}}^{\mathcal{H}}. (16)

Then, we only train the model based on the visual dialog loss

VD=mlm+mrm+nsp.\mathcal{L}_{\textrm{VD}}=\mathcal{L}_{\textrm{mlm}}+\mathcal{L}_{\textrm{mrm}}+\mathcal{L}_{\textrm{nsp}}. (17)

4 Experiments

4.1 Datasets

We evaluated 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  on the challenging VisDial v0.9 and VisDial v1.0 datasets. VisDial v0.9 has circa 8383k training and 4040k validation dialogs. The more recent v1.0 version consists of about 123123k, 22k, and 88k images for training, validation, and testing, respectively. Each image comes with a caption and 1010 question-answer pairs; each question turn is associated with 100100 candidate answers. The validation data and part of the training data of VisDial v1.0 provide dense annotations for the candidate answers. Furthermore, we evaluated our model on two additional datasets, i.e. VisPro [62] and VisDialConv [1].

4.2 Quantitative Results

Method MRR\uparrow R@1\uparrow R@5\uparrow R@10\uparrow Mean\downarrow
MN [9] 59.6559.65 45.5545.55 76.2276.22 85.3785.37 5.465.46
CoAtt [63] 63.9863.98 50.2950.29 80.7180.71 88.8188.81 4.474.47
HCIAE [36] 62.2262.22 48.4848.48 78.7578.75 87.5987.59 4.814.81
CorefNMN [26] 64.1064.10 50.9250.92 80.1880.18 88.8188.81 4.454.45
RvA [39] 66.3466.34 52.7152.71 82.9782.97 90.7390.73 3.933.93
Student [22] 60.0360.03 50.4050.40 70.7470.74 77.1577.15 12.1312.13
DVAN [14] 66.6766.67 53.6253.62 82.8582.85 90.7290.72 3.933.93
VD-BERT [52] 70.0470.04 57.7957.79 85.3485.34 92.6892.68 4.044.04
VisDial-BERT [37] 71.9971.99 59.4159.41 87.9287.92 94.5994.59 2.872.87
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} 74.50\mathbf{74.50} 62.10\mathbf{62.10} 90.49\mathbf{90.49} 96.37\mathbf{96.37} 2.45\mathbf{2.45}
Table 2: Performance comparison on the val split of VisDial v0.9 dataset. NDCG is not supported in this version of the dataset.
VisDialConv & VisPro.

First, we evaluated our model on VisPro 11 1 Same subset as in [1]. and VisDialConv which were introduced to verify the role of dialog history in answering the current question Qt\texttt{Q}_{\texttt{t}}. We compared 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  to the baselines introduced in [1] as well as the most recent Student model [22]. As can be seen from Table 1, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  significantly outperformed all MCA variants across all metrics on both datasets. Specifically, it increased the performance of the baselines by over 55 absolute points on NDCG and MRR on VisPro. On VisDialConv, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  increased the top performance by over 44 absolute points on the same metrics. Table 1 also shows that our model managed to surpass the Student model by over 11 NDCG absolute point although it was trained on circa 1313M additional images.

Method NDCG\uparrow MRR\uparrow R@1\uparrow R@5\uparrow R@10\uparrow Mean\downarrow
LTMI [38] 62.7262.72 62.3262.32 48.9448.94 78.6578.65 87.8887.88 4.864.86
VD-BERT [52] 63.2263.22 67.4467.44 54.0254.02 83.9683.96 92.3392.33 3.533.53
VisDial-BERT [37] 60.9660.96 67.1767.17 53.4253.42 84.4184.41 92.6292.62 3.413.41
MCA [1] 60.2760.27 64.3364.33 51.1251.12 80.9180.91 89.6589.65 4.244.24
UniMM-UL [53] 62.8662.86 53.4953.49 42.7042.70 65.0365.03 74.5874.58 10.6510.65
UTC [5] 63.2263.22 68.5868.58 55.4855.48 85.3885.38 93.2093.20 3.283.28
Student [22] 65.47\mathbf{65.47} 53.1953.19 43.0843.08 64.0964.09 71.5171.51 14.3414.34
VD-PCR [61] 64.1664.16 69.71{69.71} 56.79{56.79} 85.82{85.82} 93.64{93.64} 3.15{3.15}
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} 64.32{64.32} 69.91\mathbf{69.91} 57.01\mathbf{57.01} 86.14\mathbf{86.14} 93.74\mathbf{93.74} 3.13\mathbf{3.13}
Table 3: Performance comparison on the val split of VisDial v1.0 dataset.
VisDial v0.9.

Second, we compared 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  with the state of the art on the val split of VisDial v0.9. As can be seen from Table 2, our model significantly outperformed all previous models and achieved new state-of-the-art results across all metrics. Specifically, it outperformed pre-training methods such as VisDial-BERT and VD-BERT by a large margin. Even more importantly, it managed to also surpass more recent models such as Student. Specifically, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  improved the MRR and R@1 scores by over 2.52.5 absolute points compared to the second best model.

VisDial v1.0 val.

We then compared 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  with the state of the art on the val split of VisDial v1.0. As can be seen from Table 3, our model outperformed all previous models across all five sparse metrics. Specifically, it outperformed pre-training methods, such as VisDial-BERT and VD-BERT by a significant margin. Even more importantly, it managed to also surpass more recent models such as UniMM-UL, VD-PCR, UTC, and Student. 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  improved MRR, R@1, and R@5 by over 0.20.2 absolute points compared to the second best VD-PCR model. Furthermore, we compared their performance on individual dialog rounds using the sparse metrics (MRR, R@1, R@5, and R@10). As can be seen from Figure 4, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  managed to outperform VD-PCR on almost all rounds of the dataset.

VisDial v1.0 test-std.

Finally, we compared our model with state-of-the-art published baselines on the test-std split of the VisDial v1.0 dataset.

\bullet State-of-the-art Results on Sparse Metrics: As can be seen from the first section of Table 4, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  lifted the state-of-the-art R@5, R@10, and Mean scores from 85.3885.38, 93.5393.53, and 3.213.21 achieved by VD-PCR to 85.5885.58, 93.8593.85, and 3.203.20, respectively. On the remaining metrics, our models performed on par with the state of the art. Specifically, it reached respective scores of 68.6568.65 and 55.3355.33 on MRR and R@1, only third to UTC and VD-PCR.

\bullet Fine-tuning on Dense Annotations: As in previous works, we fine-tuned our model on the dense annotations released by [37] in order to improve the NDCG score. As illustrated in the second section of Table 4, the NDCG score sharply increased from 63.4963.49 to 75.9575.95, outperforming all previous models in the single-model setting. However, by fine-tuning on dense annotations, we decreased the performance on the sparse metrics (MRR, R@1, R@5, R@10, and Mean). This well-known phenomenon of the dataset is due to the misalignment of the dense and sparse annotations as previously observed by [37, 52]. In contrast to other baselines, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  managed to keep relatively high sparse scores (4/5 metrics are the new state of the art) after fine-tuning.

Figure 4: Performance comparison on different dialog rounds of the VisDial v1.0 val split. We only considered sparse metrics since the dense annotations used to compute the NDCG score are not defined on all 10 rounds of the validation dialogs.
Figure 5: Performance comparison with different number of GNN layers KK on the val split of VisDial v1.0. Results are shown for the val split of VisDial v1.0.

\bullet Ensemble Setting: As it is common practice, we fine-tuned an ensemble comprised of eight pre-trained 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  models to further improve the NDCG score. One set of four models was fine-tuned with Cross Entropy (CE) and with a varying number for GNN layers KK, i.e. K={1,2,3,4}K=\{1,2,3,4\}. Each model of the second set was trained using the ListNet [4] ranking optimisation method. As can be seen in the last section of Table 4, our ensemble model reached an NDCG score of 76.4376.43 outperforming the closest competitor UniMM-UL with only 76.17 and, thus setting a new state of the art in the ensemble setting.

Method NDCG\uparrow MRR\uparrow R@1\uparrow R@5\uparrow R@10\uparrow Mean\downarrow
MN [9] 47.5047.50 55.4955.49 46.9846.98 72.3072.30 83.3083.30 5.925.92
CorefNMN [26] 54.7054.70 61.5061.50 47.5547.55 78.1078.10 88.8088.80 4.404.40
FGA [44] 56.9056.90 66.2066.20 52.7552.75 82.9282.92 91.0791.07 3.803.80
DAN [23] 57.5957.59 63.2063.20 49.6349.63 79.7579.75 89.3589.35 4.304.30
LTMI [38] 59.0359.03 64.0864.08 50.2050.20 80.6880.68 90.3590.35 4.054.05
CAG [15] 56.6456.64 63.4963.49 49.8549.85 80.6380.63 90.1590.15 4.114.11
GOG [6] 61.0461.04 63.5263.52 50.0150.01 80.1380.13 89.2889.28 4.314.31
VD-BERT [52] 59.9659.96 65.4465.44 51.6351.63 82.2382.23 90.6890.68 3.903.90
VisDial-BERT [37] 63.8763.87 67.5067.50 53.8553.85 84.6884.68 93.2593.25 3.323.32
UTC [5] 64.60{64.60} 68.70{68.70} 55.73\mathbf{55.73} 84.9384.93 93.0893.08 3.323.32
VD-PCR [61] 63.5563.55 68.73\mathbf{68.73} 55.45{55.45} 85.38{85.38} 93.53{93.53} 3.21{3.21}
UniMM-UL [53] 63.9063.90 68.1468.14 54.5754.57 85.1585.15 93.1393.13 3.273.27
Student [22] 64.91\mathbf{64.91} 68.4468.44 55.0555.05 85.1885.18 93.3593.35 3.233.23
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} 63.4963.49 68.6568.65 55.3355.33 85.58\mathbf{85.58} 93.85\mathbf{93.85} 3.20\mathbf{3.20}
MCA [1] 72.4772.47 37.6837.68 20.6720.67 56.6756.67 72.1272.12 8.898.89
VD-BERT [52] 74.5474.54 50.7450.74 33.1533.15 61.5861.58 77.1577.15 7.187.18
VisDial-BERT [37] 74.4774.47 50.7450.74 37.9537.95 64.1364.13 80.0080.00 6.286.28
UTC [5] 74.3274.32 50.2450.24 37.1237.12 63.9863.98 79.8879.88 6.486.48
VD-PCR [61] 75.3075.30 56.1756.17 45.32{45.32} 68.0568.05 80.9880.98 6.156.15
UniMM-UL [53] 75.92{75.92} 56.18{56.18} 43.7043.70 71.03{71.03} 84.80\mathbf{84.80} 5.42{5.42}
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} 75.95\mathbf{75.95} 58.30\mathbf{58.30} 46.55\mathbf{46.55} 71.45\mathbf{71.45} 84.5284.52 5.32\mathbf{5.32}
♢♣P1+P2 [41] 74.9174.91 49.1349.13 36.6836.68 62.9662.96 78.5578.55 7.037.03
♢♣VD-BERT [52] 75.3575.35 51.1751.17 38.9038.90 62.8262.82 77.9877.98 6.696.69
♢♣VD-PCR [61] 76.1476.14 56.0556.05 44.75{44.75} 68.40{68.40} 82.75{82.75} 5.72{5.72}
♢♣UniMM-UL [53] 76.17{76.17} 56.42\mathbf{56.42} 44.3244.32 70.23\mathbf{70.23} 84.52\mathbf{84.52} 5.47\mathbf{5.47}
♢♣𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} 76.43\mathbf{76.43} 56.35{56.35} 45.18\mathbf{45.18} 68.1368.13 82.1882.18 5.795.79
Table 4: Performance comparison on the test-std split of VisDial v1.0 dataset. \clubsuit indicates fine-tuning on dense annotations and \diamondsuit denotes ensemble model. {\ddagger} denotes the use of extra large datasets for training.
Methods NDCG\uparrow MRR\uparrow R@1\uparrow R@5\uparrow R@10\uparrow Mean\downarrow
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  w/ λ=0\lambda=0 56.6956.69 67.7167.71 54.0754.07 85.0385.03 92.8492.84 3.333.33
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  w/o warm\mathcal{L}_{\mathrm{warm}} 63.7663.76 69.8369.83 56.8456.84 86.05{86.05} 93.70{93.70} 3.153.15
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} w/o sharing 64.15{64.15} 69.7969.79 56.7356.73 86.0286.02 93.6893.68 3.153.15
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR} w/o HN 64.1164.11 69.86{69.86} 56.88{56.88} 85.97{85.97} 93.67{93.67} 3.14{3.14}
𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  (Full) 64.32\mathbf{64.32} 69.91\mathbf{69.91} 57.01\mathbf{57.01} 86.14\mathbf{86.14} 93.74\mathbf{93.74} 3.13\mathbf{3.13}
Table 5: Performance comparison of ablated versions of our model on the val split of VisDial v1.0.
Refer to caption
Figure 6: Qualitative samples from the VisDial v1.0 val split. The attention weights correspond to the KK-th GNN of the first and last 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layers. We first average them across all HH attention heads before re-normalising them for each node using a softmax function. For clarity, we only show a subset of the image graph nodes.

4.3 Ablation Study

Number of GNN layers KK.

This is an important hyper-parameter of our model: If KK is too small, then the expressive power of the GNNs will be hampered. Contrarily, if KK is too large, the GNNs will suffer from over-smoothing [29]. To this end, we increased KK incrementally from one to four and used the sparse metrics of the task (MRR, R@1, R@5, R@10) for validation. As illustrated in Figure 5, the performance of our model peaked at K=2K=2 for all four metrics. Thus, we kept this value fixed in all previous experiments unless explicitly stated otherwise.

Model Ablations.

In addition to the full model, we evaluated the following ablated versions:
\bullet 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}w/ λ=𝟎\mathbf{\lambda=0}: This variant did not apply the proposed residual connection of Equation 10 while augmenting the BERT hidden states.
\bullet 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}w/o warm\mathbf{\mathcal{L}_{\textrm{warm}}}: This variant was not trained on the warm-up task of edge prediction as discussed in Sec. 3.4.
\bullet𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}w/o sharing: This variant did not share the weights of the GNNs in each layer of our model.
\bullet 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}w/o HN: This variant did not use hub-nodes to propagate the information between the multi-modal GNNs.

As can be seen from Table 5, the residual connections are essential for high performance. Without them, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  achieved the lowest performance across all metrics. The same applies to the warm-up training stage: Although the performance of this ablated version improved over the previous one, it still performed significantly worse than our best model. The results also underline the importance of sharing the GNN weights within the different 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layers: Although this version has more weights, it still performed worse than our best model on all metrics. This finding was to be expected given that the local structure of each modality does not change from one 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  layer to another. Finally, the importance of the inter-modal feature propagation using hub-nodes is highlighted by the two last rows of Table 5: The hub-nodes enabled our model to achieve the best performance across all metrics of the val split of the VisDial v1.0 dataset.

4.4 Qualitative Results

Finally, in Figure 6 we show selected qualitative samples (with more in the supplementary material) from the val split of VisDial v1.0 alongside the ground truth answers, as well as the top-11 predictions of our 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  model and VD-PCR for comparison since it achieved the second best results on this split. We make two interesting observations: (1) Our model deals better with questions that require exploiting local structure within modalities. For example, it managed to correctly answer Q2=How many skiers can you see?\texttt{Q}_{\texttt{2}}=\texttt{How many skiers can you see?} in the first dialog sample (see Figure 6a) by predicting 11 whereas VD-PCR predicted I can only see two. We hypothesise that this is due to the fact that our model exploits the spatial structure of the visual input more effectively using the image graph compared to VD-PCR, although the latter has access to the same visual features. (2) 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  has more accurate semantic understanding of the question. This is highlighted in answering Q2=How old does she seem to be?\texttt{Q}_{\texttt{2}}=\texttt{How old does she seem to be?} (referring to the woman) in the second dialog sample (see Figure 6b). Whereas our model correctly predicted Early 20’s, VD-PCR failed by answering Grey, which is not a semantically-sound response. We posit that this advantage of our model is related to the fine-grained features of the question graph.

5 Conclusion

In this work we proposed 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  – a novel visual dialog model that combines pre-trained language models and GNNs. Specifically, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  alternates between multi-modal graphs and BERT layers, and augments the hidden states of the latter with the fine-grained features obtained by the former. 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  propagates information from one modality graph to another in a cascaded manner using hub-nodes that link to all other nodes within each modality, thereby effectively alleviating the lack of inter-modal context. Extensive analyses underlined its effectiveness, while experiments on four challenging visual dialog datasets (VisDial v1.0, VisDial v0.9, VisDialConv, and VisPro) demonstrated its superior performance over existing methods.

Acknowledgment

A. Bulling was funded by the European Research Council (ERC; grant agreement 801708) and L. Shi was funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy - EXC 2075–390740016.

Appendix

Appendix A Limitations

Although our model managed to outperform previous models on four challenging datasets, it is important to acknowledge some of its limitations: First, 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  leverages extra data in the form of adjacency matrices of the multi-modal GNNs and relies on external models to acquire them. Although inferring these models on the VisDial data is cheap, this approach can lead to inaccurate predictions of adjacency matrices, especially for the question and history modalities. Thus, by keeping the graph structures constant, our model’s performance might be limited by this introduced noise. This could be remedied in future work by jointly learning the graphs’ parameters as well as refining their structures over time [13, 7, 11]. Second, similar to almost all previous methods on this task, we did not manage to achieve new state-of-the-art performance across all metrics of this challenging dataset (see different sections of Table 4). Finally, inline with previous works [37, 52, 24, 5, 61, 53], fine-tuning our model (both in the single model as well as the ensemble setting) on dense annotations improved the most relevant metric of the dataset, i.e. the NDCG score, at the expense of the other (sparse) ones. Although our model’s performance dropped with respect to the sparse metrics, we managed to outperform previous works by achieving an NDCG score of 76.43, which is the main objective of dense annotation fine-tuning.

Appendix B Graph Construction and Pruning

Image Modality.

Given two object features 𝐯i\mathbf{v}_{i} and 𝐯j\mathbf{v}_{j}, their bounding boxes and centre coordinates (xi,yi)(x_{i},y_{i}) and (xj,yj)(x_{j},y_{j}), we computed the value of their intersection over unions IoUij\mathrm{IoU}_{ij} and relative angle ϕij\phi_{ij}. As shown in Figure 10, there are two spacial cases: The first occurs when the bounding box of 𝐯i\mathbf{v}_{i} completely includes the bounding box of 𝐯j\mathbf{v}_{j} and this class is denoted as inside with index i=1i=1. The second occurs when the bounding box of 𝐯i\mathbf{v}_{i} is entirely covered by the bounding box of 𝐯j\mathbf{v}_{j}. This class is denoted as cover with index i=2i=2. The remaining classes are solely determined by the value of IoUij\mathrm{IoU}_{ij}. If IoUij0.5\mathrm{IoU}_{ij}\geq 0.5, then the relationship between the objects is denoted as overlap and has the index i=3i=3. Finally, if IoUij<0.5\mathrm{IoU}_{ij}<0.5, the class index is computed as

i=ϕij0.25π+3.i=\lceil\frac{\phi_{ij}}{0.25\pi}\rceil+3.

By construction, all classes of index i3i\neq 3 are pairwise symmetric as can be seen from Figure 7a where we plotted the distribution of the different image graph relationship classes over the training split of VisDial v1.0.

Question Modality.

The question graph relationship classes were determined by the dependency between the question words. To this end, we input each question to the Stanza dependency parser that output the classes between the different word pairs resulting in a total of 4747 classes. As shown in Figure 7b, the distribution of these classes within the VisDial v1.0 training split is not uniform with det and nsubj being the most frequent. We illustrate a qualitative sample in Figure 8.

History Modality.

We relied in coreference resolution to construct the history graph. Specifically, an edge exists between two rounds i and j (i >> j) if and only if a word in round j was used to reference another word in round i. The only exception is the caption C that links to all upcoming rounds in the history even if there is no explicit coreference between them. We posit that the caption is complementary to the visual input and helps the model better understand the scene. We illustrate a qualitative sample in Figure 9.

Method VisDialBERT [37] VD-BERT [52] VD-PCR [61] 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}
# Parameters 250M 250M 255M 260M
Tr. time / epoch 0.6h 0.6h 1.00h 1.05h
Table 6: Model complexity and runtime comparison with respect to VisDial v1.0 on our hardware setup.

Appendix C Model Complexity

The overhead for constructing the multi-modal graphs only incurs once during a cheap offline pre-processing stage and therefore does not lead to crucial increase in compute complexity, i.e. number of trainable parameters and epoch training time, compared with previous seminal models, e.g. VisDial-BERT [37], VD-BERT [52], and VD-PCR [61], as can be seen in Table 6.

Figure 7: Right: The distribution of the image graph relationship classes within the training split of VisDial v1.0. Left: The distribution of the question graph relationship classes within the training split of VisDial v1.0.
Figure 8: A qualitative sample of the dependency relationships between question word pairs.
Refer to caption
Figure 9: A qualitative sample of the coreference relationships between different dialog rounds. The hub-node was not visualised for clarity.
Figure 10: The different spatial relationships (without the hub-node relationship) used in constructing the image graph. The orange and green rectangles correspond to the bonding boxes of two objects within the scene.
Hyper-parameter Training Stage
Warm-up Sparse fine-tuning Dense fine-tuning
Number of GNN layers KK 22 22 22
Number of GNN heads HH 44 44 44
Residual connection coefficient λ\lambda 0.50.5 0.50.5 0.50.5
Dimension of GNN\textrm{GNN}_{\mathcal{I}} node features 10241024 10241024 10241024
Dimension of GNN𝒬\textrm{GNN}_{\mathcal{Q}} node features 768768 768768 768768
Dimension of GNN\textrm{GNN}_{\mathcal{H}} node features 768768 768768 768768
Dimension of GNN\textrm{GNN}_{\mathcal{I}} edge features 1212 1212 1212
Dimension of GNN𝒬\textrm{GNN}_{\mathcal{Q}} edge features 4848 4848 4848
Dimension of GNN\textrm{GNN}_{\mathcal{H}} edge features 22 22 22
Dimension of Linear(.)\mathrm{Linear}_{\mathcal{I}\rightarrow\mathcal{H}}(.) (1024,768)(1024,768) (1024,768)(1024,768) (1024,768)(1024,768)
Dimension of Linear𝒬(.)\mathrm{Linear}_{\mathcal{Q}\rightarrow\mathcal{I}}(.) (768,1024)(768,1024) (768,1024)(768,1024) (768,1024)(768,1024)
Maximum number of text tokens 256256 256256 256256
Maximum number of image regions 3737 3737 3737
Text token mask probability 0.10.1 0.10.1 -
Image region mask probability 0.10.1 0.10.1 -
Graph edge mask probability 0.150.15 - -
Optimiser Adam Adam Adam
Minimum learning rate of BERT parameters 00 00 1×1051\times 10^{-5}
Minimum learning rate of GNN parameters 00 00 1×1051\times 10^{-5}
Maximum learning rate of BERT parameters 5×1065\times 10^{-6} 5×1065\times 10^{-6} 2×1052\times 10^{-5}
Maximum learning rate of GNN parameters 5×1045\times 10^{-4} 5×1045\times 10^{-4} 1×1041\times 10^{-4}
Learning rate warm-up of BERT parameters True True True
Learning rate warm-up of GNN parameters True True True
Learning rate schedule of BERT parameters Linear Linear Linear
Learning rate schedule of GNN parameters Linear Linear Linear
Training Loss warm\mathcal{L}_{\mathrm{warm}} VD\mathcal{L}_{\mathrm{VD}} CE\mathcal{L}_{\mathrm{CE}} / ListNet\mathcal{L}_{\mathrm{ListNet}}
Number of epochs 55 2020 33
Effective batch size 6464 6464 100100
GPU Model Tesla V100-32GB Tesla V100-32GB Tesla V100-32GB
Number of GPUs 88 88 88
Distributed training Apex Apex PyTorch DP
Table 7: Hyper-parameter settings of 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  for the different stages of training. Linear(.)\mathrm{Linear}_{\mathcal{I}\rightarrow\mathcal{H}}(.) and Linear𝒬(.)\mathrm{Linear}_{\mathcal{Q}\rightarrow\mathcal{I}}(.) denote the linear layers that produce the history and image hub-node features, respectively.

Appendix D Training Details

We implemented our model using PyTorch [40] and trained it on a server with 8 NVIDIA Tesla V100 GPUs using an effective batch size of 6464 and Adam optimiser [25] with a linear decay learning rate schedule with warm-up. We set the initial learning rates of the BERT and GNN weights to 5×1065\times 10^{-6} and 5×1045\times 10^{-4}, respectively. Furthermore, we set the loss coefficients α1=α2=1\alpha_{1}=\alpha_{2}=1 and the residual connection coefficient λ=0.5\lambda=0.5. We refer to Table 7 for a complete overview of our experimental setup.

Appendix E Additional Qualitative Results

We present additional qualitative examples from the val split of VisDial v1.0 in Figure 11 and Figure 12. As in the main text, we compared the top-11 predictions of 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  with the ground-truth and the predictions of VD-PCR since it achieved the second best performance on this split.

Refer to caption
Figure 11: Qualitative samples from the val split of the VisDial v1.0 dataset. We compared the predictions of 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  (orange) with the ground truth answers (blue) and the predictions of VD-PCR (pink). The answers of both models correspond to the top-11 predictions.
Refer to caption
Figure 12: Qualitative samples from the val split of the VisDial v1.0 dataset. We compared the predictions of 𝕍𝔻\mathbb{VD}-𝔾\mathbb{GR}  (orange) with the ground truth answers (blue) and the predictions of VD-PCR (pink). The answers of both models correspond to the top-11 predictions.
References
  • [1] Shubham Agarwal, Trung Bui, Joon-Young Lee, Ioannis Konstas, and Verena Rieser. History for Visual Dialog: Do we really need it? In ACL, 2020.
  • [2] Chris Alberti, Jeffrey Ling, Michael Collins, and David Reitter. Fusion of Detected Objects in Text for Visual Question Answering. In EMNLP, 2019.
  • [3] Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C. Lawrence Zitnick, and Devi Parikh. VQA: Visual Question Answering. In ICCV, 2015.
  • [4] Zhe Cao, Tao Qin, Tie-Yan Liu, Ming-Feng Tsai, and Hang Li. Learning to Rank: From Pairwise Approach to Listwise Approach. In ICML, 2007.
  • [5] Cheng Chen, Yudong Zhu, Zhenshan Tan, Qingrong Cheng, Xin Jiang, Qun Liu, and Xiaodong Gu. UTC: A Unified Transformer with Inter-Task Contrastive Learning for Visual Dialog. In CVPR, 2022.
  • [6] Feilong Chen, Xiuyi Chen, Fandong Meng, Peng Li, and Jie Zhou. GoG: Relation-aware graph-over-graph network for visual dialog. In Findings of ACL, 2021.
  • [7] Yu Chen, Lingfei Wu, and Mohammed J. Zaki. Iterative deep graph learning for graph neural networks: Better and robust node embeddings. In NeurIPS, 2020.
  • [8] Yen-Chun Chen, Linjie Li, Licheng Yu, Ahmed El Kholy, Faisal Ahmed, Zhe Gan, Yu Cheng, and Jingjing Liu. Uniter: Universal image-text representation learning. In ECCV, 2020.
  • [9] Abhishek Das, Satwik Kottur, Khushi Gupta, Avi Singh, Deshraj Yadav, José M.F. Moura, Devi Parikh, and Dhruv Batra. Visual Dialog. In CVPR, 2017.
  • [10] Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. BERT: Pre-training of deep bidirectional transformers for language understanding. In NAACL, 2019.
  • [11] Pantelis Elinas, Edwin V. Bonilla, and Louis C. Tiao. Variational inference for graph convolutional networks in the absence of graph data and adversarial settings. In NeurIPS, 2020.
  • [12] Haoshu Fang, Yuanlu Xu, Wenguan Wang, Xiaobai Liu, and Song-Chun Zhu. Learning Pose Grammar to Encode Human Body Configuration for 3D Pose Estimation. In AAAI, 2017.
  • [13] Luca Franceschi, Mathias Niepert, Massimiliano Pontil, and Xiao He. Learning discrete structures for graph neural networks. In ICML, 2019.
  • [14] Dan Guo, Hui Wang, and Meng Wang. Dual visual attention network for visual dialog. In IJCAI, 2019.
  • [15] Dan Guo, Hui Wang, Hanwang Zhang, Zheng Jun Zha, and Meng Wang. Iterative Context-Aware Graph Inference for Visual Dialog. In CVPR, 2020.
  • [16] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016.
  • [17] Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 1997.
  • [18] J J Hopfield. Neural networks and physical systems with emergent collective computational abilities. Proceedings of the National Academy of Sciences, 1982.
  • [19] Tianling Jiang, Yi Ji, Chunping Liu, and Hailin Shao. Visual-textual alignment for graph inference in visual dialog. In COLING, 2020.
  • [20] Xiaoze Jiang, Siyi Du, Zengchang Qin, Yajing Sun, and Jing Yu. KBGN: Knowledge-Bridge Graph Network for Adaptive Vision-Text Reasoning in Visual Dialogue. In ACM MM, 2020.
  • [21] Xiaoze Jiang, Jing Yu, Zengchang Qin, Yingying Zhuang, Xingxing Zhang, Yue Hu, and Qi Wu. DualVD: An Adaptive Dual Encoding Model for Deep Visual Understanding in Visual Dialogue. In AAAI, 2020.
  • [22] Gi-Cheon Kang, Sungdong Kim, Jin-Hwa Kim, Donghyun Kwak, and Byoung-Tak Zhang. The Dialog Must Go On: Improving Visual Dialog via Generative Self-Training. In CVPR, 2023.
  • [23] Gi-Cheon Kang, Jaeseo Lim, and Byoung-Tak Zhang. Dual attention networks for visual reference resolution in visual dialog. In EMNLP, 2019.
  • [24] Gi-Cheon Kang, Junseok Park, Hwaran Lee, Byoung-Tak Zhang, and Jin-Hwa Kim. Reasoning visual dialog with sparse graph learning and knowledge transfer. In Findings of EMNLP, 2021.
  • [25] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, 2015.
  • [26] Satwik Kottur, José MF Moura, Devi Parikh, Dhruv Batra, and Marcus Rohrbach. Visual coreference resolution in visual dialog using neural module networks. In ECCV, 2018.
  • [27] Satwik Kottur, José M.F. Moura, Devi Parikh, Dhruv Batra, and Marcus Rohrbach. Clevr-dialog: A diagnostic dataset for multi-round reasoning in visual dialog. In NAACL, 2019.
  • [28] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A Shamma, et al. Visual genome: Connecting language and vision using crowdsourced dense image annotations. IJCV, 2017.
  • [29] Guohao Li, Matthias Muller, Ali Thabet, and Bernard Ghanem. DeepGCNs: Can GCNs Go As Deep As CNNs? In ICCV, 2019.
  • [30] Linjie Li, Zhe Gan, Yu Cheng, and Jingjing Liu. Relation-aware Graph Attention Network for Visual Question Answering. In ICCV, 2019.
  • [31] Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, and Kai-Wei Chang. VisualBERT: A Simple and Performant Baseline for Vision and Language. In arXiv:1908.03557, 2019.
  • [32] Mingxiao Li and Marie-Francine Moens. Modeling coreference relations in visual dialog. In EACL, 2021.
  • [33] Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard Zemel. Gated Graph Sequence Neural Networks. In ICLR, 2015.
  • [34] Guosheng Lin, Chunhua Shen, Ian Reid, and Anton van den Hengel. Deeply Learning the Messages in Message Passing Inference. In NeurIPS, 2015.
  • [35] Jiasen Lu, Dhruv Batra, Devi Parikh, and Stefan Lee. ViLBERT: Pretraining Task-Agnostic Visiolinguistic Representations for Vision-and-Language Tasks. In NeurIPS, 2019.
  • [36] Jiasen Lu, Anitha Kannan, , Jianwei Yang, Devi Parikh, and Dhruv Batra. Best of Both Worlds: Transferring Knowledge from Discriminative Learning to a Generative Visual Dialog Model. In NeurIPS, 2017.
  • [37] Vishvak Murahari, Dhruv Batra, Devi Parikh, and Abhishek Das. Large-scale pretraining for visual dialog: A simple state-of-the-art baseline. In ECCV, 2020.
  • [38] Van Quang Nguyen, Masanori Suganuma, and Takayuki Okatani. Efficient Attention Mechanism for Visual Dialog that Can Handle All the Interactions Between Multiple Inputs. In ECCV, 2020.
  • [39] Yulei Niu, Hanwang Zhang, Manli Zhang, Jianhong Zhang, Zhiwu Lu, and Ji-Rong Wen. Recursive Visual Attention in Visual Dialog. In CVPR, 2019.
  • [40] Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, Alban Desmaison, Andreas Kopf, Edward Yang, Zachary DeVito, Martin Raison, Alykhan Tejani, Sasank Chilamkurthy, Benoit Steiner, Lu Fang, Junjie Bai, and Soumith Chintala. PyTorch: An Imperative Style, High-Performance Deep Learning Library. In NeurIPS, 2019.
  • [41] Jiaxin Qi, Yulei Niu, Jianqiang Huang, and Hanwang Zhang. Two causal principles for improving visual dialog. In CVPR, 2020.
  • [42] Peng Qi, Yuhao Zhang, Yuhui Zhang, Jason Bolton, and Christopher D. Manning. Stanza: A Python natural language processing toolkit for many human languages. In ACL, 2020.
  • [43] Shaoqing Ren, Kaiming He, Ross Girshick, and Jian Sun. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks. In NeurIPS, 2015.
  • [44] Idan Schwartz, Seunghak Yu, Tamir Hazan, and Alexander G. Schwing. Factor Graph Attention. In CVPR, 2019.
  • [45] Paul Hongsuck Seo, Andreas Lehrmann, Bohyung Han, and Leonid Sigal. Visual Reference Resolution using Attention Memory for Visual Dialog. In NeurIPS, 2017.
  • [46] Iulian Serban, Alessandro Sordoni, Ryan Lowe, Laurent Charlin, Joelle Pineau, Aaron Courville, and Yoshua Bengio. A Hierarchical Latent Variable Encoder-Decoder Model for Generating Dialogues. In AAAI, 2017.
  • [47] Weijie Su, Xizhou Zhu, Yue Cao, Bin Li, Lewei Lu, Furu Wei, and Jifeng Dai. VL-BERT: Pre-training of Generic Visual-Linguistic Representations. In ICLR, 2020.
  • [48] Sainbayar Sukhbaatar, Rob Fergus, et al. Learning multiagent communication with backpropagation. In NeurIPS, 2016.
  • [49] Hao Tan and Mohit Bansal. LXMERT: Learning Cross-Modality Encoder Representations from Transformers. In EMNLP, 2019.
  • [50] Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. Attention is All you Need. In NeurIPS, 2017.
  • [51] Petar Veličković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Liò, and Yoshua Bengio. Graph Attention Networks. In ICLR, 2018.
  • [52] Yue Wang, Shafiq Joty, Michael R. Lyu, Irwin King, Caiming Xiong, and Steven C.H. Hoi. VD-BERT: A unified vision and dialog transformer with BERT. In EMNLP, 2020.
  • [53] Zihao Wang, Junli Wang, and Changjun Jiang. Unified multimodal model with unlikelihood training for visual dialog. In ACM MM, 2022.
  • [54] Jason Weston, Sumit Chopra, and Antoine Bordes. Memory Networks. In NeurIPS, 2014.
  • [55] Jun Xu, Tao Mei, Ting Yao, and Yong Rui. MSR-VTT: A Large Video Description Dataset for Bridging Video and Language. In CVPR, 2016.
  • [56] Yufei Xu, Qiming Zhang, Jing Zhang, and Dacheng Tao. Vitae: Vision transformer advanced by exploring intrinsic inductive bias. In NeurIPS, 2021.
  • [57] Junhan Yang, Zheng Liu, Shitao Xiao, Chaozhuo Li, Defu Lian, Sanjay Agrawal, Amit Singh, Guangzhong Sun, and Xing Xie. GraphFormers: GNN-nested Transformers for Representation Learning on Textual Graph. In NeurIPS, 2021.
  • [58] Ting Yao, Yingwei Pan, Yehao Li, and Tao Mei. Exploring visual relationship for image captioning. In ECCV, 2018.
  • [59] Chengxuan Ying, Tianle Cai, Shengjie Luo, Shuxin Zheng, Guolin Ke, Di He, Yanming Shen, and Tie-Yan Liu. Do transformers really perform badly for graph representation? In NeurIPS, 2021.
  • [60] Peter Young, Alice Lai, Micah Hodosh, and Julia Hockenmaier. From image descriptions to visual denotations: New similarity metrics for semantic inference over event descriptions. TACL, 2014.
  • [61] Xintong Yu, Hongming Zhang, Ruixin Hong, Yangqiu Song, and Changshui Zhang. VD-PCR: Improving visual dialog with pronoun coreference resolution. Pattern Recognition, 2022.
  • [62] Xintong Yu, Hongming Zhang, Yangqiu Song, Yan Song, and Changshui Zhang. What You See is What You Get: Visual Pronoun Coreference Resolution in Dialogues. In EMNLP-IJCNLP, 2019.
  • [63] Zhou Yu, Jun Yu, Jianping Fan, and Dacheng Tao. Multi-modal factorized bilinear pooling with co-attention learning for visual question answering. In ICCV, 2017.
  • [64] Rowan Zellers, Yonatan Bisk, Ali Farhadi, and Yejin Choi. From Recognition to Cognition: Visual Commonsense Reasoning. In CVPR, June 2019.
  • [65] Zilong Zheng, Wenguan Wang, Siyuan Qi, and Song-Chun Zhu. Reasoning Visual Dialogs with Structural and Partial Observations. In CVPR, 2019.
  • [66] Luowei Zhou, Hamid Palangi, Lei Zhang, Houdong Hu, Jason Corso, and Jianfeng Gao. Unified Vision-Language Pre-Training for Image Captioning and VQA. In AAAI, 2020.