Unsupervised Person Re-identification via Multi-label Classification

04/20/2020 ∙ by Dongkai Wang, et al. ∙ Peking University 0

The challenge of unsupervised person re-identification (ReID) lies in learning discriminative features without true labels. This paper formulates unsupervised person ReID as a multi-label classification task to progressively seek true labels. Our method starts by assigning each person image with a single-class label, then evolves to multi-label classification by leveraging the updated ReID model for label prediction. The label prediction comprises similarity computation and cycle consistency to ensure the quality of predicted labels. To boost the ReID model training efficiency in multi-label classification, we further propose the memory-based multi-label classification loss (MMCL). MMCL works with memory-based non-parametric classifier and integrates multi-label classification and single-label classification in a unified framework. Our label prediction and MMCL work iteratively and substantially boost the ReID performance. Experiments on several large-scale person ReID datasets demonstrate the superiority of our method in unsupervised person ReID. Our method also allows to use labeled person images in other domains. Under this transfer learning setting, our method also achieves state-of-the-art performance.



There are no comments yet.


page 4

This week in AI

Get the week's most popular data science and artificial intelligence research sent straight to your inbox every Saturday.

1 Introduction

Figure 1: Illustrations of multi-label classification for unsupervised person ReID. We target to assign each unlabeled person image with a multi-class label reflecting the person identity. This is achieved by iteratively running MPLP for prediction and MMCL for multi-label classification loss computation. This procedure guides CNN to produce discriminative features for ReID.

Recent years have witnessed the great success of person re-identification (ReID), which learns discriminative features from labeled person images with deep Convolutional Neural Network (CNN) 

[43, 14, 9, 27, 15, 26, 28, 29]

. Because it is expensive to annotate person images across multiple cameras, recent research efforts start to focus on unsupervised person ReID. Unsupervised person ReID aims to learn discriminative features from unlabeled person images. Compared with supervised learning, unsupervised learning relieves the requirement for expensive data annotation, hence shows better potential to push person ReID towards real applications.

The challenge of unsupervised person ReID lies in learning discriminative features without true labels. To conquer this challenge, most of recent works [37, 46, 22, 19, 30] define unsupervised person ReID as a transfer learning task, which leverages labeled data on other domains for model initialization or label transfer. Among them, some works assign each image with a single-class label [46]. Some others leverage spatio-temporal cues or additional attribute annotations [22, 19, 30]. Detailed review of existing methods will be presented in Sec. 2. Thanks to the above efforts, the performance of unsupervised person ReID has been significantly boosted. However, there is still a considerable gap between supervised and unsupervised person ReID. Meanwhile, the setting of transfer learning leads to limited flexibility. For example, as discussed in many works [21, 35, 31], the performance of transfer learning is closely related to the domain gap, e.g.

, large domain gap degrades the performance. It is non-trivial to estimate the domain gap and select suitable source datasets for transfer learning in unsupervised person ReID.

This paper targets to boost unsupervised person ReID without leveraging any labeled data. As illustrated in Fig. 1, we treat each unlabeled person image as a class and train the ReID model to assign each image with a multi-class label. In other words, the ReID model is trained to classify each image to multiple classes belonging to the same identity. Because each person usually has multiple images, multi-label classification effectively identifies images of the same identity and differentiates images from different identities. This in-turn facilitates the ReID model to optimize inter and intra class distances. Compared with previous methods [20, 34], which classify each image into a single class, the multi-label classification has potential to exhibit better efficiency and accuracy.

Our method iteratively predicts multi-class labels and updates the network with multi-label classification loss. As shown in Fig. 1

, to ensure the quality of predicted labels, we propose the Memory-based Positive Label Prediction (MPLP), which considers both visual similarity and cycle consistency for label prediction. Namely, two images are assigned with the same label if they a) share large similarity and b) share similar neighbors. To further ensure the accuracy of label prediction, MPLP utilizes image features stored in the memory bank, which is updated with augmented features after each training iteration to improve feature robustness.

Predicted labels allow for CNN training with a multi-label classification loss. Since each image is treated as a class, the huge number of classes makes it hard to train classifiers like Fully Connected (FC) layers. As shown in Fig. 1, we adopt the feature of each image stored in the memory bank as a classifier. Specifically, a Memory-based Multi-label Classification Loss (MMCL) is introduced. MMCL accelerates the loss computation and addresses the vanishing gradient issue in traditional multi-label classification loss [39, 5]

by abandoning the sigmoid function and enforcing the classification score to 1 or -1. MMCL also involves hard negative class mining to deal with the imbalance between positive and negative classes.

We test our approach on several large-scale person ReID datasets including Market-1501 [42], DukeMTMC-reID [25] and MSMT17 [31] without leveraging other labeled data. Comparison with recent works shows our method achieves competitive performance. For instance, we achieve rank-1 accuracy of 80.3% on Market-1501, significantly outperforming the recent BUC [20] and DBC [4] by 14.1% and 11.1%, respectively. Our performance is also better than the HHL [45] and ECN [46], which use extra DukeMTMC-reID [25] for transfer learning. Our method is also compatible with transfer learning. Leveraging DukeMTMC-reID for training, we further achieve rank-1 accuracy of 84.4% on Market-1501.

In summary, our method iteratively runs MPLP and MMCL to seek true labels for multi-label classification and CNN training. As shown in our experiments, this strategy, although does not leverage any labeled data, achieves promising performance. The maintained memory bank reinforces both label prediction and classification. Our work also shows that, unsupervised training has potential to achieve better flexibility and accuracy than existing transfer learning strategies.

2 Related Work

This section briefly reviews related works on unsupervised person ReID, unsupervised feature learning, and multi-label classification.

Unsupervised person ReID works can be summarized into three categories. The first category utilizes hand-craft features [18, 42]. However, it is difficult to design robust and discriminative features by hand. The second category [6, 7] adopts clustering to estimate pseudo labels to train the CNN. However, these methods require good pre-trained model. Apart from this, Lin et al. [20] treat each image as a cluster, through training and merging clusters, this method achieves good performance.

The third category [19, 30, 38, 31, 3, 45, 46, 1, 32, 17, 24, 40] utilizes transfer learning to improve unsupervised person ReID. Some works [19, 30] use transfer learning and minimize the attribute-level discrepancy by utilizing extra attribute annotations. MAR [38] uses the source dataset as a reference to learn soft labels, which hence supervise the ReID model training. Generative Adversarial Network (GAN) is also utilized for transfer learning. PTGAN [31] and SPGAN [3] first generate transferred images from source datasets, then uses transferred image for training. HHL [45] generates images under different cameras and trains network using triplet loss. ECN [46] utilizes transfer learning and minimizes the target invariance. Transfer learning requires a labeled source dataset for training. Our method differs with them that, it does not require any labeled data. It also achieves better performance than many transfer learning methods.

Unsupervised feature learning aims to relieve the requirement on labeled data for feature learning. It can be applied in different tasks. Some works adopt unsupervised feature learning for neural network initialization. For example, RotNet [13] predicts the rotation of image to learn a good representation. Li et al. [16] use motion and view as supervision to learn an initialization for action recognition. Some other works utilize unsupervised feature learning to acquire features for image classification and retrieval. [11] utilizes manifold learning to seek positive and negative samples to compute the triplet loss. Wu et al. [34] regard each image as single class, and propose a non-parametric softmax classifier to train CNN. Our work shares certain similarity with [34], in that we also use non-parametric classifiers. However, we consider multi-label classification, which is important in identifying images of the same identity as well as differentiating different identities.

Multi-label classification is designed for classification tasks with multi-class labels [39, 5, 30, 19]. Durand et al. [5] deal with multi-label learning based on partial labels and utilize GNN to predict missing labels. Wang et al. [30, 19] use multi-label classification to learn attribute feature. This paper utilizes multi-label classification to predict multi-class labels and focuses on learning identity feature for person ReID. To the best of our knowledge, this is an early work utilizing multi-label classification for unsupervised person ReID.

3 Methodology

3.1 Formulation

Given an unlabeled person image dataset , our goal is to train a person ReID model on . For any query person image

, the person ReID model is expected to produce a feature vector to retrieve image

containing the same person from a gallery set . In other words, the ReID model should guarantee share more similar feature with than with other images in . We could conceptually denote the goal of person ReID as,


where is a -dimensional L2-normalized feature vector extracted by the person ReID model. is the distance metric, e.g., the L2 distance.

To make training on possible, we start by treating each image as an individual class and assign with a label . This pseudo label turns into a labeled dataset, and allows for the ReID model training. is initialized to a two-valued vector, where only the value at index is set to and the others are set to , i.e.,


Since each person may have multiple images in , the initial label vector is not valid in representing person identity cues. Label prediction is required to assign multi-class labels to each image, which can be used for ReID model training with a multi-label classification loss. Labels of can be predicted by referring its feature to features of other images, and find consistent feature groups. On the other hand, due to the huge number of image classes in , it is hard to train a multi-label classifier. One efficient solution is to use the as the classifier for the -th class. This computes the classification score for any image as,


where denotes the multi-label classification score for .

It is easy to infer that, both label prediction and multi-label classification require features of images in . We hence introduce a sized memory bank to store those features, where . With , we propose the Memory-based Positive Label Prediction (MPLP) for label prediction and Memory-based Multi-label Classification Loss (MMCL) for ReID model training, respectively.

As shown in Fig. 1, MPLP takes a single-class label as input and outputs the multi-label prediction based on memory bank , i.e.,


where denotes the MPLP module and is the multi-class label.

MMCL computes the multi-label classification loss by taking the image feature , label , and the memory bank as inputs. The computed loss can be represented as,


where computes the classification score, and computes the loss by comparing classification scores and predicted labels.

is updated after each training iteration as,


where the superscript denotes the

-th training epoch,

is the updating rate. is then L2-normalized by . It is easy to infer that, both MPLP and MMCL require robust features in to seek reliable labels and classification scores, respectively. We use many data argumentation techniques to reinforce . In other words, each combines features of different augmented samples form , hence it presents better robustness. More details are given in Sec. 4.2.

MPLP considers both similarity and cycle consistency to predict , making it more accurate than the classification score. This makes the loss computed with Eq. (5) valid in boosting the ReID model, which in-turn produces positive feedbacks to and label prediction. This loop makes it possible to train discriminative ReID models on unlabeled dataset. Implementations to MPLP and MMCL can be found in the following parts.

3.2 Memory-based Positive Label Prediction

As shown in Eq. (4), given an initial two-valued label of image , MPLP aims to find other classes that may belong to. For , MPLP first computes a rank list according to the similarity between and other features, i.e.,


where denotes the similarity score of and .

finds candidates for reliable labels for , e.g.

, labels at the top of rank list. However, variances of illumination, viewpoint, backgrounds,

etc., would degrade the robustness of the rank list. E.g., noisy labels may appear at the top of rank list. To ensure the quality of predicted labels, MPLP refers to the similarity score and cycle consistency for label prediction.

Label filtering by similarity score: We first select positive label candidates for based on its rank list. Inspired by [39], that uses a threshold to select relevant labels for query, we select candidate labels with a predefined similarity threshold. Given a similarity score threshold , label candidates can be generated by removing labels with similarity smaller than , i.e.,


where is the last label with similarity score higher than , is the collection of label candidates for . largely decides the quantity of label candidates. It will be tested in Sec. 4.3. Eq. (9) adaptively finds different numbers of candidates labels for different images, which is better than selecting fixed number of labels, i.e.

, the KNN in Fig. 

2. We proceed to introduce cycle consistency to find positive labels from .

Figure 2:

Illustration of the label prediction by MPLP. (a) reports the precision and recall of MPLP in finding true positive labels, where MPLP consistently outperforms KNN at different training stages. (b) shows positive labels and negative labels selected by MPLP, where MPLP effectively rejects hard negative labels.

Label filtering by cycle consistency: Inspired by k-reciprocal nearest neighbor[12, 44], we assume that, if two images belong to the same class, their neighbor image sets should also be similar. In other words, two images should be mutual neighbor for each other if they can be assigned with similar labels. With this intuition, we propose a cycle consistency scheme to filter hard negative labels in .

MPLP traverses labels in from head to tail. For a label in , MPLP computes its top- nearest labels with Eq. (7). If label is also one of the top- nearest labels of , is considered as a positive label for . Otherwise, it is treated as a hard negative label. The traverse is stopped when the first hard negative label is found. This leads to a positive label set as well as a hard negative label for image . We denote the positive label set as,


where satisfies . As contains labels, would be assigned with a multi-class label with positive classes,


As Fig. 2 shows that, MPLP predicts accurate positive labels. Experimental evaluations will be presented in Sec. 4.4.

3.3 Memory-based Multi-label Classification Loss

Traditional multi-label classification loss:

The predicted multi-class labels are used for training the ReID model with a multi-label classification loss. In traditional multi-label classification methods, sigmoid and logistic regression loss is a common option 

[39, 5, 30, 19]. For a task with classes, it adopts independent binary classifiers for classification. The loss of classifying image to class can be computed as,


where computes the classification score of image for the class . is the label of image for class . With the loss at a single class, we can obtain the Multi-Label Classification (MCL) loss, i.e., ,


where is the number of images in the dataset , which equals to the class number in our setting.

Figure 3: Gradient Analysis for MCL- and MMCL. It is clear that, MMCL does not suffer from the vanishing gradient issue.

Because the and are L2 normalized, the classification score is restricted between . This limits the range of sigmoid function in Eq. (12), making the loss non-zero even for correct classifications. This issue can be addressed by introducing a scalar on the classification score. This updates Eq. (12) as,


We denote the corresponding MCL loss as . The gradient of can be computed as,


With Eq. (15), we illustrate the gradient of with different values of when in Fig. 3. It is clear that, the updated MCL loss still suffers from substantial vanishing gradient issue as the classification score larger than 0.25 or smaller than -0.25.

Another issue with MCL loss is that, our task involves a large number of classes, making the positive and negative classes unbalanced. Treating those negative classes equally in Eq. (14) may cause a model collapse. We hence proceed to propose MMCL to address those issues.

Memory-based Multi-label Classification Loss: MMCL is proposed to address two issues in traditional MCL. For the first issue, since the score is bounded by , we can abandon the sigmoid function and directly compute the loss by regressing the classification score to 1 and -1. This simplifies the loss computation and improves the training efficiency. The loss of classifying image to class can be updated as,


where is the feature of image .

The second problem is the imbalance between positive and negative classes. MMCL introduces hard negative class mining to solve it. This is inspired by the sample mining in deep metric learning [33], where hard negative samples are more informative for training. Similarly in our multi-label classification, the training should focus more on hard negative classes than easy negative classes.

For , its negative classes can be denoted as . We rank them by their classification scores and select the top classes as the hard negative classes. The collection of hard negative classes for can be denoted as .

The MMCL is computed on positive classes and sampled hard negative classes as follows,


where is a coefficient measuring the importance of positive class loss and negative class loss, which will be tested in experiments.

We also illustrate the gradients of similarly when , in Fig. 3, where the gradient of can be computed as,


Discussions: Comparison between MCL and MMCL in Fig. 3 clearly shows that, the vanishing gradient issue is effectively addressed by MMCL. Because of vanishing gradient, won’t enforce the classifier to classify positive labels with large scores. This is harmful for decreasing the intra-class variance. Therefore, MMCL is more effective than MCL in optimizing the ReID model. Fig. 3 also shows that, controls the magnitude of the gradient of MMCL. As discussed in [41], mean square loss is inferior to log-based loss (e.g. cross entropy) when classification score is near the decision boundary. effectively solves this issue by scaling the gradient magnitude of MMCL.

By adopting the hard negative class mining strategy, MMCL not only works for multi-label classification, it also could be applied in single-label classification, where the unbalanced class issue still exists. Compared with cross entropy loss and MCL, MMCL abandons activation functions like softmax and sigmoid, leading to more efficient computation. As discussed in many works 

[23, 8], a huge number of classes degrades the speed of softmax computation. Existing solutions include hierarchical softmax [23]

and noise-contrastive estimation 

[8]. As MMCL does not involve softmax computation, it does not suffer from such issues.

3.4 Transfer Learning with Labeled Dataset

Our method is also compatible with transfer learning setting. Given a dataset containing labeled person images, we can adopt the commonly used cross entropy loss and triplet loss on labeled data to train the model. The training loss can be denoted as . The overall training loss for transfer learning can be represented as the sum of MMCL and loss on labeled dataset, i.e.,


The performance of our methods on transfer learning will be tested in the next section.

4 Experiments

4.1 Dataset and Evaluation Metrics

Market-1501 [42] contains 32,668 labeled person images of 1,501 identities collected from 6 non-overlapping camera views. DukeMTMC-reID [25] has 8 cameras and 36,411 labeled images of 1,404 identities. MSMT17 [31] is a newly released person ReID dataset. It is composed of 126,411 person images from 4,101 identities collected by 15 cameras. The dataset suffers from substantial variations of scene and lighting, and is more challenging than the other two datasets. All three datasets are collected under similar scenario, i.e., campus, which makes the transfer learning possible. We follow the standard settings [42, 25, 31] on them to conduct experiments. Performance is evaluated by the Cumulative Matching Characteristic (CMC) and mean Average Precision (mAP).

Figure 4: Evaluation of similarity score in MPLP.

4.2 Implementation Details

All experiments are implemented on PyTorch. We use ResNet-50 


as backbone to extract the feature and initialize it with parameters pre-trained on ImageNet 


. After pooling-5 layer, we remove subsequent layers and add a batch normalization layer 

[10], which produces a 2048-dim feature. During testing, we also extract the pooling-5 feature to calculate the distance. For multi-label classification, we allocate a memory bank to store L2 normalized image features. The memory bank is initialized to all zeros, and we start using MPLP for label prediction when the memory is fully updated 5 times (after 5 epochs). As mentioned in section 3.2, we leverage CamStyle [47] as a data augmentation strategy for unlabeled images. Strategies like random crop, random rotation, color jitter, and random erasing are also introduced to improve the feature robustness.

The input image is resized to 256*128. We use SGD to optimize the model, the learning rate for ResNet-50 base layers are 0.01, and others are 0.1. The memory updating rate starts from and grows linearly to . We train the model for 60 epochs, and the learning rate is divided by 10 after every 40 epochs. The batch size for model training is 128. We fix the similarity threshold in MPLP as 0.6. In MMCL, the weight is fixed to 5 and we select the 1% top-ranked negative classes to compute the loss through the parameter analysis in Sec. 4.3.

For transfer learning with labeled dataset, we apply the same batch size on the labeled dataset. A fully connected layer is added after batch normalization layer for classification. We optimize the in section 3.4 following the same baseline training strategy as described in [7].

4.3 Parameter Analysis

This section aims to investigate some important hyper-parameters in our method, including the similarity score threshold in MPLP, coefficient , and hard negative mining ratio % in MMCL. Each experiment varies the value of one hyper-parameter while keeping others fixed. All experiments are conducted with unsupervised ReID setting on both Market-1501 and DukeMTMC-reID.

Market-1501 DukeMTMC-reID
Rank-1 mAP Rank-1 mAP
1 59.3 19.4 52.6 22.8
2 71.3 31.1 58.8 31.0
3 76.6 40.0 62.6 35.6
4 79.9 44.9 64.9 39.1
5 80.3 45.5 65.2 40.2
6 78.1 45.0 65.0 39.8
7 73.2 41.3 64.1 39.4
Table 1: Evaluation of parameter in Eq. (17).

Similarity threshold : Fig.4 investigates the effect of similarity threshold in MPLP. We vary from to and test the model performance. A low similarity score will harm the model performance. For example, when is in range , a substantial performance drop can be observed compared with larger . This is because that, low similarity threshold introduces many negative labels. More accurate labels can be selected as becomes larger. However, too large decreases the number of selected labels. The best is 0.6 for both Market-1501 and DukeMTMC-reID. We hence set .

Coefficient : Table 1 reports the analysis on coefficient of MMCL. As discussed in Sec. 3.3, plays a role to scale the gradient of MMCL. means that we do not scale the gradient. In this case, the MMCL cannot produce large gradients to pull positive samples together, leading to bad performance. For example, the rank-1 accuracy is dropped to 59.3% on Market-1501 and 52.6% on DukeMTMC-reID. As becomes larger, MMCL effectively improves the similarity of positive samples, leading to better performance. However, too large may make the training unstable. According to Table 1, we set .

Hard negative mining ratio %: Fig. 5 shows effects of hard negative mining ratio % in network training. means using all negative classes for loss computation. It is clear that, is harmful for the performance. This implies that, not all of the negative classes are helpful for unsupervised ReID training. As becomes smaller, hard negative mining would be activated and it boosts the performance. Too small selects too few negative classes, hence is also harmful for the performance. According to Fig. 5, is used in our experiments.

Figure 5: Evaluation of hard negative mining ratio in MMCL.
Method Market-1501 DukeMTMC-reID
Rank-1 mAP Rank-1 mAP
Supervised 87.1 68.3 75.9 57.9
ImageNet Pre-trained 7.8 2.1 5.1 1.4
MMCL + Single Label 49.0 17.8 42.0 16.6
MMCL + MPLP 66.6 35.3 58.0 36.3
MMCL + MPLP 80.3 45.5 65.2 40.2
Table 2: Test of validity of MMCL and MPLP. denotes not using CamStyle [47] for data augmentation.

4.4 Ablation Study

This part evaluates the effectiveness of MPLP and MMCL by making comparison with supervised learning, MMCL+single-class label, and MMCL+MPLP. Experimental results are reported in Table 2, where the performance of ImageNet pre-trained model is also reported as the baseline. As shown in the table, the supervised learning achieves high accuracy, e.g., 87.1% in rank-1 accuracy and 68.3% in mAP on Market-1501. ImageNet pre-trained model performs badly on both Market-1501 and DukeMTMC-reID. MMCL with single-class pseudo labels boosts the baseline performance, indicating the validity of leveraging unlabeled dataset in training. Table 2 also shows that, combining MMCL with MPLP significantly boosts the performance, e.g., from baseline 7.8% to 80.3% in rank-1 accuracy on Market-1501. Table 2 also shows that, CamStyle [47] boosts the performance, indicating the importance of data augmentation as discussed in Sec. 3.1.

Effectiveness of MPLP: To verify that MPLP is a reasonably good solution for label prediction, we compare MPLP against several other label prediction methods, e.g., the KNN search and selection by Similarity Score (SS). Table 3 (a) summarizes the results. From Table 3 (a), we can observe that KNN (K=8, which achieves the best peformance) achieves 73.3% rank-1 accuracy and 35.4% mAP on Market-1501. Selecting positive labels by Similarity Score (SS) gains improvements over KNN. This indicates that, adaptively select positive labels with similarity threshold is more reasonable than fixing the positive label number for different images. Table 3 (a) also shows that, MPLP achieves the best performance. This indicates that combining cycle consistency and similarity score effectively ensure the quality of predicted labels. Visualization of predicted labels by MPLP can be found in Fig. 2.

Method Market-1501 DukeMTMC-reID
Rank-1 mAP Rank-1 mAP
MMCL + KNN 73.3 35.4 59.5 33.5
MMCL + SS 77.6 43.0 62.7 38.5
MMCL + MPLP 80.3 45.5 65.2 40.2
CE + Single Label 31.4 9.9 31.5 11.8
MMCL + Single Label 49.0 17.8 42.0 16.6
CE + Ground Truth 85.5 65.5 70.4 50.3
MMCL + Ground Truth 86.5 67.2 74.5 56.9
CE + MPLP 65.0 34.2 60.2 35.1
MMCL + MPLP 80.3 45.5 65.2 40.2
Table 3:

Ablation study on different label prediction algorithms and loss functions.

Effectiveness of MMCL: To test the validity of MMCL, this part proceeds to compare it against Cross Entropy (CE) loss with different training settings. Experimental results are summarized in Table 3 (b). We first test MPLP and CE using single-class labels for model learning. MMCL gets 49.0% rank-1 accuracy and 17.8% mAP on Market-1501, substantially better than CE. We further test MMCL and CE using ground truth labels for learning. Note that, we modify CE according to [46] to make it applicable in multi-class learning. With ground truth labels, MMCL still performs better than CE, especially on DukeMTMC-reID. We finally test MMCL and CE with labels predicted by MPLP. MMCL still outperforms CE by large margins. Note that, MMCL uses non-parameters classifiers for training. It still achieves comparable performance with the supervised learning in Table 2. Table 3 (b) thus demonstrates the effectiveness of MMCL and the training paradigm of our method.

Method Reference Market-1501 DukeMTMC-reID
Source Rank-1 Rank-5 Rank-10 mAP Source Rank-1 Rank-5 Rank-10 mAP
LOMO[18] CVPR15 None 27.2 41.6 49.1 8.0 None 12.3 21.3 26.6 4.8
BOW[42] ICCV15 None 35.8 52.4 60.3 14.8 None 17.1 28.8 34.9 8.3
BUC[20] AAAI19 None 66.2 79.6 84.5 38.3 None 47.4 62.6 68.4 27.5
DBC[4] BMVC19 None 69.2 83.0 87.8 41.3 None 51.5 64.6 70.1 30.0
Ours This paper None 80.3 89.4 92.3 45.5 None 65.2 75.9 80.0 40.2
PUL[6] TOMM18 Duke 45.5 60.7 66.7 20.5 Market 30.0 43.4 48.5 16.4
PTGAN[31] CVPR18 Duke 38.6 - 66.1 - Market 27.4 - 50.7 -
SPGAN[3] CVPR18 Duke 51.5 70.1 76.8 22.8 Market 41.1 56.6 63.0 22.3
CAMEL[37] ICCV17 Multi 54.5 - - 26.3 - - - - -
MMFA[19] BMVC19 Duke 56.7 75.0 81.8 27.4 Market 45.3 59.8 66.3 24.7
TJ-AIDL[30] CVPR18 Duke 58.2 74.8 81.1 26.5 Market 44.3 59.6 65.0 23.0
HHL[45] ECCV18 Duke 62.2 78.8 84.0 31.4 Market 46.9 61.0 66.7 27.2
ECN[46] CVPR19 Duke 75.1 87.6 91.6 43.0 Market 63.3 75.8 80.4 40.4
MAR[38] CVPR19 MSMT 67.7 81.9 - 40.0 MSMT 67.1 79.8 - 48.0
PAUL[36] CVPR19 MSMT 68.5 82.4 87.4 40.1 MSMT 72.0 82.7 86.0 53.2
SSG[7] ICCV19 Duke 80.0 90.0 92.4 58.3 Market 73.0 80.6 83.2 53.4
CR-GAN[1] ICCV19 Duke 77.7 89.7 92.7 54.0 Market 68.9 80.2 84.7 48.6
CASCL[32] ICCV19 MSMT 65.4 80.6 86.2 35.5 MSMT 59.3 73.2 77.5 37.8
PDA-Net[17] ICCV19 Duke 75.2 86.3 90.2 47.6 Market 63.2 77.0 82.5 45.1
UCDA[24] ICCV19 Duke 64.3 - - 34.5 Market 55.4 - - 36.7
PAST[40] ICCV19 Duke 78.38 - - 54.62 Market 72.35 - - 54.26
Ours (transfer) This paper Duke 84.4 92.8 95.0 60.4 Market 72.4 82.9 85.0 51.4
Table 4: Unsupervised person re-ID performance comparison with state-of-the-art methods on Market-1501 and DukeMTMC-reID.
Method Source MSMT17
Rank-1 Rank-5 Rank-10 mAP
Ours None 35.4 44.8 49.8 11.2
PTGAN [31] Market 10.2 - 24.4 2.9
ECN [46] Market 25.3 36.3 42.1 8.5
SSG [7] Market 31.6 - 49.6 13.2
Ours (transfer) Market 40.8 51.8 56.7 15.1
PTGAN [31] Duke 11.8 - 27.4 3.3
ECN [46] Duke 30.2 41.5 46.8 10.2
SSG [7] Duke 32.2 - 51.2 13.3
Ours (transfer) Duke 43.6 54.3 58.9 16.2
Table 5: Comparison with state-of-the-art methods on MSMT17.

4.5 Comparison with the State of the Art

We compare our method against state-of-the-art unsupervised learning and transfer learning approaches on Market-1501 [42], DukeMTMC-reID [25] and MSMT17 [31]. Table 4 and Table 5 summarize the comparison.

Table 4 reports comparisons on Market-1501 and DukeMTMC-reID. We compare two types of methods, including unsupervised learning methods: LOMO [18], BOW [42], BUC [20] and DBC [4], and transfer learning based approaches: PUL [6], PTGAN [31], SPGAN [3], CAMEL [37], MMFA [19], TJ-AIDL [30], HHL [45], ECN [46], MAR [38], PAUL [36], SSG [7], CR-GAN [1], CASCL [32], PDA-Net [17], UCDA [24] and PAST [40].

We first compare with unsupervised learning methods. LOMO and BOW utilize hand-crafted features, which show lower performance. BUC and DBC treat each image as a single cluster then merges clusters, thus share certain similarity to our work. However, our method outperforms them by large margins. The reasons could be because: 1) BUC tries to keep different clusters with similar size, hence could suffer from the issue of imbalanced number of positive labels. MPLP could alleviate this issue by adaptively selecting positive labels for different images. 2) As discussed in ablation studies, MMCL performs better than the cross entropy loss when using memory bank as classifier. Therefore, MPLP and MMCL effectively boost our performance.

Under the transfer learning setting, our method achieves the best performance on Market-1501 in Table 4. For example, our rank-1 accuracy of on Market-1501 achieves 84.4%, when using DukeMTMC-reID as the source dataset. Similarly, we get 72.4% rank-1 accuracy on DukeMTMC-reID using Market-1501 as the source dataset. Although SSG and PAST achieve slightly better performance, our method is more flexible and can be used without labeled dataset. It is also interesting to observe that, with unsupervised learning setting, our method still outperforms several recent transfer learning methods, e.g., our rank-1 accuracy of 80.3% on Market-1501 vs. 78.38% and 64.3% of PAST [40] and UCDA [24].

We also conduct experiments on MSMT17, a larger and more challenging dataset. A limited number of works report performance on MSMT17, i.e., PTGAN [31], ECN [46], and SSG [7]. As table 5 shows, our approach outperforms existing methods by large margins under both unsupervised and transfer learning settings. For example, our method achieves 35.4% and 43.6%/40.8% rank-1 accuracy respectively. This outperforms SSG by 11.4% in rank-1 accuracy. The above experiments on three datasets demonstrate the promising performance of our MPLP and MMCL.

5 Conclusion

This paper proposes a multi-label classification method to address unsupervised person ReID. Different from previous works, our method works without requiring any labeled data or a good pre-trained model. This is achieved by iteratively predicting multi-class labels and updating the network with a multi-label classification loss. MPLP is proposed for multi-class label prediction by considering both visual similarity and cycle consistency. MMCL is introduced to compute the multi-label classification loss and address the vanishing gradient issue. Experiments on several large-scale datasets demonstrate the effectiveness of the proposed methods in unsupervised person ReID.

Acknowledgement This work is supported in part by The National Key Research and Development Program of China under Grant No. 2018YFE0118400, in part by Beijing Natural Science Foundation under Grant No. JQ18012, in part by Natural Science Foundation of China under Grant No. 61936011, 61425025, 61620106009, 61572050, 91538111.


  • [1] Y. Chen, X. Zhu, and S. Gong (2019) Instance-guided context rendering for cross-domain person re-identification. In ICCV, Cited by: §2, §4.5, Table 4.
  • [2] J. Deng, W. Dong, R. Socher, L. Li, Kai Li, and Li Fei-Fei (2009) ImageNet: a large-scale hierarchical image database. In CVPR, Cited by: §4.2.
  • [3] W. Deng, L. Zheng, Q. Ye, G. Kang, Y. Yang, and J. Jiao (2018) Image-image domain adaptation with preserved self-similarity and domain-dissimilarity for person re-identification. In CVPR, Cited by: §2, §4.5, Table 4.
  • [4] G. Ding, S. Khan, Q. Yin, and Z. Tang (2019) Dispersion based clustering for unsupervised person re-identification. In BMVC, Cited by: §1, §4.5, Table 4.
  • [5] T. Durand, N. Mehrasa, and G. Mori (2019) Learning a deep convnet for multi-label classification with partial labels. In CVPR, Cited by: §1, §2, §3.3.
  • [6] H. Fan, L. Zheng, C. Yan, and Y. Yang (2018) Unsupervised person re-identification: clustering and fine-tuning. ACM Transactions on Multimedia Computing, Communications, and Applications (TOMM) 14 (4), pp. 83. Cited by: §2, §4.5, Table 4.
  • [7] Y. Fu, Y. Wei, G. Wang, Y. Zhou, H. Shi, and T. S. Huang (2019) Self-similarity grouping: a simple unsupervised cross domain adaptation approach for person re-identification. In ICCV, Cited by: §2, §4.2, §4.5, §4.5, Table 4, Table 5.
  • [8] M. Gutmann and A. Hyvärinen (2010) Noise-contrastive estimation: a new estimation principle for unnormalized statistical models. In AISTATS, Cited by: §3.3.
  • [9] K. He, X. Zhang, S. Ren, and J. Sun (2016) Deep residual learning for image recognition. In CVPR, Cited by: §1, §4.2.
  • [10] S. Ioffe and C. Szegedy (2015) Batch normalization: accelerating deep network training by reducing internal covariate shift. In ICML, Cited by: §4.2.
  • [11] A. Iscen, G. Tolias, Y. Avrithis, and O. Chum (2018) Mining on manifolds: metric learning without labels. In CVPR, Cited by: §2.
  • [12] H. Jegou, H. Harzallah, and C. Schmid (2007) A contextual dissimilarity measure for accurate and efficient image search. In CVPR, Cited by: §3.2.
  • [13] N. Komodakis and S. Gidaris (2018) Unsupervised representation learning by predicting image rotations. In ICLR, Cited by: §2.
  • [14] A. Krizhevsky, I. Sutskever, and G. E. Hinton (2012) Imagenet classification with deep convolutional neural networks. In NeurIPS, Cited by: §1.
  • [15] J. Li, S. Zhang, Q. Tian, M. Wang, and W. Gao (2019) Pose-guided representation learning for person re-identification. IEEE Trans. Pattern Anal. Mach. Intell.. Cited by: §1.
  • [16] J. Li, Y. Wong, Q. Zhao, and M. Kankanhalli (2018) Unsupervised learning of view-invariant action representations. In NeurIPS, Cited by: §2.
  • [17] Y. Li, C. Lin, Y. Lin, and Y. F. Wang (2019) Cross-dataset person re-identification via unsupervised pose disentanglement and adaptation. In ICCV, Cited by: §2, §4.5, Table 4.
  • [18] S. Liao, Y. Hu, X. Zhu, and S. Z. Li (2015) Person re-identification by local maximal occurrence representation and metric learning. In CVPR, Cited by: §2, §4.5, Table 4.
  • [19] S. Lin, H. Li, C. Li, and A. C. Kot (2018) Multi-task mid-level feature alignment network for unsupervised cross-dataset person re-identification. In BMVC, Cited by: §1, §2, §2, §3.3, §4.5, Table 4.
  • [20] Y. Lin, X. Dong, L. Zheng, Y. Yan, and Y. Yang (2019) A bottom-up clustering approach to unsupervised person re-identification. In AAAI, Cited by: §1, §1, §2, §4.5, Table 4.
  • [21] M. Long, Y. Cao, J. Wang, and M. I. Jordan (2015) Learning transferable features with deep adaptation networks. arXiv preprint arXiv:1502.02791. Cited by: §1.
  • [22] J. Lv, W. Chen, Q. Li, and C. Yang (2018) Unsupervised cross-dataset person re-identification by transfer learning of spatial-temporal patterns. In CVPR, Cited by: §1.
  • [23] F. Morin and Y. Bengio (2005) Hierarchical probabilistic neural network language model.. In Aistats, Cited by: §3.3.
  • [24] L. Qi, L. Wang, J. Huo, L. Zhou, Y. Shi, and Y. Gao (2019) A novel unsupervised camera-aware domain adaptation framework for person re-identification. In ICCV, Cited by: §2, §4.5, §4.5, Table 4.
  • [25] E. Ristani, F. Solera, R. Zou, R. Cucchiara, and C. Tomasi (2016) Performance measures and a data set for multi-target, multi-camera tracking. In ECCV, Cited by: §1, §4.1, §4.5.
  • [26] C. Su, J. Li, S. Zhang, J. Xing, W. Gao, and Q. Tian (2017) Pose-driven deep convolutional model for person re-identification. In ICCV, Cited by: §1.
  • [27] C. Su, F. Yang, S. Zhang, Q. Tian, L. S. Davis, and W. Gao (2015) Multi-task learning with low rank attribute embedding for person re-identification. In ICCV, Cited by: §1.
  • [28] C. Su, S. Zhang, J. Xing, W. Gao, and Q. Tian (2016) Deep attributes driven multi-camera person re-identification. In ECCV, Cited by: §1.
  • [29] C. Su, S. Zhang, F. Yang, G. Zhang, Q. Tian, W. Gao, and L. S. Davis (2017) Attributes driven tracklet-to-tracklet person re-identification using latent prototypes space mapping. Pattern Recognition 66, pp. 4–15. Cited by: §1.
  • [30] J. Wang, X. Zhu, S. Gong, and W. Li (2018)

    Transferable joint attribute-identity deep learning for unsupervised person re-identification

    In CVPR, Cited by: §1, §2, §2, §3.3, §4.5, Table 4.
  • [31] L. Wei, S. Zhang, W. Gao, and Q. Tian (2018) Person transfer gan to bridge domain gap for person re-identification. In CVPR, Cited by: §1, §1, §2, §4.1, §4.5, §4.5, §4.5, Table 4, Table 5.
  • [32] A. Wu, W. Zheng, and J. Lai (2019) Unsupervised person re-identification by camera-aware similarity consistency learning. In ICCV, Cited by: §2, §4.5, Table 4.
  • [33] C. Wu, R. Manmatha, A. J. Smola, and P. Krahenbuhl (2017) Sampling matters in deep embedding learning. In CVPR, Cited by: §3.3.
  • [34] Z. Wu, Y. Xiong, S. X. Yu, and D. Lin (2018) Unsupervised feature learning via non-parametric instance discrimination. In CVPR, Cited by: §1, §2.
  • [35] H. Yan, Y. Ding, P. Li, Q. Wang, Y. Xu, and W. Zuo (2017) Mind the class weight bias: weighted maximum mean discrepancy for unsupervised domain adaptation. In CVPR, Cited by: §1.
  • [36] Q. Yang, H. Yu, A. Wu, and W. Zheng (2019) Patch-based discriminative feature learning for unsupervised person re-identification. In CVPR, Cited by: §4.5, Table 4.
  • [37] H. Yu, A. Wu, and W. Zheng (2017) Cross-view asymmetric metric learning for unsupervised person re-identification. In CVPR, Cited by: §1, §4.5, Table 4.
  • [38] H. Yu, W. Zheng, A. Wu, X. Guo, S. Gong, and J. Lai (2019) Unsupervised person re-identification by soft multilabel learning. In CVPR, Cited by: §2, §4.5, Table 4.
  • [39] M. Zhang and Z. Zhou (2013) A review on multi-label learning algorithms. IEEE transactions on knowledge and data engineering 26 (8), pp. 1819–1837. Cited by: §1, §2, §3.2, §3.3.
  • [40] X. Zhang, J. Cao, C. Shen, and M. You (2019) Self-training with progressive augmentation for unsupervised cross-domain person re-identification. In ICCV, Cited by: §2, §4.5, §4.5, Table 4.
  • [41] Z. Zhang and M. Sabuncu (2018) Generalized cross entropy loss for training deep neural networks with noisy labels. In NeurIPS, Cited by: §3.3.
  • [42] L. Zheng, L. Shen, L. Tian, S. Wang, J. Wang, and Q. Tian (2015) Scalable person re-identification: a benchmark. In ICCV, Cited by: §1, §2, §4.1, §4.5, §4.5, Table 4.
  • [43] L. Zheng, Y. Yang, and A. G. Hauptmann (2016) Person re-identification: past, present and future. arXiv preprint arXiv:1610.02984. Cited by: §1.
  • [44] Z. Zhong, L. Zheng, D. Cao, and S. Li (2017) Re-ranking person re-identification with k-reciprocal encoding. In CVPR, Cited by: §3.2.
  • [45] Z. Zhong, L. Zheng, S. Li, and Y. Yang (2018) Generalizing a person retrieval model hetero-and homogeneously. In ECCV, Cited by: §1, §2, §4.5, Table 4.
  • [46] Z. Zhong, L. Zheng, Z. Luo, S. Li, and Y. Yang (2019) Invariance matters: exemplar memory for domain adaptive person re-identification. In CVPR, Cited by: §1, §1, §2, §4.4, §4.5, §4.5, Table 4, Table 5.
  • [47] Z. Zhong, L. Zheng, Z. Zheng, S. Li, and Y. Yang (2018) Camera style adaptation for person re-identification. In CVPR, Cited by: §4.2, §4.4, Table 2.