TL;DR
Traditional text-based person search methods rely on strict one-to-one image-text matching, which inadvertently ignores "weak positive" pairs—descriptions of the same person captured from different camera views. This paper introduces an uncertainty-aware framework that explicitly estimates and regularizes the ambiguity of these weak pairs, alongside a group-wise matching loss to enrich the embedding space. By preventing the model from incorrectly pushing away valid candidates, this approach achieves state-of-the-art performance across major person search benchmarks.
What Problem Does This Paper Address?
Text-based person search aims to retrieve an image of a specific person from a large gallery using a natural language description. Prevailing methods rely heavily on contrastive learning, enforcing a strict one-to-one correspondence between an image and its exact text annotation.
However, real-world datasets are collected across multiple camera views. An annotator looking at a person from Camera 1 might describe a "black backpack," while an image of the same person from Camera 2 might only show them from the front, obscuring the backpack entirely.
Standard contrastive learning paradigms treat the Camera 2 image and the Camera 1 text as a negative pair, forcing the model to push them apart in the feature space. The authors define these as weak positive pairs. Disregarding them discards valuable shared identity patterns and causes the model to overfit to specific viewpoints, limiting its real-world retrieval accuracy.
Methods
The authors build their approach on top of the prevailing APTM framework (utilizing a Swinv2-B image encoder and BERT-base text/cross-encoders) and introduce two novel components during the fine-tuning phase:
-
Uncertainty Estimation & Regularization: Instead of treating weak positive pairs blindly, the model dynamically measures their semantic discrepancy. It calculates an intra-modality consistency score ($s_w$) by comparing the anchor features with the weak positive features. It then transforms this into an uncertainty score: $$u_w = \exp(-s_w)$$ If the uncertainty is high (meaning the text description and the image from the alternative view have a large semantic gap), an Uncertainty-Aware Image-Text Contrastive (ITC) Loss softly reduces the loss weight. This prevents noisy or incomplete descriptions from negatively impacting the model's training.
-
Group-wise Image-Text Matching (GITM) Loss: Standard Image-Text Matching (ITM) typically evaluates a 1:2 ratio of positive to negative pairs. The authors propose a group-wise strategy that constructs a more diverse neighborhood consisting of 1 strong positive pair, 2 weak positive pairs, and 6 dynamically mined hard negative pairs.
Importantly, these training-time modifications do not add any new parameters or modules, meaning inference speed remains completely unchanged compared to the baseline model.
Datasets
The model is evaluated on three widely recognized text-based person search benchmarks:
- CUHK-PEDES: 40,206 images of 13,003 individuals, with two textual descriptions per image.
- RSTPReid: 20,505 images of 4,101 individuals, featuring 5 images from different cameras per identity.
- ICFG-PEDES: 54,522 images of 4,102 individuals, each accompanied by one textual description.
For pre-training, the authors utilize the synthetic dataset MALS, which contains over 1.5 million image-text pairs annotated with attribute labels.
Key Insights and Ideas
- Camera-View Bias as a Source of Uncertainty: Text descriptions are inherently tied to camera angles because humans can only describe what is visible. Embracing this variation via uncertainty modeling is mathematically superior to forcing strict, artificial alignment.
- Soft Regulation Over Hard Filtering: Rather than filtering out ambiguous data, dynamically scaling the loss based on feature consistency allows the model to safely extract shared identity features across different perspectives.
- Structural Enrichment via Groups: Expanding the local neighborhood during metric learning (via GITM) prevents a skewed representation space, forcing the cross-encoder to learn finer granularities between highly similar candidates.
Key Results
The proposed method demonstrates substantial performance gains, particularly in mean Average Precision (mAP), which reflects overall ranking quality:
- CUHK-PEDES: Achieved a state-of-the-art 72.44% mAP, outperforming competitive methods like RaSa by +3.06% and the re-implemented baseline by +3.59%.
- RSTPReid & ICFG-PEDES: Reached 56.11% mAP (+3.55% over APTM) and 48.23% mAP (+6.94% over RaSa), respectively.
- Domain Generalization: When directly deployed to unseen target datasets without fine-tuning, the framework outperformed existing methods significantly (e.g., a +11.34% Rank-1 accuracy boost on the CUHK-PEDES $\rightarrow$ ICFG-PEDES task).
Qualitatively, the uncertainty-aware model shows a much stronger capability to recognize small-scale or easily obscured targets, such as backpacks, hand-held items, and tote bags, which are frequently missed by standard contrastive baselines.
Limitations and Future Work
- Sensitivity to Noisy Supervision: The authors note that their uncertainty learning is most effective when weak positives are informative but imperfectly aligned. If the dataset contains severe annotation mismatches or extreme occlusions, the weak positives can behave like pseudo-negatives, limiting performance gains.
- Training Overhead: While inference latency is unaffected, the group-wise composition in GITM increases the wall-clock training time per epoch (from 9:47 to 13:50 in their environment) and increases peak GPU memory usage due to the evaluation of more image-text pairs simultaneously.
Summary updated