Abstract
Text-based person search aims to retrieve specific individuals from an image gallery using natural language descriptions. This task faces significant challenges due to the "ambiguity embedding problem," where semantic mismatches occur between varying granularities of descriptions and image regions, and irrelevant words introduce noise. We present the Multi-Granularity Embedding Learning (MGEL) model, which addresses these issues by representing both modalities in a coarse-to-fine manner. By employing horizontal image slicing and multi-head text attention, MGEL aligns visual regions with descriptive words across multiple spatial scales. Furthermore, a novel multi-granularity partial knowledge distillation mechanism uses image features to guide textual attention, effectively filtering out non-discriminative words. Evaluated on the CUHK-PEDES benchmark, MGEL achieves state-of-the-art performance without requiring expensive auxiliary annotations.
Introduction
Finding a person based on a description like "a woman wearing a blue jacket and white shoes" is a fine-grained retrieval task. Existing methods often struggle with two facets of the ambiguity embedding problem. First, descriptions mix granularities (e.g., "blue jacket" covers a large area, while "black turtleneck" is small), yet models often map these to fixed-size regions. Second, natural language contains "noise"—words like "walking forward" that lack specific visual counterparts.
The MGEL Framework
The MGEL model introduces a multi-level pipeline to bridge the gap between visual and textual representations.
Visual and Textual Streams
The visual stream utilizes a CNN backbone followed by a Granularity Attention Block (GAB) to suppress background noise. The resulting feature maps are horizontally sliced into "scrips" at four scales ($2^{k-1}$ bins for $k=1$ to 4), capturing features ranging from the global body to fine-grained parts.
Simultaneously, the textual stream processes descriptions using a Bi-LSTM. A multi-head self-attention module extracts partial embeddings where the number of attention partitions corresponds to the number of image scrips at each granularity level. This ensures a structural alignment between the two modalities.
Multi-Granularity Knowledge Distillation
A core innovation of MGEL is the Multi-Granularity Partial Knowledge Distillation. This mechanism addresses the noise in textual descriptions by using the image as a "teacher."
By applying a Part Alignment Loss ($L_{pl}$), the model ensures that visual and textual embeddings for specific body parts share similar statistical distributions. This process effectively "distills" spatial knowledge from the image to the text encoder, teaching it which words are relevant to specific regions and which are merely filler. Finally, Global Contrastive Pooling (GCP) aggregates these partial embeddings into a discriminative global representation.
Key Results and Insights
MGEL was evaluated on the CUHK-PEDES dataset, the standard benchmark for text-based person search.
- State-of-the-Art Performance: Using a ResNet-50 backbone, MGEL achieved 60.27% Rank-1 accuracy, outperforming previous methods like ViTAA (55.97%) that rely on additional attribute labels.
- Robustness: The model remains effective with lighter backbones, achieving 59.21% Rank-1 with MobileNet.
- Ablation Success: Removing the multi-granularity structure led to a nearly 5% drop in Rank-1 accuracy, confirming that the coarse-to-fine approach is vital for capturing complex relationships.
The success of MGEL highlights that horizontal slicing is a powerful, low-cost alternative to complex human parsing or pose estimation models, provided the subjects are relatively upright.
Conclusion
The MGEL model demonstrates that a multi-granularity approach significantly improves the alignment of visual and textual features in person search. By treating images as a source of spatial knowledge for text attention, the model overcomes the ambiguity embedding problem. Future work may explore handling non-upright poses and optimizing the computational complexity of multi-scale processing.
Summary updated