Abstract
Text-based Person Search aims to retrieve a specified person using a given text query. Current methods predominantly rely on paired labeled image-text data to train the cross-modality retrieval model, necessitating laborious and time-consuming labeling. In response to this challenge, we present the Cross-modal Generation and Alignment via Attribute-guided Prompt framework (GAAP) for fully unsupervised text-based person search, utilizing only unlabeled images. Our proposed GAAP framework consists of two key parts: Attribute-guided Prompt Caption Generation and Attribute-guided Cross-modal Alignment module. The Attribute-guided Prompt Caption Generation module generates pseudo text labels by feeding the attribute prompts into a large-scale pre-trained vision-language model. These synthetic texts are then meticulously selected through a sample selection, ensuring the reliability for subsequent fine-tuning. The Attribute-guided Cross-modal Alignment module encompasses three sub-modules for feature alignment across modalities. Firstly, Cross-Modal Center Alignment (CMCA) aligns the samples with different modality centroids. Subsequently, to address ambiguity arising from local attribute similarities, an Attribute-guided Image-Text Contrastive Learning module (AITC) is proposed to facilitate the alignment of relationships among different pairs by considering local attribute similarities. Lastly, the Attribute-guided Image-Text Matching (AITM) module is introduced to mitigate noise in pseudo captions by using the image-attribute matching score to soften the hard matching labels. Empirical results showcase the effectiveness of our method across various text-based person search datasets under the fully unsupervised setting.
Introduction
Text-based person retrieval is the critical task of identifying a specific individual within a large gallery of surveillance images based on a natural language description. Traditionally, training effective models for this task has required extensive "triplet" datasets—comprising an image, a corresponding text description, and an identity label. Collecting such data is notoriously labor-intensive and difficult to scale.
While unsupervised methods have emerged to mitigate these costs, they often struggle with the "modality gap"—the inherent difficulty in aligning visual pixels with linguistic concepts—and the noise present in automatically generated pseudo-labels. The GAAP framework addresses these challenges by leveraging Large Language Models (LLMs) to generate high-quality synthetic descriptions from unlabeled images, bridging the gap between visual and textual modalities without human intervention.
The GAAP Framework
The GAAP framework is divided into two primary stages designed to generate reliable training data and then align that data across modalities.
1. Attribute-guided Prompt Caption Generation (APCG)
Instead of simple captioning, GAAP uses a sophisticated "generate and refine" approach. First, a pre-trained vision-language model (BLIP) extracts specific attributes such as gender, clothing color, and accessories. These structured attributes are then fed into an LLM (ChatGLM2-6B) with specific prompts to generate diverse, natural-sounding sentences. This process ensures the synthetic data mirrors the complexity of real-world search queries. Finally, a sample selection mechanism calculates matching scores to discard noisy image-text pairs that fall below a reliability threshold.
2. Attribute-guided Cross-modal Alignment (AGCA)
To train the retrieval model on these pseudo-captions, GAAP employs three specialized alignment modules:
- Cross-Modal Center Alignment (CMCA): Aligns images and texts toward shared centroids representing people with similar attributes.
- Attribute-guided Image-Text Contrastive Learning (AITC): Unlike standard contrastive learning, AITC accounts for local attribute similarities, recognizing that different individuals may share specific traits like a "red shirt."
- Attribute-guided Image-Text Matching (AITM): This module utilizes "soft" labels, weighting the training loss based on how well an image matches predicted attributes, thereby increasing robustness against synthetic caption errors.
Experimental Evaluation
The authors evaluated GAAP on three benchmark datasets: CUHK-PEDES, ICFG-PEDES, and RSTPReid.
Key Results
GAAP established a new state-of-the-art for unsupervised person retrieval:
- CUHK-PEDES: Achieved a 47.64% Rank-1 accuracy, significantly outperforming the previous unsupervised leader (GTR at 40.87%).
- ICFG-PEDES: Reached 27.12% Rank-1, a 4.6% improvement over the baseline.
Qualitative analysis demonstrates that GAAP is particularly effective at discerning fine-grained details. As shown in the retrieval results, GAAP successfully identifies specific attributes like "tan colored knee-length shorts" where baseline models often fail.
Conclusion
The GAAP framework demonstrates the power of LLMs as data engines for bootstrapping cross-modal models. By converting structured attribute predictions into rich natural language and employing soft-target alignment strategies, GAAP effectively bridges the modality gap in an unsupervised manner. While the framework currently depends on the quality of pre-trained models and involves significant pre-processing overhead, it represents a major step toward scalable, label-free person retrieval systems.
Summary updated