Enhancing visual representation for text-based person searching

Wei Shen, Ming Fang, Yuxia Wang, Jiafeng Xiao, Diping Li, Huangqun Chen, Ling Xu, Weifeng Zhang

TL;DR

The VFE-TPS model significantly improves text-based person search by adapting the CLIP backbone with two novel auxiliary training tasks: Text Guided Masked Image Modeling (TG-MIM) and Identity Supervised Global Visual Feature Calibration (IS-GVFC). These additions allow the model to capture fine-grained visual details and resist "identity confusion" while remaining computationally efficient during inference.

What Problem Does This Paper Address?

Imagine a witness describing a suspect to a security officer: "A man in a red jacket, blue jeans, and a black backpack." In computer vision, Text-based Person Search aims to automate this by retrieving matching pedestrian images from a massive database using only that natural language description.

This task faces two massive hurdles:

  1. Cross-Modal Alignment: Images and text live in different mathematical "spaces." Bridging them requires understanding both the visual nuances of a person's appearance and the semantic meaning of the description.
  2. Identity Confusion: Pedestrians often look different across various cameras due to lighting and angles (low intra-class similarity), while different people wearing similar clothes can look nearly identical (high inter-class similarity).

Existing methods often rely on "explicit alignment"—using separate models to segment body parts or parse grammar. These are often slow, prone to error, and computationally expensive.

Methods

The authors propose VFE-TPS (Visual Feature Enhanced Text-based Person Search). They start with the powerful CLIP (Contrastive Language-Image Pre-training) model as a backbone but find that "zero-shot" CLIP performs poorly on specific pedestrian data. To fix this, they introduce two auxiliary tasks used only during training:

  • Text Guided Masked Image Modeling (TG-MIM): Standard masked modeling (like MAE) asks a model to "fill in the blanks" of a hidden image patch based on surrounding pixels. TG-MIM goes further: it uses the text query as a hint. If the text mentions "red shoes" and the shoes are masked, the model must use the text's semantic cue to reconstruct the pixels. This forces the image encoder to learn fine-grained details relevant to human descriptions.
  • Identity Supervised Global Visual Feature Calibration (IS-GVFC): To fight identity confusion, this task uses person ID labels to "calibrate" the visual features. It minimizes the distribution difference between images of the same person while maximizing the distance between different people.

Crucially, while the training involves these complex local interactions, the inference (search) stage only uses global features, making it much faster than models that require part-by-part alignment.

Datasets

The model was evaluated on three standard benchmarks:

  • CUHK-PEDES: The first and most widely used dataset for this task (13,003 identities).
  • ICFG-PEDES: A more challenging dataset with 54,522 images captured in various settings.
  • RSTPReid: A recent dataset focusing on complex scenarios with 20,505 images.

Key Insights and Ideas

  • CLIP is a Foundation, Not a Solution: The paper proves that while CLIP has incredible general knowledge, it needs specific "adaptation" tasks to handle the subtle differences in pedestrian attributes.
  • Implicit is Better Than Explicit: Instead of forcing the model to align "head to head" or "leg to leg" using external segmentation tools, TG-MIM allows the model to implicitly learn which visual regions correspond to which words.
  • The Efficiency Win: By moving the "heavy lifting" (local feature enhancement) to the training phase, the authors achieved state-of-the-art accuracy without the massive inference-time latency seen in other "fine-grained" models.

Key Results

VFE-TPS outperformed existing state-of-the-art (SOTA) models across all three benchmarks:

  • CUHK-PEDES: Achieved a 72.47% Rank-1 accuracy, a significant jump over previous methods.
  • Accuracy Gains: The model showed a notable improvement of 1% to 9% in Rank-1 accuracy compared to existing approaches.
  • Efficiency: In a head-to-head complexity analysis, VFE-TPS was significantly faster than competitors like RaSa and CFine, requiring only 112ms for inference compared to RaSa's 1025ms.

Limitations and Future Work

The authors acknowledge that the model still struggles with vague or incomplete queries. If a user provides a description that is too generic (e.g., "a man in a black suit"), the model may return many non-target pedestrians who fit that broad description.

Future Direction: The authors suggest developing multi-round interactive models. In this setup, the system could return preliminary results and then prompt the user for more specific details (e.g., "Does he have a hat?") to filter out false positives.

Summary updated

BibTeX
@article{shen2025enhancing,
  author = {Wei Shen and Ming Fang and Yuxia Wang and Jiafeng Xiao and Diping Li and Huangqun Chen and Ling Xu and Weifeng Zhang},
  title = {{Enhancing visual representation for text-based person searching}},
  journal = {Knowledge-Based Systems},
  year = {2025},
  doi = {10.1016/j.knosys.2024.112893},
}
Figure