Multi-Prompts Learning with Cross-Modal Alignment for Attribute-Based Person Re-identification

Yajing Zhai, Yawen Zeng, Zhiyong Huang, Zheng Qin, Xin Jin, Da Cao

Abstract

Person Re-identification (ReID) is a critical task in computer vision, aimed at matching individuals across non-overlapping camera views. Traditional methods often struggle with visual ambiguities caused by lighting, pose, and occlusion. This paper presents Multi-Prompts ReID (MP-ReID), a novel framework that leverages multi-modal information to enhance ReID performance. By generating a variety of textual prompts—including descriptive sentences from ChatGPT, specific details from Visual Question Answering (VQA) models, and learnable implicit tokens—the system creates a rich semantic representation of each identity. Using a CLIP-based backbone and a Multi-Modal Transformer for cross-modal alignment, MP-ReID achieves state-of-the-art results on major benchmarks, proving that diverse linguistic context can effectively bridge the gap between pixels and identity.

Introduction: The Challenge of Visual Re-identification

Person Re-identification (ReID) involves identifying the same person across different cameras. This task is inherently difficult because the same person can look vastly different due to changes in illumination, camera perspective, and low image resolution.

A visual query image of a person in a yellow shirt and dark shorts, illustrating the starting point for ReID.

While "attributes" (like clothing color or accessories) have been used to assist matching, standard attribute labels are often too coarse. For instance, a "yellow shirt" might apply to many people in a crowded scene. The "modality gap"—the difficulty in aligning discrete text labels with continuous pixel data—further complicates the use of textual information in ReID. The authors aim to solve this by generating and fusing multiple types of highly detailed text prompts to guide the visual search.

Methodology: The MP-ReID Framework

The core innovation of MP-ReID is the Multi-Prompts Generation strategy, which moves beyond simple labels to create a comprehensive textual "fingerprint."

1. Multi-Prompts Generation

The framework utilizes three distinct types of prompts to describe a subject:

  • ChatGPT Prompts: Raw attribute tags are transformed by ChatGPT into natural, descriptive sentences. This adds linguistic structure that helps the text encoder capture global context.
  • VQA Prompts: A Visual Question Answering model (MCAN) is used to probe for specific, fine-grained details that might be missed by a general description, such as the presence of glasses or specific patterns.
  • Implicit Learnable Prompts: These are abstract vectors that adapt during training to capture dataset-specific nuances that are difficult to articulate in natural language.
Example of generated VQA and descriptive prompts used to enrich the visual query with semantic details.

2. Cross-Modal Alignment and Fusion

MP-ReID employs CLIP (Contrastive Language-Image Pre-training) as its foundational architecture. To integrate the diverse prompts, a Multi-Modal Transformer uses cross-attention mechanisms. This allows the model to align visual features with the most relevant parts of the textual prompts, ensuring a unified representation.

3. Optimization

The model is optimized using a combination of standard ReID losses (Triplet and ID loss) and specialized alignment losses. These include an Image-to-Prompt contrastive loss and Cross-entropy for the [CLS] token, ensuring that both modalities are mapped into a shared feature space.

Experimental Results

The researchers evaluated MP-ReID on the Market1501 and DukeMTMC-reID benchmarks. The results demonstrate a significant performance boost over previous methods:

  • Market1501: The model achieved 95.50% mAP and 97.70% Rank@1, a substantial improvement over the CLIP-ReID baseline (89.60% mAP).
  • DukeMTMC-reID: The model reached 88.90% mAP and 95.70% Rank@1.

Ablation studies confirmed that each prompt type—ChatGPT, VQA, and Learnable—contributes unique information, and their combination is essential for peak performance.

Conclusion and Future Directions

MP-ReID demonstrates that "more is better" when it comes to multi-modal prompts. By combining the general descriptive power of LLMs with the targeted inspection of VQA, the framework provides a robust solution to the modality gap in ReID. Future work may explore the saturation point of prompt quantity and more sophisticated fusion techniques to further enhance real-time deployment capabilities.

Summary updated

BibTeX
@inproceedings{zhai2024multi,
  author = {Yajing Zhai and Yawen Zeng and Zhiyong Huang and Zheng Qin and Xin Jin and Da Cao},
  title = {{Multi-Prompts Learning with Cross-Modal Alignment for Attribute-Based Person Re-identification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i7.28524},
}
Figure