Introduction
Text-based person search is a challenging computer vision task that involves identifying a specific individual in a large database of images based on a natural language description. Unlike standard person re-identification, which uses image queries, text-based search must bridge the significant cross-modal gap between visual features and linguistic descriptions.
A primary difficulty in this field is the granularity mismatch: descriptions often refer to specific local attributes (e.g., "black bag," "pink t-shirt"), whereas many models rely on global image features that are susceptible to background noise. The Pose-Guided Multi-Granularity Attention Network (PMA) addresses these challenges by using human pose information as a spatial anchor to align visual regions with textual descriptions at multiple levels of granularity.
Methodology
The PMA framework treats person search as a multi-level matching problem, utilizing pose estimation to guide the attention mechanism toward relevant body parts.
Visual and Textual Feature Extraction
To ensure the model focuses on the human subject, PMA incorporates pose-augmented input. The system estimates 14 human keypoints and concatenates their confidence maps with the standard RGB image, creating a 17-channel input for the CNN backbone (such as VGG-16 or ResNet-50). This forces the network to prioritize the human body from the initial layers.
On the textual side, a bi-directional LSTM captures the global context of the description. Simultaneously, the Natural Language Toolkit (NLTK) is used to extract specific noun phrases (e.g., "khaki pants"), which serve as targets for local, fine-grained matching.
Dual-Alignment Architecture
The core innovation of PMA is its dual-alignment strategy, which processes information at both coarse and fine levels:
- Coarse Alignment (CA): This module uses a "hard attention" mechanism to compare the global sentence representation with horizontal stripes of the image. By explicitly ignoring regions with low similarity, the model effectively filters out background noise and irrelevant objects.
- Fine-Grained Alignment (FA): The 14 pose keypoints are grouped into six functional body parts: head, torso, arms, hands, legs, and feet. The FA network learns to align these specific visual regions with the extracted noun phrases. For instance, it learns that the phrase "black shoes" should be compared specifically to the "feet" region defined by the pose maps.
Training Objectives
The model is trained using a multi-task loss function. Ranking Loss ensures that the correct image-text pairs are ranked higher than incorrect ones, while Identification Loss treats the search task as a classification problem to help the model learn identity-discriminative features.
Experiments and Results
The PMA model was evaluated on the CUHK Person Description Dataset (CUHK-PEDES), which contains over 40,000 images and 80,000 descriptions.
| Method | Visual Backbone | Top-1 Accuracy | Top-10 Accuracy |
|---|---|---|---|
| Dual Path (2017) | VGG-16 | 32.15% | 64.30% |
| PMA (Ours) | VGG-16 | 47.02% | 78.06% |
| Dual Path (2017) | ResNet-50 | 44.40% | 75.07% |
| PMA (Ours) | ResNet-50 | 53.81% | 81.23% |
The results demonstrate a significant breakthrough, with PMA achieving a 15% improvement in Top-1 accuracy over previous state-of-the-art methods using the VGG-16 backbone. This performance gain underscores the value of using pose as a spatial prior and the effectiveness of decomposing the matching task into multiple granularities.
Conclusion
The Pose-Guided Multi-Granularity Attention Network (PMA) significantly advances the state of the art in text-based person search. By leveraging human pose information to anchor visual attention, the model successfully bridges the gap between global descriptions and local attributes. While the inclusion of pose estimation and multi-branch attention increases computational complexity, the substantial gains in retrieval accuracy make it a powerful approach for real-world surveillance and search applications.
Summary updated