It Takes Two to Tango: Mixup for Deep Metric Learning
Shashanka Venkataramanan, Bill Psomas, Ewa Kijak, Laurent Amsaleg, Konstantinos Karantzalos, Yannis Avrithis
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 metricutilization-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 at: https://tinyurl.com/metrix-iclr .
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
10 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- HSE: Hybrid Species Embedding for Deep Metric Learning cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Contrastive Learning with Hard Negative Samples cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Towards Improved Proxy-Based Deep Metric Learning via Data-Augmented Domain Adaptation cites Recall@k Surrogate Loss with Large Batches and Similarity Mixup
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and Confidence cites AugMix: A Simple Data Processing Method to Improve Robustness and Uncertainty
- Generalized Sum Pooling for Metric Learning cites Recall@k Surrogate Loss with Large Batches and Similarity Mixup
- Embedding Space Interpolation Beyond Mini-Batch, Beyond Pairs and Beyond Examples cites CutMix: Regularization Strategy to Train Strong Classifiers With Localizable Features
- Embedding Space Interpolation Beyond Mini-Batch, Beyond Pairs and Beyond Examples cites Understanding Contrastive Representation Learning through Alignment and Uniformity on the Hypersphere
- Embedding Space Interpolation Beyond Mini-Batch, Beyond Pairs and Beyond Examples cites AugMix: A Simple Data Processing Method to Improve Robustness and Uncertainty
Cited by top-tier papers10
- Recall@k Surrogate Loss with Large Batches and Similarity MixupYash Patel, Giorgos Tolias, Jirí MatasCVPR 2022 · 40 citations
- Towards Improved Proxy-Based Deep Metric Learning via Data-Augmented Domain AdaptationLi Ren, Chen Chen, Liqiang Wang, Kien A. HuaAAAI 2024 · 20 citations
- Generalized Sum Pooling for Metric LearningYeti Ziya Gürbüz, Ozan Sener, A. Aydin AlatanICCV 2023 · 10 citations
- HSE: Hybrid Species Embedding for Deep Metric LearningBailin Yang, Haoqiang Sun, Frederick W. B. Li, Zheng Chen et al.ICCV 2023 · 9 citations
- Embedding Space Interpolation Beyond Mini-Batch, Beyond Pairs and Beyond ExamplesShashanka Venkataramanan, Ewa Kijak, Laurent Amsaleg, Yannis AvrithisNeurIPS 2023 · 7 citations
Builds on15
- CutMix: Regularization Strategy to Train Strong Classifiers With Localizable FeaturesSangdoo Yun, Dongyoon Han, Sanghyuk Chun, Seong Joon Oh et al.ICCV 2019 · 5,843 citations
- FixMatch: Simplifying Semi-Supervised Learning with Consistency and ConfidenceKihyuk Sohn, David Berthelot, Nicholas Carlini, Zizhao Zhang et al.NeurIPS 2020 · 5,129 citations
- Understanding Contrastive Representation Learning through Alignment and Uniformity on the HypersphereTongzhou Wang, Phillip IsolaICML 2020 · 2,360 citations
- AugMix: A Simple Data Processing Method to Improve Robustness and UncertaintyDan Hendrycks, Norman Mu, Ekin Dogus Cubuk, Barret Zoph et al.ICLR 2020 · 1,572 citations
- Contrastive Learning with Hard Negative SamplesJoshua David Robinson, Ching-Yao Chuang, Suvrit Sra, Stefanie JegelkaICLR 2021 · 999 citations
Related papers
- Proxy Synthesis: Learning with Synthetic Classes for Deep Metric LearningGeonmo Gu, ByungSoo Ko, Han-Gyu KimAAAI 2021 · 44 citations
- Learning with Memory-based Virtual Classes for Deep Metric LearningByungSoo Ko, Geonmo Gu, Han-Gyu KimICCV 2021 · 35 citations
- Fair Mixup: Fairness via InterpolationChing-Yao Chuang, Youssef MrouehICLR 2021 · 11 citations
- Improving Generalization in Meta-learning via Task AugmentationHuaxiu Yao, Long-Kai Huang, Linjun Zhang, Ying Wei et al.ICML 2021 · 98 citations
- Adversarial AutoMixupHuafeng Qin, Xin Jin, Yun Jiang, Mounîm A. El-Yacoubi et al.ICLR 2024 · 19 citations
