A training technique that learns by comparing similar and dissimilar examples to create better representations.