Modeling Text-visual Mutual Dependency for Multi-modal Dialog Generation

Shuhe Wang, Yuxian Meng, Xiaofei Sun, Fei Wu, Rongbin Ouyang, Rui Yan, Tianwei Zhang, Jiwei LiarXiv 2021

Introduction

In the evolving landscape of conversational AI, the ability for agents to perceive and discuss their visual environment is a critical milestone. While significant progress has been made in tasks like Visual Question Answering (VQA), these systems often operate in "static" environments—responding to a single image with a single answer. Real-world human interaction, however, is dynamic and multi-turn. This paper addresses the challenge of multi-modal dialog generation where the visual context changes alongside the conversation.

Problem Statement

The authors identify two primary obstacles in current multi-modal dialog research:

  1. Temporal Mismatch: Most existing datasets lack a unique visual context for every turn of a conversation, making it difficult to train models on time-varying visual data.
  2. The "Generic Response" Problem: Standard sequence-to-sequence models often ignore visual cues in favor of statistically frequent but uninformative text-only responses like "I don't know" or "Okay."

To mitigate these issues, the researchers propose a framework that models the mutual dependency between text and vision, ensuring that generated responses are not only likely given the text history but also highly specific to the current visual scene.

Proposed Methodology

The researchers developed three baseline architectures to explore different levels of visual integration, followed by a novel reranking strategy based on Mutual Information (MI).

Model Architectures

The three "Vanilla" models represent a progression in visual complexity:

  • NoVisual (NV): A standard Transformer-based encoder-decoder that relies solely on textual dialog history.
  • CoarseVisual (CV): This model incorporates global visual features. A ResNet-50 extracts a single feature vector for the entire image, which is then added to the text token embeddings.
  • FineVisual (FV): To capture more granular details, this model uses Faster R-CNN to detect specific objects. These object features are treated as additional tokens, allowing the Transformer's attention mechanism to focus on relevant visual entities.
Comparison of the three model architectures: NoVisual, CoarseVisual, and FineVisual.

Mutual Information (MI) Reranking

The core innovation lies in the "Mutual Information" objective. While standard models maximize the Forward Probability ($P(\text{Response} | \text{Context, Image})$), the authors introduce a Backward Probability ($P(\text{Image} | \text{Response})$). This backward pass asks: "Given this sentence, how likely is it that it describes this specific image?"

Implementing this end-to-end is computationally prohibitive. Instead, the authors use a reranking strategy:

  1. The model generates an $N$-best list of candidates using the forward probability.
  2. A separate discriminative classifier scores these candidates based on their "match" with the visual features (the backward probability).
  3. The final response is selected by maximizing a weighted sum of the forward probability, the backward probability, and a coherence score.

Experimental Setup

The models were evaluated on OpenViDial, a large-scale dataset containing millions of dialog turns, each paired with a unique image from movie scenes. This dataset provides the necessary granularity to test time-varying visual grounding.

Results and Discussion

Quantitative Performance

The FineVisual + MI model consistently outperformed the baselines across automatic metrics. Notably, the addition of the MI component led to a 6.65% improvement in the "Dis-4" metric, which measures the diversity of 4-grams in the output. This confirms that modeling mutual dependency effectively reduces the prevalence of generic responses.

Qualitative Analysis and Visual Grounding

Human evaluations corroborated the automatic metrics, with the FV+MI model receiving higher ratings for relevance and diversity. Qualitative examples show that while the NoVisual model might produce repetitive or safe responses, the FV+MI model generates context-aware sentences. For instance, when presented with a scene of a character in a specific costume, the model can generate highly grounded responses.

Qualitative example where visual grounding leads to specific responses like "But I'm not a princess."

The use of object-level features (FV) proved superior to global features (CV), as it allows the model to pick up on subtle cues—such as facial expressions or background objects—that are often the subject of natural conversation.

Conclusion

By modeling the mutual dependency between text and vision, the researchers have demonstrated a robust method for generating more relevant and diverse multi-modal dialog. The combination of fine-grained object features and a Mutual Information-based reranking strategy provides a practical path forward for building conversational agents that are truly grounded in their visual reality. Future work may explore more sophisticated cross-modal attention mechanisms and generative backward models to further enhance visual-textual fusion.

Summary updated

BibTeX
@misc{wang2021modeling,
  author = {Shuhe Wang and Yuxian Meng and Xiaofei Sun and Fei Wu and Rongbin Ouyang and Rui Yan and Tianwei Zhang and Jiwei Li},
  title = {{Modeling Text-visual Mutual Dependency for Multi-modal Dialog Generation}},
  year = {2021},
  eprint = {2105.14445},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.14445},
}
Figure