Training-free Conditional Image Embedding Framework Leveraging Large Vision Language Models
Masayuki Kawarada, Kosuke Yamada, Antonio Tejero-de-Pablos, Naoto Inoue
TL;DR
DIOR introduces a training-free approach to conditional image embeddings by leveraging large vision-language models (LVLMs) and prompting them to describe images in one word conditioned on a given attribute. The method extracts the LVLM’s last prompt-token hidden state as the conditional embedding, enabling targeted image similarity without task-specific priors or fine-tuning. Across LanZ-DML, Style Similarity, and GeneCIS, DIOR demonstrates competitive or superior performance against training-based baselines, with ablations clarifying the importance of layer choice, token extraction, and prompt design. While DIOR incurs higher inference costs due to LVLM size, caching and emerging efficient LVLMs mitigate this, presenting a practical, flexible pathway for cross-domain conditional image retrieval.
Abstract
Conditional image embeddings are feature representations that focus on specific aspects of an image indicated by a given textual condition (e.g., color, genre), which has been a challenging problem. Although recent vision foundation models, such as CLIP, offer rich representations of images, they are not designed to focus on a specified condition. In this paper, we propose DIOR, a method that leverages a large vision-language model (LVLM) to generate conditional image embeddings. DIOR is a training-free approach that prompts the LVLM to describe an image with a single word related to a given condition. The hidden state vector of the LVLM's last token is then extracted as the conditional image embedding. DIOR provides a versatile solution that can be applied to any image and condition without additional training or task-specific priors. Comprehensive experimental results on conditional image similarity tasks demonstrate that DIOR outperforms existing training-free baselines, including CLIP. Furthermore, DIOR achieves superior performance compared to methods that require additional training across multiple settings.
