Graph-Based Cross-Domain Knowledge Distillation for Cross-Dataset Text-to-Image Person Retrieval

Bingjun Luo, Jinpeng Wang, Zewen Wang, Junjie Zhu, Xibin Zhao

Abstract

Text-to-image person retrieval is a critical task for smart city applications, yet existing models often fail when deployed in new environments due to domain shift and the inherent modality gap between text and images. This paper presents GCKD, a novel framework designed for Unsupervised Domain Adaptation (UDA). GCKD employs Graph-based Multi-domain Propagation (GMP) to bridge disparate datasets and Contrastive Momentum Knowledge Distillation (CMKD) to align cross-modal features. Experimental results demonstrate that GCKD significantly outperforms current state-of-the-art unsupervised methods across multiple benchmarks.

Introduction

Modern surveillance systems rely on the ability to retrieve specific individuals based on natural language descriptions. While supervised models achieve high accuracy, they require exhaustive manual labeling for every new deployment site. In practice, two primary obstacles hinder performance:

  1. Domain Shift: Variations in lighting, resolution, and environment between training (source) and deployment (target) datasets.
  2. Modality Gap: The difficulty of mapping discrete textual attributes to continuous visual pixel data across different domains without explicit labels.

GCKD addresses these by transferring knowledge from a labeled source to an unlabeled target through a combination of graph-based feature smoothing and stable pseudo-labeling.

Methodology

The GCKD framework is built upon two core components: Graph-based Multi-domain Propagation (GMP) and Contrastive Momentum Knowledge Distillation (CMKD).

The GCKD architecture integrates Graph-based Multi-domain Propagation (GMP) for domain alignment and Contrastive Momentum Knowledge Distillation (CMKD) for robust cross-modal learning.

Graph-based Multi-domain Propagation (GMP)

To mitigate domain shift, GMP constructs a dynamic cross-domain embedding graph using K-Nearest Neighbors (KNN). This graph links similar samples from both source and target domains. A Graph Neural Network (GNN) then propagates feature information across these links, effectively "smoothing" the feature space. This process ensures that target domain features are represented in a manner consistent with the source domain, facilitating better cross-dataset generalization.

Contrastive Momentum Knowledge Distillation (CMKD)

CMKD bridges the modality gap using a teacher-student paradigm. The "Teacher" model maintains a stable reference via Exponential Moving Average (EMA) of the student's weights, generating high-confidence pseudo-labels for the unlabeled target data. The "Student" model learns to match these teacher predictions while performing fine-grained contrastive matching against large memory banks of previous features. This setup prevents the model from converging on noisy labels and enables robust learning from unlabeled target data.

Experimental Evaluation

The authors evaluated GCKD on three major benchmarks: ICFG-PEDES, RSTPReid, and CUHK-PEDES. The experiments followed a cross-dataset protocol where the model is trained on a labeled source and tested on an unlabeled target.

Performance comparison of GCKD against supervised and unsupervised baselines on the ICFG-PEDES to RSTPReid and CUHK-PEDES tasks.

As shown in the results, GCKD consistently establishes new state-of-the-art performance for unsupervised retrieval. Notably, on the ICFG-PEDES $\rightarrow$ RSTPReid task, GCKD achieved a Rank-1 accuracy of 59.95%, representing a significant improvement over the previous best UDA method, ReCLIP (50.35%). Across all tasks, GCKD improved Rank-1 Recall by an average of 4.37% and mean Average Precision (mAP) by 3.29% compared to existing baselines.

Conclusion and Future Work

GCKD demonstrates that local similarity propagation via graphs and stable momentum-based distillation are powerful tools for unsupervised cross-domain retrieval. By focusing on local connections rather than global distribution matching, the model effectively bridges the gap between disparate datasets. Future research will focus on reducing the computational overhead associated with dynamic graph construction and exploring adversarial training to further enhance domain robustness.

Summary updated

BibTeX
@inproceedings{luo2025graph,
  author = {Bingjun Luo and Jinpeng Wang and Zewen Wang and Junjie Zhu and Xibin Zhao},
  title = {{Graph-Based Cross-Domain Knowledge Distillation for Cross-Dataset Text-to-Image Person Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i1.32037},
}
Figure