Hugging Face Contrastive Learning Models improve representation learning by training DL models to understand relationships between similar and dissimilar data points.

https://huggingface.co/blog/contrastive-learning