TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/Circle Loss: A Unified Perspective of Pair Similarity Opti...

Circle Loss: A Unified Perspective of Pair Similarity Optimization

Yifan Sun, Changmao Cheng, Yuhan Zhang, Chi Zhang, Liang Zheng, Zhongdao Wang, Yichen Wei

2020-02-25CVPR 2020 6Face RecognitionFace VerificationMetric LearningPerson Re-IdentificationRetrievalImage Retrieval
PaperPDFCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCodeCode

Abstract

This paper provides a pair similarity optimization viewpoint on deep feature learning, aiming to maximize the within-class similarity $s_p$ and minimize the between-class similarity $s_n$. We find a majority of loss functions, including the triplet loss and the softmax plus cross-entropy loss, embed $s_n$ and $s_p$ into similarity pairs and seek to reduce $(s_n-s_p)$. Such an optimization manner is inflexible, because the penalty strength on every single similarity score is restricted to be equal. Our intuition is that if a similarity score deviates far from the optimum, it should be emphasized. To this end, we simply re-weight each similarity to highlight the less-optimized similarity scores. It results in a Circle loss, which is named due to its circular decision boundary. The Circle loss has a unified formula for two elemental deep feature learning approaches, i.e. learning with class-level labels and pair-wise labels. Analytically, we show that the Circle loss offers a more flexible optimization approach towards a more definite convergence target, compared with the loss functions optimizing $(s_n-s_p)$. Experimentally, we demonstrate the superiority of the Circle loss on a variety of deep feature learning tasks. On face recognition, person re-identification, as well as several fine-grained image retrieval datasets, the achieved performance is on par with the state of the art.

Results

TaskDatasetMetricValueModel
Facial Recognition and ModellingLFWAccuracy0.9973CircleLoss
Facial Recognition and ModellingCFP-FPAccuracy0.9602CircleLoss(ours)
Person Re-IdentificationMSMT17Rank-176.9MGN + CircleLoss(ours)
Person Re-IdentificationMSMT17mAP52.1MGN + CircleLoss(ours)
Person Re-IdentificationMSMT17Rank-176.3ResNet50 + CircleLoss(ours)
Person Re-IdentificationMSMT17mAP50.2ResNet50 + CircleLoss(ours)
Person Re-IdentificationMarket-1501Rank-196.1MGN + CircleLoss(ours)
Person Re-IdentificationMarket-1501mAP87.4MGN + CircleLoss(ours)
Person Re-IdentificationMarket-1501Rank-194.2ResNet50 + CircleLoss(ours)
Person Re-IdentificationMarket-1501mAP84.9ResNet50 + CircleLoss(ours)
Face ReconstructionLFWAccuracy0.9973CircleLoss
Face ReconstructionCFP-FPAccuracy0.9602CircleLoss(ours)
Face RecognitionLFWAccuracy0.9973CircleLoss
Face RecognitionCFP-FPAccuracy0.9602CircleLoss(ours)
3DLFWAccuracy0.9973CircleLoss
3DCFP-FPAccuracy0.9602CircleLoss(ours)
Metric LearningCARS196R@183.4CircleLoss
Metric LearningStanford Online ProductsR@178.3Circle Loss
3D Face ModellingLFWAccuracy0.9973CircleLoss
3D Face ModellingCFP-FPAccuracy0.9602CircleLoss(ours)
3D Face ReconstructionLFWAccuracy0.9973CircleLoss
3D Face ReconstructionCFP-FPAccuracy0.9602CircleLoss(ours)

Related Papers

ProxyFusion: Face Feature Aggregation Through Sparse Experts2025-09-24DiffClean: Diffusion-based Makeup Removal for Accurate Age Estimation2025-07-17Unsupervised Ground Metric Learning2025-07-17Weakly Supervised Visible-Infrared Person Re-Identification via Heterogeneous Expert Collaborative Consistency Learning2025-07-17WhoFi: Deep Person Re-Identification via Wi-Fi Channel Signal Encoding2025-07-17From Roots to Rewards: Dynamic Tree Reasoning with RL2025-07-17HapticCap: A Multimodal Dataset and Task for Understanding User Experience of Vibration Haptic Signals2025-07-17A Survey of Context Engineering for Large Language Models2025-07-17