《Circle Loss: A Unified Perspective of Pair Similarity Optimization》
原文:
Circle Loss: A Unified Perspective of Pair Similarity Optimizationarxiv.org摘要
文中提出了一种基于对的相似性优化方法,基于对的优化的方法目的都是最大化类内相似性
一个统一的视角
深度特征学习目的是最大化类内相似性
文中对基于类标签和基于对标签的采用统一的视角。已知在特征空间的一个单个样例
为了最小化
对于公式1,通过简单的修改可以得到triplet loss[1]和分类的loss。
给定一个类的标签(Given class-level labels)
在分类层计算
进一步,当
给定一个对的标签(Given pair-wise labels)
在mini-batch中计算
Circle Loss
自适应加权(Self-placed Weighting)
文中考虑一种更灵活的优化策略去允许每个相似性得分根据其优化状态去选择优化权重。首先忽略掉公式1中阈值(margin)
其中
其中
类内和类间的阈值(With-in class and Between-class Margins)
在以往的损失函数中通过添加一个阈值
其中
在公式6中,Circle loss期望
其中
从公式7中可以看出Circle loss的决策边界是一个以
在Circle loss中有5个超参数,即
在公式8中可以对Circle loss解释为,优化使
将m带入Circle loss中,对
其中
实验结果
总结
Circle loss的思想还是根据相似得分来对其反向传播的权重进行动态调整,这点是和focal loss[7]是一样的,focal loss是根据分类的概率动态调整反向传播的权重的。文中提到的Multi-Similarity loss[6]是在导数中动态调整权重,可以参考我写的另一篇文章
鹰隼王间:Multi-Similarity Loss使用通用对加权进行深度度量学习-CVPR2019zhuanlan.zhihu.com参考
- ^abcFaceNet: A Unified Embedding for Face Recognition and Clustering https://www.cv-foundation.org/openaccess/content_cvpr_2015/app/1A_089.pdf
- ^F. Wang, J. Cheng, W. Liu, and H. Liu. Additive margin softmax for face verification. IEEE Signal Processing Letters, 25(7):926–930, 2018. 1, 2, 3, 4, 6 https://arxiv.org/pdf/1801.05599.pdf
- ^F. Wang, X. Xiang, J. Cheng, and A. L. Yuille. Normface: L2 hypersphere embedding for face verification. In Proceedings of the 25th ACM international conference on Multimedia, pages 1041–1049. ACM, 2017. 2, 3, 4, 6 https://arxiv.org/pdf/1704.06369.pdf
- ^H. Oh Song, Y. Xiang, S. Jegelka, and S. Savarese. Deep metric learning via lifted structured feature embedding. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 4004–4012, 2016. 2, 3, 5, 6, 7 https://www.cv-foundation.org/openaccess/content_cvpr_2016/papers/Song_Deep_Metric_Learning_CVPR_2016_paper.pdf
- ^K. Sohn. Improved deep metric learning with multi-class n-pair loss objective. In NIPS, 2016. 2, 3 http://www.nec-labs.com/uploads/images/Department-Images/MediaAnalytics/papers/nips16_npairmetriclearning.pdf
- ^abX. Wang, X. Han, W. Huang, D. Dong, and M. R. Scott. Multi-similarity loss with general pair weighting for deep metric learning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 5022– 5030, 2019. 2, 3, 7 http://openaccess.thecvf.com/content_CVPR_2019/papers/Wang_Multi-Similarity_Loss_With_General_Pair_Weighting_for_Deep_Metric_Learning_CVPR_2019_paper.pdf
- ^Focal Loss for Dense Object Detection https://arxiv.org/pdf/1708.02002.pdf