TCMM: Token Constraint and Multi-Scale Memory Bank of Contrastive Learning for Unsupervised Person Re-identification
Zheng-An Zhu, Hsin-Che Chien, Chen-Kuo Chiang
TL;DR
TCMM addresses two core issues in unsupervised person re-identification: ViT patch noises and data inconsistency from memory-bank training. It introduces a ViT Token Constraint to suppress patch noise influence and a Multi-scale Memory Bank with prototype and instance memories to stabilize representations and exploit outliers. The prototype memory uses cluster prototypes with a prototype contrast loss, while the instance memory uses an anchor contrastive loss with hardest-in-class positives and cross-class negatives, all updated via momentum. Together, these components yield state-of-the-art results on Market-1501 and MSMT17, with strong robustness and diversity without altering pseudo-label generation or increasing model cost.
Abstract
This paper proposes the ViT Token Constraint and Multi-scale Memory bank (TCMM) method to address the patch noises and feature inconsistency in unsupervised person re-identification works. Many excellent methods use ViT features to obtain pseudo labels and clustering prototypes, then train the model with contrastive learning. However, ViT processes images by performing patch embedding, which inevitably introduces noise in patches and may compromise the performance of the re-identification model. On the other hand, previous memory bank based contrastive methods may lead data inconsistency due to the limitation of batch size. Furthermore, existing pseudo label methods often discard outlier samples that are difficult to cluster. It sacrifices the potential value of outlier samples, leading to limited model diversity and robustness. This paper introduces the ViT Token Constraint to mitigate the damage caused by patch noises to the ViT architecture. The proposed Multi-scale Memory enhances the exploration of outlier samples and maintains feature consistency. Experimental results demonstrate that our system achieves state-of-the-art performance on common benchmarks. The project is available at \href{https://github.com/andy412510/TCMM}{https://github.com/andy412510/TCMM}.
