Learning Comprehensive Representations with Richer Self for Text-to-Image Person Re-Identification

Shuanglin Yan, Neng Dong, Jun Liu, Liyan Zhang, Jinhui Tang · DOI

Abstract

Text-to-image person re-identification (TIReID) typically treats cross-modal matching as a strict one-to-one problem, failing to account for the inherent many-to-many relationships caused by varying camera views and diverse textual descriptions. This paper proposes LCR$^2$S (Learning Comprehensive Representations with Richer Self), a framework that leverages a "Richer Self" teacher network to learn enriched multi-view representations. Through knowledge distillation, these comprehensive features are transferred to a lightweight student model, enabling state-of-the-art retrieval performance with high efficiency at inference time.

Introduction

The goal of Text-to-Image Person Re-Identification (TIReID) is to retrieve images of a specific pedestrian from a large gallery based on a textual description. Historically, models have approached this as a standard one-to-one matching problem, attempting to align a single image with a single text description. However, real-world scenarios involve a single person being captured by multiple cameras from various angles (front, back, side) and described in multiple ways, creating a complex many-to-many matching scenario.

Directly forcing all images and texts of a person to match using standard contrastive loss can lead to model confusion, as a description of a person's face may not align well with an image of their back. Furthermore, during real-world inference, only a single text query is available, making it impossible to rely on multi-view context at test time. LCR$^2$S addresses these challenges by teaching a model about multi-view relationships during training without requiring multi-view data during deployment.

The LCR$^2$S Framework

The LCR$^2$S framework utilizes a Knowledge Distillation (KD) setup consisting of a teacher and a student network.

Overview of the LCR$^2$S framework. (a) illustrates the text-to-image retrieval task. (b) shows the many-to-many matching problem. (c) details the proposed Teacher-Student distillation framework.

The Teacher Network ("Richer Self")

During training, the teacher network builds a "support set" by pulling in other images or texts of the same person from different camera views. A Multi-Head Attentional Fusion (MHAF) module blends the primary input with its support set to create an "enriched" feature representation. These enriched features are aligned using multi-stage and cross-stage Cross-Modal Projection Matching (CMPM) losses. By enriching a single view with a support set, the model indirectly bridges the gap between different views without degrading the underlying embedding space.

The Student Network and Distillation

Because support sets are unavailable during inference, a lightweight student network (standard ResNet50 and TextCNN dual-encoder) is trained to mimic the teacher. The student takes only a single image or text as input but is penalized if its output deviates from the enriched, multi-view output of the teacher. This dual distillation process involves:

  • Intra-modal feature distillation: Mimicking the exact feature vectors of the teacher.
  • Inter-modal relation distillation: Mimicking how the teacher scores similarities between images and text.

Experimental Evaluation

The model was evaluated on three standard benchmarks: CUHK-PEDES, ICFG-PEDES, and RSTPReid. LCR$^2$S achieved new state-of-the-art (SOTA) performance across all three datasets:

  • CUHK-PEDES: Achieved a Rank-1 accuracy of 67.36%, outperforming the previous SOTA by 2.11%.
  • ICFG-PEDES: Achieved a Rank-1 accuracy of 57.93%.
  • RSTPReid: Achieved a Rank-1 accuracy of 54.95%, a 3.4% improvement over the previous SOTA.

Crucially, the student model maintains high efficiency, requiring only 12.37 FLOPs and taking 17.75 seconds for retrieval, matching the speed of simple baseline models while significantly outperforming them in accuracy.

Conclusion

LCR$^2$S demonstrates that indirect many-to-many matching via knowledge distillation is a powerful approach for TIReID. By confining complex multi-view processing to the training phase, the framework provides the accuracy benefits of a complex model with the retrieval speed of a vanilla dual-encoder. Future work will explore direct loss functions that can natively handle many-to-many matching effectively.

Summary updated

BibTeX
@inproceedings{yan2023learning,
  author = {Shuanglin Yan and Neng Dong and Jun Liu and Liyan Zhang and Jinhui Tang},
  title = {{Learning Comprehensive Representations with Richer Self for Text-to-Image Person Re-Identification}},
  booktitle = {ACM Multimedia},
  year = {2023},
  doi = {10.1145/3581783.3611832},
}
Figure