HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

It Takes Two to Tango: Mixup for Deep Metric Learning

Shashanka Venkataramanan Bill Psomas Ewa Kijak Laurent Amsaleg Konstantinos Karantzalos Yannis Avrithis

It Takes Two to Tango: Mixup for Deep Metric Learning

Abstract

Metric learning involves learning a discriminative representation such that embeddings of similar classes are encouraged to be close, while embeddings of dissimilar classes are pushed far apart. State-of-the-art methods focus mostly on sophisticated loss functions or mining strategies. On the one hand, metric learning losses consider two or more examples at a time. On the other hand, modern data augmentation methods for classification consider two or more examples at a time. The combination of the two ideas is under-studied. In this work, we aim to bridge this gap and improve representations using mixup, which is a powerful data augmentation approach interpolating two or more examples and corresponding target labels at a time. This task is challenging because unlike classification, the loss functions used in metric learning are not additive over examples, so the idea of interpolating target labels is not straightforward. To the best of our knowledge, we are the first to investigate mixing both examples and target labels for deep metric learning. We develop a generalized formulation that encompasses existing metric learning loss functions and modify it to accommodate for mixup, introducing Metric Mix, or Metrix. We also introduce a new metric - utilization, to demonstrate that by mixing examples during training, we are exploring areas of the embedding space beyond the training classes, thereby improving representations. To validate the effect of improved representations, we show that mixing inputs, intermediate representations or embeddings along with target labels significantly outperforms state-of-the-art metric learning methods on four benchmark deep metric learning datasets.

Code Repositories

billpsomas/Metrix_ICLR22
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
metric-learning-on-cars196ResNet-50 + Metrix
R@1: 89.6
metric-learning-on-cub-200-2011ResNet-50 + Metrix
R@1: 71.4
metric-learning-on-in-shop-1ResNet-50 + Metrix
R@1: 92.2
metric-learning-on-stanford-online-products-1ResNet-50 + Metrix
R@1: 81.3

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
It Takes Two to Tango: Mixup for Deep Metric Learning | Papers | HyperAI