NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

G-SimCLR : Self-Supervised Contrastive Learning with Guided Projection via Pseudo Labelling

Souradip Chakraborty, Aritra Roy Gosthipaty, Sayak PaulWorkshops @ ICDM 2020

Abstract

In the realms of computer vision, deep neural networks perform better in a supervised setting with a large amount of labeled data. However, the collection and annotation of large datasets are costly and time-consuming. Self-supervised methods like SimCLR have shown that high-quality representations can be learned without explicit supervision by maximizing similarity between augmentations of the same image and minimizing it between different images. In this work, we propose G-SimCLR, which enhances the normalized temperature-scaled cross-entropy (NT-Xent) loss function by ensuring that images of the same category are not present in the same training batch. We use the latent space of a denoising autoencoder (DAE) and k-means clustering to generate pseudo-labels, which guide the batching process. We report performance enhancements on CIFAR-10 and a subset of ImageNet, demonstrating the benefits of avoiding false negatives in contrastive learning.

Introduction

In self-supervised contrastive learning frameworks like SimCLR, a model learns by maximizing the similarity between two augmented versions of the same image while minimizing similarity with all other images in the batch (the "negatives"). A significant issue with random sampling is the "false negative" problem: if a batch contains two different images of the same semantic category, the algorithm incorrectly forces the model to push their representations apart. Standard SimCLR mitigates this with massive batch sizes, which are computationally expensive. G-SimCLR aims to solve this issue more efficiently by using unsupervised priors to guide batch composition.

Methods

The G-SimCLR framework introduces a multi-stage pipeline to provide an unsupervised prior for batch construction:

  1. Denoising Autoencoder (DAE): A fully convolutional DAE is trained on the unlabeled dataset to learn robust latent representations resistant to noise.
  2. Pseudo-Labelling via Clustering: Latent features are extracted from the DAE and clustered using k-means. Each image is assigned a cluster ID, serving as a "pseudo-label."
  3. Guided Batching: During SimCLR training, random sampling is replaced with a stratified strategy. Batches are constructed such that no two images share the same pseudo-label.
  4. Contrastive Training: The model is trained using the standard NT-Xent loss, but the "guided" batches prevent the model from being penalized for similarities between images that likely belong to the same category.
The G-SimCLR pipeline overview, showing the transition from noisy images to guided batching.

Key Results

The effectiveness of G-SimCLR was evaluated on CIFAR-10 and an ImageNet subset (5 categories). The model showed consistent improvements in linear evaluation and label efficiency.

  • Linear Evaluation: On the ImageNet subset, G-SimCLR achieved a top-1 accuracy of 60.0%, significantly outperforming the SimCLR baseline of 52.4%. For CIFAR-10, accuracy improved from 39.4% to 41.01%.
  • Label Efficiency: When fine-tuning with only 10% of labels on the ImageNet subset, G-SimCLR reached 56.0% accuracy, while the standard SimCLR variant trailed at 49.2%.
NT-Xent loss convergence on CIFAR10 and ImageNet Subset datasets.

Conclusion

G-SimCLR demonstrates that incorporating unsupervised priors into the batching process can significantly enhance the quality of learned representations. By avoiding false negatives, the model achieves better performance without the need for the extremely large batch sizes typically required by standard contrastive methods. Future work will explore the scalability of this approach to full-scale datasets and the impact of different clustering granularities.

Summary updated

BibTeX
@inproceedings{chakraborty2020g,
  author = {Souradip Chakraborty and Aritra Roy Gosthipaty and Sayak Paul},
  title = {{G-SimCLR : Self-Supervised Contrastive Learning with Guided Projection via Pseudo Labelling}},
  booktitle = {Workshops @ ICDM},
  year = {2020},
  url = {https://openreview.net/forum?id=2YaArNh73Gm},
}
Figure