Skip to main content
QUICK REVIEW

[Paper Review] Hierarchical Clustering with Hard-batch Triplet Loss for Person Re-identification

Kaiwei Zeng|arXiv (Cornell University)|Oct 27, 2019
Video Surveillance and Tracking MethodsComputer Science34 references32 citations
TL;DR

This paper proposes HCT, a fully unsupervised person re-identification method that combines hierarchical clustering with hard-batch triplet loss to generate high-quality pseudo labels. By iteratively refining pseudo labels through PK sampling and hard-batch triplet training, HCT achieves 56.4% mAP on Market-1501 and 50.7% mAP on DukeMTMC-reID, surpassing state-of-the-art unsupervised methods and even outperforming many unsupervised domain adaptation approaches.

ABSTRACT

For most unsupervised person re-identification (re-ID), people often adopt unsupervised domain adaptation (UDA) method. UDA often train on the labeled source dataset and evaluate on the target dataset, which often focuses on learning differences between the source dataset and the target dataset to improve the generalization of the model. Base on these, we explore how to make use of the similarity of samples to conduct a fully unsupervised method which just trains on the unlabeled target dataset. Concretely, we propose a hierarchical clustering-guided re-ID (HCR) method. We use hierarchical clustering to generate pseudo labels and use these pseudo labels as monitors to conduct the training. In order to exclude hard examples and promote the convergence of the model, We use PK sampling in each iteration, which randomly selects a fixed number of samples from each cluster for training. We evaluate our model on Market-1501, DukeMTMC-reID and MSMT17. Results show that HCR gets the state-of-the-arts and achieves 55.3% mAP on Market-1501 and 46.8% mAP on DukeMTMC-reID. Our code will be released soon.

Motivation & Objective

  • To address the degradation in performance of fully unsupervised re-ID methods due to poor-quality pseudo labels generated by clustering.
  • To improve pseudo label quality by leveraging inter-sample similarity in the target domain through hierarchical clustering.
  • To mitigate the negative impact of hard examples—similar-looking samples from different identities—on clustering and training.
  • To enhance model convergence and performance by iteratively reinitializing pseudo labels and fine-tuning with hard-batch triplet loss.
  • To achieve state-of-the-art performance in fully unsupervised re-ID without relying on any manually annotated source data.

Proposed method

  • Hierarchical clustering is used to group samples in the target dataset into clusters based on feature similarity, starting with each sample as a singleton cluster.
  • In each iteration, a fixed number of clusters are merged based on inter-cluster distances, generating pseudo labels for training.
  • PK sampling is applied to select K identities with P positive samples each, forming a mini-batch for hard-batch triplet loss training.
  • Hard-batch triplet loss is used to minimize intra-class distances and maximize inter-class distances, improving feature discrimination.
  • Pseudo labels are reinitialized at the start of each iteration to correct false assignments and improve label quality over time.
  • The process of clustering, sampling, and training is repeated until model convergence, with early stopping applied to avoid overfitting.

Experimental results

Research questions

  • RQ1Can hierarchical clustering effectively generate high-quality pseudo labels for fully unsupervised person re-identification?
  • RQ2How does hard-batch triplet loss improve model generalization when training with noisy pseudo labels?
  • RQ3What is the optimal balance between cluster merging speed (via merge percent) and number of clusters (via s) for maximizing performance?
  • RQ4Can iterative reinitialization of pseudo labels reduce error propagation and improve convergence?
  • RQ5Does combining hierarchical clustering with hard-batch triplet loss outperform existing unsupervised and unsupervised domain adaptation methods?

Key findings

  • HCT achieves 56.4% mAP on Market-1501 and 50.7% mAP on DukeMTMC-reID, significantly outperforming state-of-the-art fully unsupervised re-ID methods.
  • The method surpasses many unsupervised domain adaptation approaches that rely on labeled source data, demonstrating the effectiveness of self-supervised learning on the target domain alone.
  • Setting the number of clusters to s=13 on Market-1501 yields the best performance, as it balances label quality and convergence stability.
  • A merge percent (mp) of 0.07 produces optimal results, indicating that moderate merging speed preserves cluster quality.
  • T-SNE visualization confirms that HCT reduces both false positives (incorrectly merged different identities) and false negatives (correctly matched identities split across clusters).
  • The combination of hierarchical clustering and hard-batch triplet loss leads to more compact and discriminative feature representations, as evidenced by improved clustering quality and mAP.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.