NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bag of Tricks and a Strong Baseline for Deep Person Re-Identification

Hao Luo, Youzhi Gu, Xingyu Liao, Shenqi Lai, Wei Jiang

Abstract

Recent advancements in person re-identification (ReID) have often relied on increasingly complex network architectures. This paper demonstrates that a simple ResNet50-based model, utilizing only global features and a collection of effective training "tricks," can outperform many state-of-the-art methods. We introduce a novel "BNNeck" structure that resolves the conflict between triplet and identity losses. Our proposed strong baseline achieves 94.5% Rank-1 accuracy on Market1501 and 86.4% on DukeMTMC-reID, providing a high-performance, efficient benchmark for the ReID community.

Introduction

Person Re-identification (ReID) aims to match individuals across non-overlapping camera views. While deep learning has significantly improved performance, there is a growing trend toward complex models involving multi-branch features, pose estimation, or attention mechanisms. However, these models are frequently compared against weak baselines, making it unclear if improvements stem from architectural complexity or superior training hyperparameters. This work establishes a "strong baseline" that is simple yet highly effective, challenging the necessity of complex designs.

Methods: The Strong Baseline

The authors enhance a standard ResNet50 backbone with six specific training techniques:

  1. Warmup Learning Rate: Stabilizes early training by gradually increasing the learning rate for the first 10 epochs.
  2. Random Erasing Augmentation (REA): Improves robustness to occlusions by randomly masking image regions.
  3. Label Smoothing (LS): Prevents overfitting to specific IDs by softening target labels.
  4. Last Stride Modification: Doubles spatial resolution by setting the last stride of ResNet50 to 1.
  5. BNNeck: A Batch Normalization layer inserted between the feature extractor and the classifier.
  6. Center Loss: Enhances intra-class compactness by minimizing distance to class centers.

The BNNeck Innovation

A key insight is the "tug-of-war" between Triplet Loss (optimized for Euclidean distance) and ID Loss (optimized for Cosine similarity). The BNNeck acts as a mediator: Triplet loss is calculated on features before the BN layer, while ID loss is calculated on features after. This allows both losses to converge optimally in their respective feature spaces.

The proposed BNNeck architecture separates the feature spaces for Triplet and ID losses.

Results and Evaluation

The model was evaluated on the Market1501 and DukeMTMC-reID datasets. The results demonstrate that this "simple" baseline significantly outperforms complex models from CVPR and ECCV 2018.

Comparison of the proposed baseline against state-of-the-art methods on Market1501 and DukeMTMC-reID.

On Market1501, the baseline reached 94.5% Rank-1 accuracy and 85.9% mAP. On DukeMTMC-reID, it achieved 86.4% Rank-1 and 76.4% mAP. These results surpass many models that use part-based or attention-based mechanisms, highlighting the impact of well-tuned training strategies.

Conclusion

This paper provides a robust, open-source baseline for person ReID. By showing that a standard ResNet50 with a "bag of tricks" can achieve state-of-the-art results, the authors encourage the community to focus on meaningful architectural innovations that provide value beyond what can be achieved with better training practices. While effective, some tricks like Random Erasing may hinder cross-domain performance, suggesting areas for future refinement.

Summary updated

BibTeX
@inproceedings{luo2019bag,
  author = {Hao Luo and Youzhi Gu and Xingyu Liao and Shenqi Lai and Wei Jiang},
  title = {{Bag of Tricks and a Strong Baseline for Deep Person Re-Identification}},
  booktitle = {Workshops @ CVPR},
  year = {2019},
  doi = {10.1109/cvprw.2019.00190},
}
Figure