Papers › Revisiting Training Strategies and Generalization Performance in Deep Metric Learning

Revisiting Training Strategies and Generalization Performance in Deep Metric Learning

19 Feb 2020ICML 2020 1arXiv:2002.08473archive 2025-07-28

Karsten Roth, Timo Milbich, Samarth Sinha, Prateek Gupta, Björn Ommer, Joseph Paul Cohen

Deep Metric Learning (DML) is arguably one of the most influential lines of research for learning visual similarities with many proposed approaches every year. Although the field benefits from the rapid progress, the divergence in training protocols, architectures, and parameter choices make an unbiased comparison difficult. To provide a consistent reference point, we revisit the most widely used DML objective functions and conduct a study of the crucial parameter choices as well as the commonly neglected mini-batch sampling process. Under consistent comparison, DML objectives show much higher saturation than indicated by literature. Further based on our analysis, we uncover a correlation between the embedding space density and compression to the generalization performance of DML models. Exploiting these insights, we propose a simple, yet effective, training regularization to reliably boost the performance of ranking-based DML models on various standard benchmark datasets. Code and a publicly accessible WandB-repo are available at https://github.com/Confusezius/Revisiting_Deep_Metric_Learning_PyTorch.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2002.08473")

Code

Syntology Ran 3 of 22 code samples harvested from 5 repositories linked to this paper; 19 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 2 ran with no contract checked.

By repository: official repository: 16 samples from 2 repositories, 1 ran; community (archive-listed): 6 samples from 3 repositories, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Confusezius/Deep-Metric-Learning-Baselines officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
Confusezius/Revisiting_Deep_Metric_Learning_PyTorch officialmentioned in papermentioned on GitHubpytorchMIT report
douxiaotian/metric mentioned on GitHubpytorchMIT report
wzzheng/DCML mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 3 ran; 0 honoured the contract we drafted; 19 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
2ran
19unverified

Licence: 1 of the 22 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

wandb_parameters confusezius/revisiting_deep_metric_learning_pytorch/parameters.py official repository ran · our draft was wrong MIT (permissive) · 5b09d2867ea2a10d · report
basic_training_parameters confusezius/revisiting_deep_metric_learning_pytorch/parameters.py official repository unverified MIT (permissive) · 1edf35955d77e643 · report
f1_score Confusezius/Deep-Metric-Learning-Baselines/auxiliaries.py official repository unverified Apache-2.0 (permissive) · d629034ac6132f80 · report
get_data Confusezius/Revisiting_Deep_Metric_Learning_PyTorch/Result_Evaluations.py official repository unverified MIT (permissive) · 3d33c198f5dfd1d8 · report
gimme_params Confusezius/Deep-Metric-Learning-Baselines/auxiliaries.py official repository unverified Apache-2.0 (permissive) · 23c18adfe2fa9b50 · report
gimme_save_string Confusezius/Deep-Metric-Learning-Baselines/auxiliaries.py official repository unverified Apache-2.0 (permissive) · 88dd3c9b8a356d3a · report
give_CARS196_datasets Confusezius/Deep-Metric-Learning-Baselines/datasets.py official repository unverified Apache-2.0 (permissive) · 94a2b3fc9d173339 · report
give_CUB200_datasets Confusezius/Deep-Metric-Learning-Baselines/datasets.py official repository unverified Apache-2.0 (permissive) · 4a2b2ab542b49c29 · report
give_dataloaders Confusezius/Deep-Metric-Learning-Baselines/datasets.py official repository unverified Apache-2.0 (permissive) · cea101048260a728 · report
googlenet Confusezius/Deep-Metric-Learning-Baselines/googlenet.py official repository unverified Apache-2.0 (permissive) · 890262140a75d9b9 · report
loss_select Confusezius/Deep-Metric-Learning-Baselines/losses.py official repository unverified Apache-2.0 (permissive) · 719ec941b055b8e4 · report
loss_specific_parameters confusezius/revisiting_deep_metric_learning_pytorch/parameters.py official repository unverified MIT (permissive) · e7d6234c596e2482 · report
loss_specific_parameters Confusezius/Revisiting_Deep_Metric_Learning_PyTorch/parameters.py official repository unverified MIT (permissive) · 6d771473f57274c0 · report
name_adjust Confusezius/Revisiting_Deep_Metric_Learning_PyTorch/Result_Evaluations.py official repository unverified MIT (permissive) · 014edb34f249bcfe · report
name_filter Confusezius/Revisiting_Deep_Metric_Learning_PyTorch/Result_Evaluations.py official repository unverified MIT (permissive) · 08e4d248fe54f413 · report
wandb_parameters Confusezius/Revisiting_Deep_Metric_Learning_PyTorch/parameters.py official repository unverified MIT (permissive) · 1825bfd5a626ed17 · report
Criterion Confusezius/ECCV2020_DiVA_MultiFeature_DML/criteria/stacked_self_distill.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · 03d1431453ef1a6b · report
TupleSampler Confusezius/Deep_Metric_Learning_Baselines/losses.py community (archive-listed) ran Apache-2.0 (permissive) · 7eb35d3431b4daa0 · report
MarginLoss Confusezius/Deep_Metric_Learning_Baselines/losses.py community (archive-listed) unverified Apache-2.0 (permissive) · 135e67099969c757 · report
basic_training_parameters douxiaotian/metric/parameters.py community (archive-listed) unverified MIT (permissive) · aca58e0b4399a88e · report
extension_parameters douxiaotian/metric/parameters.py community (archive-listed) unverified MIT (permissive) · 9ec84718a48b4a71 · report
wandb_parameters douxiaotian/metric/parameters.py community (archive-listed) unverified MIT (permissive) · 0d2b44d3cf1009d0 · report

Tasks

Metric Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections