Dialog-based Interactive Image Retrieval

Xiaoxiao Guo, Hui Wu, Yu Cheng, Steven Rennie, Gerald Tesauro, Rogério Schmidt Feris

TL;DR

This paper introduces a reinforcement learning framework for image retrieval that allows users to provide feedback using natural language rather than just binary clicks or fixed attributes. By training a "relative captioner" to act as a user simulator, the system learns to navigate vast image databases to find a target item with high precision in just a few conversational turns.

The Semantic Gap in Image Retrieval

Traditional image retrieval systems often suffer from a "semantic gap"—the disconnect between low-level visual features (pixels) and high-level human concepts. While interactive systems try to bridge this by asking for user feedback, they usually limit users to very narrow responses: either binary "relevant/irrelevant" labels or comparisons based on a fixed, pre-defined set of attributes (e.g., "show me shoes that are shinier than this one").

These restrictions stifle expressiveness. A user might want to say, "I want a shoe with a closed back and a crystal buckle," but if "buckle" isn't in the system's fixed vocabulary, that intent is lost. The authors tackle the challenge of building a system that understands free-form natural language feedback to iteratively refine search results.

Comparison of feedback types

Methods: A Reinforcement Learning Approach

The authors frame interactive retrieval as a Reinforcement Learning (RL) problem where the "agent" (the search engine) receives a reward for improving the rank of the target image in each turn.

System Architecture

The "Dialog Manager" consists of three main parts:

  1. Response Encoder: Combines the current candidate image (via a ResNet-101 CNN) and the user’s text feedback (via a Text CNN) into a joint visual-semantic representation.
  2. State Tracker: A Gated Recurrent Unit (GRU) that maintains a "memory" of the entire conversation history, ensuring the system doesn't forget previous requirements.
  3. Candidate Generator: Uses the current state to sample the next best candidate image from the database using a K-Nearest Neighbor approach.

Training with a User Simulator

Training RL agents requires massive amounts of interaction. To avoid the cost of hiring humans to chat with a bot for thousands of hours, the authors built a User Simulator. This simulator is a "relative captioner"—a model trained to look at two images (the candidate and the target) and generate a sentence describing their differences.

The system is trained in two stages:

  • Supervised Pre-training: Using a triplet loss objective to ensure the system's internal representations of the "history" are close to the target image and far from random images.
  • Model-Based Policy Improvement: The agent interacts with the user simulator to directly optimize the expected rank of the target image, which is a non-differentiable objective that standard supervised learning can't handle easily.

Datasets

  • Shoes Dataset: A standard benchmark containing roughly 15,000 images of footwear.
  • Relative Captioning Dataset (New): The authors introduced a new dataset of 10,751 human-written relative expressions collected via Amazon Mechanical Turk. Unlike standard image captioning, these descriptions focus specifically on the differences between two images (e.g., "The one I want is darker and has a higher heel").

Key Insights

  • Natural Language as a "Super-Attribute": The most significant insight is that unrestricted natural language is far more effective for retrieval than even a large set of pre-defined attributes. It allows for "open-domain" feedback that can capture fine-grained visual details the original programmers might not have anticipated.
  • Relative vs. Discriminative Captioning: The authors noted that when images are very different, humans tend to describe the target directly ("It's a red boot"). When they are similar, humans use relative terms ("It's more strappy"). A successful simulator must handle both strategies.
  • Direct Rank Optimization: By using RL, the system can optimize for the actual end goal (ranking the target image as #1) rather than a proxy goal like "predicting the next word" or "minimizing feature distance."

Results

  • Simulated Performance: The proposed RL method achieved a 98% average rank percentile for the target image within just two dialog turns, significantly outperforming supervised baselines and attribute-based methods.
  • Human User Study: In tests with real humans, the dialog-based system achieved an average rank percentile of 89.9%, compared to only 70.3% for WhittleSearch, a well-known attribute-based retrieval system.
  • Efficiency: Users reported that providing natural language feedback felt more intuitive and required less effort than hunting through a list of pre-defined attributes to find the most relevant one.

Limitations and Future Work

  • Simplified Interaction: Currently, the system only presents one candidate image per turn. In a real-world e-commerce setting, users would likely expect a gallery of results.
  • Simulator Memory: The user simulator generates feedback based only on the current turn, ignoring the dialog history. A more sophisticated simulator that remembers what it already said could lead to even more realistic training.
  • Domain Specificity: While highly effective for shoes, the "relative captioning" approach requires a specialized dataset for every new domain (e.g., cars, furniture, or surveillance footage). Future work could explore how to generalize these models across different categories of objects.

Summary updated

BibTeX
@inproceedings{guo2018dialog,
  author = {Xiaoxiao Guo and Hui Wu and Yu Cheng and Steven Rennie and Gerald Tesauro and Rogério Schmidt Feris},
  title = {{Dialog-based Interactive Image Retrieval}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2018},
  url = {https://openreview.net/forum?id=r1-Xo_WOZS},
}
Figure