Skip to main content
QUICK REVIEW

[Paper Review] Margin Sample Mining Loss: A Deep Learning Based Method for Person Re-identification

Qiqi Xiao, Hao Luo|arXiv (Cornell University)|Oct 2, 2017
Video Surveillance and Tracking MethodsComputer Science44 references131 citations
TL;DR

MSML introduces a hard-sample margin-based metric learning loss that selects the hardest positive and hardest negative pairs within a batch to train embedding models for person re-identification, outperforming several state-of-the-art losses across major benchmarks.

ABSTRACT

Person re-identification (ReID) is an important task in computer vision. Recently, deep learning with a metric learning loss has become a common framework for ReID. In this paper, we also propose a new metric learning loss with hard sample mining called margin smaple mining loss (MSML) which can achieve better accuracy compared with other metric learning losses, such as triplet loss. In experi- ments, our proposed methods outperforms most of the state-of-the-art algorithms on Market1501, MARS, CUHK03 and CUHK-SYSU.

Motivation & Objective

  • Motivate improved metric learning for person ReID beyond standard triplet/quadruplet losses.
  • Propose a margin sample mining loss that exploits extremely hard samples within a batch.
  • Demonstrate that MSML yields superior performance on major ReID benchmarks.

Proposed method

  • Construct a batch with K images per identity (P identities, N=K×P).
  • Compute an N×N distance matrix over embedding features from a CNN backbone.
  • Select the hardest positive pair (maximum distance among positive pairs) and the hardest negative pair (minimum distance among negative pairs).
  • Define the MSML loss as L_eml = (max_positive_distance − min_negative_distance + α)+, where (·)+ is hinge.
  • Incorporate edge mining by handling cases where positive and negative pairs share identities and cases where they do not.
  • Train with Adam using staged learning rates and standard data augmentation.

Experimental results

Research questions

  • RQ1Does MSML improve discrimination between same-identity and different-identity pairs compared to existing metric losses?
  • RQ2How does hard/edge mining in MSML affect performance across different backbone networks and datasets?
  • RQ3Can MSML achieve state-of-the-art results on Market1501, MARS, CUHK-SYSU, and CUHK03?
  • RQ4What is the impact of MSML on the embedding space structure (distance distributions) compared to triplet/quadruplet losses?

Key findings

  • MSML achieves best accuracy on most experiments across base models and datasets tested.
  • On Market1501 with ResNet50, MSML yields mAP 69.6 and rank-1 85.2; on MARS, mAP 72.0 and rank-1 83.0; on CUHK-SYSU, mAP 87.2 and rank-1 89.3; on CUHK03, mAP 84.0 and rank-1 96.7.
  • Compared to TriHard and Quad, MSML consistently offers superior or competitive results across configurations.
  • Distance distribution analyses show MSML yields a clearer separation between positive and negative pairs than traditional triplet-based losses.

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.