Skip to content
AI News HubLIVE
Original source2 min read

A Unified Geometric Framework for Weighted Contrastive Learning

Summary

This work interprets weighted InfoNCE objectives as distance geometry problems, providing a unified geometric framework for weighted contrastive learning. In supervised classification, SupCon and Soft SupCon collapse samples within each class to a single prototype, but class imbalance breaks SupCon's symmetry, while Soft SupCon retains regular simplex geometry. In continuous-label settings, y-Aware CL generally cannot achieve its entropic optimum unless labels lie on a hypersphere. Geometrically consistent choices like Euclidean-Euclidean weighting or X-CLR guarantee unique optimal embeddings.

SourcearXiv Machine LearningAuthor: Raphael Vock, Edouard Duchesnay, Benoit Dufumier
A Unified Geometric Framework for Weighted Contrastive Learning
Report an error

The correction channel is not available yet. You can copy the article reference below for later.

Correction instructions
Read article

[2605.13943] A Unified Geometric Framework for Weighted Contrastive Learning

[Submitted on 13 May 2026]

Title:A Unified Geometric Framework for Weighted Contrastive Learning

View a PDF of the paper titled A Unified Geometric Framework for Weighted Contrastive Learning, by Raphael Vock and 2 other authors

View PDF HTML (experimental)

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 similarities depending on class sizes, whereas Soft SupCon preserves a regular simplex geometry regardless of class imbalance. In continuous-label settings, our framework reveals a different failure mode: y-Aware CL generally cannot attain its entropic optimum unless the labels lie on a hypersphere, exposing a mismatch between Euclidean label weights and spherical latent similarity. By contrast, geometrically consistent choices such as Euclidean-Euclidean weighting or X-CLR admit unique optimal embeddings. Our results show that the choice of weighting scheme determines whether contrastive learning is geometrically realizable, degenerate, or inconsistent, providing a principled framework for designing contrastive objectives.

Comments: Preprint

Subjects:

Machine Learning (cs.LG)

Cite as: arXiv:2605.13943 [cs.LG]

(or arXiv:2605.13943v1 [cs.LG] for this version)

https://doi.org/10.48550/arXiv.2605.13943

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Benoit Dufumier [view email] [v1] Wed, 13 May 2026 17:48:36 UTC (5,394 KB)

Full-text links:

Access Paper:

View a PDF of the paper titled A Unified Geometric Framework for Weighted Contrastive Learning, by Raphael Vock and 2 other authors

View PDF

HTML (experimental)

TeX Source

view license

Current browse context:

cs.LG

new | recent | 2026-05

Change to browse by:

cs

References & Citations

NASA ADS

Google Scholar

Semantic Scholar

Loading...

Data provided by:

Bibliographic Tools

Bibliographic and Citation Tools

Bibliographic Explorer Toggle

Bibliographic Explorer (What is the Explorer?)

Connected Papers Toggle

Connected Papers (What is Connected Papers?)

Litmaps Toggle

Litmaps (What is Litmaps?)

scite.ai Toggle

scite Smart Citations (What are Smart Citations?)

Code, Data, Media

Code, Data and Media Associated with this Article

alphaXiv Toggle

alphaXiv (What is alphaXiv?)

Links to Code Toggle

CatalyzeX Code Finder for Papers (What is CatalyzeX?)

DagsHub Toggle

DagsHub (What is DagsHub?)

GotitPub Toggle

Gotit.pub (What is GotitPub?)

Huggingface Toggle

Hugging Face (What is Huggingface?)

ScienceCast Toggle

ScienceCast (What is ScienceCast?)

Demos

Demos

Replicate Toggle

Replicate (What is Replicate?)

Spaces Toggle

Hugging Face Spaces (What is Spaces?)

Spaces Toggle

TXYZ.AI (What is TXYZ.AI?)

Related Papers

Recommenders and Search Tools

Link to Influence Flower

Influence Flower (What are Influence Flowers?)

Core recommender toggle

CORE Recommender (What is CORE?)

IArxiv recommender toggle

IArxiv Recommender (What is IArxiv?)

Author

Venue

Institution

Topic

About arXivLabs

arXivLabs: experimental projects with community collaborators

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Which authors of this paper are endorsers? | Disable MathJax (What is MathJax?)

Key points and analysis

Article intelligence

ResearchersAdvanced

Key points

  • Weighted contrastive learning can be unified under distance geometry, with weighting schemes specifying target geometry.
  • In supervised CL, class imbalance leads to non-uniform inter-class similarities for SupCon, while Soft SupCon maintains regular simplex geometry.
  • For continuous labels, y-Aware CL suffers from mismatch between label weights and latent similarity; geometrically consistent schemes avoid this.

Highlights and analysis are generated automatically and may contain errors. Check the original source.