Source-linked AI summary

Learning Cooperative Visual Dialog Agents with Deep Reinforcement Learning

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

arXiv:1703.06585v2cs.CVcs.AIcs.CLcs.LG

TL;DR

The paper addresses how to train visual-dialog agents to communicate while working together to identify an unseen image. It uses end-to-end deep reinforcement learning in a multi-round cooperative game, and reports that fine-tuned agents outperform supervised agents on VisDial.

  • Problem

    Prior visual-dialog work trains a machine to answer within recorded human conversations, leaving goal-driven training of cooperating agents as an open research question.

    Source: §1 · p. 2
  • Method

    The paper trains Q-BOT and A-BOT with deep reinforcement learning in a cooperative, multi-round image-guessing game where Q-BOT actively requests information.

    Source: §3 · p. 3, §4 · p. 4
  • Results

    RL fine-tuning significantly outperforms supervised learning on VisDial; at round 10 it improves percentile rank by over 3%, and agents invent a protocol in the synthetic world.

    Source: §6 · p. 8, §7 · p. 10
  • Takeaways & Limitations

    On VisDial, RL-trained Q-BOT shifts toward questions A-BOT answers better, resulting in more informative dialog and a better team.

    Source: §1 · p. 3

Abstract

from arXiv · show

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 -- Qbot and Abot -- who communicate in natural language dialog so that Qbot 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, as a 'sanity check' demonstration of pure RL (from scratch), we show results on a synthetic world, where the agents communicate in ungrounded vocabulary, i.e., symbols with no pre-specified meanings (X, Y, Z). We find that two bots invent their own communication protocol and start using certain symbols to ask/answer about certain visual attributes (shape/color/style). Thus, we demonstrate the emergence of grounded language and communication among 'visual' dialog agents with no human supervision. Second, we conduct large-scale real-image experiments on the VisDial dataset, where we pretrain with supervised dialog data and show that the RL 'fine-tuned' agents significantly outperform SL agents. Interestingly, the RL Qbot learns to ask questions that Abot is good at, ultimately resulting in more informative dialog and a better team.

1. Introduction

The paper frames visual dialog as a cooperative, goal-driven image-guessing game learned through reinforcement learning, rather than only static supervised response generation. It reports that RL fine-tuning improves VisDial agents and that agents can learn grounded communication in a synthetic world.

Introduction

  • The work targets agents that understand images and discuss them in natural language, with potential applications in assisting visually impaired users and interacting with visual content.The introduction also motivates dialog for surveillance analysis and intelligent assistants.Source: §1 · p. 1
  • Q-BOT and A-BOT play a cooperative image-guessing game: Q-BOT uses a caption and dialog with image-holding A-BOT to identify an unseen image from a lineup.Q-BOT updates its beliefs and predicts the image’s fc7 representation after each answer; the agents receive reward based on prediction closeness.Source: Figure 1 · p. 1, §1 · p. 2
  • Prior visual-dialog approaches [5] use static supervised response generation, where the model’s answers are discarded and human responses continue the conversation, preventing it from steering dialog.The paper presents cooperative image guessing and end-to-end RL as a way to move beyond that setup.Source: §1 · pp. 1–2
  • Discrete natural-language symbols make dialog interpretable and human-accessible while preventing agents from bypassing questions by transmitting image vectors directly.The authors describe language as a low-dimensional bottleneck between the agents.Source: §1 · p. 2
  • In a synthetic world, RL-trained agents invent a protocol in which symbols query and indicate values of visual attributes, demonstrating grounded communication without human supervision.The images contain one object defined by shape, color, and style, while the vocabulary has no preassigned meanings.Source: §1 · p. 2
  • RL fine-tuned bots significantly outperform supervised bots on VisDial, as Q-BOT shifts to questions A-BOT answers better for more informative dialog and a stronger team.The real-image agents are first pretrained on supervised VisDial dialog data, then fine-tuned with RL.Source: §1 · pp. 2–3

2. Related Work

The related work frames image guessing as goal-driven visual dialog that extends earlier dialog and signaling games. It combines human-dialog pretraining with deep reinforcement learning and contrasts task-grounded communication with hand-defined dialogue quality or invented language.

Vision and Language

  • Image guessing avoids GuessWhat’s [5] object-box requirement, enabling unlimited simulated plays, and replaces the static supervised framing of Visual Dialog and GuessWhat [5] with goal-driven dialog.The authors note that existing human-dialog datasets cover only a sparse sample of visually grounded questions and answers, making robust supervised training challenging.Source: §2 · p. 3
  • Following AlphaGo, the authors pretrain on human dialogs and then fine-tune end-to-end with deep reinforcement learning.Source: §2 · p. 3

20 Questions and Lewis Signaling Game

  • Image guessing generalizes Lewis Signaling: Q-BOT receives and A-BOT sends, but Q-BOT actively asks over multiple rounds rather than passively receiving a single signal.The classical game has a sender signal a discrete world state to a receiver, who then takes an action.Source: §2 · p. 3

Text-only or Classical Dialog

  • Unlike RL dialog systems that hand-define good utterances [18], this cooperative game defines good dialog by whether it leads to a successful image-guessing play.The authors cite adversarial learning [19] as inspiration for this cooperative setup.Source: §2 · p. 3

Emergence of Language

  • The synthetic experiments resemble recent deep-RL language-emergence work [8] [11] [16] [22], while real-image agents use VisDial pretraining to align with English rather than inventing uninterpretable language.The authors place these recent studies within a longer history of language emergence in multi-agent systems.Source: §2 · p. 3

3. Cooperative Image Guessing Game: In Full Generality and a Specific Instantiation

The section defines a cooperative image-guessing game in which Q-BOT and A-BOT communicate under asymmetric access to an image, while Q-BOT repeatedly estimates it. The experiments instantiate this framework with image embeddings and an unsupervised target derived from a pretrained CNN.

Players and Roles

  • Q-BOT estimates the unseen image at each round from dialog with A-BOT, which sees the image; both agents receive reward inversely proportional to estimation error.Q-BOT receives a one-sentence image description and asks questions as symbol sequences over a vocabulary; the agents communicate for a fixed number of rounds.Source: §3 · p. 3

Game Objective in General

  • The general game allows Q-BOT’s image description to range from image embeddings to text descriptions or pixel-level image generations.The reward is based on error under a metric comparing Q-BOT’s description with the ground truth.Source: §3 · p. 3

Specific Instantiation

  • In the experiments, Q-BOT estimates a CNN image embedding, with Euclidean-distance error and no human annotation needed to create targets, enabling unlimited simulated games.A pretrained CNN such as VGG-16 produces the target embedding, and any image can ground a dialog.Source: §3 · p. 3

4. Reinforcement Learning for Dialog Agents

The paper formulates cooperative visual-dialog learning as a single meta-agent problem, then specifies recurrent policies for Q-BOT and A-BOT and trains them with per-round policy gradients.

4. Reinforcement Learning for Dialog Agents

  • The cooperative game is modeled as one meta-agent despite asymmetric image access, and both agents share rewards based on each round’s change in Q-BOT’s image-representation error.Summed rewards depend only on the initial and final states because intermediate distance changes cancel.Source: §4 · p. 4

4.1. Policy Networks for Q-BOT and A-BOT

  • Hierarchical recurrent encoder-decoder policies encode question-answer facts and dialog history; A-BOT also uses image features to contextualize questions and generate answers.Q-BOT uses its encoded state to ask questions and predict the unseen image’s representation.Source: §4.1 · pp. 4–5

4.2. Joint Training with Policy Gradients

  • REINFORCE updates communication policies from sampled per-round rewards, increasing probabilities of informative exchanges and decreasing those of harmful exchanges; deterministic feature regression receives supervised gradients.The authors use per-round rather than whole-dialog updates to distinguish good and bad exchanges within an episode.Source: §4.2 · pp. 5–6

5. Emergence of Grounded Dialog

In a synthetic image-guessing game with perfect perception and restricted vocabularies, Q-BOT and A-BOT learn a grounded communication protocol from reward alone, without human supervision.

Setup

  • The task used 64 synthetic images formed from three attributes, and Q-BOT had to infer two attribute values in a specified order.A-BOT had perfect perception; each agent could emit only one symbol per round, with vocabularies of four symbols for A-BOT and three for Q-BOT, requiring dialog to succeed.Source: §5 · p. 6

Vocabulary

  • The restricted vocabularies prevented A-BOT from encoding an entire image in one token, making non-trivial dialog necessary.The paper reports that with at least 64 A-BOT symbols, the optimal policy simply ignores Q-BOT’s questions and transmits the whole image in one token.Source: §5 · p. 6

Results

  • Q-BOT learned to use X for color, Y for shape, and Z for style, while A-BOT used consistent symbols to answer attribute queries.For color, A-BOT mapped 1 to purple, 2 to green, 3 to blue, and 4 to red; the agents developed the protocol without human supervision.Source: §5 · p. 6

Policy Learning

  • The agents quickly learned an optimal policy in the synthetic task through tabular Q-learning with Monte Carlo estimation.Training used 10k episodes per RL iteration, alternately updating one agent while freezing the other; rewards were +1 for correct predictions and −1 for incorrect ones.Source: §5 · p. 6

6. Experiments

On VisDial, RL-full-QAf improved image guessing over SL-pretrained and other ablations, while RL dialogs were more informative and easier for humans to use for image identification. A Frozen-Q-multi variant improved VisDial answering metrics, and the experiments used supervised pretraining followed by curriculum-based RL.

Training Strategies

  • Agents were pretrained on VisDial v0.5, then gradually shifted from supervised dialog training to policy-gradient updates over the remaining rounds.Training began with K = 9 supervised rounds and annealed K to 0; pretraining helped agents produce English exchanges and recognize objects or scenes.Source: §6 · p. 8

Model Ablations

  • The ablations compared SL-pretrained agents with variants freezing Q-BOT, A-BOT, or the image-feature regressor while training the remaining components with RL.These comparisons tested RL’s effect over supervised learning, the value of coordinated communication, and gains from language adaptation alone.Source: §6 · p. 8

Evaluation: Guessing Game

  • All methods improved through rounds 2 or 3, but only RL-full-QAf avoided later decline; RL agents repeated exchanges less often and after longer gaps.The authors conjecture that the goal of helping a partner across rounds encourages longer-term memory retention.Source: §6 · p. 8
  • RL A-BOT gave more detailed answers than SL A-BOT, whose generic, noncommittal responses often failed to help Q-BOT identify the image.The authors hypothesize that image-guessing reward discourages safe responses that may otherwise achieve reasonable likelihood under supervised learning.Source: §6 · pp. 8–9
  • At round 10, RL-full-QAf significantly outperformed SL-pretrained and all other ablations, improving image-identification percentile rank by over 3%, indicating the training framework effectively trained agents for image guessing.Source: §6 · p. 8

Evaluation: Emulating Human Dialogs

  • On VisDial answering metrics, Frozen-Q-multi improved the best reported mean rank by 0.7, a 3% relative improvement.It combined ground-truth answer supervision with image-guessing reward; the gain required no additional annotations.Source: Figure 4 · p. 9, §6 · p. 10

Human Study

  • For human image guessing, RL-full-QAf dialogs yielded mean rank 2.73 versus 3.70 for SL-pretrained, and MRR 0.622 versus 0.518.Subjects chose their top five guesses from 16 images after reading each 10-round dialog.Source: §6 · p. 10

7. Conclusions

The paper presents an end-to-end deep reinforcement learning framework for cooperative visual dialog and reports that RL fine-tuning on VisDial significantly outperforms supervised-learning agents while remaining interpretable to human observers.

  • On VisDial, RL fine-tuning significantly outperforms supervised-learning agents and helps the agents play to each other’s strengths while remaining interpretable to human observers.Source: §7 · p. 10
  • The framework trains two agents end-to-end through a cooperative image-guessing game, from pixels through multi-agent, multi-round dialog to game reward.Source: §7 · p. 10
  • In an ungrounded synthetic world, the agents invent a communication protocol using symbols with no pre-specified meanings and without human supervision.Source: §7 · p. 10
Loading 1703.06585v2…