A Unified Geometric Framework for Weighted Contrastive Learning
Raphael Vock, Edouard Duchesnay, Benoit Dufumier

TL;DR
This paper presents a geometric interpretation of weighted contrastive learning objectives, revealing how different weighting schemes influence the geometry of learned embeddings and their optimality.
Contribution
It introduces a unified framework interpreting contrastive learning as a Distance Geometry Problem, characterizing optimal embeddings under various weighting schemes.
Findings
Balanced SupCon recovers regular simplex geometry
Class imbalance affects inter-class similarities in SupCon
Certain weighting schemes ensure geometrically consistent embeddings
Abstract
Contrastive learning (CL) aims to preserve relational structure between samples by learning representations that reflect a similarity graph. Yet, the geometry of the resulting embeddings remains poorly understood. Here we show that weighted InfoNCE objectives can be interpreted as Distance Geometry Problems, where the weighting scheme specifies the target geometry to be realized by the representation. This viewpoint yields exact characterizations of the optimal embeddings for several supervised and weakly supervised objectives. In supervised classification, both SupCon and Soft SupCon (a dense relaxation of it where pairs from distinct classes have small non-zero similarity) collapse samples within each class to a single prototype. However, while balanced SupCon recovers the classical regular simplex geometry, class imbalance breaks this symmetry: SupCon induces non-uniform inter-class…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
