# PyTorch Metric Learning

arXiv: https://arxiv.org/abs/2008.09164 · HTML: https://mlsanity.com/paper/2008.09164/

## Key facts

- Cited by 57 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 20 Aug 2020.

## Built on by (most cited first, 30 of 57)

- [ABO: Dataset and Benchmarks for Real-World 3D Object Understanding](https://mlsanity.com/paper/2110.06199/) (2021)
- [GSV-Cities: Toward Appropriate Supervised Visual Place Recognition](https://mlsanity.com/paper/2210.10239/) (2022)
- [Understanding and Mitigating Annotation Bias in Facial Expression Recognition](https://mlsanity.com/paper/2108.08504/) (2021)
- [Noise-resistant Deep Metric Learning with Ranking-based Instance Selection](https://mlsanity.com/paper/2103.16047/) (2021)
- [Cross-Domain Video Anomaly Detection without Target Domain Adaptation](https://mlsanity.com/paper/2212.07010/) (2022)
- [Graph Neural Network for Cell Tracking in Microscopy Videos](https://mlsanity.com/paper/2202.04731/) (2022)
- [Bispectral Neural Networks](https://mlsanity.com/paper/2209.03416/) (2022)
- [Pair-VPR: Place-Aware Pre-training and Contrastive Pair Classification for Visual Place Recognition with Vision Transformers](https://mlsanity.com/paper/2410.06614/) (2024)
- [Triple-stream Deep Metric Learning of Great Ape Behavioural Actions](https://mlsanity.com/paper/2301.02642/) (2023)
- [Contrastive Fine-tuning Improves Robustness for Neural Rankers](https://mlsanity.com/paper/2105.12932/) (2021)
- [Match Cutting: Finding Cuts with Smooth Visual Transitions](https://mlsanity.com/paper/2210.05766/) (2022)
- [Eye Know You: Metric Learning for End-to-end Biometric Authentication Using Eye Movements from a Longitudinal Dataset](https://mlsanity.com/paper/2104.10489/) (2021)
- [Tails Tell Tales: Chapter-Wide Manga Transcriptions with Character Names](https://mlsanity.com/paper/2408.00298/) (2024)
- [Spectral, Probabilistic, and Deep Metric Learning: Tutorial and Survey](https://mlsanity.com/paper/2201.09267/) (2022)
- [Efficient OCR for Building a Diverse Digital History](https://mlsanity.com/paper/2304.02737/) (2023)
- [Hierarchical Average Precision Training for Pertinent Image Retrieval](https://mlsanity.com/paper/2207.04873/) (2022)
- [Identity-Aware Semi-Supervised Learning for Comic Character Re-Identification](https://mlsanity.com/paper/2308.09096/) (2023)
- [Speech Sequence Embeddings using Nearest Neighbors Contrastive Learning](https://mlsanity.com/paper/2204.05148/) (2022)
- [Reveal the Unknown: Out-of-Knowledge-Base Mention Discovery with Entity Linking](https://mlsanity.com/paper/2302.07189/) (2023)
- [Automatic MILP Solver Configuration By Learning Problem Similarities](https://mlsanity.com/paper/2307.00670/) (2023)
- [Eye Know You Too: A DenseNet Architecture for End-to-end Eye Movement Biometrics](https://mlsanity.com/paper/2201.02110/) (2022)
- [Was that so hard? Estimating human classification difficulty](https://mlsanity.com/paper/2203.11824/) (2022)
- [DialAug: Mixing up Dialogue Contexts in Contrastive Learning for Robust Conversational Modeling](https://mlsanity.com/paper/2204.07679/) (2022)
- [AdaTriplet: Adaptive Gradient Triplet Loss with Automatic Margin Learning for Forensic Medical Image Matching](https://mlsanity.com/paper/2205.02849/) (2022)
- [Guided Deep Metric Learning](https://mlsanity.com/paper/2206.02029/) (2022)
- [Deductive Additivity for Planning of Natural Language Proofs](https://mlsanity.com/paper/2307.02472/) (2023)
- [Earth System Data Cubes: Avenues for advancing Earth system research](https://mlsanity.com/paper/2408.02348/) (2024)
- [On dataset transferability in medical image classification](https://mlsanity.com/paper/2412.20172/) (2024)
- [YOLO11-JDE: Fast and Accurate Multi-Object Tracking with Self-Supervised Re-ID](https://mlsanity.com/paper/2501.13710/) (2025)
- [Rethinking Interactive Image Segmentation: Feature Space Annotation](https://mlsanity.com/paper/2101.04378/) (2021)

## Abstract (arXiv)

Deep metric learning algorithms have a wide variety of applications, but implementing these algorithms can be tedious and time consuming. PyTorch Metric Learning is an open source library that aims to remove this barrier for both researchers and practitioners. The modular and flexible design allows users to easily try out different combinations of algorithms in their existing code. It also comes with complete train/test workflows, for users who want results fast. Code and documentation is available at https://www.github.com/KevinMusgrave/pytorch-metric-learning.
