Exploiting the Textual Potential from Vision-Language Pre-training for Text-based Person Search

Guanshuo Wang, Fufu Yu, Junjie Li, Qiong Jia, Shouhong DingarXiv 2023

Abstract

Text-based Person Search (TPS) is targeted on retrieving pedestrians to match text descriptions instead of query images. Recent Vision-Language Pre-training (VLP) models can bring transferable knowledge to downstream TPS tasks, resulting in more efficient performance gains. However, existing TPS methods improved by VLP only utilize pre-trained visual encoders, neglecting the corresponding textual representation and breaking the significant modality alignment learned from large-scale pre-training. In this paper, we explore the full utilization of textual potential from VLP in TPS tasks. We build on the proposed VLP-TPS baseline model, which is the first TPS model with both pre-trained modalities. We propose the Multi-Integrity Description Constraints (MIDC) to enhance the robustness of the textual modality by incorporating different components of fine-grained corpus during training. Inspired by the prompt approach for zero-shot classification with VLP models, we propose the Dynamic Attribute Prompt (DAP) to provide a unified corpus of fine-grained attributes as language hints for the image modality. Extensive experiments show that our proposed TPS framework achieves state-of-the-art performance, exceeding the previous best method by a margin.

Introduction

Text-based Person Search (TPS) involves finding a specific pedestrian in a large image gallery based on a natural language description. While Vision-Language Pre-training (VLP) models like CLIP have revolutionized cross-modal tasks, their application in TPS has been limited. Most existing methods suffer from "model collapse" when fine-tuning the textual encoder on small, domain-specific datasets, leading researchers to discard the pre-trained text tower in favor of standard models like BERT or LSTM.

Figure 1: Motivation for the TP-TPS framework, highlighting the retention of the pre-trained textual encoder which was often abandoned in previous works.

As shown in Figure 1, this practice breaks the pre-trained semantic bridge between modalities. The authors argue that maintaining both pre-trained towers is essential for preserving the rich cross-modal alignment learned during large-scale pre-training. This paper introduces the TP-TPS (Textual Potential for TPS) framework to address these challenges.

Methodology

The TP-TPS framework leverages the "dual-tower" potential of VLP models through three primary components: a robust baseline, multi-integrity constraints, and dynamic attribute prompts.

Figure 2: The architecture of the TP-TPS framework, including the VLP-TPS baseline, MIDC, and DAP modules.

VLP-TPS Baseline

Unlike previous approaches, TP-TPS initializes both visual and textual backbones with CLIP weights. To mitigate model collapse, the lower layers of the textual encoder are frozen, preserving universal language representations while allowing higher layers to adapt to the person-search domain. This ensures the model retains the foundational cross-modal alignment from pre-training.

Multi-Integrity Description Constraints (MIDC)

Real-world text queries are frequently incomplete or noisy. MIDC addresses this by using a data augmentation strategy that generates "broken" versions of original descriptions—for instance, by erasing adjectives like "black" or nouns like "jacket". By forcing the model to align these partial descriptions with the full image, the textual modality becomes more robust to varying levels of descriptive integrity and learns that individual phrases carry specific weight.

Dynamic Attribute Prompt (DAP)

Inspired by CLIP’s zero-shot capabilities, DAP provides fine-grained supervision for the visual encoder. It extracts specific attribute-level prompts (e.g., "The person wears a blue shirt") from the original description. These prompts act as language hints, guiding the visual encoder to focus on local details. Crucially, a stop-gradient is applied to the text side during this phase to prevent the textual model from drifting away from its pre-trained state, allowing the text to act as a fixed teacher for the vision model.

Experimental Results

The framework was evaluated on three major benchmarks: CUHK-PEDES, ICFG-PEDES, and RSTPReid.

  • CUHK-PEDES: TP-TPS achieved a state-of-the-art 70.16% Rank-1 accuracy, surpassing the previous best method (IVT) by a significant 4.47% margin. It also reached 66.32% mAP.
  • ICFG-PEDES: The model reached 60.64% Rank-1, a 6.41% improvement over the SSAN baseline.
  • RSTPReid: Achieved 50.65% Rank-1, outperforming the previous best by 4.95%.

Ablation studies confirmed that while the dual-tower VLP baseline is strong (65.38% R1), the addition of MIDC and DAP provides the critical performance boost required to reach the top spot.

Conclusion and Limitations

TP-TPS demonstrates that fully exploiting the textual potential of VLP models is key to advancing Text-based Person Search. By maintaining the pre-trained alignment and introducing robustness-enhancing constraints, the model sets new benchmarks across standard datasets.

However, the framework introduces computational overhead due to the generation of multiple description variants and attribute prompts during training. Additionally, the DAP module's reliance on external NLP toolkits for syntax analysis presents a dependency that could affect performance if the toolkit fails on complex sentences. Future research will explore more efficient prompt generation and integrated syntax analysis.

Summary updated

BibTeX
@misc{wang2023exploiting,
  author = {Guanshuo Wang and Fufu Yu and Junjie Li and Qiong Jia and Shouhong Ding},
  title = {{Exploiting the Textual Potential from Vision-Language Pre-training for Text-based Person Search}},
  year = {2023},
  eprint = {2303.04497},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.04497},
}
Figure