Skip to main content
QUICK REVIEW

[Paper Review] Proxy Anchor Loss for Deep Metric Learning

Sung‐Yeon Kim, Dong-Won Kim|arXiv (Cornell University)|Mar 31, 2020
Face recognition and analysisComputer Science40 references8 citations
TL;DR

This paper proposes Proxy-Anchor loss, a novel deep metric learning loss that combines the fast convergence of proxy-based methods with the rich data-to-data relations of pair-based methods. By using proxies as anchors and leveraging relative hardness from inter-data relationships, it achieves state-of-the-art performance on four benchmarks with faster convergence and robustness to noise, outperforming existing methods without manual tuple sampling.

ABSTRACT

Existing metric learning losses can be categorized into two classes: pair-based and proxy-based losses. The former class can leverage fine-grained semantic relations between data points, but slows convergence in general due to its high training complexity. In contrast, the latter class enables fast and reliable convergence, but cannot consider the rich data-to-data relations. This paper presents a new proxy-based loss that takes advantages of both pair- and proxy-based methods and overcomes their limitations. Thanks to the use of proxies, our loss boosts the speed of convergence and is robust against noisy labels and outliers. At the same time, it allows embedding vectors of data to interact with each other in its gradients to exploit data-to-data relations. Our method is evaluated on four public benchmarks, where a standard network trained with our loss achieves state-of-the-art performance and most quickly converges.

Motivation & Objective

  • To address the trade-off between training speed and rich supervisory signal in deep metric learning.
  • To overcome the slow convergence of pair-based losses due to high complexity and the limited data-to-data relation exploitation in proxy-based losses.
  • To develop a loss that enables fast, reliable convergence while capturing fine-grained data-to-data relations through proxy-based optimization.
  • To achieve state-of-the-art performance on public benchmarks without requiring manual tuple sampling or hyperparameter tuning.

Proposed method

  • The loss uses proxies as anchors and associates each proxy with all data points in a batch, rather than each data point with proxies.
  • For each proxy, the loss minimizes the distance to data of the same class and maximizes it to data of different classes, using a margin-based contrastive objective.
  • Gradients are weighted by relative hardness, which is determined by the relative proximity of data points to the proxy, enabling data-to-data relation modeling.
  • The loss is differentiable and end-to-end trainable, allowing joint optimization of network weights and proxy embeddings.
  • It introduces two hyperparameters, α (margin scaling) and δ (temperature), to control the margin and softness of the loss.
  • The method avoids tuple sampling by leveraging batch-wide data interactions through proxy-based supervision.

Experimental results

Research questions

  • RQ1Can a proxy-based loss achieve the rich supervisory signal of pair-based losses without sacrificing training speed?
  • RQ2How can data-to-data relations be effectively modeled in a proxy-based framework to improve embedding quality?
  • RQ3Can the proposed loss achieve faster convergence and better robustness to noisy labels and outliers compared to existing methods?
  • RQ4What is the impact of batch size and embedding dimension on the performance of the proposed loss?

Key findings

  • On the CUB-200-2011 and Cars-196 datasets, Proxy-Anchor loss achieves Recall@1 of 68.6% and 86.4% respectively with a batch size of 150, outperforming prior methods.
  • On the SOP and In-Shop datasets, it achieves 79.1% and 91.9% Recall@1 with a batch size of 150, improving to 79.3% and 92.0% at batch size 300.
  • The loss shows stable performance across embedding dimensions ≥128 and outperforms MS loss, especially in high-dimensional settings where MS loss degrades.
  • With α ≥ 16, the model's performance is stable and insensitive to hyperparameter tuning, achieving state-of-the-art results even without optimization.
  • The loss converges faster than all baselines, including Proxy-NCA and triplet loss, as shown in training time vs. accuracy curves on Cars-196.
  • Increasing δ improves performance slightly, but the effect is most pronounced when α is large, suggesting a synergistic effect between the two hyperparameters.

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.