CLIP-ReID: Exploiting Vision-Language Model for Image Re-identification without Concrete Text Labels

CLIP-ReID: Использование визуально-языковой модели для повторной идентификации изображений без конкретных текстовых меток
Siyuan Li, Qingli Li, Sun Li
2023-06-26

CLIP-ReIDcontrastive lossimage re-identification (ReID)learnable ID-specific text tokensvision-language models
Pre-trained vision-language models like CLIP have recently shown superior performances on various downstream tasks, including image classification and segmentation. However, in fine-grained image re-identification (ReID), the labels are indexes, lacking concrete text descriptions. Therefore, it remains to be determined how such models could be applied to these tasks. This paper first finds out that simply fine-tuning the visual model initialized by the image encoder in CLIP, has already obtained competitive performances in various ReID tasks. Then we propose a two-stage strategy to facilitate a better visual representation. The key idea is to fully exploit the cross-modal description ability in CLIP through a set of learnable text tokens for each ID and give them to the text encoder to form ambiguous descriptions. In the first training stage, image and text encoders from CLIP keep fixed, and only the text tokens are optimized from scratch by the contrastive loss computed within a batch. In the second stage, the ID-specific text tokens and their encoder become static, providing constraints for fine-tuning the image encoder. With the help of the designed loss in the downstream task, the image encoder is able to represent data as vectors in the feature embedding accurately. The effectiveness of the proposed strategy is validated on several datasets for the person or vehicle ReID tasks. Code is available at https://github.com/Syliz517/CLIP-ReID.
1
A two-stage strategy leverages CLIP's cross-modal ability by learning a set of ID-specific text tokens that form ambiguous textual descriptions for each ID.
2
Fine-tuning the CLIP image encoder alone yields competitive performance on various fine-grained ReID tasks despite labels being index-based without text.
3
Stage 1: with CLIP image and text encoders fixed, ID-specific text tokens are optimized from scratch using a batch contrastive loss.
4
Stage 2: the learned text tokens and text encoder are frozen and used to constrain fine-tuning of the image encoder, improving embedding accuracy with a task-specific loss.
5
The proposed method is empirically validated as effective on multiple person and vehicle ReID datasets.

Fine-grained image re-identification (person and vehicle ReID) tasks/datasets

Improving visual feature representations for image ReID by exploiting CLIP's cross-modal capabilities via learnable ID-specific text tokens and a two-stage training strategy to constrain and fine-tune the image encoder

Publication Details
Publication Date
2023-06-26
Journal
Publisher
ISSN
Cited by
293
Access Type
Author Information
Authors
Siyuan Li
Qingli Li
Sun Li
Explore further
Open the scid.ai AI chat with a ready-made request: it will find papers on a similar topic and help build a literature review.
Find similar papers in the chat
Make a presentation
100%