Recursive Visual Attention in Visual Dialog

Yulei Niu, Hanwang Zhang, Manli Zhang, Jianhong Zhang, Zhiwu Lu, Ji-Rong Wen

Abstract

This paper introduces Recursive Visual Attention (RvA), a novel mechanism designed to address visual co-reference resolution in multi-round visual dialogs. By recursively traversing dialog history, the model identifies the grounding for ambiguous pronouns, achieving state-of-the-art results on the VisDial benchmark without requiring manual co-reference annotations.

Introduction

In the field of Visual Dialog, an AI agent must answer a sequence of questions about an image. A significant challenge in this domain is visual co-reference resolution: the ability to link pronouns like "it," "they," "he," or "she" to specific objects mentioned earlier in the conversation and grounded in the image. For instance, if asked "Are they on or off?" after a discussion about lamps, the agent must understand that "they" refers to the lamps.

Previous models often relied on "attention memory" to store the entire history, which frequently introduced noise from irrelevant dialog rounds. Humans, by contrast, selectively look back at specific points in a conversation when context is missing. The Recursive Visual Attention (RvA) framework aims to mimic this selective, recursive "look-back" process to improve accuracy and interpretability.

The Recursive Visual Attention (RvA) Framework

The authors propose a framework consisting of three primary neural modules that work in tandem to resolve ambiguity:

  1. INFER Module: Acts as the decision-maker. it analyzes the current question to determine if it is ambiguous. If the question is clear (e.g., "How many lamps are there?"), it terminates the search. If it contains a pronoun requiring context (e.g., "Are they on?"), it triggers a recursive call.
  2. PAIR Module: When a look-back is triggered, this module identifies which specific previous round of the dialog is most likely to contain the missing context using a matching score and sequential distance.
  3. ATT Module: A standard attention mechanism that grounds the resolved question in the image pixels.
Overview of the RvA mechanism resolving co-references by looking back through dialog history.

To ensure the model remains end-to-end trainable despite making discrete decisions (like "stop recursion" or "pick round 3"), the authors utilize the Gumbel-Max Trick (via Gumbel-Softmax relaxation). Additionally, the model employs Dual Question Features, encoding questions into "reference-aware" forms for grounding and "answering-aware" forms for attribute identification (e.g., color or size).

Experimental Setup

The RvA model was evaluated on two primary benchmarks:

  • VisDial v0.9: Comprising 83k training and 40k validation dialogs based on MS-COCO images.
  • VisDial v1.0: An extended version with 10k additional dialogs on Flickr images, featuring more challenging test sets with varying dialog lengths.

Key Insights and Ideas

Recursion as Logic

The core innovation of RvA is treating co-reference as a recursive search. If a pronoun is undefined in the current round, the model looks at the previous round. If that round also uses a pronoun, it continues to look back. This mimics the logical "unrolling" of language to find a concrete noun anchor.

Diagram illustrating the recursive call and return flow of the model.

Selective Reviewing and Feature Filtering

Unlike "soft attention" models that average all history, RvA makes a hard choice to skip irrelevant rounds, significantly reducing noise. Furthermore, the "answering-aware" feature acts as a filter; if a question asks about "color," the model deactivates visual features related to "shape" or "location," focusing strictly on the relevant attributes for the final answer.

Results

The RvA model demonstrated superior performance over existing state-of-the-art methods at the time of publication.

  • Quantitative Results: On VisDial v0.9, RvA achieved a Mean Reciprocal Rank (MRR) of 0.6634, representing a ~2% absolute improvement over previous models like CorefNMN. It also showed significant gains across Recall@k metrics.
  • Qualitative Results: Visualization of recursion trees confirmed that the model successfully "jumps" over irrelevant questions. For example, it could link "Are they on?" in round 5 directly back to "lamps" in round 3, effectively ignoring an unrelated question about a bed in round 4.

Conclusion and Future Work

While RvA provides a powerful mechanism for co-reference resolution, several avenues for future work remain. The current system relies on simple LSTM-based encoding; more sophisticated language parsing could further refine recursive decisions. Additionally, the model is limited by the quality of initial "Bottom-Up" region proposals; if an object is not detected by the underlying R-CNN, the recursive logic cannot ground it. Future iterations may also focus on optimizing the computational efficiency of deep recursive calls.

Summary updated

BibTeX
@inproceedings{niu2019recursive,
  author = {Yulei Niu and Hanwang Zhang and Manli Zhang and Jianhong Zhang and Zhiwu Lu and Ji-Rong Wen},
  title = {{Recursive Visual Attention in Visual Dialog}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2019},
  doi = {10.1109/cvpr.2019.00684},
}
Figure