Preventing Collapse in Contrastive Learning with Orthonormal Prototypes (CLOP)

Huanran Li, Manh Nguyen, Daniel Pimentel-Alarcón
3/27/2024
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Contrastive learning has emerged as a powerful method in deep learning, excelling at learning effective representations through contrasting samples from different distributions. However, neural collapse, where embeddings converge into a lower-dimensional space, poses a significant challenge, especially in semi-supervised and self-supervised setups. In this paper, we first theoretically analyze the effect of large learning rates on contrastive losses that solely rely on the cosine similarity metric, and derive a theoretical bound to mitigate this collapse. {Building on these insights, we propose CLOP, a novel semi-supervised loss function designed to prevent neural collapse by promoting the formation of orthogonal linear subspaces among class embeddings.} Unlike prior approaches that enforce a simplex ETF structure, CLOP focuses on subspace separation, leading to more distinguishable embeddings. Through extensive experiments on real and synthetic datasets, we demonstrate that CLOP enhances performance, providing greater stability across different learning rates and batch sizes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Cite this paper

@article{li2024preventing,
  title  = {Preventing Collapse in Contrastive Learning with Orthonormal Prototypes (CLOP)},
  author = {Huanran Li and Manh Nguyen and Daniel Pimentel-Alarcón},
  year   = {2024},
  eprint = {2403.18699},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.18699v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.18699.svg)](https://codeofpaper.com/paper/2403.18699)

Discussion