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

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

23 Nov 2021arXiv:2111.12084archive 2025-07-28

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

Transformer-based supervised pre-training achieves great performance in person re-identification (ReID). However, due to the domain gap between ImageNet and ReID datasets, it usually needs a larger pre-training dataset (e.g. ImageNet-21K) to boost the performance because of the strong data fitting ability of the transformer. To address this challenge, this work targets to mitigate the gap between the pre-training and ReID datasets from the perspective of data and model structure, respectively. We first investigate self-supervised learning (SSL) methods with Vision Transformer (ViT) pretrained on unlabelled person images (the LUPerson dataset), and empirically find it significantly surpasses ImageNet supervised pre-training models on ReID tasks. To further reduce the domain gap and accelerate the pre-training, the Catastrophic Forgetting Score (CFS) is proposed to evaluate the gap between pre-training and fine-tuning data. Based on CFS, a subset is selected via sampling relevant data close to the down-stream ReID data and filtering irrelevant data from the pre-training dataset. For the model structure, a ReID-specific module named IBN-based convolution stem (ICS) is proposed to bridge the domain gap by learning more invariant features. Extensive experiments have been conducted to fine-tune the pre-training models under supervised learning, unsupervised domain adaptation (UDA), and unsupervised learning (USL) settings. We successfully downscale the LUPerson dataset to 50% with no performance degradation. Finally, we achieve state-of-the-art performance on Market-1501 and MSMT17. For example, our ViT-S/16 achieves 91.3%/89.9%/89.6% mAP accuracy on Market1501 for supervised/UDA/USL ReID. Codes and models will be released to https://github.com/michuanhaohao/TransReID-SSL.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2111.12084")

Code

Syntology Ran 3 of 8 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 3 ran · our draft was wrong.

By repository: community (archive-listed): 8 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

michuanhaohao/transreid-ssl officialmentioned in papermentioned on GitHubpytorchMIT report
DengpanFu/LUPerson mentioned on GitHubpytorch report
damo-cv/TransReID-SSL mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

8 samples harvested; 3 ran; 0 honoured the contract we drafted; 5 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

3ran · our draft was wrong
5unverified

Licence: 8 of the 8 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from damo-cv/TransReID-SSL. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

normalize damo-cv/TransReID-SSL/transreid_pytorch/loss/triplet_loss.py community (archive-listed) ran · our draft was wrong fingerprinted MIT recorded; this copy not marked cleared · pointer only · e3b2a83f52101f2d · report
train_collate_fn damo-cv/TransReID-SSL/transreid_pytorch/datasets/make_dataloader.py community (archive-listed) ran · our draft was wrong MIT recorded; this copy not marked cleared · pointer only · a9297ce0fe9cac98 · report
val_collate_fn damo-cv/TransReID-SSL/transreid_pytorch/datasets/make_dataloader.py community (archive-listed) ran · our draft was wrong MIT recorded; this copy not marked cleared · pointer only · c4ae4a3fc4c4703e · report
cosine_dist damo-cv/TransReID-SSL/transreid_pytorch/loss/triplet_loss.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 71b4e1d375d8fd78 · report
euclidean_dist damo-cv/TransReID-SSL/transreid_pytorch/loss/triplet_loss.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 5315f75bf5367f0a · report
make_loss damo-cv/TransReID-SSL/transreid_pytorch/loss/make_loss.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · b26b436199409345 · report
read_image damo-cv/TransReID-SSL/transreid_pytorch/datasets/bases.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · 5f1101145f896208 · report
shuffle_unit damo-cv/TransReID-SSL/transreid_pytorch/model/make_model.py community (archive-listed) unverified MIT recorded; this copy not marked cleared · pointer only · fa0d6dd791ce2927 · report

Tasks

Domain AdaptationPerson Re-IdentificationSelf-Supervised LearningUnsupervised Domain AdaptationUnsupervised Person Re-Identification

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Person Re-Identification MSMT17 TransReID-SSL (ViT-B without RK) Rank-1 89.5 #10 of 43 Archive leaderboard report
Person Re-Identification MSMT17 TransReID-SSL (ViT-B without RK) mAP 75.0 #10 of 43 Archive leaderboard report
Person Re-Identification MSMT17 TransReID-SSL (without RK) Rank-1 89.6 #43 of 43 Archive leaderboard report
Person Re-Identification Market-1501 TransReID-SSL (ViT-B w/o RK) Rank-1 96.7 #11 of 135 Archive leaderboard report
Person Re-Identification Market-1501 TransReID-SSL (ViT-B w/o RK) mAP 93.2 #11 of 135 Archive leaderboard report
Unsupervised Person Re-Identification MSMT17 TransReID-SSL (ViTi-S) Rank-1 75 #6 of 12 Archive leaderboard report
Unsupervised Person Re-Identification MSMT17 TransReID-SSL (ViTi-S) mAP 50.6 #6 of 12 Archive leaderboard report
Unsupervised Person Re-Identification MSMT17 TransReID-SSL (ViT-S) Rank-1 66.4 #9 of 12 Archive leaderboard report
Unsupervised Person Re-Identification MSMT17 TransReID-SSL (ViT-S) mAP 40.9 #9 of 12 Archive leaderboard report
Unsupervised Person Re-Identification Market-1501 TransReID-SSL (ViTi-S) MAP 89.6 #1 of 23 Archive leaderboard report
Unsupervised Person Re-Identification Market-1501 TransReID-SSL (ViTi-S) Rank-1 95.3 #1 of 23 Archive leaderboard report
Unsupervised Person Re-Identification Market-1501 TransReID-SSL (ViT-S) MAP 88.2 #4 of 23 Archive leaderboard report
Unsupervised Person Re-Identification Market-1501 TransReID-SSL (ViT-S) Rank-1 94.2 #4 of 23 Archive leaderboard report
Unsupervised Person Re-Identification Market-1501 TransReID-SSL (ViT-S w/o RK) Rank-1 95.3 #23 of 23 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Absolute Position EncodingsAdamAttentionBPEConvolutionDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformerVision Transformer

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections