Abstract
Text attribute person search aims to identify specific pedestrians using textual descriptions, a critical task for law enforcement and security applications. The primary challenge lies in the significant modality gap between sparse textual attributes and high-dimensional images. We propose the Attribute-Aware Implicit Modality Alignment (AIMA) framework, which leverages the CLIP model to bridge this gap. AIMA introduces prompt templates for structured attribute representation, a Masked Attribute Prediction (MAP) module for implicit local alignment, and an Attribute-IoU Guided Intra-Modal Contrastive (A-IoU IMC) loss to refine semantic organization. Experimental results on Market-1501, PETA, and PA100K datasets demonstrate that AIMA significantly outperforms existing state-of-the-art methods.
Introduction
In real-world surveillance scenarios, such as searching for a missing person or a suspect based on witness testimony, investigators often rely on textual descriptions rather than reference images. This task, known as Text Attribute Person Search, requires a model to match a list of attributes (e.g., "adult man," "red shirt," "long pants") against a large gallery of pedestrian images.
Traditional person search systems often struggle with the "modality gap"—the fundamental difference in how visual and textual data are represented. Furthermore, establishing precise correspondences between specific words (e.g., "backpack") and image regions without explicit bounding box annotations remains a significant hurdle.
Methodology
The AIMA framework addresses these challenges through several key innovations:
CLIP-Based Foundation and Prompt Engineering
AIMA utilizes the Contrastive Language-Image Pre-training (CLIP) model as its backbone. To better align with CLIP's pre-trained knowledge of natural language, AIMA transforms raw attribute lists into structured sentences using hand-crafted templates. For example, the attributes [man, adult, red shirt] are converted into: "This person is an adult man wearing a red shirt." This allows the text encoder to capture contextual relationships between attributes.
Masked Attribute Prediction (MAP)
To achieve fine-grained alignment without explicit supervision, we introduce the MAP module. During training, specific attributes in the input sentence are masked. The model must then use a multimodal interaction layer to attend to the image and predict the missing attribute. This process forces the model to implicitly learn the visual-textual correspondence for local details, such as clothing types or accessories.
Attribute-IoU Guided Intra-Modal Contrastive Loss
To improve the organization of the textual embedding space, we propose the A-IoU IMC loss. This loss function uses the Intersection-over-Union (IoU) of attribute sets to guide the distance between text embeddings. Descriptions that share many attributes are pulled closer together, ensuring that the model's semantic space reflects the logical similarity of the physical descriptions.
Experiments and Results
We evaluated AIMA on three benchmark datasets: Market-1501 Attribute, PETA, and PA100K. The results indicate that AIMA's implicit alignment strategy is highly effective, as shown in the performance summary below:
- Market-1501: Achieved a Rank-1 accuracy of 57.0%, a significant jump from previous benchmarks.
- PETA: Reached 83.0% Rank-1 accuracy, surpassing previous methods by over 20%.
- PA100K: Reached 42.5% Rank-1, establishing a new state-of-the-art.
Qualitative analysis via attention maps confirms that the MAP module enables the model to focus accurately on relevant body parts and accessories, reducing background noise and improving retrieval precision.
Conclusion
The AIMA framework represents a significant advancement in text-based person search. By combining the broad knowledge of CLIP with targeted implicit alignment and semantic topology optimization, AIMA effectively bridges the modality gap. Future work will explore automated prompt generation and further refining local-global interactions to enhance retrieval speed and accuracy in even more diverse environments.
Summary updated