Skip to contentScholarGate
LibraryBookshelfDeskReview StudioAssistant
Sign in
On this page
IntuitionHow it worksWhen to use itStrengths & limitationsCommon pitfallsApplicationsFrequently asked🔒 Read the full methodSourcesRelated methods
Cite this pageSpotted an issue on this page? Report or suggest a fix →
Home›Machine learning›Semi-supervised Metric Learning
Machine learningMachine learning

Semi-supervised Metric Learning

Also known as: SSML, semi-supervised distance learning, constrained metric learning, weakly supervised metric learning

Semi-supervised metric learning learns a task-adapted distance function by combining a small set of labeled pairwise constraints — must-link and cannot-link pairs — with the geometric structure of a much larger pool of unlabeled data. The result is a Mahalanobis-style or kernel-based distance that reflects both supervision and data topology, improving downstream tasks such as nearest-neighbor classification and clustering.

ScholarGate
  1. Machine learning
  2. v1
  3. 2 Sources
  4. PUBLISHED
Cite this page →
Tools & resources
Download slides
Learn & explore

Read the full method

Members only

Sign in with a free account to read this section.

Sign in

Method map

The neighbourhood of related methods — select a node to explore.

Semi-supervised Metric Learning
Few-shot LearningMetric LearningSelf-supervised LearningSemi-supervised LearningTransfer LearningRobust Metric Learning

When to use it

Use semi-supervised metric learning when labeled data is scarce but unlabeled data is abundant, and the downstream task depends critically on a good notion of similarity — such as kNN classification, retrieval, clustering, or few-shot learning. It is especially valuable in domains where annotation is costly: medical imaging, molecular biology, document retrieval. Avoid it when you have abundant labels (fully supervised metric learning is simpler and stronger), when the unlabeled pool is small or unrepresentative (manifold assumptions break down), or when the data dimensionality is very high without appropriate kernel or sparse regularization, since the Mahalanobis matrix estimation becomes ill-conditioned.

Strengths & limitations

Strengths
  • Dramatically reduces the need for fully labeled data by exploiting unlabeled structure.
  • Learned distance improves kNN, clustering, and retrieval beyond Euclidean baselines.
  • Pairwise constraints are easier to collect than full class labels in many annotation pipelines.
  • Convex formulations (e.g., information-theoretic metric learning) guarantee global optima.
  • Works in the original feature space or in kernelized / embedding spaces.
Limitations
  • Quality depends on the manifold regularity assumption: if unlabeled data is noisy or unrepresentative, propagated structure misleads the metric.
  • High-dimensional settings require regularization or low-rank constraints to keep the Mahalanobis matrix tractable.
  • Scalability is limited; exact optimization over large pairwise constraint sets and large kernel matrices can be expensive.
  • Constraint quality matters: noisy or inconsistent must-link / cannot-link labels degrade performance.

Frequently asked

How many pairwise constraints are typically needed?

Even a few dozen to a few hundred constraints can yield meaningful improvement over Euclidean distance, especially when unlabeled data is plentiful. Performance typically saturates after a few thousand constraints.

How does this differ from purely supervised metric learning?

Purely supervised metric learning (e.g., LMNN) optimizes only on labeled triplets or pairs. Semi-supervised metric learning also incorporates the geometry of unlabeled examples as a regularizer, often enabling better generalization with far fewer labels.

Can deep neural networks be used as the backbone?

Yes. Deep semi-supervised metric learning trains an encoder using contrastive or triplet losses on labeled pairs while using self-supervised pretext tasks or pseudo-labels to leverage unlabeled data, combining both paradigms.

What evaluation metric should I use?

For retrieval: mean Average Precision (mAP) or Recall@k. For kNN classification: accuracy and F1 under leave-one-out evaluation. For clustering: NMI and ARI on a held-out labeled subset.

When is it better to just use self-supervised or transfer learning instead?

If you have access to a large pretrained model and your domain is not too distant from the pretraining data, transfer learning or self-supervised pretraining often outperforms SSML because they scale better with unlabeled data and do not require explicit pairwise annotation.

Sources

  1. Yeung, D.-Y., & Chang, H. (2007). A kernel approach for semi-supervised metric learning. IEEE Transactions on Neural Networks, 18(1), 141–149. DOI: 10.1109/TNN.2006.883723 ↗
  2. Davis, J. V., & Dhillon, I. S. (2008). Structured metric learning for high dimensional problems. Proceedings of the 14th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, 195–203. DOI: 10.1145/1401890.1401918 ↗

How to cite this page

ScholarGate. (2026, June 3). Semi-supervised Metric Learning. ScholarGate. https://scholargate.app/en/machine-learning/semi-supervised-metric-learning

Related methods

Few-shot LearningMetric LearningSelf-supervised LearningSemi-supervised LearningTransfer Learning

Which method?

Set this method beside its closest kin and read them side by side — the library lays the books on the table; the choice is yours.

  • Few-shot LearningMachine learning↔ compare
  • Metric LearningMachine learning↔ compare
  • Self-supervised LearningMachine learning↔ compare
  • Semi-supervised LearningMachine learning↔ compare
  • Transfer LearningMachine learning↔ compare
Compare side by side →

Referenced by

Robust Metric Learning

Similar methods

Self-supervised Metric learningMetric LearningRobust Metric LearningEnsemble Metric LearningBayesian Metric LearningSemi-supervised LearningRegularized semi-supervised learningSemi-supervised Image Classification

Related reference concepts

Self-Supervised and Representation LearningUnsupervised LearningSupport Vector Machines and Kernel MethodsLearning to RankClustering AlgorithmsSupervised Learning

Spotted an issue on this page? Report or suggest a fix →

ScholarGate — Semi-supervised Metric Learning (Semi-supervised Metric Learning). Retrieved 2026-07-21 from https://scholargate.app/en/machine-learning/semi-supervised-metric-learning · Dataset: https://doi.org/10.5281/zenodo.20539026
Quick facts
Originator
Yeung, D.-Y. & Chang, H.; Davis, J. V. & Dhillon, I. S.
Year
2007–2008
Type
Hybrid supervised/unsupervised distance learning
DataType
Tabular or embedding vectors; partially labeled
Subfamily
Machine learning
Related methods
Few-shot LearningMetric LearningSelf-supervised LearningSemi-supervised LearningTransfer Learning
ScholarGate

A content-first reference library for research methods — what each one is, how it works, and where it comes from.

Open data (CC-BY)

Explore

  • Library
  • Search the library…
  • Browse by field
  • Fields
  • Journey
  • Compare
  • Which method?

Reference

  • Subjects
  • Atlas
  • Glossary
  • Methodology
  • Philosophy

Your tools

  • Bookshelf
  • Desk
  • Chat

Company

  • About
  • Pricing
  • Contact
  • Suggest a method

Entries are compiled from published sources for reference. Verifying the accuracy and suitability of any information for your own use remains your responsibility.

© 2026 ScholarGate · A research-method reference library
  • Privacy
  • Cookies
  • Terms
  • Delete account