[Paper Review] Prototypical Contrastive Learning-based CLIP Fine-tuning for Object Re-identification
This paper proposes a prototypical contrastive learning (PCL)-based fine-tuning method for CLIP to improve object re-identification (Re-ID) in both supervised and unsupervised settings, eliminating the need for prompt learning by directly fine-tuning CLIP's image encoder using a PCL loss. The approach achieves competitive performance compared to CLIP-ReID and state-of-the-art results in unsupervised Re-ID, particularly with the O2CAP loss and frozen patch projection layer trick.
This work aims to adapt large-scale pre-trained vision-language models, such as contrastive language-image pretraining (CLIP), to enhance the performance of object reidentification (Re-ID) across various supervision settings. Although prompt learning has enabled a recent work named CLIP-ReID to achieve promising performance, the underlying mechanisms and the necessity of prompt learning remain unclear due to the absence of semantic labels in ReID tasks. In this work, we first analyze the role prompt learning in CLIP-ReID and identify its limitations. Based on our investigations, we propose a simple yet effective approach to adapt CLIP for supervised object Re-ID. Our approach directly fine-tunes the image encoder of CLIP using a prototypical contrastive learning (PCL) loss, eliminating the need for prompt learning. Experimental results on both person and vehicle Re-ID datasets demonstrate the competitiveness of our method compared to CLIP-ReID. Furthermore, we extend our PCL-based CLIP fine-tuning approach to unsupervised scenarios, where we achieve state-of-the art performance. Code is available at https://github.com/RikoLi/PCL-CLIP.
Motivation & Objective
- To investigate the underlying mechanisms of prompt learning in CLIP-ReID, where semantic class names are absent in Re-ID tasks.
- To address the limitations of prompt learning in Re-ID due to the lack of semantic labels, which leads to potential misalignment between textual and visual features.
- To propose a simpler, effective alternative to prompt learning by directly fine-tuning CLIP’s image encoder using a prototypical contrastive learning (PCL) loss.
- To extend the PCL-based fine-tuning approach to unsupervised Re-ID, where pseudo-labeling and iterative clustering are used.
- To achieve state-of-the-art performance in unsupervised Re-ID by combining CLIP’s pre-trained features with PCL loss and a frozen patch projection layer trick.
Proposed method
- The method replaces prompt learning with a prototypical contrastive learning (PCL) loss that uses up-to-date visual feature centroids for each ID during fine-tuning.
- The PCL loss directly optimizes the image encoder by pulling features of the same ID closer to their respective visual centroid, avoiding outdated or misaligned textual prompts.
- In supervised Re-ID, the method uses a single PCL loss or combines it with ID loss to improve performance on MSMT17 and Market1501.
- In unsupervised Re-ID, the PCL-based fine-tuning is integrated into clustering-based frameworks (e.g., CC, CAP, O2CAP), replacing their backbones with CLIP’s image encoder.
- To stabilize training in unsupervised settings, the patch projection layer of CLIP’s vision transformer is frozen, preventing divergence during fine-tuning.
- The approach is evaluated on person and vehicle Re-ID benchmarks, including Market1501, MSMT17, and VeRi-776, under both supervised and unsupervised settings.
Experimental results
Research questions
- RQ1What is the true mechanism behind prompt learning in CLIP-ReID when class names are semantically meaningless in Re-ID?
- RQ2Can a PCL-based loss effectively replace prompt learning for Re-ID without requiring textual prompts?
- RQ3Does direct fine-tuning of CLIP’s image encoder using PCL loss outperform CLIP-ReID in supervised Re-ID?
- RQ4Can the PCL-based fine-tuning approach be successfully extended to unsupervised Re-ID with pseudo-labeling?
- RQ5What training stabilization techniques are necessary when fine-tuning CLIP’s vision transformer in unsupervised Re-ID?
Key findings
- The PCL-CLIP method achieves 81.1% rank-1 accuracy on Market1501 and 97.0% on MSMT17 in supervised Re-ID using only a PCL loss, matching CLIP-ReID’s performance.
- When combined with ID loss, PCL-CLIP achieves 82.5% rank-1 accuracy on MSMT17, outperforming CLIP-ReID’s 83.3% by a small margin but with a simpler training pipeline.
- In unsupervised Re-ID, PCL-CLIP with the O2CAP loss achieves 45.5% rank-1 accuracy on MSMT17, surpassing the previous SoTA of 41.9% from O2CAP and 41.0% from CAP.
- The PCL-CLIP method with the O2CAP loss achieves 95.0% rank-1 accuracy on VeRi-776 in unsupervised Re-ID, outperforming previous SoTA methods by a significant margin.
- The frozen patch projection layer trick effectively stabilizes training in unsupervised settings, enabling convergence and performance gains over baseline CLIP fine-tuning.
- t-SNE visualization confirms that PCL learns high-quality, discriminative feature space using only visual centroids, validating its effectiveness without textual prompts.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.