arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1909.05235cs.CV
收藏

SoftTriple损失:没有三重采样的深度度量学习

SoftTriple Loss: Deep Metric Learning Without Triplet Sampling

Alibaba Group(阿里巴巴集团)

Qi Qian, Lei Shang, Baigui Sun, Juhua Hu, Hao Li, Rong Jin

摘要:

距离度量学习(Distance Metric Learning,DML)是学习同类样本比异类样本更接近的嵌入。它可以转换为一个具有三重约束的优化问题。由于大量的三元组约束,采样策略对于DML是必不可少的。随着深度学习在分类方面的巨大成功,它已被应用于DML。当使用深度神经网络(DNN)学习嵌入时,每次迭代时只有一小批数据可用。必须在小批量内对三元组约束集进行采样。由于mini-batch不能很好地捕获原始集合中的邻居,因此它使学习的嵌入次优。相反,使用DNN优化SoftMax损失,这是一种分类损失,在某些DML任务中表现出优越的性能。它启发我们研究SoftMax的制定。我们的分析表明,SoftMax损失相当于平滑的三重损失,其中每个类都有一个中心。在现实世界的数据中,一个类可以包含多个局部聚类而不是单个聚类,例如,不同姿势的鸟因此,我们提出SoftTriple损失来扩展SoftMax损失,每个类别都有多个中心。与传统的深度度量学习算法相比,优化SoftTriple损失可以通过适度增加最后一个全连接层的大小来学习没有采样相位的嵌入。在细粒度基准数据集上的实验验证了该损失函数的有效性。代码可在https://github.com/idstcv/SoftTriple上获得

英文摘要:

Distance metric learning (DML) is to learn the embeddings where examples from the same class are closer than examples from different classes. It can be cast as an optimization problem with triplet constraints. Due to the vast number of triplet constraints, a sampling strategy is essential for DML. With the tremendous success of deep learning in classifications, it has been applied for DML. When learning embeddings with deep neural networks (DNNs), only a mini-batch of data is available at each iteration. The set of triplet constraints has to be sampled within the mini-batch. Since a mini-batch cannot capture the neighbors in the original set well, it makes the learned embeddings sub-optimal. On the contrary, optimizing SoftMax loss, which is a classification loss, with DNN shows a superior performance in certain DML tasks. It inspires us to investigate the formulation of SoftMax. Our analysis shows that SoftMax loss is equivalent to a smoothed triplet loss where each class has a single center. In real-world data, one class can contain several local clusters rather than a single one, e.g., birds of different poses. Therefore, we propose the SoftTriple loss to extend the SoftMax loss with multiple centers for each class. Compared with conventional deep metric learning algorithms, optimizing SoftTriple loss can learn the embeddings without the sampling phase by mildly increasing the size of the last fully connected layer. Experiments on the benchmark fine-grained data sets demonstrate the effectiveness of the proposed loss function. Code is available at https://github.com/idstcv/SoftTriple

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑