Interactive Text-to-Image Retrieval with Large Language Models: A Plug-and-Play Approach

Saehyung Lee, Sangwon Yu, Junsung Park, Jihun Yi, Sungroh Yoon

Researchers from Seoul National University have introduced PlugIR, a novel "plug-and-play" framework that leverages Large Language Models (LLMs) to enhance interactive text-to-image retrieval. By reformulating messy chat histories into clean image captions and grounding questions in actual search results, PlugIR allows off-the-shelf, "black-box" vision models to outperform those specifically fine-tuned for the task.

The Challenges of Interactive Retrieval

Interactive "chat-based" retrieval is intuitive—a user provides a vague description, and the system asks clarifying questions to narrow down the search. However, this approach faces two major hurdles:

  1. The Compatibility Gap: High-performing vision-language models (like CLIP or BLIP) are typically trained on short, descriptive captions. Raw dialogue histories, filled with "Yes/No" answers and conversational filler, often act as "noise," causing retrieval performance to degrade as the conversation continues.
  2. The Blind Questioner: Traditional systems often use an LLM to ask questions without knowing which images are currently at the top of the search results. This leads to redundant or irrelevant questions about attributes that may not even exist in the current candidate set.

Methodology: The PlugIR Framework

PlugIR addresses these issues through two primary components that work with any existing retrieval model without requiring further training:

  • Context Reformulation (The Reconstructor): Instead of feeding the entire chat history into the search engine, PlugIR uses an LLM to "reconstruct" the dialogue into a single, dense, caption-style query. This translates human conversation into the format that vision models understand best.
  • Context-aware Dialogue Generation: To make the system's questions smarter, PlugIR extracts information from the current top-ranked candidate images. It uses K-means clustering to identify representative images from the search results and feeds their captions back to the LLM. This ensures the LLM asks questions that effectively differentiate between the specific pool of images currently being considered.
The PlugIR framework architecture, illustrating the flow from dialogue context through the Reconstructor and the context-aware Questioner/Filter loop.

Evaluation and Metrics

The framework was evaluated on three standard benchmarks: VisDial, COCO, and Flickr30k, using retrieval engines like BLIP, BLIP-2, and the Amazon Titan multimodal foundation model.

Beyond traditional metrics like Recall@K, the authors introduced Best log Rank Integral (BRI). BRI uses a logarithmic scale to measure how quickly and significantly the target image moves up the rankings across multiple turns, better aligning with human user satisfaction than "all-or-nothing" metrics.

Key Results and Insights

PlugIR consistently outperformed both zero-shot (ZS) baselines and models specifically fine-tuned (FT) on dialogue data across all tested datasets.

Performance comparison (Hits@10) of PlugIR against Zero-Shot (ZS) and Fine-Tuned (FT) baselines across VisDial, COCO, and Flickr30k datasets.

Key findings include:

  • Dialogue as Noise: For standard models like CLIP, adding raw dialogue turns actually decreased retrieval accuracy. PlugIR's reformulation acts as a vital "translator."
  • Grounding Prevents Hallucination: By providing the LLM with visual context from the search results, the system avoids asking redundant questions (e.g., asking about shirt color when all top results already match the user's target).
  • Black-Box Compatibility: PlugIR worked seamlessly with proprietary APIs like Amazon Titan, demonstrating its utility for models where the internal weights are inaccessible for fine-tuning.

Conclusion and Future Work

PlugIR demonstrates that the knowledge required for complex interactive retrieval is already present in existing vision models; the challenge lies in effective communication. While the use of LLMs introduces some inference latency, the gains in retrieval efficiency and accuracy are significant. Future work may explore more efficient ways to inject visual context into LLMs beyond text-based captions of candidate images.

Summary updated

BibTeX
@inproceedings{lee2024interactive,
  author = {Saehyung Lee and Sangwon Yu and Junsung Park and Jihun Yi and Sungroh Yoon},
  title = {{Interactive Text-to-Image Retrieval with Large Language Models: A Plug-and-Play Approach}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.46},
}
Figure