Learn from restoration: exploiting task-oriented knowledge distillation in self-supervised person re-identification

Enze Yang, Yu‐xin Liu, Shitao Zhao, Yiran Liu, Shuoyan LiuThe Visual Computer 2025

Abstract

Person re-identification (ReID) aims to identify individuals across diverse surveillance scenarios, playing a pivotal role in centralized monitoring. Recent studies often pre-train models on ImageNet and fine-tune them on specific ReID datasets, which can restrict generalization in poor imaging conditions. This paper introduces a Self-Supervised Learning (SSL) model with Task-Oriented Knowledge Distillation for person ReID. A proposed ReID-oriented Prior simulates real-world challenges like low-quality imaging and occlusion, while a teacher–student network with relative projectors serves as the distillation paradigm. By incorporating multiple loss functions, the network learns to restore detailed and masked embeddings while aligning invariant representations. Pre-trained on the unlabeled LUPerson dataset, the model achieves state-of-the-art performance on Market1501, MSMT17, and Occluded-Duke benchmarks, demonstrating strong generalizability across supervised, partial, and unsupervised ReID tasks.

Introduction

Person re-identification (ReID)—the task of identifying the same individual across non-overlapping surveillance cameras—is notoriously difficult due to "in-the-wild" conditions such as motion blur, low resolution, and frequent occlusions. Traditional approaches typically fine-tune models pre-trained on ImageNet. However, this creates a significant domain gap: ImageNet models focus on broad intra-class similarities (e.g., identifying a dog), whereas ReID requires distinguishing fine-grained inter-class differences between very similar-looking humans.

To address this, the authors propose a framework that treats ReID as a restoration task. By forcing a student network to reconstruct high-quality feature embeddings from corrupted inputs, the model develops a robust understanding of human semantics that significantly outperforms standard general-purpose pre-training.

Methodology

The core of the framework is a Self-Supervised Learning (SSL) model with Task-Oriented Knowledge Distillation. Unlike standard distillation methods that align identical views of an image, this approach introduces a task-specific bottleneck to force the model to learn more discriminative features.

Comparison between standard self-supervised distillation (a) and the proposed task-oriented knowledge distillation framework (b).

ReID-oriented Prior

Before the student network processes an image, it passes through a "prior" designed to simulate real-world surveillance challenges. This module applies two primary transformations:

  1. Low-Quality (LQ) Transformations: These include Gaussian and motion blurs to mimic camera noise and movement.
  2. Random Masking (RM): This hides patches of the image (similar to Masked Autoencoders) to simulate physical occlusions.
The ReID-oriented Prior simulating low-quality imaging and random masking.

Teacher-Student Distillation

The architecture follows a teacher-student paradigm where the teacher receives original, high-quality image patches and the student receives the corrupted version. The student is tasked with predicting the teacher's high-quality feature embeddings through a dual-level alignment strategy:

  • Patch Loss: Forces the student to restore detailed local features of body parts.
  • [CLS] Loss: Aligns global semantic representations, ensuring identity consistency even when the person is partially obscured or blurry.

Ablation studies revealed a "sweet spot" for masking at 60%; this level of difficulty provides the optimal balance between making the task challenging and maintaining enough global context for the model to learn effectively.

Experimental Results

The model was pre-trained on LUPerson, a massive unlabeled dataset containing 4 million images. This domain-specific pre-training allowed the model to learn "what a human looks like" at scale without requiring manual labels.

Performance Benchmarks

The proposed method achieved state-of-the-art (SOTA) results across multiple categories:

  • Supervised ReID: On the Market1501 benchmark, the model achieved a 94.1% mAP and 96.9% Rank-1 accuracy using a Swin-T backbone.
  • Occlusion Handling: On the challenging Occluded-Duke dataset, it reached 61.5% mAP, significantly outperforming previous methods that struggle with hidden body parts.
  • Unsupervised Transfer: Even without labels on the target dataset, the model achieved 89.0% mAP on Market1501, proving that the pre-training captures universal, identity-relevant human features.

Conclusion

By reframing ReID as a restoration task within a self-supervised framework, this work demonstrates that task-oriented priors can significantly enhance feature robustness. The results confirm that pre-training on large-scale unlabeled person datasets is far more effective for ReID than pre-training on general object datasets like ImageNet, offering a more scalable and accurate path for real-world surveillance applications.

Summary updated

BibTeX
@article{yang2025learn,
  author = {Enze Yang and Yu‐xin Liu and Shitao Zhao and Yiran Liu and Shuoyan Liu},
  title = {{Learn from restoration: exploiting task-oriented knowledge distillation in self-supervised person re-identification}},
  journal = {The Visual Computer},
  year = {2025},
  doi = {10.1007/s00371-024-03788-3},
}
Figure