Abstract
Text-based person search aims to retrieve specific person images from a large-scale pool based on natural language descriptions. Current methods often struggle with "weak positive" matches and a lack of sensitivity to fine-grained textual changes. We propose RaSa, a Relation and Sensitivity Aware framework that introduces two novel learning tasks: Relation-Aware (RA) learning to distinguish between strong and weak positive pairs, and Sensitivity-Aware (SA) learning to detect subtle word replacements. RaSa achieves state-of-the-art performance on three major benchmarks, demonstrating significant improvements in retrieval accuracy.
Introduction: The Challenges of Text-Based Person Search
Text-based person search is a critical task in computer vision, requiring the system to find a specific individual in a massive image database given a description like "a woman wearing a white t-shirt and blue shorts." Despite recent progress, two major gaps persist in existing methodologies:
- The "Weak Positive" Trap: Most models treat all images of the same person as equally valid matches for a given text description. However, a description might perfectly align with one photo while only partially matching another due to occlusions or viewpoint changes. Treating these "weak" matches as perfect leads to overfitting on noise.
- The Sensitivity Gap: Unlike many AI tasks that prioritize invariance to minor changes, person search requires extreme sensitivity. A single word change (e.g., "white" to "gray") can completely change the target identity. Standard models often lack the fine-grained awareness necessary to capture these subtle textual differences.
Methodology: The RaSa Framework
The RaSa framework builds upon a standard transformer-based architecture, incorporating an image encoder, a text encoder, and a cross-modal fusion encoder. To address the identified gaps, it introduces two core components:
Relation-Aware Learning (RA)
Instead of a binary "match or no match" approach, RA utilizes a probabilistic model. It introduces Positive Relation Detection (PRD), which specifically trains the model to distinguish between "strong" positive pairs (perfect alignment) and "weak" positive pairs (noisy alignment). This acts as a regularizer, preventing the model from trying too hard to fit noisy data.
Sensitivity-Aware Learning (SA)
This task encourages the model to perceive subtle changes through Momentum-based Replaced Token Detection (m-RTD). A momentum version of the model—a stabilized, slow-moving average of the main model—acts as a generator to replace words in the description with "confusing" alternatives. The main model must then identify which words were swapped, forcing the representation to be highly sensitive to specific attributes like color or clothing type.
Experimental Evaluation
The RaSa model was evaluated on three primary benchmarks: CUHK-PEDES, ICFG-PEDES, and RSTPReid. The results show a substantial leap over previous state-of-the-art (SOTA) methods in the Rank@1 metric:
- CUHK-PEDES: 76.51% (a 6.94% improvement).
- ICFG-PEDES: 65.28% (a 4.45% improvement).
- RSTPReid: 66.90% (a 15.35% improvement).
Ablation studies confirmed that both the RA and SA modules are essential for these gains; removing either component resulted in a significant performance drop.
Discussion and Key Insights
A primary insight of this work is the benefit of embracing noise. By acknowledging the existence of "weak" matches rather than attempting to eliminate them, RaSa uses them as a specific learning signal, preventing the model from "hallucinating" features not present in the image. Furthermore, the framework highlights the importance of sensitivity over invariance in fine-grained retrieval tasks. The use of a momentum model for word replacement provides a more challenging and realistic training signal than random word swaps.
Conclusion
RaSa sets a new standard for text-based person search by effectively managing noisy data and enhancing attribute sensitivity. While the cross-modal encoder introduces computational costs, a two-stage inference process (filtering the top 128 candidates then reranking) maintains practical efficiency. Future work may explore domain generalization and improving the granularity of attribute detection to handle varying qualities of human-written descriptions.
Summary updated