Abstract: Visual dialog entails answering a series of questions grounded in an image, using dialog history as context. In addition to the challenges found in visual question answering (VQA), which can be seen as one-round dialog, visual dialog encompasses several more. We focus on one such problem called visual coreference resolution that involves determining which words, typically noun phrases and pronouns, co-refer to the same entity/object instance in an image. This is crucial, especially for pronouns (e.g., ‘it’), as the dialog agent must first link it to a previous coreference (e.g., ‘boat’), and only then can rely on the visual grounding of the coreference ‘boat’ to reason about the pronoun ‘it’. Prior work models visual coreference resolution either implicitly via a memory network over history, or at a coarse level for the entire question. In this work, we propose a neural module network architecture for visual dialog by introducing two novel modules—Refer and Exclude—that perform explicit, grounded, coreference resolution at a finer word level. We demonstrate the effectiveness of our model on MNIST Dialog, achieving near perfect accuracy, and on VisDial, where our model outperforms other approaches and is more interpretable, grounded, and consistent qualitatively.
Introduction
Visual dialog is an extension of Visual Question Answering (VQA) that requires an agent to hold a multi-turn conversation about an image. While VQA focuses on single-round reasoning, visual dialog introduces the complexity of temporal context. A primary hurdle in this domain is visual coreference resolution: identifying which words (pronouns or noun phrases) refer to specific entities previously mentioned and grounded in the image.
The Challenge of Visual Coreference
In a typical conversation, humans frequently use pronouns like "it" or "that" to refer back to established subjects. For an AI, resolving a question like "What color is it?" requires first identifying that "it" refers to a "boat" mentioned several turns ago, and then locating that specific boat in the visual scene. Prior approaches often modeled this implicitly through memory networks, treating history as a "black box." This work argues for an explicit, grounded, and fine-grained approach at the phrase level.
CorefNMN: Explicit Tracking via Neural Modules
The researchers introduce CorefNMN, a model based on Neural Module Networks (NMNs). NMNs use a program generator to assemble specialized neural modules for each question. To handle dialog, two new modules are introduced:
- Refer Module: This module resolves coreferences by querying a "Reference Pool." It computes similarity between the current word and previous entities, weighted by recency. It then retrieves the corresponding visual attention map from the best match.
- Exclude Module: This handles subtraction logic, such as "What other red things are there?", by identifying all instances of an attribute and excluding the one currently in focus.
The Reference Pool acts as the model's short-term memory, storing text descriptions and image coordinates for every identified object. Additionally, the model treats the image caption as the initial dialog round, ensuring entities are grounded before the first question is even asked.
Experimental Results
The model was evaluated on two distinct datasets:
- MNIST Dialog: A synthetic dataset requiring complex tracking of digits. CorefNMN achieved 99.3% accuracy, significantly outperforming standard NMNs (23.8%) that lacked history tracking.
- VisDial (v0.9): On real-world images, CorefNMN outperformed existing baselines across all metrics, improving Recall@1 by over 1 percentage point. This demonstrates that explicit coreference resolution is effective even in natural, unconstrained language.
Qualitative Analysis and Interpretability
The model's explicit nature allows for high interpretability. By examining the attention maps, researchers can verify if the model is looking at the correct object when resolving a pronoun.
As seen in Figure 1, the model correctly identifies the "dragon head" from the caption and maintains this grounding through subsequent questions, even when the "boat" is mentioned as a separate entity. This explicit tracking allows the model to correctly resolve "it" in Q4 as referring to the dragon head rather than the boat.
Conclusion
CorefNMN demonstrates that explicit coreference resolution leads to more interpretable and accurate visual dialog agents. By modularizing the "Refer" and "Exclude" logic, the system moves away from black-box history modeling toward a more human-like reasoning process. Future work includes extending these capabilities to video dialog, where entities must be tracked across temporal shifts.
Summary updated