Abstract
This paper introduces a robust framework for Text-Based Person Search (TBPS) that excels even when training data is scarce. By combining a novel Cross-Modal Momentum Contrastive (CM-MoCo) learning scheme with a specialized transfer learning strategy that "re-contextualizes" word embeddings from large-scale models like CLIP, the authors achieved new state-of-the-art results on the CUHK-PEDES benchmark while maintaining high efficiency.
Introduction
Text-Based Person Search (TBPS) is the task of finding a specific person in an image gallery using only a written description (e.g., "a man wearing a blue shirt and black pants"). Unlike general image-text retrieval, TBPS is a fine-grained task; every image is a pedestrian, requiring the model to distinguish between very subtle visual and textual cues.
The field faces two major hurdles:
- Data Scarcity: Annotating person images with detailed descriptions is expensive. Existing TBPS datasets are significantly smaller than generic datasets like MSCOCO.
- Negative Transfer: Simply fine-tuning a massive pre-trained model (like CLIP) on TBPS data often performs poorly. Generic models focus on coarse-grained concepts and struggle with the long, detail-heavy sentences typical of person descriptions.
Methodology
Cross-Modal Momentum Contrastive Learning (CM-MoCo)
Standard contrastive learning relies on "negative pairs" within a single mini-batch. If the batch is small, the model doesn't see enough variety to learn effectively. The authors propose CM-MoCo, which uses queues to store features from previous batches, decoupling the number of negative samples from the mini-batch size.
Unlike standard instance-level contrastive learning, their loss is identity-level. Since one person might have multiple images and descriptions, the model ensures that any image of "Person A" is matched with any description of "Person A," while treating all other identities in the queue as negatives.
Smart Transfer Learning Strategy
The authors found that fully fine-tuning a pre-trained text encoder (like CLIP's) leads to "negative transfer"—the model actually gets worse at capturing fine details. To fix this, they employ a "re-contextualization" strategy.
They freeze the pre-trained CLIP text encoder to use it as a high-quality word embedder. To capture the relationships between words in long sentences, they add a trainable Bi-GRU layer and a max-pooling layer on top. This allows the model to benefit from CLIP’s broad knowledge while learning the specific "language" of pedestrian descriptions.
Experimental Results
The proposed method set a new high bar on the CUHK-PEDES dataset, which contains 40,206 images of 13,003 identities.
- Performance: Their ResNet101-based model achieved a Rank-1 accuracy of 64.08% and an mAP of 60.08%, outperforming previous complex multi-scale models.
- Efficiency: The retrieval time is just 0.02 seconds for over 6,000 queries, making it suitable for real-time applications.
- Storage: Because it only uses global features, the offline feature storage is 3–8x smaller than competing methods like NAFS or TIPCB.
- Ablation Success: The transfer learning strategy alone provided a massive boost, jumping from near-zero performance with naive CLIP fine-tuning to over 60% Rank-1 accuracy.
Conclusion and Future Work
This research demonstrates that a single-scale architecture can be both more efficient and more accurate than multi-scale counterparts when paired with robust contrastive learning and smart transfer strategies. Future work will involve testing on more diverse environments (e.g., different weather or lighting) and developing models that can handle the inherent ambiguity or "pragmatic vagueness" in human-provided descriptions.
Summary updated