Learning Cooperative Visual Dialog Agents with Deep Reinforcement Learning

Abhishek Das, Satwik Kottur, José M. F. Moura, Stefan Lee, Dhruv Batra

Abstract

We introduce the first goal-driven training for visual question answering and dialog agents. Specifically, we pose a cooperative 'image guessing' game between two agents—Q-BOT and A-BOT—who communicate in natural language dialog so that Q-BOT can select an unseen image from a lineup of images. We use deep reinforcement learning (RL) to learn the policies of these agents end-to-end—from pixels to multi-agent multi-round dialog to game reward. We demonstrate two experimental results: first, a 'sanity check' in a synthetic world where agents invent their own communication protocol; second, large-scale real-image experiments on the VisDial dataset where RL fine-tuning significantly outperforms supervised pretraining.

Introduction

Most AI models for Visual Dialog are currently trained using Supervised Learning (SL), where they are optimized to mimic human-human conversation logs. However, this treats dialog as a static prediction task rather than a goal-oriented interaction. SL models often produce "safe" but uninformative responses like "I don't know" to avoid being penalized for incorrect predictions. This paper addresses this by introducing a goal-driven framework where agents must actually cooperate to solve a specific task: identifying a hidden image from a lineup based on conversation.

Conceptual overview of the cooperative image guessing game between Q-BOT and A-BOT.

Methods: The Cooperative Game

The framework consists of two neural network agents playing a game of information exchange:

  • Q-BOT (The Questioner): Receives a one-sentence caption of an unseen image and must ask questions to narrow down the visual features of that image.
  • A-BOT (The Answerer): Has access to the actual image and answers Q-BOT’s questions.

Architecture and Training

Both agents utilize Hierarchical Recurrent Encoder-Decoder (HRED) networks to maintain conversation state and history. The training process involves two main stages:

  1. Supervised Pretraining: Agents are first trained on human dialog data to ensure they use recognizable language and grounded vocabulary.
  2. Reinforcement Learning Fine-tuning: Agents are then fine-tuned using the REINFORCE algorithm. The reward is based on the accuracy of Q-BOT's prediction of the hidden image's visual features. If a round of dialog makes the prediction more accurate, both bots receive a positive reward, incentivizing informative communication.
Detailed architecture of the Q-BOT and A-BOT agents showing the flow of information, history encoding, and the reward function.

Experimental Results

Emergence of Grounded Language

In a synthetic world experiment using simple shapes and attributes, agents were given ungrounded symbols (X, Y, Z) with no pre-specified meanings. Without human supervision, the bots developed a protocol where specific symbols were consistently used to query and describe attributes like color and shape. This demonstrates that communication can emerge purely from the need to achieve a shared goal.

Real-World Performance on VisDial

On the large-scale VisDial dataset, RL-tuned agents significantly outperformed SL-only models. In image retrieval tasks, RL agents improved the mean percentile rank by over 3% by the 10th round of dialog. Qualitatively, the RL-trained A-BOT became more descriptive, successfully avoiding the "safe response trap" of SL models. Furthermore, a human user study confirmed that RL-generated dialogs were more helpful for identifying images than those from SL models, with humans identifying the correct image with a mean rank of 2.73 compared to 3.70 for the SL model.

Discussion and Limitations

While RL improves informativeness, it risks "language drift," where agents might develop efficient but non-human-readable "secret languages." The authors mitigated this through SL pretraining and curriculum learning. Current limitations include perception bottlenecks where errors in image recognition by A-BOT cascade through the dialog. Future work may extend this to dynamic 3D environments or video-based dialog where the ground truth changes over time.

Summary updated

BibTeX
@inproceedings{das2017learning,
  author = {Abhishek Das and Satwik Kottur and José M. F. Moura and Stefan Lee and Dhruv Batra},
  title = {{Learning Cooperative Visual Dialog Agents with Deep Reinforcement Learning}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=d8A8D5A2qGW},
}
Figure