CILP-FGDI: Exploiting Vision-Language Model for Generalizable Person Re-Identification

Huazhong Zhao, Lei Qi, Xin Geng

Abstract

Domain-Generalizable Person Re-Identification (DG-ReID) remains a significant challenge due to the discrepancy between training and testing environments. Standard models often overfit to domain-specific noise, such as lighting and background. This paper presents CILP-FGDI, a framework that adapts the CLIP vision-language model for DG-ReID. By employing a three-stage training strategy and a novel Bidirectional Guiding Method (BGM), CILP-FGDI learns to extract fine-grained, domain-invariant features. Experimental results across multiple benchmarks demonstrate that CILP-FGDI achieves state-of-the-art performance, significantly outperforming existing methods in cross-domain generalization.

1. Introduction

Person Re-Identification (ReID) is the task of identifying the same individual across non-overlapping camera views. While performance has improved significantly in closed-set scenarios, Generalizable ReID (DG-ReID) focuses on the model's ability to perform on unseen datasets. The primary obstacle in DG-ReID is the "domain shift"—variations in lighting, background, and camera resolution that cause models to learn environment-specific features rather than identity-specific ones.

Vision-Language Models (VLMs) like CLIP offer robust pre-trained representations. However, they are not inherently optimized for the fine-grained discrimination required for ReID. CILP-FGDI (CLIP for Fine-Grained and Domain-Invariant feature learning) addresses this by bridging the gap between high-level semantic understanding and the pixel-level precision needed for identity matching.

2. Methodology

The CILP-FGDI framework introduces a three-stage learning strategy designed to decouple identity features from domain noise.

2.1 Stage 1: Image Encoder Adaptation

Unlike traditional prompt-tuning methods that begin with text optimization, CILP-FGDI first fine-tunes CLIP’s image encoder. This initial "warm-up" phase allows the encoder to adapt to the specific visual characteristics of human pedestrians, providing a more accurate foundation for subsequent text-based guidance.

2.2 Stage 2: Prompt Learning with Gradient Reversal

In the second stage, the model learns identity-specific text tokens (e.g., "A photo of a [X] person"). To ensure these tokens are truly domain-invariant, a Gradient Reversal Layer (GRL) is integrated. The GRL forces the text encoder to generate features that are indistinguishable to a domain classifier, effectively filtering out environment-specific information from the learned prompts.

2.3 Stage 3: Bidirectional Guiding Method (BGM)

The core innovation of CILP-FGDI is the Bidirectional Guiding Method. The model utilizes two distinct types of prompts:

  • Positive (Domain-Invariant) Prompts: Descriptions that focus on the person's identity regardless of the dataset.
  • Negative (Domain-Relevant) Prompts: Descriptions that explicitly incorporate domain-specific information (e.g., "A photo of a person from [Dataset A]").

The image encoder is trained using a "push-pull" dynamic: it is pulled toward the invariant prompts and pushed away from the domain-relevant ones. This ensures that the final visual features are concentrated on the individual's identity while actively suppressing background noise.

3. Experiments and Results

The researchers evaluated CILP-FGDI on a comprehensive suite of ReID benchmarks, including Market1501, MSMT17, CUHK02, CUHK03, and CUHK-SYSU, along with small-scale unseen sets like PRID, GRID, VIPeR, and iLIDs.

3.1 Performance Metrics

CILP-FGDI consistently established new state-of-the-art (SOTA) benchmarks:

  • Small-scale Generalization (Protocol-1): The model achieved an average mAP of 82.2% and a Rank-1 accuracy of 75.5%. This represents an 8.1% improvement in mAP over the previous leading method, DSM+SHS.
  • Large-scale Generalization (Protocol-2): The model reached an average mAP of 51.6%, significantly surpassing the 46.6% achieved by GMN.

3.2 Qualitative Analysis

t-SNE visualizations confirm the effectiveness of the bidirectional guidance. Compared to baseline models, CILP-FGDI produces tighter and more distinct clusters for individuals across different domains. This visual evidence supports the claim that the model successfully ignores domain shifts and focuses on identity-invariant features.

4. Discussion and Conclusion

CILP-FGDI demonstrates that VLMs can be effectively adapted for fine-grained tasks like ReID by explicitly modeling the distinction between identity and domain. The "push-pull" dynamics of the BGM provide a robust mechanism for filtering out environmental noise.

While the three-stage training process introduces some architectural complexity, the computational overhead is minimal (only a few minutes more on a 3090 GPU), and the performance gains are substantial. Future work may explore the integration of newer VLMs and the simplification of the multi-stage pipeline to further enhance the efficiency of generalizable person re-identification.

Summary updated

BibTeX
@article{zhao2025cilp,
  author = {Huazhong Zhao and Lei Qi and Xin Geng},
  title = {{CILP-FGDI: Exploiting Vision-Language Model for Generalizable Person Re-Identification}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2025},
  doi = {10.1109/tifs.2025.3536608},
}
Figure