提高深度距离度量学习效率的三重态损失上界
A Theoretically Sound Upper Bound on the Triplet Loss for Improving the Efficiency of Deep Distance Metric Learning
摘要:
我们提出了一种基于三元组损失函数优化的方法,该方法大大提高了深度距离度量学习的效率。基于三元组损失函数的朴素优化的这种训练过程的一个时期具有运行时间复杂度O(N^3),其中N是训练样本的数量。这种优化的伸缩性很差,解决这种高复杂性问题的最常见方法是基于对训练过程所需的三元组集进行子采样。该领域探索的另一种方法依赖于引入类质心的三元组丢失的ad-hoc线性化(根据N),这必须使用每个小批的整个训练集进行优化-这意味着这种方法的简单实现具有运行时复杂度O(N^2)。这种复杂性问题通常可以通过较差但计算成本较低的近似质心优化方法来缓解。在本文中,我们首先提出了一个坚实的理论上的线性化的三重态损失与使用类质心,其中的主要结论是,我们的新的线性损失代表了一个严格的上限的三重态损失。此外,基于上述理论,我们提出了一种不再需要质心优化步骤的训练算法,这意味着我们的方法是该领域中第一个保证线性运行时复杂度的方法。我们表明,使用所提出的上限训练深度距离度量学习方法比基于三元组的方法快得多,同时在基准数据集(CUB-200-2011和CAR 196)上产生有竞争力的检索准确性结果。
英文摘要:
We propose a method that substantially improves the efficiency of deep distance metric learning based on the optimization of the triplet loss function. One epoch of such training process based on a naive optimization of the triplet loss function has a run-time complexity O(N^3), where N is the number of training samples. Such optimization scales poorly, and the most common approach proposed to address this high complexity issue is based on sub-sampling the set of triplets needed for the training process. Another approach explored in the field relies on an ad-hoc linearization (in terms of N) of the triplet loss that introduces class centroids, which must be optimized using the whole training set for each mini-batch - this means that a naive implementation of this approach has run-time complexity O(N^2). This complexity issue is usually mitigated with poor, but computationally cheap, approximate centroid optimization methods. In this paper, we first propose a solid theory on the linearization of the triplet loss with the use of class centroids, where the main conclusion is that our new linear loss represents a tight upper-bound to the triplet loss. Furthermore, based on the theory above, we propose a training algorithm that no longer requires the centroid optimization step, which means that our approach is the first in the field with a guaranteed linear run-time complexity. We show that the training of deep distance metric learning methods using the proposed upper-bound is substantially faster than triplet-based methods, while producing competitive retrieval accuracy results on benchmark datasets (CUB-200-2011 and CAR196).
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。