Skip to main content
QUICK REVIEW

[Paper Review] No Fuss Distance Metric Learning using Proxies

Yair Movshovitz-Attias, Alexander Toshev|arXiv (Cornell University)|Mar 21, 2017
Domain Adaptation and Few-Shot LearningComputer Science13 references58 citations
TL;DR

Proxy-NCA learns distance metrics by optimizing a proxy space of learnable proxy points, yielding faster convergence and state-of-the-art zero-shot results on standard datasets.

ABSTRACT

We address the problem of distance metric learning (DML), defined as learning a distance consistent with a notion of semantic similarity. Traditionally, for this problem supervision is expressed in the form of sets of points that follow an ordinal relationship -- an anchor point $x$ is similar to a set of positive points $Y$, and dissimilar to a set of negative points $Z$, and a loss defined over these distances is minimized. While the specifics of the optimization differ, in this work we collectively call this type of supervision Triplets and all methods that follow this pattern Triplet-Based methods. These methods are challenging to optimize. A main issue is the need for finding informative triplets, which is usually achieved by a variety of tricks such as increasing the batch size, hard or semi-hard triplet mining, etc. Even with these tricks, the convergence rate of such methods is slow. In this paper we propose to optimize the triplet loss on a different space of triplets, consisting of an anchor data point and similar and dissimilar proxy points which are learned as well. These proxies approximate the original data points, so that a triplet loss over the proxies is a tight upper bound of the original loss. This proxy-based loss is empirically better behaved. As a result, the proxy-loss improves on state-of-art results for three standard zero-shot learning datasets, by up to 15% points, while converging three times as fast as other triplet-based losses.

Motivation & Objective

  • Address the inefficiency and poor convergence of triplet-based metric learning
  • Introduce a small, learnable proxy set to represent the training data
  • Formulate a proxy-based ranking/NCA loss that upper-bounds the original triplet loss
  • Show that training with proxies speeds up convergence while preserving ordinal relationships
  • Demonstrate state-of-the-art performance on zero-shot learning benchmarks

Proposed method

  • Define proxies P to approximate the training data such that each x has a proxy p(y) close to it
  • Replace triplets (x, y, z) with proxy triplets (x, p(y), p(z)) and optimize a proxy-based loss
  • Prove that proxy-based losses upper-bound classical losses like NCA and triplet loss under norm constraints
  • Train end-to-end with proxies included as model parameters, sharing memory for proxies to avoid sampling complexity
  • Provide static proxy assignment (by semantic label) and dynamic proxy assignment (closest proxy) strategies
  • Utilize a proxy-NCA loss that resembles cross-entropy with a compact set of proxies and optional scaling for bounds
  • Experiment with fixed and dynamic proxy allocations and analyze convergence and recall/NMI metrics

Experimental results

Research questions

  • RQ1Can a small set of learnable proxies faithfully bound the original triplet/NCA loss?
  • RQ2Does proxy-based DML converge faster than traditional triplet-based methods?
  • RQ3Do proxies preserve the desired ordinal relationships between data points?
  • RQ4How does Proxy-NCA perform on zero-shot retrieval and clustering across standard datasets?
  • RQ5What is the effect of static versus dynamic proxy assignment on performance?

Key findings

  • Proxy-NCA converges about three times faster than baseline triplet-based losses on Cars196.
  • Proxy-NCA achieves up to 15 percentage points improvement in Recall@1 on Cars196 compared with prior SOTA.
  • Proxy-based losses provide tight upper bounds to traditional losses like NCA and triplet loss, under reasonable norm constraints.
  • Proxy-NCA achieves state-of-the-art zero-shot results on CUB200, Cars196, and Stanford Online Products datasets.
  • Using a small set of proxies (hundreds to a few thousands) yields strong performance while keeping memory usage modest.
  • Static proxy assignment can match or exceed prior methods when proxies align with semantic labels; dynamic assignment remains effective when labels are unavailable.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.