UNION: A Lightweight Target Representation for Efficient Zero-Shot Image-Guided Retrieval with Optional Textual Queries

Hoang-Bao Le, Allie Tran, Binh T. Nguyen, Liting Zhou, Cathal GurrinarXiv 2025 · OpenReview

Abstract

Image-Guided Retrieval with Optional Text (IGROT) is a general retrieval setting where a query consists of an anchor image, with or without accompanying text, aiming to retrieve semantically relevant target images. This formulation unifies two major tasks: Composed Image Retrieval (CIR) and Sketch-Based Image Retrieval (SBIR). In this work, we address IGROT under low-data supervision by introducing UNION, a lightweight and generalisable target representation that fuses the image embedding with a null-text prompt. Unlike traditional approaches that rely on fixed target features, UNION enhances semantic alignment with multimodal queries while requiring no architectural modifications to pretrained vision-language models. With only 5,000 training samples - from LlavaSCo for CIR and Training-Sketchy for SBIR - our method achieves competitive results across benchmarks, including CIRCO mAP@50 of 38.5 and Sketchy mAP@200 of 82.7, surpassing many heavily supervised baselines. This demonstrates the robustness and efficiency of UNION in bridging vision and language across diverse query types.

1. Introduction

Content-based image retrieval has evolved from simple keyword matching to complex, multimodal interactions. Two prominent tasks in this domain are Composed Image Retrieval (CIR), where a user modifies a reference image with text (e.g., "this dress but with a floral pattern"), and Sketch-Based Image Retrieval (SBIR), where a hand-drawn sketch serves as the query. The authors of this work unify these tasks under the Image-Guided Retrieval with Optional Text (IGROT) framework.

A persistent challenge in IGROT is the "modality mismatch." While significant research has focused on sophisticated query fusion techniques to combine image and text features, the target images in the retrieval pool are typically represented by static, visual-only embeddings from frozen Vision-Language Models (VLMs) like CLIP. These frozen features often reside in a different semantic subspace than the complex, multimodal query embeddings, hindering fine-grained alignment.

2. The UNION Framework

To bridge this gap, the authors propose UNION (Unified Target Representation). The core idea is to transform target image embeddings into a "multimodal-aware" space that anticipates the structure of the query.

The IGROT framework with UNION

As shown in Figure 1, the retrieval pipeline processes the reference image and relative caption through a pretrained VLM to generate a fusion feature. Simultaneously, target images from the image pool are processed alongside a "null-text" prompt (an empty string) to generate the UNION feature. The similarity is then calculated between the multimodal query fusion feature and the multimodal-aware UNION target feature.

3. The UNION Module Architecture

The UNION module is designed to be lightweight and non-intrusive, requiring no changes to the underlying VLM backbone.

Detailed UNION module architecture

The module operates as follows:

  1. Input Fusion: It takes the raw image feature ($e_t$) and a "null-text" embedding ($e_\eta$)—the VLM's representation of an empty string.
  2. Adaptive Weighting: These features are concatenated and passed through a 2-layer Transformer followed by a Multi-Layer Perceptron (MLP). This sub-network computes adaptive weights for both the image and text components.
  3. Feature Synthesis: The final UNION representation is a learned interpolation: $e_{UNION} = w_i \cdot e_t + w_t \cdot e_\eta$.

By incorporating the null-text embedding, the UNION feature is shifted into a region of the latent space where the VLM typically handles text-image interactions, facilitating better alignment with the multimodal query.

4. Data Efficiency: Quality Over Quantity

A significant contribution of this work is demonstrating that high-quality, curated data can outperform massive, noisy datasets. The authors introduce two compact datasets:

  • LlavaSCo: A refined subset of 5,000 triplets derived from the LaSCo dataset. The authors utilized LLaVA-v1.6-Mistral-7B to generate highly descriptive captions for target images, significantly reducing the semantic ambiguity found in synthetic or web-scraped data.
  • Training-Sketchy: A curated set of 5,000 sketch-photo pairs sampled from the Sketchy dataset.

While state-of-the-art models like MagicLens utilize over 36 million training triplets, UNION achieves competitive performance using only 5,000 samples, highlighting the importance of data precision in training retrieval models.

5. Experimental Results

The UNION approach was evaluated across several standard benchmarks for both CIR and SBIR. On the CIRCO benchmark, UNION achieved a mAP@50 of 38.5, significantly outperforming baselines like CoLLM (23.1) which are trained on much larger datasets. On the Sketchy dataset, UNION reached 82.7 mAP@200, representing a +3.1 improvement over the TransAgg baseline.

Ablation studies confirmed that UNION is architecture-agnostic, providing consistent gains across different backbones including CLIP-B, CLIP-L, and BLIP. However, the authors noted a trade-off in indexing latency: generating UNION features for a large pool took approximately 2.4x longer than extracting raw visual features.

6. Conclusion

UNION presents a simple yet powerful paradigm shift for image-guided retrieval. By focusing on the target representation and leveraging a "null-text" prior, the method achieves state-of-the-art zero-shot performance with minimal training data. This work underscores that architectural intelligence and data quality are often more critical than sheer dataset scale in bridging the gap between vision and language.

Summary updated

BibTeX
@misc{le2025union,
  author = {Hoang-Bao Le and Allie Tran and Binh T. Nguyen and Liting Zhou and Cathal Gurrin},
  title = {{UNION: A Lightweight Target Representation for Efficient Zero-Shot Image-Guided Retrieval with Optional Textual Queries}},
  year = {2025},
  eprint = {2511.22253},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.22253},
}
Figure