Prototypical Prompting for Text-to-image Person Re-identification

Shuanglin Yan, Jun Liu, Neng Dong, Liyan Zhang, Jinhui Tang

Introduction

Text-to-Image Person Re-identification (TIReID) is a critical task in computer vision, focused on retrieving specific individuals from large-scale image galleries based on natural language descriptions. Traditional approaches have largely relied on instance-level matching—aligning a single image with its corresponding caption. However, this approach often fails to account for the inherent variability of a person's appearance across different viewpoints or the diverse ways a person can be described. To address these limitations, the Propot (Prototypical Prompting) framework shifts the focus toward identity-level matching, leveraging identity-enriched prototypes to bridge the gap between visual and textual modalities.

The Challenge of Instance-Level Matching

The primary hurdle in TIReID is the dual challenge of the "modal gap" (differences between visual and textual data) and the "viewpoint gap" (variations in a person's appearance from different angles). Existing models that focus on matching specific image-text pairs often overlook the broader context of an identity. For instance, a model trained only on front-view images might fail to recognize the same individual from the back. Propot addresses this by aggregating information across multiple images and descriptions of the same person, creating a more robust representation of their identity.

The Propot Framework

Propot utilizes a four-stage pipeline designed to "initialize, adapt, enrich, and aggregate" identity information:

  1. Initial Prototype Generation: The system uses a pre-trained CLIP model to cluster image and text features based on identity labels, establishing a baseline prototype for each person.
  2. Domain-conditional Prototypical Prompting (DPP): To overcome the domain gap between CLIP’s general training data and specific pedestrian datasets, DPP introduces learnable prompt tokens that specialize the prototypes for the TIReID task.
  3. Instance-conditional Prototypical Prompting (IPP): To maintain the diversity of the prototypes, IPP updates them using real-time batches of instances. This ensures the prototype captures both intra-modal (image-to-image) and inter-modal (image-to-text) variations.
  4. Adaptive Prototype Aggregation (APA): This module merges the various prototypes into a single, high-quality "identity-enriched" prototype.

A key component of the training process is the prototype-to-instance contrastive loss ($L_{p2i}$). This mechanism "diffuses" collective identity information back to individual data points, ensuring that every image and sentence is mathematically aligned with the broader identity prototype.

Experimental Evaluation

The model was evaluated on three standard TIReID benchmarks, demonstrating strong performance across diverse conditions:

  • CUHK-PEDES: Reached 74.89% Rank-1 accuracy, outperforming nearly all recent state-of-the-art (SOTA) methods.
  • ICFG-PEDES: Established a new SOTA with 65.12% Rank-1 accuracy, benefiting from the dataset's longer, more descriptive captions.
  • RSTPReid: Achieved 61.87% Rank-1 accuracy, proving robust in complex scenes with significant viewpoint variations.

Ablation studies confirmed that both the DPP and IPP modules are essential; removing either led to significant performance degradation, highlighting the importance of both domain adaptation and instance diversity.

Performance and Efficiency

Crucially, despite the complexity of the prototype learning during training, the framework is designed for efficiency. During inference, only the backbone network is required. This allows Propot to maintain the same inference speed as simpler models, making it highly suitable for real-world deployment.

Conclusion and Future Work

While Propot excels at global identity matching, it currently lacks a dedicated local matching module for fine-grained details (e.g., specific accessories like "red shoes"). Future research could integrate local alignment into the prototypical prompting framework to further enhance performance by capturing minute details without compromising the efficiency of the global approach.

Summary updated

BibTeX
@inproceedings{yan2024prototypical,
  author = {Shuanglin Yan and Jun Liu and Neng Dong and Liyan Zhang and Jinhui Tang},
  title = {{Prototypical Prompting for Text-to-image Person Re-identification}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3681165},
}
Figure