Abstract
Text-based Person Anomaly Search (TPAS) is an emerging task that extends traditional person retrieval by requiring models to identify individuals based on both physical appearance and specific behavioral anomalies. This paper presents the approach developed by the HFUT-LMC team for the WWW 2025 challenge. By leveraging the X-VLM (All-in-one Vision-Language Model) architecture and introducing a novel Similarity Coverage Analysis (SCA) post-processing strategy, we address the semantic gap between static imagery and dynamic action descriptions. Our findings highlight a "less is more" phenomenon in synthetic-to-real domain adaptation, where fine-tuning on a small, high-quality subset of synthetic data significantly outperforms large-scale training. Our method achieved a Recall@1 of 85.49%, securing fourth place in the competition.
1. Introduction
Traditional Text-based Person Search (TPS) focuses on matching static attributes, such as clothing color or gender, to image features. However, real-world surveillance applications increasingly demand the ability to identify anomalous behaviors—such as falling, fighting, or running—within a crowd. This task, known as Text-based Person Anomaly Search (TPAS), introduces two primary challenges: the semantic divide between static image features and motion-oriented textual descriptions, and description ambiguity, where similar textual queries for different individuals lead to overlapping and incorrect retrieval results.
2. Methodology
2.1 Model Architecture
We utilize the X-VLM (All-in-one Vision-Language Model) as our backbone. X-VLM is designed for multi-grained vision-language alignment, consisting of a dedicated image encoder, a text encoder, and a cross-modal encoder that facilitates deep fusion of features. This architecture allows the model to capture both global context and fine-grained interactions between visual regions and textual tokens.
2.2 Fine-tuning Objectives
The model is optimized using a dual-loss strategy:
- Contrastive Loss: This loss aligns image and text representations in a shared latent space. By maximizing the cosine similarity of positive image-text pairs and minimizing it for in-batch negatives, the model learns a coarse-grained alignment.
- Match Loss: To refine the retrieval, we employ a binary classification task. The cross-modal encoder processes the fused features, and the
[CLS]token is used to predict whether a specific image-text pair is a true match. This provides a more granular assessment of the relationship between the person's appearance and the described behavior.
2.3 Similarity Coverage Analysis (SCA)
A significant contribution of our work is the Similarity Coverage Analysis (SCA) strategy. In TPAS, different text queries often share high semantic similarity (e.g., "a person falling on the sidewalk" vs. "a man collapsing in public"). Standard retrieval models often return the same high-confidence image for both queries, even if that image only correctly matches one of them.
SCA acts as a post-processing disambiguation step:
- Identification: The system identifies groups of similar text descriptions that yield identical top-ranked image results.
- Confidence Comparison: It compares the model's confidence scores for these results across the different queries.
- Re-ranking: If a result has a lower confidence score in one query group compared to another, the SCA strategy replaces that result with the next best candidate ($j+1$) in the ranking. This ensures that the most representative images are prioritized for the queries they match most uniquely, effectively "covering" the search space more accurately.
3. Experiments and Results
3.1 Dataset and Training
We evaluated our approach on the Pedestrian Anomaly Behavior (PAB) dataset, which contains over 1 million synthetic image-text pairs for training and 1,978 real-world pairs for testing. The synthetic data covers a wide range of normal and abnormal behaviors, such as falling and running.
3.2 The "Less is More" Insight
Our experiments revealed a critical insight regarding synthetic data: using the entire 1-million-pair dataset led to a decrease in performance on real-world test data. We achieved our peak performance (85.49% R@1) using only 10,000 (1W) strategically selected pairs. This suggests that excessive synthetic data introduces noise or causes the model to overfit to synthetic artifacts, hindering its ability to generalize to real-world surveillance imagery.
3.3 Performance Metrics
The proposed method demonstrated robust retrieval capabilities:
- Recall@1: 85.49%
- Recall@5: 99.29%
- Recall@10: 99.80%
Ablation studies confirmed that the SCA strategy alone improved the baseline X-VLM Recall@1 by 2.68%, demonstrating its effectiveness as a plug-and-play optimization for cross-modal retrieval.
4. Discussion and Conclusion
While our approach achieved high accuracy, a ~4% gap remains between our results and the top-ranked competition entry. Future work will focus on narrowing the synthetic-to-real domain gap through more sophisticated data selection and domain adaptation techniques. Additionally, as TPAS currently relies on static images to infer motion, incorporating temporal cues from video sequences could further enhance the model's understanding of complex behavioral anomalies. In conclusion, the combination of X-VLM's cross-modal fusion and the SCA disambiguation strategy provides a highly efficient framework for behavioral-based person search.
Summary updated