Deep Metric Learning to Rank Fatih Cakir∗1, Kun He∗2, Xide Xia2, Brian Kulis2, and Stan Sclaroff2 1FirstFuel,
[email protected] 2Boston University, fhekun,xidexia,bkulis,
[email protected] Abstract FastAP We propose a novel deep metric learning method by re- visiting the learning to rank approach. Our method, named FastAP, optimizes the rank-based Average Precision mea- 2 (n ) pairs sure, using an approximation derived from distance quan- tization. FastAP has a low complexity compared to exist- ing methods, and is tailored for stochastic gradient descent. To fully exploit the benefits of the ranking formulation, we 3 also propose a new minibatch sampling scheme, as well as (n ) triplets a simple heuristic to enable large-batch training. On three few-shot image retrieval datasets, FastAP consistently out- performs competing methods, which often involve complex optimization heuristics or costly model ensembles. Figure 1: We propose FastAP, a novel deep metric learning method that optimizes Average Precision over ranked lists 1. Introduction of examples. This solution avoids a high-order explosion of the training set, which is a common problem in existing Metric learning [3, 18] is concerned with learning dis- losses defined on pairs or triplets. FastAP is optimized using tance functions that conform to a certain definition of simi- SGD, and achieves state-of-the-art results. larity. Often, in pattern recognition problems, the definition of similarity is task-specific, and the success of metric learn- has two primary advantages over many other approaches: ing hinges on aligning its learning objectives with the task. we avoid the high-order explosion of the training set, and In this paper, we focus on what is arguably the most im- focus on orderings that are invariant to distance distortions.