[Paper Review] Text-Based Person Search with Limited Data
The paper proposes CM-MoCo, a cross-modal momentum contrastive learning framework, plus a transfer-learning strategy from large-scale image-text data, to improve text-based person search under limited data, achieving state-of-the-art on CUHK-PEDES.
Text-based person search (TBPS) aims at retrieving a target person from an image gallery with a descriptive text query. Solving such a fine-grained cross-modal retrieval task is challenging, which is further hampered by the lack of large-scale datasets. In this paper, we present a framework with two novel components to handle the problems brought by limited data. Firstly, to fully utilize the existing small-scale benchmarking datasets for more discriminative feature learning, we introduce a cross-modal momentum contrastive learning framework to enrich the training data for a given mini-batch. Secondly, we propose to transfer knowledge learned from existing coarse-grained large-scale datasets containing image-text pairs from drastically different problem domains to compensate for the lack of TBPS training data. A transfer learning method is designed so that useful information can be transferred despite the large domain gap. Armed with these components, our method achieves new state of the art on the CUHK-PEDES dataset with significant improvements over the prior art in terms of Rank-1 and mAP. Our code is available at https://github.com/BrandonHanx/TextReID.
Motivation & Objective
- Address the scarcity of labeled TBPS data by leveraging limited benchmarking datasets more effectively.
- Enrich cross-modal negative samples via momentum-based contrastive learning to improve discrimination.
- Leverage knowledge from large-scale image-text pairs through a careful cross-modal transfer learning strategy to mitigate domain gaps.
Proposed method
- Introduce cross-modal momentum contrastive learning (CM-MoCo) with separate visual/textual query and momentum key encoders and dedicated queues for visuals, text, and identities.
- Formulate cross-modal contrastive loss that uses query encoders as anchors, key encoders as positives, and queues as negatives.
- Combine CM-MoCo with alignment and identity losses in an end-to-end training framework.
- Propose a cross-modal transfer learning strategy that freezes the text encoder from a large pre-trained model and contextualizes word embeddings with a Bi-GRU, to bridge domain gaps.
- Post-process with cross-modal k-reciprocal reranking to further boost retrieval performance.
Experimental results
Research questions
- RQ1Can cross-modal momentum contrastive learning (CM-MoCo) make effective use of limited TBPS data by decoupling negatives from batch size?
- RQ2Does transferring knowledge from large-scale image-text pre-training help TBPS when domain gap is large, and how should this transfer be performed to avoid negative transfer?
- RQ3What combination of CM-MoCo, alignment, and identity losses yields the best TBPS performance on CUHK-PEDES?
- RQ4What transfer-learning design for the text modality best mitigates domain gaps between TBPS data and generic image-text data?
Key findings
- CM-MoCo significantly improves text-to-image and image-to-text retrieval over baselines on CUHK-PEDES.
- Transferring only word embeddings (via a frozen CLIP text encoder with a Bi-GRU contextualizer) from large image-text datasets yields substantial gains and avoids negative transfer.
- Using larger cross-modal queues (e.g., 1024 or 2048) in CM-MoCo generally improves performance, but excessively large queues can harm due to data scarcity.
- The proposed transfer strategy for the text stream (word embeddings plus contextualization) outperforms naive full-model transfer.
- CM-MoCo consistently boosts performance across models, adding about 1.5% average improvement in Rank metrics when integrated.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.