Semi-Supervised Contrastive Learning with Orthonormal Prototypes

Huanran Li, Manh Nguyen, Daniel L. Pimentel-Alarcón · DOI

Introduction

Contrastive learning has emerged as a powerful paradigm for self-supervised and semi-supervised representation learning. By optimizing models to pull "positive" pairs (different augmentations of the same image) together while pushing "negative" pairs apart, these frameworks learn discriminative features without requiring exhaustive manual labeling. However, a persistent challenge in this field is dimensional collapse, where neural networks map high-dimensional inputs into a degenerate, low-rank subspace. When embeddings collapse, the spatial utility of the representation is lost, rendering different classes indistinguishable.

This paper introduces CLOP (Contrastive Learning with Orthonormal Prototypes), a novel semi-supervised loss function designed to mitigate dimensional collapse by anchoring embeddings to a fixed geometric structure. By enforcing orthogonality between class prototypes, CLOP ensures that the embedding space maintains high rank and provides superior stability across a wide range of hyperparameters.

The Problem: Dimensional Collapse and the Learning Rate "Death Zone"

The authors identify a critical relationship between the learning rate and the stability of contrastive objectives like InfoNCE. They demonstrate that if the learning rate exceeds a specific theoretical threshold—derived as approximately half the temperature parameter ($\eta \approx \tau/2$)—the repulsive forces intended to separate negative samples can cause embeddings to overshoot and collapse into a rank-1 line. This "death zone" creates a narrow window for successful training, making standard contrastive methods highly sensitive to hyperparameter tuning.

The CLOP Framework

To combat this instability, CLOP introduces a geometric "anchor" for the embedding space. The method consists of two primary components:

  1. Orthonormal Prototypes: The model initializes a set of class prototypes that are unit-length and mutually orthogonal. These are generated by applying Singular Value Decomposition (SVD) to random vectors, creating a fixed orthonormal basis for the embedding space.
  2. Supervised Pulling Force: In the semi-supervised setting, CLOP adds a supervised term to the standard contrastive loss. This term maximizes the cosine similarity between a labeled sample's embedding and its corresponding fixed orthonormal prototype.

By forcing embeddings of different classes into distinct orthogonal linear subspaces, CLOP acts as a powerful geometric regularizer. Unlike moving-average centroids used in other methods, these prototypes are fixed and guaranteed to be as far apart as possible, maximizing the utilized volume of the embedding space.

Figure 2: Singular value spectra and embedding visualizations comparing SupCon and CLOP. CLOP maintains a significantly higher rank (flatter spectrum) and clearer class separation in the embedding space.

Empirical Analysis and Robustness

The impact of CLOP is most visible in the Singular Value Spectrum of the learned embeddings. While standard methods like SupCon show a sharp decay in singular values (indicating that most information is compressed into a few dimensions), CLOP maintains a much flatter distribution, signifying a high-rank representation. This structural integrity translates directly into performance gains and hyperparameter robustness.

Robustness to Learning Rate and Batch Size

One of the most significant advantages of CLOP is its immunity to the learning rate "death zone." While standard InfoNCE and SupCon models completely collapse at high learning rates (e.g., $\eta = 10.0$), CLOP remains stable and maintains high accuracy. Furthermore, CLOP significantly reduces the dependency on large batch sizes—a common bottleneck in contrastive learning. Experimental results show that CLOP with a batch size of only 32 can outperform SupCon trained with a batch size of 2048.

Figure 3: Top-1 Accuracy across varying learning rates and batch sizes. CLOP demonstrates extreme stability at high learning rates and high efficiency with small batch sizes compared to InfoNCE and SupCon baselines.

Key Results and Generalization

CLOP sets new benchmarks across several standard computer vision datasets, including ImageNet, CIFAR, and various transfer learning tasks:

  • State-of-the-Art Accuracy: On ImageNet with 10% labels, CLOP achieved 79.1% Top-1 accuracy, a 4% improvement over the previous state-of-the-art (CCSSL). With 100% labels, it reached 82.06%, outperforming SupCon by over 7%.
  • Transferability: Models pretrained with CLOP consistently outperformed SimCLR and SupCon on downstream tasks such as object detection (VOC2007) and fine-grained classification (Food-101, Oxford Flowers).
  • Efficiency: The ability to train effectively with small batch sizes and high learning rates significantly lowers the computational barrier for high-quality representation learning.

Conclusion

CLOP addresses the fundamental issue of dimensional collapse in contrastive learning through a simple yet effective geometric constraint. By anchoring embeddings to orthonormal prototypes, the framework ensures a high-rank representation that is both more accurate and significantly more robust to hyperparameter choices. Future work may explore adaptive prototype mechanisms to better handle hierarchical class relationships or fine-grained datasets where strict orthogonality might be overly restrictive.

Summary updated

BibTeX
@misc{li2025semi,
  author = {Huanran Li and Manh Nguyen and Daniel L. Pimentel-Alarcón},
  title = {{Semi-Supervised Contrastive Learning with Orthonormal Prototypes}},
  year = {2025},
  eprint = {2512.07880},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.07880},
}
Figure