Part2Whole: Iteratively Enrich Detail for Cross-Modal Retrieval with Partial Query

Guanyu Cai, Xinyang Jiang, Jun Zhang, Yifei Gong, Lianghua He, Pai Peng, Xiaowei Guo, Xing Sun

TL;DR

Existing text-based image retrieval systems often fail because users provide incomplete descriptions that match hundreds of "false positive" images. This paper introduces Ask&Confirm, an interactive framework where an AI agent actively identifies and asks users to confirm missing discriminative details (like specific objects) to rapidly narrow down the search, significantly improving retrieval accuracy with minimal user effort.

The "Partial-Query" Problem

Imagine you are looking for a specific photo of a child in a stroller. You type "child in a stroller," but the database returns thousands of similar images. In the "partial-query problem," the user’s initial description is accurate but insufficient to distinguish the target from a sea of look-alikes.

Traditional interactive retrieval methods are "passive": they wait for the user to provide more descriptions or click on "similar" images. This is either time-consuming or requires the user to have expert knowledge of the system's attributes. The authors argue that the retrieval model itself should take the lead, actively searching for the "missing pieces" of information that would most effectively filter out the wrong images.

Methods: The Ask-and-Confirm Loop

The authors propose a novel Ask-and-Confirm loop powered by reinforcement learning. The system consists of four main parts:

  1. Text & Image Encoders: Standard modules (GRU for text, Faster R-CNN for images) that project both modalities into a shared feature space.
  2. Candidate Generator (The "Brain"): This is a Reinforcement Learning (RL) policy trained using Proximal Policy Optimization (PPO). Its job is to look at the current top-ranked images and select the most "discriminative" objects to ask the user about (e.g., "Is there a trophy in the scene?").
  3. Ranker: Once the user confirms ("Yes") or denies ("No") the presence of an object, the ranker updates the similarity scores. If an image contains a "No" object, its rank is penalized.
  4. Weakly-Supervised Shaping: Training RL agents usually requires massive amounts of human-machine dialog data. The authors bypass this by using "shaping," calculating the statistical probability of objects appearing alongside certain query words in a standard dataset. This allows the agent to learn which objects are likely to be discriminative without requiring real human conversation during training.
The Ask&Confirm interactive loop: the agent identifies discriminative objects (like a trophy or street) to narrow down search results based on user feedback.

Key Insights

  • Objects as Low-Entropy Features: Certain objects (like "skateboard" or "trophy") are rare. If an agent asks about a rare object and the user says "Yes," the search space collapses instantly. This is much more efficient than asking about common things like "sky."
  • Active vs. Passive: By shifting the burden of "finding the difference" from the human to the AI, the system reduces cognitive load. It is much easier for a human to click "Yes/No" than to think of a descriptive sentence that differentiates two nearly identical photos.
  • Model Agnosticism: The framework isn't tied to one specific retrieval model. The authors successfully integrated it with two different baselines: S-SCAN (an attention-based model) and T-CMPL (a projection-learning model).

Key Results

The researchers evaluated their framework using the Visual Genome dataset, treating individual region captions as initial partial queries. The improvements were dramatic across all metrics:

  • Accuracy Boost: On the S-SCAN baseline, adding the Ask&Confirm (AC) framework improved R@10 (the probability the target is in the top 10 results) from 20.4% to 59.8% after 10 rounds of interaction.
  • Mean Rank (MR): The average rank of the target image dropped from 416.0 down to 96.0, meaning the target moved significantly closer to the top of the results.
  • Efficiency: In a user study, Ask&Confirm achieved better accuracy than description-based methods while being significantly faster, taking an average of 37.67 seconds per search compared to 53.60 seconds.
Performance metrics (R@10 on left, Mean Rank on right) showing significant improvement over 10 interaction rounds for both S-SCAN and T-CMPL baselines.

Limitations and Future Work

While powerful, the system has a few constraints. The agent can only ask about objects that its underlying object detector (Faster R-CNN) can recognize. Furthermore, the system currently only handles binary "Yes/No" feedback for object presence. Future work could incorporate spatial relationships (e.g., "Is the dog to the left of the tree?") or specific attributes (e.g., "Is the car red?") to further refine the search. Finally, adapting this policy to open-ended, web-scale databases remains a challenge.

Summary updated

Abstract

Text-based image retrieval has seen considerable progress in recent years. However, the performance of existing methods suffers in real life since the user is likely to provide an incomplete description of an image, which often leads to results filled with false positives that fit the incomplete description. In this work, we introduce the partial-query problem and extensively analyze its influence on text-based image retrieval. Previous interactive methods tackle the problem by passively receiving users' feedback to supplement the incomplete query iteratively, which is time-consuming and requires heavy user effort. Instead, we propose a novel retrieval framework that conducts the interactive process in an Ask-and-Confirm fashion, where AI actively searches for discriminative details missing in the current query, and users only need to confirm AI's proposal. Specifically, we propose an object-based interaction to make the interactive retrieval more user-friendly and present a reinforcement-learning-based policy to search for discriminative objects. Furthermore, since fully-supervised training is often infeasible due to the difficulty of obtaining human-machine dialog data, we present a weakly-supervised training strategy that needs no human-annotated dialogs other than a text-image dataset. Experiments show that our framework significantly improves the performance of text-based image retrieval. Code is avaiable at https://github.com/CuthbertCai/Ask-Confirm.
BibTeX
@inproceedings{cai2021part,
  author = {Guanyu Cai and Xinyang Jiang and Jun Zhang and Yifei Gong and Lianghua He and Pai Peng and Xiaowei Guo and Xing Sun},
  title = {{Part2Whole: Iteratively Enrich Detail for Cross-Modal Retrieval with Partial Query}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.00185},
}
Figure