Abstract
Dialog is an effective way to exchange information, but subtle details and nuances are extremely important. While significant progress has paved a path to address visual dialog with algorithms, details and nuances remain a challenge. Attention mechanisms have demonstrated compelling results to extract details in visual question answering and also provide a convincing framework for visual dialog due to their interpretability and effectiveness. However, the many data utilities that accompany visual dialog challenge existing attention techniques. We address this issue and develop a general attention mechanism for visual dialog which operates on any number of data utilities. To this end, we design a factor graph based attention mechanism which combines any number of utility representations. We illustrate the applicability of the proposed approach on the challenging and recently introduced VisDial datasets, outperforming recent state-of-the-art methods by 1.1% for VisDial0.9 and by 2% for VisDial1.0 on MRR. Our ensemble model improved the MRR score on VisDial1.0 by more than 6%.
Introduction
Visual dialog is a complex multimodal task where an AI agent must engage in a conversation about an image. This requires juggling multiple information sources—the image itself, the current question, the conversation history, and image captions—to provide nuanced and contextually accurate answers. These diverse inputs are referred to as "utilities."
The primary challenge lies in scaling attention mechanisms as the number of utilities grows. Traditional models often rely on rigid, hand-crafted "co-attention" hierarchies (e.g., sequentially attending to the question, then the image, then the history). Such approaches are difficult to generalize and may ignore critical interactions between data sources. This paper introduces Factor Graph Attention (FGA), a mathematically grounded framework that treats all inputs as nodes in a factor graph, allowing them to influence each other's attention weights simultaneously through message-passing.
Methodology: Factor Graph Attention
The FGA framework models the attention process as inference on a factor graph. In this architecture, each utility (image, question, history, caption) is represented as a node.
Graph Components
- Nodes: Each utility node represents a probability distribution over its constituent elements, such as pixels in an image or words in a sentence.
- Local Factors: These capture intra-utility information, modeling relationships within a single source (e.g., the syntactic structure of a question).
- Joint Factors: These capture inter-utility interactions, such as how a specific word in a question relates to a specific region in the image.
Message Passing and Priors
To determine the focus of attention, the model performs message passing between nodes. The attention "belief" for any element is calculated by aggregating its local features with the messages received from all connected utilities. To further refine this process, the model incorporates structural priors (e.g., a bias toward the end of a question) and uses Batch Normalization to stabilize pairwise interaction scores during training.
To manage parameter complexity, the authors employ Weight Sharing via Grouping. Similar utilities, such as multiple history question-answer pairs, share the same factor weights, which improves generalization and prevents the quadratic explosion of parameters.
Experimental Evaluation
The FGA model was evaluated on several key benchmarks:
- VisDial v0.9 & v1.0: The primary datasets for visual dialog, containing millions of Q&A pairs.
- VQA v1.0 & AVSD: Used to demonstrate the framework's versatility across Visual Question Answering and Audio-Visual Scene-Aware Dialog.
Key Results
The FGA approach demonstrated significant performance gains:
- State-of-the-Art Performance: On VisDial v0.9, FGA achieved a Mean Reciprocal Rank (MRR) of 65.25%, surpassing previous benchmarks.
- Ensemble Success: An ensemble of nine FGA models reached an MRR of 68.92% on v0.9. On VisDial v1.0, the ensemble improved the MRR score by more than 6%.
- Efficiency: The model is highly efficient, reaching state-of-the-art performance in approximately 8 hours of training on a standard GPU.
- Ablation Studies: Removing the attention component resulted in a 3% drop in MRR, confirming that the factor graph's ability to focus on specific nuances is vital.
Discussion and Conclusion
By treating every input as a "first-class citizen" in a graph, FGA avoids the limitations of manual, sequential attention pipelines. The model's interpretability allows researchers to visualize which "messages" are strongest, revealing, for example, that the question utility is more influential in directing image attention than the caption utility is.
One limitation noted is that the model was not specifically optimized for the NDCG metric in VisDial v1.0, which rewards ranking multiple plausible answers highly. While FGA leads in retrieval metrics like MRR and Recall@k, its NDCG scores were lower than models specifically trained for that metric. Future work may involve extending this factor graph approach to more complex multimodal tasks or integrating external knowledge bases as additional graph utilities.
Summary updated