Introduction
Text-based person retrieval is a critical task in computer vision, involving the identification of specific individuals within vast image databases using natural language descriptions. While the demand for such systems is high, training them requires extensive annotated image-text pairs. To circumvent the high costs and privacy issues associated with real-world surveillance data, researchers have increasingly turned to synthetic data generated by diffusion models and GANs.
However, a significant "domain gap" exists between synthetic pretraining data and real-world scenarios. Visually, synthetic images often lack the dynamic shadows and high-frequency textural details found in reality. Textually, captioning models often produce repetitive and simplistic descriptions. When models are pretrained on this synthetic data, they frequently overfit to these unrealistic biases, leading to poor generalization in complex, real-world environments.
The CAMeL Framework
To bridge this gap, we introduce CAMeL (Cross-modality Adaptive Meta-Learning), a domain-agnostic pretraining framework. Instead of traditional supervised learning, CAMeL employs a meta-learning strategy to force the model to learn features that are invariant across different domains.
Stylization Tasks and Meta-Learning
CAMeL transforms synthetic pretraining data into distinct "tasks" that simulate real-world degradation. These include a Dynamic Illumination Task, which alters lighting and angles, and an Image Blurring Task, which simulates motion blur and focus drift. By treating these augmentations as meta-learning episodes, the model learns to ignore synthetic artifacts and focus on the fundamental semantic alignment between text and images.
Dynamic Error Sample Memory Unit
To maintain a high level of difficulty during contrastive learning, CAMeL incorporates an adaptive memory bank. This unit stores "hard negatives"—incorrect image-text pairs that the model previously misidentified as matches. Crucially, the system uses Mixup to blend features from different tasks, dynamically generating novel hard negatives. This acts as an automated curriculum, ensuring the model continuously learns from increasingly complex edge cases.
Adaptive Dual-Speed Update (ADSU)
To stabilize the meta-learning process, we propose the Adaptive Dual-Speed Update (ADSU) mechanism. By decoupling learning rates, the model can perform "fast updates" to rapidly adapt to task-specific nuances, while "slow updates" periodically aggregate this knowledge into global weights, ensuring long-term stability and consistency.
Experimental Results
CAMeL was rigorously evaluated on three standard real-world benchmarks: CUHK-PEDES, ICFG-PEDES, and RSTPReid.
State-of-the-Art Performance and Efficiency
The model achieves state-of-the-art results across all benchmarks. On the CUHK-PEDES dataset, CAMeL reached a 77.24% Recall@1 and 68.32% mAP. Remarkably, these results are achieved with only 145M parameters, making it significantly more efficient than competing models such as APTM (214M) and IRRA (194M).
Robustness to Missing Text
A standout feature of CAMeL is its resilience to incomplete queries. In experiments where up to five keywords (such as clothing type or color) were randomly masked from the text description, CAMeL maintained high retrieval accuracy. The performance gap between CAMeL and baseline models widened as more words were deleted, proving its superior ability to generalize from limited semantic context.
Conclusion
The CAMeL framework successfully addresses the domain gap in text-based person retrieval by leveraging meta-learning and dynamic sample management. By focusing on domain-invariant representations, CAMeL provides a robust, parameter-efficient solution that excels in real-world surveillance scenarios, even when faced with incomplete or "ill-posed" search queries.
Summary updated