Rethinking preventing class-collapsing in metric learning with margin-based losses
Not on the map. Why?
Abstract (arXiv)
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 a 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. The proposed sampling 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.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). First posted on arXiv 9 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 3; 2023: 3; 2024: 2; 2025: 1.
10 papers.
- 2021Cross Modal Retrieval with Querybank Normalisationcited by 71
- 2023Towards Universal Image Embeddings: A Large-Scale Dataset and Challenge for Generic Image Representationscited by 28
- 2023Adaptive Sparse Pairwise Loss for Object Re-Identificationcited by 20
- 2023A Multi-Task Semantic Decomposition Framework with Task-specific Pre-training for Few-Shot NERcited by 9
- 2022SpanProto: A Two-stage Span-based Prototypical Network for Few-shot Named Entity Recognitioncited by 8
- 2022RankDNN: Learning to Rank for Few-shot Learningcited by 7
- 2024Potential Field Based Deep Metric Learningcited by 4
- 2024Towards Fine-Grained Webpage Fingerprinting at Scalecited by 3
- 2022Mathematical Justification of Hard Negative Mining via Isometric Approximation Theoremcited by 0
- 2025Balancing Beyond Discrete Categories: Continuous Demographic Labels for Fair Face Recognitioncited by 0
- 2025Balancing Beyond Discrete Categories: Continuous Demographic Labels for Fair Face Recognition2 Jun 2025
- 2024Towards Fine-Grained Webpage Fingerprinting at Scale6 Sep 2024
- 2024Potential Field Based Deep Metric Learning28 May 2024
- 2023Towards Universal Image Embeddings: A Large-Scale Dataset and Challenge for Generic Image Representations4 Sep 2023
- 2023A Multi-Task Semantic Decomposition Framework with Task-specific Pre-training for Few-Shot NER28 Aug 2023
- 2023Adaptive Sparse Pairwise Loss for Object Re-Identification31 Mar 2023
- 2022RankDNN: Learning to Rank for Few-shot Learning28 Nov 2022
- 2022Mathematical Justification of Hard Negative Mining via Isometric Approximation Theorem20 Oct 2022
- 2022SpanProto: A Two-stage Span-based Prototypical Network for Few-shot Named Entity Recognition17 Oct 2022
- 2021Cross Modal Retrieval with Querybank Normalisation23 Dec 2021