Self-Supervised Pre-Training for Transformer-Based Person Re-Identification

Hao Luo, Pichao Wang, Yi Xu, Feng Ding, Yanxin Zhou, Fan Wang, Hao Li, Rong JinarXiv 2021

Introduction

Vision Transformers (ViTs) have demonstrated remarkable capabilities in computer vision but are notoriously "data-hungry." In the specialized field of Person Re-Identification (ReID)—where the objective is to identify the same individual across disparate camera views—this data requirement presents a significant challenge. Researchers from Alibaba Group have introduced a novel framework that optimizes ViTs for ReID by rethinking the pre-training process. Their approach demonstrates that self-supervised pre-training on person-specific data (LUPerson) significantly outperforms standard ImageNet pre-training, achieving state-of-the-art results with increased efficiency.

The Domain Gap in Person Re-Identification

Most ReID models rely on pre-training from ImageNet, a dataset composed of general object categories. However, a substantial domain gap exists between ImageNet and ReID tasks. While ImageNet focuses on broad category-level classification, ReID requires identifying fine-grained differences between human identities under varying lighting, viewpoints, and occlusions.

Convolutional Neural Networks (CNNs) manage this gap through inherent inductive biases like translation invariance. Transformers, lacking these biases, typically require even larger datasets (e.g., ImageNet-21K) to compensate. This research bridges the gap by tailoring both data selection and model architecture specifically for the person ReID task.

Methodology

The proposed framework utilizes a three-pronged approach to enhance Transformer performance:

  1. Self-Supervised Learning (SSL) with DINO: The researchers employ the DINO (Self-distillation with no labels) method to pre-train ViTs on the unlabeled LUPerson dataset. This large-scale dataset contains over 4 million human images, providing a more relevant feature space than general object datasets.
  2. Catastrophic Forgetting Score (CFS): To optimize training, the authors developed CFS to evaluate the similarity between pre-training images and the target ReID domain. By utilizing two proxy models—one pre-trained on the source and one fine-tuned on the target—they can filter the source dataset to include only the most relevant images.
  3. IBN-based Convolution Stem (ICS): Standard ViTs use a simple "patchify" layer for tokenization. The authors replaced this with a convolutional stem incorporating Instance Normalization (IN) and Batch Normalization (BN). This "ICS" module helps the model learn features invariant to appearance changes like lighting and camera viewpoint.
The proposed ICS module (d) compared to standard stems, incorporating Instance Normalization to improve domain invariance.

Experimental Results and Insights

The framework was evaluated on standard benchmarks including Market-1501 and MSMT17. Several key insights emerged from the experiments:

  • Domain-Specific SSL is Superior: Pre-training on unlabeled person data is far more effective for ReID than supervised pre-training on general objects. The fine-grained features learned from human silhouettes and clothing transfer much more effectively to the target task.
  • Efficiency through Data Selection: Using the CFS metric, the authors found that pre-training on the "best" 50% of LUPerson yielded better results than using the full 100%. This suggests that CFS successfully filters out low-quality or irrelevant images that act as noise, saving approximately 30% of total training time.
  • Architectural Robustness: The ICS module significantly boosts performance, particularly in Unsupervised Domain Adaptation (UDA) and Unsupervised Learning (USL) settings, by making the model more robust to domain shifts.
The proposed pre-training paradigm significantly outperforms the baseline across Supervised, UDA, and USL settings on Market-1501 and MSMT17.

On the challenging MSMT17 dataset, the ViT-S/16 model achieved 64.2% mAP in a supervised setting, compared to a 53.5% mAP baseline. The improvements in Unsupervised Learning were even more dramatic, with mAP soaring from 13.5% to 50.6%.

Conclusion

This research demonstrates that specialized self-supervised pre-training and architectural refinements can overcome the data-hungry nature of Transformers in ReID. While these models are highly specialized for person ReID and may not generalize to unrelated tasks like vehicle ReID, they set a new standard for performance and efficiency in the field. Future work may explore more versatile frameworks capable of handling multiple object types simultaneously.

Summary updated

BibTeX
@misc{luo2021self,
  author = {Hao Luo and Pichao Wang and Yi Xu and Feng Ding and Yanxin Zhou and Fan Wang and Hao Li and Rong Jin},
  title = {{Self-Supervised Pre-Training for Transformer-Based Person Re-Identification}},
  year = {2021},
  eprint = {2111.12084},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.12084},
}
Figure