Variance & Greediness: A comparative study of metric-learning losses

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zeng, Donghuo, Niu, Hao, Li, Zhi, Taya, Masato
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918313009872896
author Zeng, Donghuo
Niu, Hao
Li, Zhi
Taya, Masato
author_facet Zeng, Donghuo
Niu, Hao
Li, Zhi
Taya, Masato
contents Metric learning is central to retrieval, yet its effects on embedding geometry and optimization dynamics are not well understood. We introduce a diagnostic framework, VARIANCE (intra-/inter-class variance) and GREEDINESS (active ratio and gradient norms), to compare seven representative losses, i.e., Contrastive, Triplet, N-pair, InfoNCE, ArcFace, SCL, and CCL, across five image-retrieval datasets. Our analysis reveals that Triplet and SCL preserve higher within-class variance and clearer inter-class margins, leading to stronger top-1 retrieval in fine-grained settings. In contrast, Contrastive and InfoNCE compact embeddings are achieved quickly through many small updates, accelerating convergence but potentially oversimplifying class structures. N-pair achieves a large mean separation but with uneven spacing. These insights reveal a form of efficiency-granularity trade-off and provide practical guidance: prefer Triplet/SCL when diversity preservation and hard-sample discrimination are critical, and Contrastive/InfoNCE when faster embedding compaction is desired.
format Preprint
id arxiv_https___arxiv_org_abs_2601_21450
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Variance & Greediness: A comparative study of metric-learning losses
Zeng, Donghuo
Niu, Hao
Li, Zhi
Taya, Masato
Computer Vision and Pattern Recognition
Metric learning is central to retrieval, yet its effects on embedding geometry and optimization dynamics are not well understood. We introduce a diagnostic framework, VARIANCE (intra-/inter-class variance) and GREEDINESS (active ratio and gradient norms), to compare seven representative losses, i.e., Contrastive, Triplet, N-pair, InfoNCE, ArcFace, SCL, and CCL, across five image-retrieval datasets. Our analysis reveals that Triplet and SCL preserve higher within-class variance and clearer inter-class margins, leading to stronger top-1 retrieval in fine-grained settings. In contrast, Contrastive and InfoNCE compact embeddings are achieved quickly through many small updates, accelerating convergence but potentially oversimplifying class structures. N-pair achieves a large mean separation but with uneven spacing. These insights reveal a form of efficiency-granularity trade-off and provide practical guidance: prefer Triplet/SCL when diversity preservation and hard-sample discrimination are critical, and Contrastive/InfoNCE when faster embedding compaction is desired.
title Variance & Greediness: A comparative study of metric-learning losses
topic Computer Vision and Pattern Recognition
url https://arxiv.org/abs/2601.21450