Dual-Granularity Cross-Modal Identity Association for Weakly-Supervised Text-to-Person Image Matching

Yafei Zhang, Yongle Shang, Huafeng LiarXiv 2025 · arXiv

TL;DR

This paper introduces a dual-granularity identity association framework for weakly-supervised text-to-person image matching, eliminating the need for expensive global identity annotations. By combining intra-batch (local) and dataset-wide (global) cross-modal relationships with an information-asymmetric hard sample mining strategy, the proposed method significantly improves matching accuracy and robustness, setting a new state-of-the-art for weakly-supervised person search.

What Problem Does This Paper Address?

Text-to-person image matching (also known as text-based person re-identification) aims to retrieve a specific pedestrian from a massive image database using only a natural language description. While fully supervised methods perform well, they require massive, manually labeled datasets mapping text to specific image identities across multiple cameras—a process that is incredibly expensive and scales poorly.

To cut costs, researchers have turned to weakly-supervised settings, where each image is paired with a single text description, but the underlying identity links between different pairs are completely unknown. Existing approaches typically rely on dataset-wide clustering (like DBSCAN) to guess these identity relationships. However, clustering algorithms often fail to separate visually or semantically similar individuals (hard samples), leading to noisy pseudo-labels and degraded model performance.

Methods

The authors propose a three-pronged architecture to model identity relationships at both local and global granularities, bypassing the limitations of traditional clustering:

  1. Basic Feature Extraction (BFE) & Local Relationship Construction (LRC): Utilizing pre-trained CLIP encoders, the model extracts global image and text features. LRC then computes intra-modality self-similarity matrices within each training batch, combining them via a Hadamard product to establish clean, bidirectional cross-modal identity constraints. A relationship softening mechanism is applied to mitigate the impact of mismatched pairs.
  2. Global Sample Relationship Construction and Feature Refinement (GSRC-FR): To look beyond a single batch, the framework uses the visual modality as an anchor to measure relevance across the entire dataset via maintained memory banks. Because images contain richer appearance details than abstract text, they serve as reliable "feature centers." An adaptive weight adjustment mechanism dynamically boosts the model's sensitivity to weaker, ambiguous associations.
  3. Information-Asymmetric Sample Pair Construction and Consistency Learning (IASC-CL): To compensate for the absence of labeled hard samples, the authors intentionally introduce semantic discrepancies. They apply data augmentation (like random erasing) to images and token masking to text, forcing the model to learn robust, invariant representations under asymmetric information conditions via contrastive consistency learning.
Figure 2: Overall architecture of the proposed method. The input image-text pairs are first processed by the BFE module to extract basic representations and construct local cross-modal identity associations within each batch by integrating information from both modalities. The model then uses the visual modality as an anchor to explore broader cross-modal identity relationships from a global perspective. These global associations are leveraged to further optimize the model, improving its ability to distinguish between different identities. Additionally, information-asymmetric sample pairs are generated through specific transformations on the original inputs, enabling the model to better handle hard samples.

Datasets

The method was validated on three widely used benchmark datasets for text-to-person retrieval:

  • CUHK-PEDES: Contains 40,206 images and 80,412 text descriptions across 13,003 identities.
  • ICFG-PEDES: Consists of 54,522 images corresponding to 4,102 identities, featuring longer, more detailed descriptions (averaging 37 words).
  • RSTPReid: Includes 20,505 images of 4,101 identities captured from different cameras, specifically designed to mimic complex real-world scenarios.

Key Insights and Ideas

  • Images as Relational Anchors: Text descriptions are inherently abstract and ambiguous. By using the visual modality as the anchor for global relationship modeling, the model leverages fine-grained visual cues to resolve semantic ambiguity in text.
  • Dual-Granularity Collaboration: Relying solely on global clustering misses fine-grained batch dynamics. Combining local (intra-batch) constraints with global (dataset-wide) memory banks creates a more precise and robust pseudo-labeling pipeline.
  • Artificial Asymmetry for Hard Mining: Instead of struggling to find naturally occurring hard samples in an unlabeled dataset, intentionally degrading the information in one modality (masking text or erasing image parts) forces the model to learn robust alignment boundaries near ambiguous decision zones.

Key Results

The proposed method achieves state-of-the-art performance among weakly-supervised methods and even challenges some fully supervised approaches:

  • On CUHK-PEDES, it achieved a 73.06% Rank-1 accuracy and 64.88% mAP, outperforming the previous best weakly-supervised method (CPCL) by 3.03% and 1.69% respectively.
  • On ICFG-PEDES, it reached 63.71% Rank-1 accuracy, proving its capability to handle complex, fine-grained textual descriptions.
  • On RSTPReid, it improved Rank-1 accuracy by 2.95% over CPCL, hitting 61.30%.
  • It dramatically outperforms unsupervised methods (which use Large Vision-Language Models to generate captions), beating them by up to 35.46% Rank-1 accuracy on the ICFG-PEDES dataset.

Limitations and Future Work

While highly effective, the framework currently relies on fixed thresholds and masking ratios (experimentally found to be optimal at 0.5 for text masking). The authors note that future work will focus on exploring multi-modal dynamic weight adaptation to automatically tune these parameters during training. Additionally, improving cross-scenario generalization remains an open goal to ensure the model performs reliably when deployed across entirely unseen environments or camera networks.

Summary updated

Abstract

Weakly supervised text-to-person image matching, as a crucial approach to reducing models' reliance on large-scale manually labeled samples, holds significant research value. However, existing methods struggle to predict complex one-to-many identity relationships, severely limiting performance improvements. To address this challenge, we propose a local-and-global dual-granularity identity association mechanism. Specifically, at the local level, we explicitly establish cross-modal identity relationships within a batch, reinforcing identity constraints across different modalities and enabling the model to better capture subtle differences and correlations. At the global level, we construct a dynamic cross-modal identity association network with the visual modality as the anchor and introduce a confidence-based dynamic adjustment mechanism, effectively enhancing the model's ability to identify weakly associated samples while improving overall sensitivity. Additionally, we propose an information-asymmetric sample pair construction method combined with consistency learning to tackle hard sample mining and enhance model robustness. Experimental results demonstrate that the proposed method substantially boosts cross-modal matching accuracy, providing an efficient and practical solution for text-to-person image matching.
BibTeX
@misc{zhang2025dual,
  author = {Yafei Zhang and Yongle Shang and Huafeng Li},
  title = {{Dual-Granularity Cross-Modal Identity Association for Weakly-Supervised Text-to-Person Image Matching}},
  year = {2025},
  eprint = {2507.06744},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.06744},
}

Loading related content...

Figure