GenIR: Generative Visual Feedback for Mental Image Retrieval

Diji Yang, Minghao Liu, Chung-Hsiang Lo, Yi Zhang, James Davis

Abstract

Traditional text-to-image retrieval systems often struggle with the "semantic gap" between a user's specific mental image and the AI's internal representation. We present GenIR, a novel framework for Mental Image Retrieval (MIR) that utilizes generative diffusion models to provide visual feedback. By rendering the AI's "internal belief" as a synthetic image, GenIR allows users to iteratively refine their queries with high precision. Our experiments across diverse datasets, including MS COCO and a 1-million-image fashion dataset, demonstrate that visual feedback significantly outperforms verbal-only interaction, even when using smaller underlying models.

1. Introduction

Mental Image Retrieval (MIR) is the task of finding a specific image within a database that matches a pre-existing visual concept in the user's mind. Unlike general exploratory search, MIR is highly specific and often requires multiple rounds of refinement. Current interactive retrieval systems typically rely on verbal feedback—where the AI asks clarifying questions—or show the user existing database images for selection.

However, verbal descriptions are often too abstract to capture the nuances of a visual scene. For instance, describing the exact placement of objects or the specific texture of a garment is difficult in words. Furthermore, showing users existing database images can lead to "local minima," where the user's search becomes biased by the specific details of the retrieved images rather than their original mental target. GenIR addresses these issues by introducing generative visual feedback.

2. The GenIR Framework

GenIR transforms the retrieval process into a multi-round generative loop. The system consists of four primary stages:

  1. Initial Query Formulation: The user provides a starting text description of their mental image.
  2. Synthetic Image Generation: A text-to-image diffusion model (e.g., Infinity, FLUX.1, or SD 3.5) generates a synthetic image based on the current query. This image serves as a "visual hypothesis" of what the AI believes the user is looking for.
  3. Image-to-Image Retrieval: Rather than searching the database using the text query, the system uses the synthetic image's embeddings (via BLIP-2 or CLIP) to perform an image-to-image search against the target database.
  4. User Refinement: The user compares the synthetic image to their mental image. By identifying discrepancies—such as "the lighting should be warmer" or "the person should be standing further left"—the user provides a refined text prompt for the next iteration.

This approach "reifies" the AI’s understanding, making its internal state interpretable and allowing the user to provide more effective corrections.

3. Experimental Setup and Datasets

To evaluate GenIR, the researchers tested the system across four distinct domains:

  • MS COCO: General scenes and object interactions.
  • FFHQ: High-quality facial portraits for fine-grained attribute testing.
  • Flickr30k: Real-world photographs of people and activities.
  • Clothing-ADC: A large-scale commercial dataset containing over 1 million fashion images.

The study utilized an automated evaluation pipeline where a Vision-Language Model (Gemma3) simulated a human searcher, comparing the synthetic feedback to a hidden "ground truth" target image and generating refinements.

4. Key Results and Insights

GenIR demonstrates a significant performance leap over traditional interactive methods. On the MS COCO dataset, GenIR achieved a Hits@10 of approximately 90% in the first round, rising to 98% by round 10. In contrast, the verbal-only baseline (ChatIR) plateaued at roughly 73%.

The Modality vs. Scale Discovery

One of the most significant findings of this research is that the modality of feedback is more critical than the raw parameter count of the controller model. A smaller Vision-Language Model (Gemma3-4b) using visual feedback consistently outperformed a much larger model (Gemma3-12b) using verbal feedback. This suggests that visual communication is a more efficient "bandwidth" for conveying spatial and aesthetic intent than text.

Breaking Local Minima

By using synthetic images rather than database samples for feedback, GenIR prevents users from becoming anchored to the specific flaws of a real image. The synthetic image acts as a clean representation of the query intent, facilitating a more direct path to the target.

5. Discussion and Limitations

While GenIR offers superior accuracy, it introduces higher computational costs. Generating high-resolution images at each step takes significantly longer (approx. 16 seconds) than generating text responses (approx. 2 seconds). Additionally, the system is subject to "hallucinations" common in diffusion models, where the generator might add unrequested details that could confuse the user.

Future work will focus on "retrieval-aware" image generation—optimizing the diffusion process to emphasize discriminative features that help distinguish the target from similar images—and exploring how the system handles fuzzy or evolving mental images.

6. Conclusion

GenIR shifts the paradigm of interactive image search from "searching by telling" to "searching by showing." By making the AI's internal belief visible, GenIR bridges the semantic gap, providing a more intuitive and powerful tool for Mental Image Retrieval.

Summary updated

BibTeX
@inproceedings{yang2025genir,
  author = {Diji Yang and Minghao Liu and Chung-Hsiang Lo and Yi Zhang and James Davis},
  title = {{GenIR: Generative Visual Feedback for Mental Image Retrieval}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=B5UvFCiisp},
}
Figure