Abstract
Visual Dialog (VisDial) requires an agent to maintain a conversation about an image, necessitating a deep understanding of both visual content and conversational context. VD-BERT is a unified Transformer framework that adapts pretrained BERT models to this complex task. By treating image features and multi-turn dialog history as a single, bidirectional sequence, the model achieves state-of-the-art results in both answer ranking and generation without requiring massive multimodal pretraining.
Introduction
Visual Dialog represents a significant advancement in complexity over standard Visual Question Answering (VQA). While VQA typically involves a single-turn interaction, VisDial requires resolving linguistic nuances like co-reference (e.g., "it" or "they") across multiple turns.
Existing research often suffers from two major limitations:
- Unidirectional Attention: Most models use the current question to query the image or history in a one-way flow, limiting mutual interactions.
- Architectural Split: Systems frequently require distinct architectures for discriminative tasks (ranking) versus generative tasks (synthesis).
VD-BERT addresses these by leveraging a single-stream Transformer encoder based on the BERT-base architecture to facilitate rich, bidirectional interactions between all modalities.
Methodology: Unified Bidirectional Interaction
The core of VD-BERT is a single-stream Transformer that processes visual features and dialog history as a unified sequence.
Key Innovations
- Unified Input Stream: The model integrates 36 object regions (extracted via Faster R-CNN) and the entire dialog history (caption and previous Q&A pairs) into one sequence. Special tokens like
[EOT](End of Turn) and[PRED]maintain structural integrity. - Bidirectional Interaction: Unlike traditional "question-to-history" models, VD-BERT allows every element—image regions and words—to attend to every other element simultaneously.
- Visually Grounded Objectives: The authors adapt BERT’s training tasks:
- Masked Language Modeling (MLM): Predicting missing words using both textual and visual context.
- Next Sentence Prediction (NSP): Determining if a candidate answer is the correct follow-up.
- Flexible Decoding: By adjusting the self-attention mask, the same encoder performs discriminative ranking (bidirectional masks) or generative synthesis (seq2seq masks).
- Rank Optimization: During fine-tuning, the model employs ListNet, a listwise ranking loss that improves the distinction between multiple semantically similar answers.
Experimental Results
VD-BERT was evaluated on the VisDial v0.9 and v1.0 datasets. VisDial v1.0 is particularly challenging due to its "dense annotations," where candidate answers receive relevance scores (0 to 1), enabling evaluation via the NDCG metric.
The model established a new state-of-the-art on the VisDial v1.0 leaderboard:
- Performance: A single model achieved 74.54 NDCG, while an ensemble reached 75.35 NDCG, surpassing the 2019 challenge winner.
- Efficiency: Notably, VD-BERT achieved these results without pretraining on external vision-language datasets like Conceptual Captions, relying instead on the inherent representational power of BERT.
Discussion and Key Insights
- BERT as a Multimodal Prior: Initializing with standard text-only BERT performed better than using Vision-Language Pretraining (VLP) models. This suggests BERT’s linguistic representations are a more robust starting point for complex dialog than current general-purpose multimodal models.
- The NDCG vs. MRR Conflict: Fine-tuning on dense annotations causes a spike in NDCG but a drop in Mean Reciprocal Rank (MRR). This reveals a tension between identifying "the one true answer" versus recognizing "all plausible answers."
- Textual Dominance: Ablation studies showed the model performs remarkably well using only text, suggesting that dialog history often provides sufficient context to narrow down answers even without visual evidence.
Conclusion and Future Work
While VD-BERT sets a new benchmark, it highlights ongoing challenges in the field. The relatively small performance drop when removing visual features suggests a need for better mechanisms to enforce visual grounding. Furthermore, the trade-off between MRR and NDCG indicates that evaluation frameworks for Visual Dialog require further refinement to balance correctness with relevance. Future research may also explore more efficient attention mechanisms to handle the increasing context length of multi-turn conversations.
Summary updated