Rethinking preventing class-collapsing in metric learning with margin-based losses
Elad Levi, Tete Xiao, Xiaolong Wang, Trevor Darrell
Abstract
Metric learning seeks perceptual embeddings where visually similar instances are close and dissimilar instances are apart, but learned representations can be sub-optimal when the distribution of intra-class samples is diverse and distinct sub-clusters are present. Although theoretically with optimal assumptions, margin-based losses such as the triplet loss and margin loss have a diverse family of solutions. We theoretically prove and empirically show that under reasonable noise assumptions, margin-based losses tend to project all samples of a class with various modes onto a single point in the embedding space, resulting in class collapse that usually renders the space ill-sorted for classification or retrieval. To address this problem, we propose a simple modification to the embedding losses such that each sample selects its nearest same-class counterpart in a batch as the positive element in the tuple. This allows for the presence of multiple sub-clusters within each class. The adaptation can be integrated into a wide range of metric learning losses. Our method demonstrates clear benefits on various fine-grained image retrieval datasets over a variety of existing losses; qualitative retrieval results show that samples with similar visual patterns are indeed closer in the embedding space.
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.
8 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
- Cross Modal Retrieval with Querybank Normalisation cites Revisiting Training Strategies and Generalization Performance in Deep Metric Learning
- Cross Modal Retrieval with Querybank Normalisation cites Momentum Contrast for Unsupervised Visual Representation Learning
- A Simple Framework for Contrastive Learning of Visual Representations cites Momentum Contrast for Unsupervised Visual Representation Learning
- Momentum Contrast for Unsupervised Visual Representation Learning cites A Simple Framework for Contrastive Learning of Visual Representations
- Revisiting Training Strategies and Generalization Performance in Deep Metric Learning cites SoftTriple Loss: Deep Metric Learning Without Triplet Sampling
Cited by top-tier papers8
- Cross Modal Retrieval with Querybank NormalisationSimion-Vlad Bogolin, Ioana Croitoru, Hailin Jin, Yang Liu et al.CVPR 2022 · 84 citations
- SpanProto: A Two-stage Span-based Prototypical Network for Few-shot Named Entity RecognitionJianing Wang, Chengyu Wang, Chuanqi Tan, Minghui Qiu et al.EMNLP 2022 · 31 citations
- Towards Universal Image Embeddings: A Large-Scale Dataset and Challenge for Generic Image RepresentationsNikolaos-Antonios Ypsilantis, Kaifeng Chen, Bingyi Cao, Mário Lipovský et al.ICCV 2023 · 31 citations
- RankDNN: Learning to Rank for Few-Shot LearningQianyu Guo, Haotong Gong, Xujun Wei, Yanwei Fu et al.AAAI 2023 · 27 citations
- Towards Fine-Grained Webpage Fingerprinting at ScaleXiyuan Zhao, Xinhao Deng, Qi Li, Yunpeng Liu et al.CCS 2024 · 11 citations
Builds on5
- A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
- SoftTriple Loss: Deep Metric Learning Without Triplet SamplingQi Qian, Lei Shang, Baigui Sun, Juhua Hu et al.ICCV 2019 · 419 citations
- Revisiting Training Strategies and Generalization Performance in Deep Metric LearningKarsten Roth, Timo Milbich, Samarth Sinha, Prateek Gupta et al.ICML 2020 · 187 citations
- MIC: Mining Interclass Characteristics for Improved Metric LearningBiagio Brattoli, Karsten Roth, Björn OmmerICCV 2019 · 100 citations
- Momentum Contrast for Unsupervised Visual Representation LearningKaiming He, Haoqi Fan, Yuxin Wu, Saining Xie et al.CVPR 2020
Related papers
- Deep Metric Learning With Tuplet Margin LossBaosheng Yu, Dacheng TaoICCV 2019 · 104 citations
- Metric Learning with Equidistant and Equidistributed Triplet-based Loss for Product Image SearchFurong Xu, Wei Zhang, Yuan Cheng, Wei ChuWWW 2020 · 13 citations
- Deep Relational Metric LearningWenzhao Zheng, Borui Zhang, Jiwen Lu, Jie ZhouICCV 2021 · 53 citations
- Mathematical Justification of Hard Negative Mining via Isometric Approximation TheoremAlbert Xu, Jhih-Yi Hsieh, Bhaskar Vundurthy, Nithya Kemp et al.ICLR 2024 · 1 citation
- Supervised Metric Learning to Rank for Retrieval via Contextual Similarity OptimizationChristopher Liao, Theodoros Tsiligkaridis, Brian KulisICML 2023 · 10 citations
