当前位置:高等教育资讯网  >  中国高校课件下载中心  >  大学文库  >  浏览文档

深度度量学习综述(北京大学:刘冰、李瑞麟、封举富)

资源类别:文库,文档格式:PDF,文档页数:9,文件大小:4.15MB,团购合买
点击下载完整版文档(PDF)

第14卷第6期 智能系统学报 Vol.14 No.6 2019年11月 CAAI Transactions on Intelligent Systems Nov.2019 D0:10.11992/tis.201906045 网络出版地址:http:/kns.cnki.net/kcms/detail/23.1538.TP.20190828.1022.002.html 深度度量学习综述 刘冰2,李瑞麟2,封举富2 (1.北京大学信息科学技术学院,北京100871;2.北京大学机器感知与智能教育部重点实验室,北京100871) 摘要:深度度量学习已成为近年来机器学习最具吸引力的研究领域之一,如何有效的度量物体间的相似性成 为问题的关键。现有的依赖成对或成三元组的损失函数,由于正负样本可组合的数量极多,因此一种合理的解 决方案是仅对训练有意义的正负样本采样,也称为“难例挖掘”。为诚轻挖掘有意义样本时的计算复杂度,代理 损失设置了数量远远小于样本集合的代理点集。该综述按照时间顺序,总结了深度度量学习领域比较有代表 性的算法,并探讨了其与softmax分类的联系,发现两条看似平行的研究思路,实则背后有着一致的思想。进而 文章探索了许多致力于提升softmax判别性能的改进算法,并将其引人到度量学习中,从而进一步缩小类内距 离、扩大类间距,提高算法的判别性能。 关键词:深度度量学习:深度学习;机器学习;对比损失;三元组损失;代理损失;softmax分类;温度值 中图分类号:TP181文献标志码:A文章编号:1673-4785(2019)06-1064-09 中文引用格式:刘冰,李瑞麟,封举富.深度度量学习综述.智能系统学报,2019,14(6):1064-1072 英文引用格式:LIU Bing,.LI Ruilin,.FENG Jufu..A brief introduction to deep metric learning J.CAAI transactions on intelligent systems,2019,146:1064-1072. A brief introduction to deep metric learning LIU Bing,LI Ruilin2,FENG Jufu2 (1.School of Electronics Engineering and Computer Science,Peking University,Beijing 100871,China;2.Key Laboratory of Ma- chine Perception(MOE),Peking University,Beijing 100871,China) Abstract:Recently,deep metric learning(DML)has become one of the most attractive research areas in machine learn- ing.Learning an effective deep metric to measure the similarity between subjects is a key problem.As to existing loss functions that rely on pairwise or triplet-wise,as training data increases,and since the number of positive and negative samples that can be combined is extremely large,a reasonable solution is to sample only positive and negative samples that are meaningful for training,also known as Difficult Case Mining.To alleviate computational complexity of mining meaningful samples,the proxy loss chooses proxy sets that are much smaller than the sample sets.This review summar- izes some algorithms representative of DML,according to the time order,and discusses their relationship with softmax classification.It was found that these two seemingly parallel research methods have a consistent idea behind them.This paper explores some improved algorithms that aim to improve the softmax discriminative performance,and introduces them into metric learning,so as to further reduce intra-class distance,expand inter-class distance,and,finally,improve the discriminant performance of the algorithm. Keywords:deep metric learning;deep learning;machine learning;contrastive loss;triplet loss;proxy loss;softmax clas- sification;temperature 在机器学习领域,距离(distance)的概念从诞 生之日起就一直有着广泛的应用。它提供了一种 数据间相似性的度量,即距离近的数据要尽可能 收稿日期:2019-06-24.网络出版日期:2019-08-28. 基金项目:国家自然科学基金重点项目(61333015) 相似,距离远的数据要尽可能不同2。这种相似 通信作者:封举富.E-mail:fjf@cis.pku.edu.cn. 性学习的思想应用在分类问题上是著名的最近

DOI: 10.11992/tis.201906045 网络出版地址: http://kns.cnki.net/kcms/detail/23.1538.TP.20190828.1022.002.html 深度度量学习综述 刘冰1,2,李瑞麟1,2,封举富1,2 (1. 北京大学 信息科学技术学院,北京 100871; 2. 北京大学 机器感知与智能教育部重点实验室,北京 100871) 摘 要:深度度量学习已成为近年来机器学习最具吸引力的研究领域之一,如何有效的度量物体间的相似性成 为问题的关键。现有的依赖成对或成三元组的损失函数,由于正负样本可组合的数量极多,因此一种合理的解 决方案是仅对训练有意义的正负样本采样,也称为“难例挖掘”。为减轻挖掘有意义样本时的计算复杂度,代理 损失设置了数量远远小于样本集合的代理点集。该综述按照时间顺序,总结了深度度量学习领域比较有代表 性的算法,并探讨了其与 softmax 分类的联系,发现两条看似平行的研究思路,实则背后有着一致的思想。进而 文章探索了许多致力于提升 softmax 判别性能的改进算法,并将其引入到度量学习中,从而进一步缩小类内距 离、扩大类间距,提高算法的判别性能。 关键词:深度度量学习;深度学习;机器学习;对比损失;三元组损失;代理损失;softmax 分类;温度值 中图分类号:TP181 文献标志码:A 文章编号:1673−4785(2019)06−1064−09 中文引用格式:刘冰, 李瑞麟, 封举富. 深度度量学习综述 [J]. 智能系统学报, 2019, 14(6): 1064–1072. 英文引用格式:LIU Bing, LI Ruilin, FENG Jufu. A brief introduction to deep metric learning[J]. CAAI transactions on intelligent systems, 2019, 14(6): 1064–1072. A brief introduction to deep metric learning LIU Bing1,2 ,LI Ruilin1,2 ,FENG Jufu1,2 (1. School of Electronics Engineering and Computer Science, Peking University, Beijing 100871, China; 2. Key Laboratory of Ma￾chine Perception (MOE), Peking University, Beijing 100871, China) Abstract: Recently, deep metric learning (DML) has become one of the most attractive research areas in machine learn￾ing. Learning an effective deep metric to measure the similarity between subjects is a key problem. As to existing loss functions that rely on pairwise or triplet-wise, as training data increases, and since the number of positive and negative samples that can be combined is extremely large, a reasonable solution is to sample only positive and negative samples that are meaningful for training, also known as Difficult Case Mining. To alleviate computational complexity of mining meaningful samples, the proxy loss chooses proxy sets that are much smaller than the sample sets. This review summar￾izes some algorithms representative of DML, according to the time order, and discusses their relationship with softmax classification. It was found that these two seemingly parallel research methods have a consistent idea behind them. This paper explores some improved algorithms that aim to improve the softmax discriminative performance, and introduces them into metric learning, so as to further reduce intra-class distance, expand inter-class distance, and, finally, improve the discriminant performance of the algorithm. Keywords: deep metric learning; deep learning; machine learning; contrastive loss; triplet loss; proxy loss; softmax clas￾sification; temperature 在机器学习领域,距离 (distance) 的概念从诞 生之日起就一直有着广泛的应用。它提供了一种 数据间相似性的度量,即距离近的数据要尽可能 相似,距离远的数据要尽可能不同[1-2]。这种相似 性学习的思想应用在分类问题上是著名的最近 收稿日期:2019−06−24. 网络出版日期:2019−08−28. 基金项目:国家自然科学基金重点项目 (61333015). 通信作者:封举富. E-mail:fjf@cis.pku.edu.cn. 第 14 卷第 6 期 智 能 系 统 学 报 Vol.14 No.6 2019 年 11 月 CAAI Transactions on Intelligent Systems Nov. 2019

第6期 刘冰,等:深度度量学习综述 ·1065· 邻(nearest neighbors,.NN)分类,该方法将待测样 度量学习起源于分类问题的最近邻思想,经 本的类别分配为距其最近的训练样本的类别。这 历了逐步演化最终至代理近邻损失函数。已有文 种最近邻分类思想催生了距离度量学习(distance 献[27]证明移除偏置项、正则化输入特征x和权 metric learning)的产生。 重W后的softmax分类任务可视为基于代理点的 欧氏距离作为一种简洁有效的度量工具得到 度量学习。考虑到代理近邻损失与softmax的相 了度量学习算法的广泛青睐,然而,单一形式的 关性一softmax的权值可视为该类别学到的代 距离度量无法普适所有实际问题。因此,度量学 理点,我们借鉴了带温度值的softmax分类思想, 习希望能够结合数据自身特点,学习一种有效的 将温度值引入代理损失,从而进一步扩大类间 度量方式,用于求解目标问题。 距,提高了度量学习的判别性能。至此,我们将 早期度量学习算法的产生,极大地改善了基 度量学习与分类这两条看似独立的分支建立了联 于距离分类器的分类性能5、基于距离聚类的无 系,深入挖掘出二者背后统一的思想,可谓“殊途 监督问题山以及特征降维的表现。而后,随着 同归”。 深度学习1的飞速发展,结合深度神经网络在语 义特征抽取、端到端训练优势的深度度量学习, 1深度度量学习 逐步进入人们的眼帘。 在人脸识别、指纹识别等开集分类的任务 相比于经典度量学习,深度度量学习可以对 中,类别数往往很多而类内样本数比较少,在这 输入特征做非线性映射,在计算机视觉领域得到 种情况下基于深度学习的分类方法常表现出一些 了广泛的应用,例如:图像检索s16、图像聚类刀 局限性,如缺少类内约束、分类器优化困难等。 迁移学习1、验证20、特征匹配。除此之外, 这些局限可以通过深度度量学习来解决:深度度 对于一些极端分类22任务(类别数目很多,但每 量学习通过特定的损失函数,学习到样本到特征 类仅有几个样本),深度度量学习仍有不错的表 的映射∫()。在该映射下,样本特征间的度量 现。例如,基于深度度量学习,FaceNet2在8M d(通常为欧式距离‖6(x)-f6(x)儿)便可以反映 个个体、260M张图像的人脸识别任务中,表现结 样本间的相似程度:类内样本对应的特征距离更 果已经超越了人类水平。 近,类间样本对应的特征距离更远。 标准的深度度量学习通过挖掘2个网或3个阿 1.1对比损失 正负样本对来约束类内距、扩大类间距。这为训 对比损失(contrastive loss)2s,0是深度度量学 练样本的采样带来了挑战:由于训练样本数量极 习的开篇之作,它首次将深度神经网络引人度量 多,因此只能挖掘有意义的样本参与训练。若负 学习。在此之前,经典度量学习最早应用于聚类 样本选取过难,则易导致训练不稳定;若选取过 问题,如:局部线性嵌入(locally linear embedding 简单,则易导致损失函数无梯度,不利于模型的 LLE)Bu、Hessian局部线性嵌入(Hessian LLE)B 收敛。 主成分分析(principal component analysis,.PCA)B] 代理损失6的提出为每种类别分配了一个代 等。它们通过定义样本x和样本y之间的马氏距 理点,由于代理点数量远远小于样本集合,因而 离d(x,y)=(x-y)'M(x-y),约束相似样本马氏距离 可以完整存储起来,在训练过程中参与梯度回 小,不相似样本马氏距离大。其中M为马氏距 传,从而为训练过程提供了全局的语义信息,取 离,为dxd的半正定矩阵。相比于欧氏距离,马氏 得了更好的结果。 距离考虑了特征之间的权重与相关性,且凸问题 此外,我们发现改进后的代理近邻损失与标 易被优化,因而得到了广泛应用。 准的分类任务有些相似:一方面,损失函数同时 然而,传统方法主要存在两个弊端:一是依赖 优化所有类别实现缩小类内距、扩大类间距;另 于原始输入空间进行距离度量;二是不能很好地 一方面,如果我们移除了softmax线性变换的偏 映射与训练样本关系未知的新样本的函数。作者 置项吻,权重W的物理含义即为该类别的代理点。 利用深度学习特征提取的优势,将原始的输入空 标准分类任务结合softmax与交叉熵建立损 间映射到欧氏空间,直接约束类内样本的特征尽 失函数,可以输出特征向量分别属于每一类的概 可能接近而类间样本的特征足够远如式(1): 率。然而softmax不具有较强的判别性,因而很 I comtrast(Xi,Xj)=yijdij+(1-yij)[a-dij (1) 多算法提出温度值概念229,从特征梯度层面改 其中,若X,与X类别编号相同则yw=1,否则 进其性能,具体细节我们将在后文展开综述。 y=0。d,即为欧式距离,a控制类间样本足够

邻 (nearest neighbors, NN)[3] 分类,该方法将待测样 本的类别分配为距其最近的训练样本的类别。这 种最近邻分类思想催生了距离度量学习 (distance metric learning) 的产生[4]。 欧氏距离作为一种简洁有效的度量工具得到 了度量学习算法的广泛青睐,然而,单一形式的 距离度量无法普适所有实际问题。因此,度量学 习希望能够结合数据自身特点,学习一种有效的 度量方式,用于求解目标问题。 早期度量学习算法的产生,极大地改善了基 于距离分类器的分类性能[5-6] 、基于距离聚类的无 监督问题[1] 以及特征降维[7] 的表现。而后,随着 深度学习[8-14] 的飞速发展,结合深度神经网络在语 义特征抽取、端到端训练优势的深度度量学习, 逐步进入人们的眼帘。 相比于经典度量学习,深度度量学习可以对 输入特征做非线性映射,在计算机视觉领域得到 了广泛的应用,例如:图像检索[15-16] 、图像聚类[17] 、 迁移学习[18-19] 、验证[20] 、特征匹配[21]。除此之外, 对于一些极端分类[22-24] 任务 (类别数目很多,但每 类仅有几个样本),深度度量学习仍有不错的表 现。例如,基于深度度量学习,FaceNet[25] 在 8 M 个个体、260 M 张图像的人脸识别任务中,表现结 果已经超越了人类水平。 标准的深度度量学习通过挖掘 2 个 [26] 或 3 个 [25] 正负样本对来约束类内距、扩大类间距。这为训 练样本的采样带来了挑战:由于训练样本数量极 多,因此只能挖掘有意义的样本参与训练。若负 样本选取过难,则易导致训练不稳定;若选取过 简单,则易导致损失函数无梯度,不利于模型的 收敛。 代理损失[16] 的提出为每种类别分配了一个代 理点,由于代理点数量远远小于样本集合,因而 可以完整存储起来,在训练过程中参与梯度回 传,从而为训练过程提供了全局的语义信息,取 得了更好的结果。 此外,我们发现改进后的代理近邻损失与标 准的分类任务有些相似:一方面,损失函数同时 优化所有类别实现缩小类内距、扩大类间距;另 一方面,如果我们移除了 softmax 线性变换的偏 置项[27] ,权重 W 的物理含义即为该类别的代理点。 标准分类任务结合 softmax 与交叉熵建立损 失函数,可以输出特征向量分别属于每一类的概 率。然而 softmax 不具有较强的判别性,因而很 多算法提出温度值概念[27-29] ,从特征梯度层面改 进其性能,具体细节我们将在后文展开综述。 度量学习起源于分类问题的最近邻思想,经 历了逐步演化最终至代理近邻损失函数。已有文 献 [27] 证明移除偏置项、正则化输入特征 x 和权 重 W 后的 softmax 分类任务可视为基于代理点的 度量学习。考虑到代理近邻损失与 softmax 的相 关性—softmax 的权值可视为该类别学到的代 理点,我们借鉴了带温度值的 softmax 分类思想, 将温度值引入代理损失,从而进一步扩大类间 距,提高了度量学习的判别性能。至此,我们将 度量学习与分类这两条看似独立的分支建立了联 系,深入挖掘出二者背后统一的思想,可谓“殊途 同归”。 1 深度度量学习 fθ (xi)− fθ ( xj ) 2 在人脸识别、指纹识别等开集分类的任务 中,类别数往往很多而类内样本数比较少,在这 种情况下基于深度学习的分类方法常表现出一些 局限性,如缺少类内约束、分类器优化困难等。 这些局限可以通过深度度量学习来解决:深度度 量学习通过特定的损失函数,学习到样本到特征 的映射 f θ (∙)。在该映射下,样本特征间的度量 d(i,j) (通常为欧式距离 ) 便可以反映 样本间的相似程度:类内样本对应的特征距离更 近,类间样本对应的特征距离更远。 1.1 对比损失 对比损失 (contrastive loss)[26,30] 是深度度量学 习的开篇之作,它首次将深度神经网络引入度量 学习。在此之前,经典度量学习最早应用于聚类 问题[1] ,如:局部线性嵌入 (locally linear embedding, LLE)[31] 、Hessian 局部线性嵌入 (Hessian LLE)[32] 、 主成分分析 (principal component analysis, PCA)[33] 等。它们通过定义样本 x 和样本 y 之间的马氏距 离 d(x, y)=(x−y) TM(x−y),约束相似样本马氏距离 小,不相似样本马氏距离大。其中 M 为马氏距 离,为 d×d 的半正定矩阵。相比于欧氏距离,马氏 距离考虑了特征之间的权重与相关性,且凸问题 易被优化,因而得到了广泛应用。 然而,传统方法主要存在两个弊端:一是依赖 于原始输入空间进行距离度量;二是不能很好地 映射与训练样本关系未知的新样本的函数。作者 利用深度学习特征提取的优势,将原始的输入空 间映射到欧氏空间,直接约束类内样本的特征尽 可能接近而类间样本的特征足够远如式 (1): l contrast(Xi ,Xj) = yi, jd 2 i, j +(1− yi, j)[α−d 2 i, j ]+ (1) 其中,若 Xi 与 Xj 类别编号相同则 y(i , j)=1,否则 y(i,j)=0。d(i,j) 即为欧式距离,α 控制类间样本足够 第 6 期 刘冰,等:深度度量学习综述 ·1065·

·1066· 智能系统学报 第14卷 远的程度。 的原因归结于训练时每次只挖掘一个负样本,缺 1.2三元组损失 少了与其他负样本交互过程。因此他们提出多 对比损失仅仅只约束类内对的特征尽量近 类N元组损失(multi-class N-pair loss):同类样本 而类间对的特征尽量远,三元组损失(triplet 的距离不应每次只小于一组类间距,而应同时小 1oss)5,2在对比损失的基础上进一步考虑了类内 于n-1组类间距离,从而实现类内对相似度显著 对与类间对之间的相对关系:首先固定一个锚点 高于所有类间对相似度。损失函数的设计借鉴 样本(anchor),希望包含该样本的类间对(anchor- 了(neighborhood component analysis,.NCA)的表 negative)特征的距离能够比同样包含该样本的类 达形式,具体如式(4)所示: 内对(anchor-positive)特征的距离大一个间隔 exp(Si I(X,y)= (margin),如式(2): 点expS+∑expS.k I uiplet(Xa,X.Xn)=[dep+m-dn (2) ky≠州间 (4) 式中X。、X,、X.分别为锚点样本、与锚点样本同 类的样本以及与锚,点样本异类的样本;m即为间隔。 然而,对于三元组的选取,采样策略是至关重 式中:,j表示同类样本;k表示不同类样本;P为 要的:假设训练集样本数为n,那么所有的三元组 一个batch内的所有正样本;m为batch size的大 组合数为O(n),数量非常庞大。其中存在大量的 小。另一方面,为了使分类面只与向量X的方向 平凡三元组,这些平凡三元组类间对的距离已经 有关,与模长无关,作者对一个batch内的所有输 比类内对的距离大一个间隔,它们对应的损失为 入特征X利用L,正则化。 0。简单的随机采样会导致模型收敛缓慢,特征不 1.5成对聚类损失 具有足够的判别性,43。因此一种合理的解决 由于三元组损失2在锚点选取时的任意性, 方案是仅挖掘对训练有意义的正负样本,也称为 因此有些不满足类间距>类内距+间隔的样本,可 “难例挖掘s,6-。例如:HardNet旨在在一个 能并没有被挖掘到,如图1所示。 训练batch中挖掘一些最难的三元组。然而如果 每次都针对锚点样本挖掘最困难的类间样本,模 正样本 负样本 锚点 负样本 型又很容易坍缩。因此,文献25]提出了一种半难 锚点 正样本 例(semi-hard)挖掘的方式:选择比类内样本距离 (a)同类样本中 6)同类样本中 远而又不足够远出间隔的类间样本来进行训练。 选择右侧样本作为锚点 选择左侧样本作为锚点 1.3提升结构化损失 图1构建三元组时的两种不同方法训 由于三元组损失一次采样3个样本,虽然能 Fig.1 Two different cases when building triplets 够同时考虑类内距、类间距以及二者的相对关 若样本以左侧方式组合,则负样本很易被检 系,但该损失没有充分利用训练时每个batch内 测到,从而距离得到优化;但若以右边方式设置 的所有样本,因此文献[I8]提出在一个batch内 锚点、正样本,则负样本由于满足约束,因而 建立稠密的成对(pair-wise)的连接关系,具体实 1oss为0,导致同类物体的距离没有被拉近,这一 现是:对于每一个类内对,同时选择两个难例,一 定程度上减缓了收敛的速度。这说明三元组损失 个距离x”最近,一个距离最近。提升结构化损 对锚点的选取十分敏感,考虑到相似样本应该聚 失((ifted structured loss)I阁对应的损失函数为 集成簇回,不同类样本应保持相对较远,因此他们阿 1∑max0,J 21 提出成对聚类损失函数(coupled clusters loss, (3) Jij max(max a-Dik,max a-Di)+Dij CCL)为同类样本估计了一个类内中心c”: (i/eN 1 cP= (5) 式中:产为batch内所有的正样本对集合;N为 ∑f batch内所有的负样本对集合。 从而希望所有的正样本X到聚类中心c”的 这种设计结构性损失函数,以在一个训练 距离加间隔α小于其他类间样本到聚类中心cP batch中考虑所有可能的训练对或三元组并执行软 的距离,对应的损失函数为 化的难例挖掘在文献[40]中也得到了相似的应用。 L(W.XP.X")= 1.4多类N元组损失 max(0.llf(X)-cP+a-If(X:)-cF) (6) Sohn等1将对比损失和三元组收敛比较慢

远的程度。 1.2 三元组损失 对比损失仅仅只约束类内对的特征尽量近 而类间对的特征尽量远,三元组损失 (triplet loss)[5,25] 在对比损失的基础上进一步考虑了类内 对与类间对之间的相对关系:首先固定一个锚点 样本 (anchor),希望包含该样本的类间对 (anchor￾negative) 特征的距离能够比同样包含该样本的类 内对 (anchor-positive) 特征的距离大一个间隔 (margin),如式 (2): l triplet(Xa,Xb,Xn) = [d 2 a,p +m−d 2 a,n ]+ (2) 式中 Xa、Xp、Xn 分别为锚点样本、与锚点样本同 类的样本以及与锚点样本异类的样本;m 即为间隔。 然而,对于三元组的选取,采样策略是至关重 要的:假设训练集样本数为 n,那么所有的三元组 组合数为 O(n 3 ),数量非常庞大。其中存在大量的 平凡三元组,这些平凡三元组类间对的距离已经 比类内对的距离大一个间隔,它们对应的损失为 0。简单的随机采样会导致模型收敛缓慢,特征不 具有足够的判别性[14, 34-35]。因此一种合理的解决 方案是仅挖掘对训练有意义的正负样本,也称为 “难例挖掘” [25,36-39]。例如:HardNet[36] 旨在在一个 训练 batch 中挖掘一些最难的三元组。然而如果 每次都针对锚点样本挖掘最困难的类间样本,模 型又很容易坍缩。因此,文献 [25] 提出了一种半难 例 (semi-hard) 挖掘的方式:选择比类内样本距离 远而又不足够远出间隔的类间样本来进行训练。 1.3 提升结构化损失 由于三元组损失一次采样 3 个样本,虽然能 够同时考虑类内距、类间距以及二者的相对关 系,但该损失没有充分利用训练时每个 batch 内 的所有样本,因此文献 [18] 提出在一个 batch 内 建立稠密的成对 (pair-wise) 的连接关系,具体实 现是:对于每一个类内对,同时选择两个难例,一 个距离 x a 最近,一个距离 x p 最近。提升结构化损 失 (lifted structured loss)[18] 对应的损失函数为 J = 1 2|Pˆ| ∑ (i, j)∈Pˆ max (0, Ji. j) 2 Ji, j = max(max (i, j)∈Nˆ α− Di,k ,max (j,l)∈Nˆ α− Dj,l)+ Di, j (3) 式中: Pˆ 为 batch 内所有的正样本对集合; Nˆ 为 batch 内所有的负样本对集合。 这种设计结构性损失函数,以在一个训练 batch 中考虑所有可能的训练对或三元组并执行“软 化的”难例挖掘在文献 [40] 中也得到了相似的应用。 1.4 多类 N 元组损失 Sohn 等 [15] 将对比损失和三元组收敛比较慢 的原因归结于训练时每次只挖掘一个负样本,缺 少了与其他负样本交互过程。因此他们提出多 类 N 元组损失 (multi-class N-pair loss)[15] :同类样本 的距离不应每次只小于一组类间距,而应同时小 于 n-1 组类间距离,从而实现类内对相似度显著 高于所有类间对相似度。损失函数的设计借鉴 了 (neighborhood component analysis, NCA)[6] 的表 达形式,具体如式 (4) 所示: l(X, y) = −1 |P| ∑ (i, j)∈P log exp{Si, j} exp{Si, j}+ ∑ k:y[k],y[i] exp{Si , k} + λ m ∑m i || f(Xi)||2 (4) 式中:i, j 表示同类样本;k 表示不同类样本;P 为 一个 batch 内的所有正样本;m 为 batch size 的大 小。另一方面,为了使分类面只与向量 Xi 的方向 有关,与模长无关,作者对一个 batch 内的所有输 入特征 Xi 利用 L2 正则化。 1.5 成对聚类损失 由于三元组损失[25] 在锚点选取时的任意性, 因此有些不满足类间距>类内距+间隔的样本,可 能并没有被挖掘到,如图 1 所示。 正样本 锚点 正样本 负样本 锚点 负样本 (a) 同类样本中 选择右侧样本作为锚点 (b) 同类样本中 选择左侧样本作为锚点 图 1 构建三元组时的两种不同方法[41] Fig. 1 Two different cases when building triplets[41] 若样本以左侧方式组合,则负样本很易被检 测到,从而距离得到优化;但若以右边方式设置 锚点、正样本,则负样本由于满足约束,因 而 loss 为 0,导致同类物体的距离没有被拉近,这一 定程度上减缓了收敛的速度。这说明三元组损失 对锚点的选取十分敏感,考虑到相似样本应该聚 集成簇[42] ,不同类样本应保持相对较远,因此他们[36] 提出成对聚类损失函数 (coupled clusters loss, CCL) 为同类样本估计了一个类内中心 c p : c p = 1 Np N∑p i f(X p i ) (5) α 从而希望所有的正样本 Xi p 到聚类中心 c p 的 距离加间隔 小于其他类间样本到聚类中心 c p 的距离,对应的损失函数为 L(W,X p ,X n ) = N∑p i 1 2 max{0,|| f(X p i )− c p ||2 +α− | f(X n ∗ )− c p ||2 } (6) ·1066· 智 能 系 统 学 报 第 14 卷

第6期 刘冰,等:深度度量学习综述 ·1067· 式中:X为正样本;X"为负样本;NP为同类正样 tion function),现已被广泛应用于数据求和s-49与 本的数目;cP为正样本的聚类中心。 聚类。 1.6中心损失 由于最大化式(8)是一个NP-hard问题so-s) 处理开集识别问题的深度特征,不仅需要具 因此作者通过对子模块的贪婪求解,找到了一个 有可分离性(separable),还应具有判别性(discrim- 完备的优化下界,复杂度为01-。具体方法 inative)。可判别性特征可以很好地容忍类内变 是:通过设计一个打分函数,基于真实类别标 化、分离类间变化,进而可以应用在最近邻 签ⅴ来评估聚类的好坏.对应的公式为 (nearest neighbor,NN)和k近邻(k-nearest neigh- F(Xy:0=- bor,k-NN)4算法中。然而,softmax loss仅能约束 T品器F-sUo (9 特征具有可分离性、不具有判别性,因此为CNN 其中,i:y[可=表示当真实类别标签为第k类 设计一个有效的损失函数是极为重要的。 时,对应的{1,2,,n}的元素构成的集合。 中心损失(center loss)结合了成对聚类损 由于希望打分函数F越大越好,因此借鉴三 失(CCL)和softmax loss的优势,用CCL约束类 元组损失的间隔思想,F比F相差一个间隔 内,softmax约束类间。具体做法是:为每一类特 △y,y),即 征学习一个聚类中心,随着训练的进行,同步更 I(X.y)=[max (F(X.S:0)+yA(y.y))-F(X.y':0)] sc1,-川 新类内中心以及最小化特征与对应中心的距离。 (10) 将聚类的loss与softmax联合训练,利用超参平衡 其中 y[i]=arg minllf(X :0)-f(Xues:0)l 两个监督信号的权重。主观上,softmax损失可以 分离不同类别特征,center loss可以使同类特征聚 △0y,y=1-NMIy,y) 在一起中心点周围,从而扩大类间距、缩小类内 NMI(y1.y2)= My1,2) (11) VH(y1)H(y2) 距,学到了更具有判别性的深度特征。对应的损 失函数为 其中,NM表示正则化互信息(normalized mutual L=Ls +Lc= information,NM)s2。由于这种聚类方法在特征 exp(WX:+by1 +号x-6 空间中有一个全局的感受野,因此可以解决局部 log + (7) epwX+b 最优的问题。聚类的损失函数可以约束全局样本 j1 向类内中心靠拢、间隔项中的NM矩阵可以使不 其中c,表示第y类深度特征中心。 同类别远离。 1.7设备定位损失 1.8代理损失 Oh等阿认为,当前存在的大多数方法82点岣 为了克服三元组样本对采样困难的问题,代 理损失提出了一种用小规模的代理点来代替 通常只关注数据的局部区域(如:二元组、三元组 大规模的原始样本点的方法:将原始样本用代理 或n元组),并没有考虑到全局的结构信息,因而 点来近似,这样约束类内对和类间对的距离便可 降低了聚类和检索的表现。 以转化为约束锚点样本与同类样本对应代理点和 作者指出,一旦正样本对距离较远且二者之 锚点与异类样本对应代理点的距离。随着训练的 间被其他类别的负样本间隔开,那么正样本对间 进行,样本的特征与代理点都获得更新。 相互吸引的梯度信号被负样本相互排斥的梯度信 假设原始样本点和代理点的集合分别为X, 号所超过,从而同类样本很难聚成一类,而被错 P,且X=n,P=m,m≤n。有如下两种分配代理点 误地分开成了两类。因此,他们提出一组聚类损 的方式:1)动态分配策略:选取距该样本最近的 失一设备定位损失(facility location loss)来解 代理点作为代表该样本的代理点(式(12));2)静 决这个问题。 态分配策略:选取与样本类别数相同的代理点数目, 对于一组输入样本X={X,X2,…,Xn,以k- 某一类样本被固定分配至对应该类别的代理点。 mediods切思想为基础,我们期望从中选取的聚类 p(x)=arg mind-(X,p) (12) 中心{Xs}(其中Sc{1,…,n)满足在特征空间中与 同类样本距离尽可能接近: 代理损失借鉴了近邻成分分析(neighborhood F(X,S:0)=->minllf(X::0)-f(j;0)l (8) component analysis,.NCA)的思路,希望锚点样本 islr fes 与其同类代理点的距离尽可能近而与其异类代理 式(8)也被称为设备定位函数(facility loca- 点的距离尽可能远:

X∗ n N 式中: p Xi p 为正样本; 为负样本; 为同类正样 本的数目;c p 为正样本的聚类中心。 1.6 中心损失 处理开集识别问题的深度特征,不仅需要具 有可分离性 (separable),还应具有判别性 (discrim￾inative)。可判别性特征可以很好地容忍类内变 化、分离类间变化,进而可以应用在最近 邻 (nearest neighbor, NN)[3] 和 k 近邻 (k-nearest neigh￾bor, k-NN)[43] 算法中。然而,softmax loss 仅能约束 特征具有可分离性、不具有判别性,因此为 CNN 设计一个有效的损失函数是极为重要的。 中心损失 (center loss)[44] 结合了成对聚类损 失 (CCL) 和 softmax loss 的优势,用 CCL 约束类 内,softmax 约束类间。具体做法是:为每一类特 征学习一个聚类中心,随着训练的进行,同步更 新类内中心以及最小化特征与对应中心的距离。 将聚类的 loss 与 softmax 联合训练,利用超参平衡 两个监督信号的权重。主观上,softmax 损失可以 分离不同类别特征,center loss 可以使同类特征聚 在一起中心点周围,从而扩大类间距、缩小类内 距,学到了更具有判别性的深度特征。对应的损 失函数为 L = LS + LC = ∑m i=1 log exp{WT yi Xi + byi } ∑n j=1 exp{WT yi Xi + byi } + λ 2 ∑m i |Xi − cyi ||2 2 (7) 其中 cyi 表示第 yi 类深度特征中心。 1.7 设备定位损失 Oh 等 [45] 认为,当前存在的大多数方法[15, 18, 25, 46] 通常只关注数据的局部区域 (如:二元组、三元组 或 n 元组),并没有考虑到全局的结构信息,因而 降低了聚类和检索的表现。 作者指出,一旦正样本对距离较远且二者之 间被其他类别的负样本间隔开,那么正样本对间 相互吸引的梯度信号被负样本相互排斥的梯度信 号所超过,从而同类样本很难聚成一类,而被错 误地分开成了两类。因此,他们提出一组聚类损 失—设备定位损失 (facility location loss)[45] 来解 决这个问题。 X = {X1,X2,··· ,Xn} S ⊂ {1,··· ,n} 对于一组输入样本 , 以 k - mediods[47] 思想为基础,我们期望从中选取的聚类 中心{XS}(其中 ) 满足在特征空间中与 同类样本距离尽可能接近: F(X,S; θ) = − ∑ i∈|X| min j∈S || f(Xi ; θ)− f(Xj ; θ)|| (8) 式 (8) 也被称为设备定位函数 (facility loca￾tion function),现已被广泛应用于数据求和[48-49] 与 聚类。 O(1− 1 e ) F˜ 由于最大化式 (8) 是一个 NP-hard 问题[50-51] , 因此作者通过对子模块的贪婪求解,找到了一个 完备的优化下界,复杂度为 。具体方法 是:通过设计一个打分函数 ,基于真实类别标 签 y *来评估聚类的好坏,对应的公式为 F˜(X, y ∗ ; θ) = − ∑ i∈|Y| max j∈{i:y ∗ [i]=k} F(X{i:y ∗ [i]=k} ,{j}; θ) (9) {i : y ∗ [i] = k} 2, ··· 其中, 表示当真实类别标签为第 k 类 时,对应的{1, , n}的元素构成的集合。 F˜ F˜ ∆(y, y ∗ ) 由于希望打分函数 越大越好,因此借鉴三 元组损失的间隔思想, F 比 相差一个间隔 ,即 l(X, y ∗ ) = [ max S⊂{1,···,n} {F(X,S; θ)+γ∆(y, y ∗ )} − F˜(X, y ∗ ; θ)] (10) 其中, y[i] = argmin j || f(Xi ; θ)− f(X{j|∈S} ; θ)|| ∆(y, y ∗ ) = 1−NMI(y, y ∗ ) NMI(y1 , y2) = MI(y1 , y2) √ H(y1)H(y2) (11) 其中,NMI 表示正则化互信息 (normalized mutual information, NMI)[52]。由于这种聚类方法在特征 空间中有一个全局的感受野,因此可以解决局部 最优的问题。聚类的损失函数可以约束全局样本 向类内中心靠拢、间隔项中的 NMI 矩阵可以使不 同类别远离。 1.8 代理损失 为了克服三元组样本对采样困难的问题,代 理损失[16] 提出了一种用小规模的代理点来代替 大规模的原始样本点的方法:将原始样本用代理 点来近似,这样约束类内对和类间对的距离便可 以转化为约束锚点样本与同类样本对应代理点和 锚点与异类样本对应代理点的距离。随着训练的 进行,样本的特征与代理点都获得更新。 ≪ 假设原始样本点和代理点的集合分别为 X, P,且|X|=n, |P|=m, m n。有如下两种分配代理点 的方式:1) 动态分配策略:选取距该样本最近的 代理点作为代表该样本的代理点 (式 (12));2) 静 态分配策略:选取与样本类别数相同的代理点数目, 某一类样本被固定分配至对应该类别的代理点。 p(x) = argmin p∈P d 2 (X, p) (12) 代理损失借鉴了近邻成分分析 (neighborhood component analysis, NCA)[6] 的思路,希望锚点样本 与其同类代理点的距离尽可能近而与其异类代理 点的距离尽可能远: 第 6 期 刘冰,等:深度度量学习综述 ·1067·

·1068· 智能系统学报 第14卷 1 PM(X.P)=-log( exp(-dP(X,px》 (13) 的差别,代理点的设定使得“样本对”的数量大大 ∑xp-fK,z 减少:对于每一个锚点样本,图(a)中可以组成 12个三元组,而图(b)中仅存在2个锚点-代理点 图2展示了三元组损失与代理损失在优化时 对,样本挖掘的困难很大程度被克服了。 正代理点 正样本 负代理点 D正样本 锚点 负样本 错点 负样本 (a)三元组损失 (b)代理损失 图2三元组损失VS代理损失示意图 Fig.2 Triplet loss VS proxy loss 另一方面,作者也论证了代理损失与三元组 这样10g函数内的式子可以看成是样本被分 损失的优化目标是一致的,通过三角不等式证明 配到其对应代理点的概率,这里用q来表示概率即: 了代理损失是三元组损失的上界。 g(pix)= exp(-d(X,Pi)) (15) 1.9其他损失 〉exp(-d(X,p) 除此之外,最近还有一些使用深度网络进行 度量学习的工作。Hershey等I在二值化的真实 这样式(14)可以看作上述后验概率结合交叉 标签和成对估计的亲和度矩阵之间的残差上使用 嫡损失以及类别标签所得。 了Frobenius范数;他们将此应用于语音谱信号聚 代理损失与softmax不同之处在于,softmax 类。然而,直接使用Frobenius范数是次优的,因 将样本经过线性变换wx+b之后进行归一化作为 为它忽略了亲和矩阵是正定的这一事实。为了克 后验概率,而此处则是将样本与对应代理点的距 服这个问题,矩阵反向传播5]首先将真实和预测 离d(x,p)进行归一化作为后验概率。如果我们 的亲和度矩阵投影到欧氏空间。然而,这种方法 将样本特征以及代理点的模长固定为常数s,有: 需要计算数据矩阵的特征值分解,具有数据样本 d(X.p)=+llpl-2Xp:=2s2-2Xp:(16) 量三次方的时间复杂度,因此对于大数据问题不 代入到式(15)中: 适用。Ranked loss则是从秩的角度优化距离度量。 9(pix)=- exp(2XTp:-2s2) exp(2X pi) (17) exp(2Xpj-2s2) 2深度度量学习与softmax分类 ∑exp2X'pD 利用深度神经网络的倒数第二层(也叫瓶颈 可以看作将线性变换参数的模长固定且去掉偏置 层)特征,搭配softmax与交叉熵损失训练得到的 项的softmax,这与Zhai等271的发现也是一致 分类器,同样适用于许多基于深度度量学习的应 的。由此,我们在度量学习中的代理损失与s0- 用s,例如诸如:物体识别7,ss、人脸验证596 max分类之间建立了联系。 手写数字识别61等。然而,分类器训练与度量学 2.2温度放缩 习的目标实际是不同的四。前者旨在寻找最佳分 softmax损失函数对不同类别的特征有着较 类面,而后者旨在学习特征嵌入,使得相同类别 好的分离性,却不具有足够的判别性。因此,现 的样本嵌入是紧凑的,而不同类别的样本嵌入是 阶段的工作提出了几种变体,63列来增强其判别 远离的。这促使我们研究度量学习和分类器训练 性。最早在2015年,Hinton为解决模型压缩7四 之间的关系。 知识迁移等问题,提出了温度值2的概念。他认 2.1代理损失与softmax的关系 为不同类别间的关系不应是非0即1的问题(如: 如果我们将代理近邻损失式(13)的分母中加 将猫误判为狗的损失直观上应该要比将猫误判为 入正样本项,则变为 汽车的损失小),因此,粗暴地使用one-hot编码丢 exp(-d(X.p(x))) 失了类间和类内关联性的额外信息。由此作者提 I(X,P)=-log (14) exp(-d(X.z)) 出带温度值的softmax函数,弱化不同类别之间 的差异。损失函数:

l proxy(X, P) = −log( exp(−d 2 ∑ (X, p(x))) z∈P\{p(x)} exp(−d 2 (X,z) ) (13) 图 2 展示了三元组损失与代理损失在优化时 的差别,代理点的设定使得“样本对”的数量大大 减少:对于每一个锚点样本,图 (a) 中可以组成 12 个三元组,而图 (b) 中仅存在 2 个锚点−代理点 对,样本挖掘的困难很大程度被克服了。 锚点 锚点 正样本 正样本 正代理点 负样本 负样本 负代理点 (a) 三元组损失 (b) 代理损失 图 2 三元组损失 VS 代理损失示意图 Fig. 2 Triplet loss VS proxy loss 另一方面,作者也论证了代理损失与三元组 损失的优化目标是一致的,通过三角不等式证明 了代理损失是三元组损失的上界。 1.9 其他损失 除此之外,最近还有一些使用深度网络进行 度量学习的工作。Hershey 等 [17] 在二值化的真实 标签和成对估计的亲和度矩阵之间的残差上使用 了 Frobenius 范数;他们将此应用于语音谱信号聚 类。然而,直接使用 Frobenius 范数是次优的,因 为它忽略了亲和矩阵是正定的这一事实。为了克 服这个问题,矩阵反向传播[53] 首先将真实和预测 的亲和度矩阵投影到欧氏空间。然而,这种方法 需要计算数据矩阵的特征值分解,具有数据样本 量三次方的时间复杂度,因此对于大数据问题不 适用。Ranked loss[54] 则是从秩的角度优化距离度量。 2 深度度量学习与 softmax 分类 利用深度神经网络的倒数第二层 (也叫瓶颈 层) 特征,搭配 softmax 与交叉熵损失训练得到的 分类器,同样适用于许多基于深度度量学习的应 用 [55] ,例如诸如:物体识别[17, 51-58] 、人脸验证[59-61] 、 手写数字识别[62] 等。然而,分类器训练与度量学 习的目标实际是不同的[29]。前者旨在寻找最佳分 类面,而后者旨在学习特征嵌入,使得相同类别 的样本嵌入是紧凑的,而不同类别的样本嵌入是 远离的。这促使我们研究度量学习和分类器训练 之间的关系。 2.1 代理损失与 softmax 的关系 如果我们将代理近邻损失式 (13) 的分母中加 入正样本项,则变为 l(X, P) = −log( exp(−d 2 ∑ (X, p(x))) z∈P exp(−d 2 (X,z)) ) (14) 这样 log 函数内的式子可以看成是样本被分 配到其对应代理点的概率,这里用 q 来表示概率即: q(pi |X) = exp(−d 2 (X, pi)) ∑m j=1 exp(−d 2 (X, pj)) (15) 这样式 (14) 可以看作上述后验概率结合交叉 熵损失以及类别标签所得。 代理损失与 softmax 不同之处在于,softmax 将样本经过线性变换 wx+b 之后进行归一化作为 后验概率,而此处则是将样本与对应代理点的距 离 d 2 (x, pi ) 进行归一化作为后验概率。如果我们 将样本特征以及代理点的模长固定为常数 s,有: d 2 (X, pi) = ||X||2 2 +||pi ||2 2 −2X T pi = 2s 2 −2X T pi (16) 代入到式 (15) 中: q(pi |X) = exp(2X T pi −2s 2 ) ∑m j=1 exp(2X T pj −2s 2 ) = exp(2X T pi) ∑m j=1 exp(2X T pj) (17) 可以看作将线性变换参数的模长固定且去掉偏置 项的 softmax,这与 Zhai 等 [27] 的发现也是一致 的。由此,我们在度量学习中的代理损失与 soft￾max 分类之间建立了联系。 2.2 温度放缩 softmax 损失函数对不同类别的特征有着较 好的分离性,却不具有足够的判别性。因此,现 阶段的工作提出了几种变体[44, 63-71] 来增强其判别 性。最早在 2015 年,Hinton 为解决模型压缩[72] 、 知识迁移等问题,提出了温度值[28]的概念。他认 为不同类别间的关系不应是非 0 即 1 的问题 (如: 将猫误判为狗的损失直观上应该要比将猫误判为 汽车的损失小),因此,粗暴地使用 one-hot 编码丢 失了类间和类内关联性的额外信息。由此作者提 出带温度值的 softmax 函数,弱化不同类别之间 的差异。损失函数: ·1068· 智 能 系 统 学 报 第 14 卷

第6期 刘冰,等:深度度量学习综述 ·1069· Lo=-∑p,logq,= n. 18) oL dim (g(mlx)-p(mlx))w (23) 台0zm0f 由此,作者观察到不同的α值为不同的样本 式中:a4为logit,即z4=WX+b;p:为软化后的类别 (难例、边界样本且被分对、内部易被分对样 标签;q:为压缩模型的输出。由式(14)可知,当 本)分配不同大小的梯度,从而改变了最终特征 T=1时,恢复到普通的softmax变换。文中令 表达的分布。换句话说,随着α的增大(温度值 TDl,就得到了软化后的softmax。这一思想在 T减小),难例的梯度增大、而易分对样本梯度先 Zhai等27的实验中得到了进一步验证。 增大后减小,因而选择合适的α实际是在不同样 文献[2刀通过移除最后一层的偏置项,并对 本的梯度间做一种权衡。 权重与输入特征施加L,正则,从而完成了将任意 分类网络向基于代理损失的度量学习转换的过 3结束语 程。考虑到在高维空间中,单位球面上两个样本 本文综述了最近的一系列具有代表性的深度 点之间的距离接近正态分布N点回) 其中 度量学习算法的文章,并探讨了其与softmax分 dim表示特征维数2。为了使网络对类别差异变 类的关系。深度度量学习最早源于对比损失,由 化更敏感,他们引入温度值σ放缩余弦距离: 于未同时兼顾类内与类间的相对关系,进而衍生 Ls(X,p,Pz,o)=-log(- exp(Xp,/)-) (19) 出改进后的三元组损失。由于成对的二元组、三 exp(XTp:/o) 元组样本数量极多,难例挖掘、半难例挖掘等采 p:E(p:Up,) 样策略针对正负样本采样问题起着关键作用。为 作者在CUB-200-20111数据集上,探索了不 减轻采样负担,许多结构化的损失函数,利用 同温度参数σ对实验结果的影响,如表1所示。 batch内更丰富的样本间结构关系来设计损失函 表1不同温度值下Recall@1结果 数,约束特征。还有一些基于聚类思想的损失函 Table 1 Recall@1 on CUB-200-2011 dataset across vary- 数,如:中心损失、代理损失等,为每类样本学习 ing temperature 一个代理点,从而大大减少了类间样本数量,使 Tmp 0.005 0.01 0.03 0.05 0.1 0.51.0 模型更易优化。 R@l 19.3 38.8 57.0 61.3 61.654.850.5 综述中,我们发现搭配softmax与交叉嫡损失 训练得到的分类器,同样适用于许多基于深度度 由表1可知,与Hinton'2的思想一致,当温度 量学习的任务,这促使我们研究度量学习和分类 值σ<1时,类别间差异放大,学到的特征具有更 器训练之间的关系。随着研究的深人,我们发现 强的判别性,当温度值σ=1时,判别性能急剧下 代理损失与softmax分类这两条看似平行的研究 降;类似地,温度值太低也会降低性能。然而,针 思路,实则背后有着一致的思想。针对soft- 对这一现象,本文作者并未做出合理的解释。 max判别性不高的缺点,许多算法引入温度值概 Zhang等29从样本特征梯度的角度分析了温 念,对原始的softmax logit作出改造,并取得了很 度值如何影响特征分布。为方便起见,作者令 好的实验结果。在未来的研究中,我们希望继续 a=1/T,即: 深入探索二者之间的关系。例如,我们可以将 q(mlx)=log =log 20) softmax变体中间隔margin的概念引人代理近邻 损失,从而进一步缩小类内距离、扩展类间距。 式中:m为类别数,me{1,2,…,M。q(mlx)为模 参考文献: 型softmax预测概率输出。假设p(mx)为训练样 [1]XING E P.NG A Y,JORDAN M I,et al.Distance metric 本真实分布,则可得到交叉熵损失函数: learning,with application to clustering with side-informa- L(X,a))=-∑1og(gmlK,lpmx (21) tion[C]//Proceedings of the 15th International Conference m=l on Neural Information Processing Systems.Cambridge, 损失函数L(x,)对logit的梯度为 USA,2002:521-528. OL =ar(q(mX)-p(mX)】 (22) [2]LOWE D G.Similarity metric learning for a variable-ker- 0Zm nel classifier[J].Neural computation,1995,7(1):72-85. 进而得到对特征f的梯度: [3]COVER T M,HART P.Nearest neighbor pattern classific-

Lsoft = − ∑K i=1 pi log qi = − ∑K i=1 pi log e zi/T ∑ j e zj/T (18) 式中:zi 为 logit,即 zi = WX +b ; pi 为软化后的类别 标签;qi 为压缩模型的输出。由式 (14) 可知,当 T=1 时,恢复到普通的 softmax 变换。文中令 T>1,就得到了软化后的 softmax。这一思想在 Zhai 等 [27] 的实验中得到了进一步验证。 N ( √ 2, 1 2 dim) σ 文献 [27] 通过移除最后一层的偏置项,并对 权重与输入特征施加 L2 正则,从而完成了将任意 分类网络向基于代理损失的度量学习转换的过 程。考虑到在高维空间中,单位球面上两个样本 点之间的距离接近正态分布 ,其中 dim 表示特征维数[28]。为了使网络对类别差异变 化更敏感,他们引入温度值 放缩余弦距离: Lcls(X, py , pZ,σ) = −log( exp(X T py/σ) ∑ pz∈(pz∪py ) exp(X T pz/σ) ) (19) σ 作者在 CUB-200-2011[73] 数据集上,探索了不 同温度参数 对实验结果的影响,如表 1 所示。 表 1 不同温度值下 Recall@1 结果 Table 1 Recall@1 on CUB-200-2011 dataset across vary￾ing temperature Tmp 0.005 0.01 0.03 0.05 0.1 0.5 1.0 R@1 19.3 38.8 57.0 61.3 61.6 54.8 50.5 σ σ 由表 1 可知,与 Hinton[28] 的思想一致,当温度 值 <1 时,类别间差异放大,学到的特征具有更 强的判别性,当温度值 =1 时,判别性能急剧下 降;类似地,温度值太低也会降低性能。然而,针 对这一现象,本文作者并未做出合理的解释。 α = 1/T Zhang 等 [29] 从样本特征梯度的角度分析了温 度值如何影响特征分布。为方便起见,作者令 ,即: q(m|x) = log e zm/T ∑M j=1 e zj/T = log e αzm ∑M j=1 e αzj (20) 式中:m 为类别数,m ∈ {1, 2, ··· , M}。q(m|x) 为模 型 softmax 预测概率输出。假设 p(m|x) 为训练样 本真实分布,则可得到交叉熵损失函数: L(X,α) = − ∑M m=1 log(q(m|X,α))p(m|X) (21) 损失函数 L(x,α) 对 logit zm 的梯度为 ∂L ∂zm = α(q(m|X)− p(m|X)) (22) 进而得到对特征 f 的梯度: ∂L ∂ f = ∑M m=1 ∂L ∂zm ∂zm ∂ f = α ∑M m=1 (q(m|X)− p(m|X))wm (23) α α α 由此,作者观察到不同的 值为不同的样本 (难例、边界样本且被分对、内部易被分对样 本) 分配不同大小的梯度,从而改变了最终特征 表达的分布。换句话说,随着 的增大 (温度值 T 减小),难例的梯度增大、而易分对样本梯度先 增大后减小,因而选择合适的 实际是在不同样 本的梯度间做一种权衡。 3 结束语 本文综述了最近的一系列具有代表性的深度 度量学习算法的文章,并探讨了其与 softmax 分 类的关系。深度度量学习最早源于对比损失,由 于未同时兼顾类内与类间的相对关系,进而衍生 出改进后的三元组损失。由于成对的二元组、三 元组样本数量极多,难例挖掘、半难例挖掘等采 样策略针对正负样本采样问题起着关键作用。为 减轻采样负担,许多结构化的损失函数,利用 batch 内更丰富的样本间结构关系来设计损失函 数,约束特征。还有一些基于聚类思想的损失函 数,如:中心损失、代理损失等,为每类样本学习 一个代理点,从而大大减少了类间样本数量,使 模型更易优化。 综述中,我们发现搭配 softmax 与交叉熵损失 训练得到的分类器,同样适用于许多基于深度度 量学习的任务,这促使我们研究度量学习和分类 器训练之间的关系。随着研究的深入,我们发现 代理损失与 softmax 分类这两条看似平行的研究 思路,实则背后有着一致的思想。针 对 soft￾max 判别性不高的缺点,许多算法引入温度值概 念,对原始的 softmax logit 作出改造,并取得了很 好的实验结果。在未来的研究中,我们希望继续 深入探索二者之间的关系。例如,我们可以将 softmax 变体中间隔 margin 的概念引入代理近邻 损失,从而进一步缩小类内距离、扩展类间距。 参考文献: XING E P, NG A Y, JORDAN M I, et al. Distance metric learning, with application to clustering with side-informa￾tion[C]//Proceedings of the 15th International Conference on Neural Information Processing Systems. Cambridge, USA, 2002: 521–528. [1] LOWE D G. Similarity metric learning for a variable-ker￾nel classifier[J]. Neural computation, 1995, 7(1): 72–85. [2] [3] COVER T M, HART P. Nearest neighbor pattern classific- 第 6 期 刘冰,等:深度度量学习综述 ·1069·

·1070· 智能系统学报 第14卷 ation[J].IEEE transactions on information theory,1967, [16]MOVSHOVITZ-ATTIAS Y.TOSHEV A.LEUNG T K 131):21-27 et al.No fuss distance metric learning using proxies[C]// [4]SUAREZ J L.GARCIA S.HERRERA F.A tutorial on dis- Proceedings of the IEEE International Conference on tance metric learning:mathematical foundations,al- Computer Vision.Venice,Italy,2017:360-368. gorithms and software[J].arXiv preprint arXiv:1812. [17]HERSHEY J R,CHEN Zhuo,LE ROUX J,et al.Deep clustering:Discriminative embeddings for segmentation 05944.2018. and separation[Cl//2016 IEEE International Conference [5]WEINBERGER K Q,SAUL L K.Distance metric learn- on Acoustics,Speech and Signal Processing.Shanghai, ing for large margin nearest neighbor classification[J]. China,2016:31-35. Journal of machine learning research,2009,10:207-244. [18]SONG H O,XIANG Yu,JEGELKA S,et al.Deep metric [6]GOLDBERGER J,ROWEIS S,HINTON G,et al.Neigh- learning via lifted structured feature embedding[C]//Pro- bourhood components analysis[C]//Proceedings of the 17th ceedings of the IEEE Conference on Computer Vision International Conference on Neural Information Pro- and Pattern Recognition.Las Vegas,USA,2016: cessing Systems.Vancouver,British Columbia,Canada, 4004-4012. 2004:513-520. [19]SENER O.SONG H O,SAXENA A,et al.Learning transferrable representations for unsupervised domain ad- [7]VAN DER MAATEN L,POSTMA E,VAN DEN HERIK aptation[C]//Proceedings of the 30th Conference on Neur- J.Dimensionality reduction:a comparative[J].Journal of al Information Processing Systems.Barcelona,Spain, machine learning research,2009,10:66-71. 2016:2110-2118. [8]KRIZHEVSKY A,SUTSKEVER I,HINTON G E.Im- [20]BROMLEY J.GUYON I,LECUN Y,et al.Signature agenet classification with deep convolutional neural net- verification using a "siamese"time delay neural network works[Cl//Proceedings of the 25th International Confer- [C]//Proceedings of the 6th International Conference on ence on Neural Information Processing Systems.Lake Neural Information Processing Systems.Denver,USA, Tahoe,USA,2012:1097-1105 1993:737-744 [9]SIMONYAN K,ZISSERMAN A.Very deep convolution- [21]CHOY C B,GWAK J,SAVARESE S,et al.Universal correspondence network[C//Proceedings of the 30th Con- al networks for large-scale image recognition[J].ar Xiv pre- ference on Neural Information Processing Systems.Bar- print arXiv:1409.1556.2014. celona,Spain,2016:2414-2422. [10]SZEGEDY C,LIU Wei,JIA Yangqing,et al.Going deep- [22]PRABHU Y.VARMA M.FastXML:A fast,accurate and er with convolutions[C]//Proceedings of the IEEE Con- stable tree-classifier for extreme multi-label learning[C]// ference on Computer Vision and Pattern Recognition.Bo- Proceedings of the 20th ACM SIGKDD International ston,USA,2015:1-9. Conference on Knowledge Discovery and Data Mining. [11]HE Kaiming,ZHANG Xiangyu,REN Shaoqing,et al. New York,USA,2014:263-272. Deep residual learning for image recognition[C]//Pro- [23]YEN I E H.HUANG Xiangru,ZHONG Kai,et al.PD- ceedings of the IEEE Conference on Computer Vision sparse:a primal and dual sparse approach to extreme mul- and Pattern Recognition.Las Vegas,USA,2016:770- ticlass and multilabel classification[Cl//Proceedings of the 778 33rd International Conference on International Confer- [12]HUANG Gao,LIU Zhuang,VAN DER MAATEN L,et ence on Machine Learning.New York,USA,2016: al.Densely connected convolutional networks[Cl//Pro- 3069-3077 ceedings of the IEEE Conference on Computer Vision [24]CHOROMANSKA A.AGARWAL A.LANGFORD J. and Pattern Recognition.Honolulu,USA,2017:4700- Extreme multi class classification[Cl//Neural Information 4708. Processing Systems Conference.Lake Tahoe,USA,2013. [13]HU Jie,SHEN Li,SUN Gang.Squeeze-and-excitation [25]SCHROFF F,KALENICHENKO D,PHILBIN J.Fa- networks[C]//Proceedings of the IEEE Conference on ceNet:A unified embedding for face recognition and clus- Computer Vision and Pattern Recognition.Salt Lake City, tering[Cl//Proceedings of the IEEE Conference on Com- USA.2018:7132-7141. puter Vision and Pattern Recognition.Boston,USA, [14]CHECHIK G,SHARMA V,SHALIT U,et al.Large 2015:815-823. scale online learning of image similarity through ranking [26]HADSELL R.CHOPRA S,LECUN Y.Dimensionality [J].Journal of machine learning research,2010,11: reduction by learning an invariant mapping[C]//2006 1109-1135. IEEE Computer Society Conference on Computer Vision [15]SOHN K.Improved deep metric learning with multi-class and Pattern Recognition.New York,USA,2006,2: n-pair loss objective[C]//Proceedings of the 39th Confer- 1735-1742 ence on Neural Information Processing Systems.Bar- [27]ZHAI A,WU Haoyu.Making classification competitive celona,Spain,2016:1857-1865. for deep metric learning[J].arXiv preprint arXiv:1811

ation[J]. IEEE transactions on information theory, 1967, 13(1): 21–27. SUÁREZ J L, GARCÍA S, HERRERA F. A tutorial on dis￾tance metric learning: mathematical foundations, al￾gorithms and software[J]. arXiv preprint arXiv: 1812. 05944, 2018. [4] WEINBERGER K Q, SAUL L K. Distance metric learn￾ing for large margin nearest neighbor classification[J]. Journal of machine learning research, 2009, 10: 207–244. [5] GOLDBERGER J, ROWEIS S, HINTON G, et al. Neigh￾bourhood components analysis[C]//Proceedings of the 17th International Conference on Neural Information Pro￾cessing Systems. Vancouver, British Columbia, Canada, 2004: 513–520. [6] VAN DER MAATEN L, POSTMA E, VAN DEN HERIK J. Dimensionality reduction: a comparative[J]. Journal of machine learning research, 2009, 10: 66–71. [7] KRIZHEVSKY A, SUTSKEVER I, HINTON G E. Im￾agenet classification with deep convolutional neural net￾works[C]//Proceedings of the 25th International Confer￾ence on Neural Information Processing Systems. Lake Tahoe, USA, 2012: 1097–1105. [8] SIMONYAN K, ZISSERMAN A. Very deep convolution￾al networks for large-scale image recognition[J]. arXiv pre￾print arXiv: 1409.1556, 2014. [9] SZEGEDY C, LIU Wei, JIA Yangqing, et al. Going deep￾er with convolutions[C] //Proceedings of the IEEE Con￾ference on Computer Vision and Pattern Recognition. Bo￾ston, USA, 2015: 1–9. [10] HE Kaiming, ZHANG Xiangyu, REN Shaoqing, et al. Deep residual learning for image recognition[C] //Pro￾ceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas, USA, 2016: 770– 778. [11] HUANG Gao, LIU Zhuang, VAN DER MAATEN L, et al. Densely connected convolutional networks[C]//Pro￾ceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Honolulu, USA, 2017: 4700– 4708. [12] HU Jie, SHEN Li, SUN Gang. Squeeze-and-excitation networks[C]// Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Salt Lake City, USA, 2018: 7132–7141. [13] CHECHIK G, SHARMA V, SHALIT U, et al. Large scale online learning of image similarity through ranking [J]. Journal of machine learning research, 2010, 11: 1109–1135. [14] SOHN K. Improved deep metric learning with multi-class n-pair loss objective[C]//Proceedings of the 39th Confer￾ence on Neural Information Processing Systems. Bar￾celona, Spain, 2016: 1857–1865. [15] MOVSHOVITZ-ATTIAS Y, TOSHEV A, LEUNG T K, et al. No fuss distance metric learning using proxies[C]// Proceedings of the IEEE International Conference on Computer Vision. Venice, Italy, 2017: 360–368. [16] HERSHEY J R, CHEN Zhuo, LE ROUX J, et al. Deep clustering: Discriminative embeddings for segmentation and separation[C]//2016 IEEE International Conference on Acoustics, Speech and Signal Processing. Shanghai, China, 2016: 31–35. [17] SONG H O, XIANG Yu, JEGELKA S, et al. Deep metric learning via lifted structured feature embedding[C]// Pro￾ceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas, USA, 2016: 4004–4012. [18] SENER O, SONG H O, SAXENA A, et al. Learning transferrable representations for unsupervised domain ad￾aptation[C]//Proceedings of the 30th Conference on Neur￾al Information Processing Systems. Barcelona, Spain, 2016: 2110–2118. [19] BROMLEY J, GUYON I, LECUN Y, et al. Signature verification using a "siamese" time delay neural network [C]//Proceedings of the 6th International Conference on Neural Information Processing Systems. Denver, USA, 1993: 737–744. [20] CHOY C B, GWAK J, SAVARESE S, et al. Universal correspondence network[C]//Proceedings of the 30th Con￾ference on Neural Information Processing Systems. Bar￾celona, Spain, 2016: 2414–2422. [21] PRABHU Y, VARMA M. FastXML: A fast, accurate and stable tree-classifier for extreme multi-label learning[C]// Proceedings of the 20th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining. New York, USA, 2014: 263–272. [22] YEN I E H, HUANG Xiangru, ZHONG Kai, et al. PD￾sparse: a primal and dual sparse approach to extreme mul￾ticlass and multilabel classification[C]//Proceedings of the 33rd International Conference on International Confer￾ence on Machine Learning. New York, USA, 2016: 3069–3077. [23] CHOROMANSKA A, AGARWAL A, LANGFORD J. Extreme multi class classification[C]//Neural Information Processing Systems Conference. Lake Tahoe, USA, 2013. [24] SCHROFF F, KALENICHENKO D, PHILBIN J. Fa￾ceNet: A unified embedding for face recognition and clus￾tering[C]//Proceedings of the IEEE Conference on Com￾puter Vision and Pattern Recognition. Boston, USA, 2015: 815–823. [25] HADSELL R, CHOPRA S, LECUN Y. Dimensionality reduction by learning an invariant mapping[C]//2006 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. New York, USA, 2006, 2: 1735–1742. [26] ZHAI A, WU Haoyu. Making classification competitive for deep metric learning[J]. arXiv preprint arXiv: 1811. [27] ·1070· 智 能 系 统 学 报 第 14 卷

第6期 刘冰,等:深度度量学习综述 ·1071· 12649.2018 between similar vehicles[C]//Proceedings of the IEEE [28]HINTON G.VINYALS O.DEAN J.Distilling the know- Conference on Computer Vision and Pattern Recognition. ledge in a neural network[J].arXiv preprint arXiv:1503. Las Vegas,USA,2016:2167-2175. 02531,2015 [42]LAW M T,URTASUN R,ZEMEL R S.Deep spectral [29]ZHANG Xu,YU F X,KARAMAN S,et al.Heated-up clustering learning[C]//Proceedings of the 34th Interna- softmax embedding[J].arXiv preprint arXiv:1809.04157, tional Conference on Machine Learning.Sydney,Aus- 2018. tralia2017:1985-1994. [30]CHOPRA S,HADSELL R,LECUN Y.Learning a simil- [43]FUKUNAGA K,NARENDRA P M.A branch and bound arity metric discriminatively,with application to face algorithm for computing k-nearest neighbors[J].IEEE verification[C]//2005 IEEE Computer Society Confer- transactions on computers,1975,C-24(7):750-753. ence on Computer Vision and Pattern Recognition.San [44]WEN Yandong,ZHANG Kaipeng,LI Zhifeng,et al.A Dieg0,USA,2005:539-546 discriminative feature learning approach for deep face re- [31]ROWEIS S T.SAUL L K.Nonlinear dimensionality re- cognition[C]//Proceedings of the 14th European Confer- duction by locally linear embedding[J].Science,2000, ence on Computer Vision.Amsterdam,The Netherlands, 290(5500)2323-2326. 2016:499-515. [32]DONOHO D L,GRIMES C E.Hessian eigenmaps:Loc- [45]SONG H O,JEGELKA S,RATHOD V,et al.Deep met- ally linear embedding techniques for high-dimensional ric learning via facility location[C]//Proceedings of the data[J].Proceedings of the national academy of sciences IEEE Conference on Computer Vision and Pattern Recog- of the United States of America,2003,100(10): nition.Honolulu,USA,2017:5382-5390. 5591-5596. [46]BELL S,BALA K.Learning visual similarity for product [33]JOLLIFFE I T.Principal component analysis[M].Berlin: design with convolutional neural networks[J.ACM trans- Springer,2011. actions on graphics (TOG),2015,34(4):98 [34]NOROUZI M.FLEET D J,SALAKHUTDINOV R. [47]KAUFMAN L.ROUSSEEUW P J.DODGE Y.Cluster- Hamming distance metric learning[C]//Proceedings of the ing by Means of Medoids[M]//Dodge Y.Statistical Data 25th International Conference on Neural Information Pro- Analysis Based on the LI-Norm and Related Methods. cessing Systems.Lake Tahoe,USA,2012:1061-1069. North-Holland:Elsevier,1987. [35]CUI Yin,ZHOU Feng,LIN Yuanging,et al.Fine-grained [48]LIN Hui,BILMES J A.Learning mixtures of submodular categorization and dataset bootstrapping using deep met- shells with application to document summarization[C]// ric learning with humans in the loop[C]//Proceedings of Proceedings of the Twenty-Eighth Conference on Uncer- the IEEE Conference on Computer Vision and Pattern Re- tainty in Artificial Intelligence.Catalina Island,USA. cognition.Las Vegas,USA,2016:1153-1162 2012:479-490. [36]MISHCHUK A,MISHKIN D,RADENOVIC F,et al. [49]TSCHIATSCHEK S,IYER R K,WEI Haochen,et al. Working hard to know your neighbor's margins:Local Learning mixtures of submodular functions for image col- descriptor learning loss[C]//Advances in Neural Informa- lection summarization[Cl//Proceedings of the 27th Inter- tion Processing Systems.Long Beach,USA,2017: national Conference on Neural Information Processing 4826-4837. Systems.Montreal,Canada.2014:1413-1421. [37]HARWOOD B,KUMAR B G,CARNEIRO G,et al. [50]EMERSON A E.Handbook of theoretical computer sci- Smart mining for deep metric learning[C]//Proceedings of ence[M].Amsterdam:Elsevier,1990. the IEEE International Conference on Computer Vision. [51]KNUTH D E.Postscript about NP-hard problems[J]. Venice,Italy,2017:2821-2829. ACM SIGACT news.1974.6(2):15-16. [38]YUAN Yuhui,YANG Kuiyuan,ZHANG Chao.Hard- [52]MANNING C D.RAGHAVAN P.SCHUTZE H.Intro- aware deeply cascaded embedding[Cl//Proceedings of the duction to information retrieval[M].New York:Cam- IEEE International Conference on Computer Vision. bridge University Press,2008. Venice,Italy,2017:814-823. [53]IONESCU C,VANTZOS O,SMINCHISESCU C.Train- [39]WU Chaoyuan,MANMATHA R,SMOLA A J,et al. ing deep networks with structured layers by matrix back- Sampling matters in deep embedding learning[C]//Pro- propagation[J].arXiv preprint arXiv:1509.07838.2015. ceedings of the IEEE International Conference on Com- [54]WANG Xinshao,HUA Yang,KODIROV E,et al. puter Vision.Venice,Italy,2017:2840-2848. Ranked list loss for deep metric learning[J].arXiv pre- [40]USTINOVA E,LEMPITSKY V.Learning deep embed- print arXiv:1903.03238,2019. dings with histogram loss[C]//Proceedings of the 30th [55]SHARIF RAZAVIAN A.AZIZPOUR H,SULLIVAN J. Conference on Neural Information Processing Systems. et al.CNN features off-the-shelf:an astounding baseline Barcelona,Spain,2016:4170-4178. for recognition[C]//Proceedings of the IEEE Conference [41]LIU Hongye,TIAN Yonghong,WANG Yaowei,et al. on Computer Vision and Pattern Recognition Workshops. Deep relative distance learning:Tell the difference Columbus,USA,2014:806-813

12649, 2018. HINTON G, VINYALS O, DEAN J. Distilling the know￾ledge in a neural network[J]. arXiv preprint arXiv: 1503. 02531, 2015. [28] ZHANG Xu, YU F X, KARAMAN S, et al. Heated-up softmax embedding[J]. arXiv preprint arXiv: 1809.04157, 2018. [29] CHOPRA S, HADSELL R, LECUN Y. Learning a simil￾arity metric discriminatively, with application to face verification[C]//2005 IEEE Computer Society Confer￾ence on Computer Vision and Pattern Recognition. San Diego, USA, 2005: 539–546 [30] ROWEIS S T, SAUL L K. Nonlinear dimensionality re￾duction by locally linear embedding[J]. Science, 2000, 290(5500): 2323–2326. [31] DONOHO D L, GRIMES C E. Hessian eigenmaps: Loc￾ally linear embedding techniques for high- dimensional data[J]. Proceedings of the national academy of sciences of the United States of America, 2003, 100(10): 5591–5596. [32] JOLLIFFE I T. Principal component analysis[M]. Berlin: Springer, 2011. [33] NOROUZI M, FLEET D J, SALAKHUTDINOV R. Hamming distance metric learning[C]//Proceedings of the 25th International Conference on Neural Information Pro￾cessing Systems. Lake Tahoe, USA, 2012: 1061–1069. [34] CUI Yin, ZHOU Feng, LIN Yuanqing, et al. Fine-grained categorization and dataset bootstrapping using deep met￾ric learning with humans in the loop[C]// Proceedings of the IEEE Conference on Computer Vision and Pattern Re￾cognition. Las Vegas, USA, 2016: 1153–1162. [35] MISHCHUK A, MISHKIN D, RADENOVIC F, et al. Working hard to know your neighbor's margins: Local descriptor learning loss[C]//Advances in Neural Informa￾tion Processing Systems. Long Beach, USA, 2017: 4826–4837. [36] HARWOOD B, KUMAR B G, CARNEIRO G, et al. Smart mining for deep metric learning[C]//Proceedings of the IEEE International Conference on Computer Vision. Venice, Italy, 2017: 2821–2829. [37] YUAN Yuhui, YANG Kuiyuan, ZHANG Chao. Hard￾aware deeply cascaded embedding[C]//Proceedings of the IEEE International Conference on Computer Vision. Venice, Italy, 2017: 814–823. [38] WU Chaoyuan, MANMATHA R, SMOLA A J, et al. Sampling matters in deep embedding learning[C]//Pro￾ceedings of the IEEE International Conference on Com￾puter Vision. Venice, Italy, 2017: 2840–2848. [39] USTINOVA E, LEMPITSKY V. Learning deep embed￾dings with histogram loss[C]//Proceedings of the 30th Conference on Neural Information Processing Systems. Barcelona, Spain, 2016: 4170–4178. [40] LIU Hongye, TIAN Yonghong, WANG Yaowei, et al. Deep relative distance learning: Tell the difference [41] between similar vehicles[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Las Vegas, USA, 2016: 2167–2175. LAW M T, URTASUN R, ZEMEL R S. Deep spectral clustering learning[C]//Proceedings of the 34th Interna￾tional Conference on Machine Learning. Sydney, Aus￾tralia, 2017: 1985–1994. [42] FUKUNAGA K, NARENDRA P M. A branch and bound algorithm for computing k-nearest neighbors[J]. IEEE transactions on computers, 1975, C-24(7): 750–753. [43] WEN Yandong, ZHANG Kaipeng, LI Zhifeng, et al. A discriminative feature learning approach for deep face re￾cognition[C]//Proceedings of the 14th European Confer￾ence on Computer Vision. Amsterdam, The Netherlands, 2016: 499–515. [44] SONG H O, JEGELKA S, RATHOD V, et al. Deep met￾ric learning via facility location[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recog￾nition. Honolulu, USA, 2017: 5382–5390. [45] BELL S, BALA K. Learning visual similarity for product design with convolutional neural networks[J]. ACM trans￾actions on graphics (TOG), 2015, 34(4): 98. [46] KAUFMAN L, ROUSSEEUW P J, DODGE Y. Cluster￾ing by Means of Medoids[M]//Dodge Y. Statistical Data Analysis Based on the L1-Norm and Related Methods. North-Holland: Elsevier, 1987. [47] LIN Hui, BILMES J A. Learning mixtures of submodular shells with application to document summarization[C]// Proceedings of the Twenty-Eighth Conference on Uncer￾tainty in Artificial Intelligence. Catalina Island, USA, 2012: 479–490. [48] TSCHIATSCHEK S, IYER R K, WEI Haochen, et al. Learning mixtures of submodular functions for image col￾lection summarization[C]//Proceedings of the 27th Inter￾national Conference on Neural Information Processing Systems. Montreal, Canada, 2014: 1413–1421. [49] EMERSON A E. Handbook of theoretical computer sci￾ence[M]. Amsterdam: Elsevier, 1990. [50] KNUTH D E. Postscript about NP-hard problems[J]. ACM SIGACT news, 1974, 6(2): 15–16. [51] MANNING C D, RAGHAVAN P, SCHÜTZE H. Intro￾duction to information retrieval[M]. New York: Cam￾bridge University Press, 2008. [52] IONESCU C, VANTZOS O, SMINCHISESCU C. Train￾ing deep networks with structured layers by matrix back￾propagation[J]. arXiv preprint arXiv: 1509.07838, 2015. [53] WANG Xinshao, HUA Yang, KODIROV E, et al. Ranked list loss for deep metric learning[J]. arXiv pre￾print arXiv: 1903.03238, 2019. [54] SHARIF RAZAVIAN A, AZIZPOUR H, SULLIVAN J, et al. CNN features off-the-shelf: an astounding baseline for recognition[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops. Columbus, USA, 2014: 806–813. [55] 第 6 期 刘冰,等:深度度量学习综述 ·1071·

·1072· 智能系统学报 第14卷 [56]HINTON G E.SRIVASTAVA N.KRIZHEVSKY A,et ized coordinate learning[J].arXiv preprint arXiv:1801. al.Improving neural networks by preventing co-adapta- 05678.2018 tion of feature detectors[J].ar Xiv preprint arXiv:1207. [69]LIU Weiyang.WEN Yandong,YU Zhiding,et al.Sphere- 0580,2012 face:SphereFace:Deep hypersphere embedding for face [57]SERMANET P,EIGEN D,ZHANG Xiang,et al.Over- recognition[C]//Proceedings of the IEEE Conference on Feat:Integrated recognition,localization and detection us- Computer Vision and Pattern Recognition.Honolulu, ing convolutional networks[J].arXiv preprint arXiv: USA,2017:212-220. 1312.6229,2013. [70]WANG Hao,WANG Yitong,ZHOU Zheng,et al.Cos- [58]HE Kaiming,ZHANG Xiangyu,REN Shaoqing,et al. Face:Large margin cosine loss for deep face recognition[Cl/ Delving deep into rectifiers:Surpassing human-level per- Proceedings of the IEEE Conference on Computer Vision formance on imagenet classification[C]//Proceedings of and Pattern Recognition.Salt Lake City,USA,2018: the IEEE International Conference on Computer Vision. 5265-5274. Santiago,Chile,2015:1026-1034. [71]LIU Weiyang,WEN Yandong,YU Zhiding,et al.Large- [59]TAIGMAN Y,Yang MING,RANZATO M A,et al. Margin Softmax Loss for Convolutional Neural Net- DeepFace:Closing the gap to human-level performance in works[C]//Proceedings of the 33rd International Confer- face verification[Cl//Proceedings of the IEEE Conference ence on Machine Learning.New York,USA,2016,2(3): on Computer Vision and Pattern Recognition.Columbus, USA,2014:1701-1708. [72]BUCILUA C.CARUANA R,NICULESCU-MIZIL A. [60]SUN Yi,CHEN Yuheng,WANG Xiaogang,et al.Deep Model compression[C]//Proceedings of the 12th ACM learning face representation by joint identification-verific- SIGKDD International Conference on Knowledge Dis- ation[C]//Advances in Neural Information Processing covery and Data Mining.Philadelphia,USA,2006: Systems.Montreal,Quebec.Canada,2014:1988-1996. 535-541. [61]SUN Yi,WANG Xiaogang,TANG Xiaoou.Deeply [73]WAH C,BRANSON S,WELINDER P,et al.The Cal- learned face representations are sparse,selective,and ro- tech-UCSD Birds-200-2011 Dataset[R].Computation bust[C]//Proceedings of the IEEE Conference on Com- Neural Systems Technical Report,CNS-TR-2011-001, puter Vision and Pattern Recognition.Boston,USA. Pasadena,CA,USA:California Institute of Technology, 2015:2892-2900. 2011. [62]WAN Li,ZEILER M,ZHANG Sixin,et al.Regulariza- tion of neural networks using DropConnect[C]//Proceed 作者简介: ings of the 30th International Conference on Machine 刘冰,女,1994年生,博士研究 Learning.Atlanta,GA,USA,2013:1058-1066. 生,主要研究方向为深度学习、计算机 [63]DENG Jiankang,ZHOU Yuxiang,ZAFEIRIOU S.Mar- 视觉和生物特征识别。 ginal loss for deep face recognition[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recog- nition Workshops.Honolulu,USA,2017:60-68. [64]ZHANG Xiao,FANG Zhiyuan,WEN Yandong,et al. Range loss for deep face recognition with long-tailed training data[C]//Proceedings of the IEEE International 李瑞麟,男,1995年生,硕士研究 Conference on Computer Vision.Venice,Italy,2017: 生,主要研究方向为深度学习、计算机 5409-5418. 视觉和生物特征识别。 [65]WANG Feng,CHENG Jian,LIU Weiyang,et al.Addit- ive margin softmax for face verification[J].IEEE signal processing letters,2018,25(7):926-930. [66]CHEN Binghui,DENG Weihong,DU Junping.Noisy softmax:Improving the generalization ability of DCNN 封举富,男,1967年生,教授,博 via postponing the early softmax saturation[C]//Proceed- 士生导师,主要研究方向为图像处理 ings of the IEEE Conference on Computer Vision and 模式识别、机器学习和生物特征识 Pattern Recognition.Honolulu,USA,2017:5372-5381. 别。主持和参与国家自然科学基 [67]WAN Weitao,ZHONG Yuanyi,LI Tianpeng,et al.Re- 金、"十一五"国家科技支撑计划课题」 thinking feature distribution for loss functions in image 973计划等项目多项。曾获中国高校 classification[Cl//Proceedings of the IEEE Conference on 科技二等奖、第一届亚洲计算机视觉 Computer Vision and Pattern Recognition.Salt Lake City, 国际会议优秀论文奖、北京大学安泰教师奖、北京大学大众 USA,2018:9117-9126 电脑优秀奖、北京大学安泰项目奖等奖励多项。发表学术论 [68]QI Xianbiao,ZHANG Lei.Face recognition via central- 文300余篇

HINTON G E, SRIVASTAVA N, KRIZHEVSKY A, et al. Improving neural networks by preventing co-adapta￾tion of feature detectors[J]. arXiv preprint arXiv: 1207. 0580, 2012. [56] SERMANET P, EIGEN D, ZHANG Xiang, et al. Over￾Feat: Integrated recognition, localization and detection us￾ing convolutional networks[J]. arXiv preprint arXiv: 1312.6229, 2013. [57] HE Kaiming, ZHANG Xiangyu, REN Shaoqing, et al. Delving deep into rectifiers: Surpassing human-level per￾formance on imagenet classification[C]//Proceedings of the IEEE International Conference on Computer Vision. Santiago, Chile, 2015: 1026–1034. [58] TAIGMAN Y, Yang MING, RANZATO M A, et al. DeepFace: Closing the gap to human-level performance in face verification[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Columbus, USA, 2014: 1701–1708. [59] SUN Yi, CHEN Yuheng, WANG Xiaogang, et al. Deep learning face representation by joint identification-verific￾ation[C]//Advances in Neural Information Processing Systems. Montreal, Quebec, Canada, 2014: 1988–1996. [60] SUN Yi, WANG Xiaogang, TANG Xiaoou. Deeply learned face representations are sparse, selective, and ro￾bust[C]// Proceedings of the IEEE Conference on Com￾puter Vision and Pattern Recognition. Boston, USA, 2015: 2892–2900. [61] WAN Li, ZEILER M, ZHANG Sixin, et al. Regulariza￾tion of neural networks using DropConnect[C]//Proceed￾ings of the 30th International Conference on Machine Learning. Atlanta, GA, USA, 2013: 1058–1066. [62] DENG Jiankang, ZHOU Yuxiang, ZAFEIRIOU S. Mar￾ginal loss for deep face recognition[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recog￾nition Workshops. Honolulu, USA, 2017: 60–68. [63] ZHANG Xiao, FANG Zhiyuan, WEN Yandong, et al. Range loss for deep face recognition with long-tailed training data[C]//Proceedings of the IEEE International Conference on Computer Vision. Venice, Italy, 2017: 5409–5418. [64] WANG Feng, CHENG Jian, LIU Weiyang, et al. Addit￾ive margin softmax for face verification[J]. IEEE signal processing letters, 2018, 25(7): 926–930. [65] CHEN Binghui, DENG Weihong, DU Junping. Noisy softmax: Improving the generalization ability of DCNN via postponing the early softmax saturation[C]//Proceed￾ings of the IEEE Conference on Computer Vision and Pattern Recognition. Honolulu, USA, 2017: 5372–5381. [66] WAN Weitao, ZHONG Yuanyi, LI Tianpeng, et al. Re￾thinking feature distribution for loss functions in image classification[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Salt Lake City, USA, 2018: 9117–9126. [67] [68] QI Xianbiao, ZHANG Lei. Face recognition via central￾ized coordinate learning[J]. arXiv preprint arXiv: 1801. 05678, 2018. LIU Weiyang, WEN Yandong, YU Zhiding, et al. Sphere￾face: SphereFace: Deep hypersphere embedding for face recognition[C]//Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Honolulu, USA, 2017: 212–220. [69] WANG Hao, WANG Yitong, ZHOU Zheng, et al. Cos￾Face: Large margin cosine loss for deep face recognition[C]// Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. Salt Lake City, USA, 2018: 5265–5274. [70] LIU Weiyang, WEN Yandong, YU Zhiding, et al. Large￾Margin Softmax Loss for Convolutional Neural Net￾works[C]//Proceedings of the 33rd International Confer￾ence on Machine Learning. New York, USA, 2016, 2(3): 7. [71] BUCILUǍ C, CARUANA R, NICULESCU-MIZIL A. Model compression[C]//Proceedings of the 12th ACM SIGKDD International Conference on Knowledge Dis￾covery and Data Mining. Philadelphia, USA, 2006: 535–541. [72] WAH C, BRANSON S, WELINDER P, et al. The Cal￾tech-UCSD Birds-200-2011 Dataset[R]. Computation & Neural Systems Technical Report, CNS-TR-2011-001, Pasadena, CA, USA: California Institute of Technology, 2011. [73] 作者简介: 刘冰,女,1994 年生,博士研究 生,主要研究方向为深度学习、计算机 视觉和生物特征识别。 李瑞麟,男,1995 年生,硕士研究 生,主要研究方向为深度学习、计算机 视觉和生物特征识别。 封举富,男,1967 年生,教授,博 士生导师,主要研究方向为图像处理、 模式识别、机器学习和生物特征识 别。主持和参与国家自然科学基 金、"十一五"国家科技支撑计划课题、 973 计划等项目多项。曾获中国高校 科技二等奖、第一届亚洲计算机视觉 国际会议优秀论文奖、北京大学安泰教师奖、北京大学大众 电脑优秀奖、北京大学安泰项目奖等奖励多项。发表学术论 文 300 余篇。 ·1072· 智 能 系 统 学 报 第 14 卷

点击下载完整版文档(PDF)VIP每日下载上限内不扣除下载券和下载次数;
按次数下载不扣除下载券;
24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
已到末页,全文结束
相关文档

关于我们|帮助中心|下载说明|相关软件|意见反馈|联系我们

Copyright © 2008-现在 cucdc.com 高等教育资讯网 版权所有