Towards Identity-Aware Cross-Modal Retrieval: a Dataset and a Baseline
Nicola Messina, Lucia Vadicamo, Leo Maltese, Claudio Gennaro
TL;DR
This paper tackles identity-aware cross-modal retrieval, addressing the difficulty of locating specific individuals within contextual queries by extending vision-language models to long-tail identities. It introduces COCO-PFS, a dataset built by face-swapping COCO images with identities from VGGFace2 and enriching captions with identity names, enabling evaluation of both identity and contextual retrieval. The proposed Id-CLIP framework grounds identities via a face-to-token mapping and employs visual prompt tuning to adapt the image encoder, achieving strong improvements over standard CLIP and CLIP-PAD baselines without per-gallery retraining. The work provides a public dataset and a robust baseline that pave the way for practical identity-aware retrieval in large audiovisual archives, with potential applications in personalization and heritage preservation.
Abstract
Recent advancements in deep learning have significantly enhanced content-based retrieval methods, notably through models like CLIP that map images and texts into a shared embedding space. However, these methods often struggle with domain-specific entities and long-tail concepts absent from their training data, particularly in identifying specific individuals. In this paper, we explore the task of identity-aware cross-modal retrieval, which aims to retrieve images of persons in specific contexts based on natural language queries. This task is critical in various scenarios, such as for searching and browsing personalized video collections or large audio-visual archives maintained by national broadcasters. We introduce a novel dataset, COCO Person FaceSwap (COCO-PFS), derived from the widely used COCO dataset and enriched with deepfake-generated faces from VGGFace2. This dataset addresses the lack of large-scale datasets needed for training and evaluating models for this task. Our experiments assess the performance of different CLIP variations repurposed for this task, including our architecture, Identity-aware CLIP (Id-CLIP), which achieves competitive retrieval performance through targeted fine-tuning. Our contributions lay the groundwork for more robust cross-modal retrieval systems capable of recognizing long-tail identities and contextual nuances. Data and code are available at https://github.com/mesnico/IdCLIP.
