A Theoretically Sound Upper Bound on the Triplet Loss for Improving the Efficiency of Deep Distance Metric Learning

04/18/2019
by   Thanh-Toan Do, et al.
44

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).

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/21/2017

No Fuss Distance Metric Learning using Proxies

We address the problem of distance metric learning (DML), defined as lea...
research
09/11/2019

SoftTriple Loss: Deep Metric Learning Without Triplet Sampling

Distance metric learning (DML) is to learn the embeddings where examples...
research
04/05/2017

Smart Mining for Deep Metric Learning

To solve deep metric learning problems and producing feature embeddings,...
research
11/14/2017

TripletGAN: Training Generative Model with Triplet Loss

As an effective way of metric learning, triplet loss has been widely use...
research
10/16/2018

Deep Metric Learning with Hierarchical Triplet Loss

We present a novel hierarchical triplet loss (HTL) capable of automatica...
research
02/12/2018

Safe Triplet Screening for Distance Metric Learning

We study safe screening for metric learning. Distance metric learning ca...
research
11/28/2019

Unbiased Evaluation of Deep Metric Learning Algorithms

Deep metric learning (DML) is a popular approach for images retrieval, s...

Please sign up or login with your details

Forgot password? Click here to reset