Energy-Based Contrastive Learning of Visual Representations

Beomsu Kim, Jong Chul Ye
2/10/2022
cs.LG
contrastive-ssl

Official code: 1202kbs/EBCLR (13 stars, Python, last commit 2022-10-02).

Abstract

Contrastive learning is a method of learning visual representations by training Deep Neural Networks (DNNs) to increase the similarity between representations of positive pairs (transformations of the same image) and reduce the similarity between representations of negative pairs (transformations of different images). Here we explore Energy-Based Contrastive Learning (EBCLR) that leverages the power of generative learning by combining contrastive learning with Energy-Based Models (EBMs).

Show full abstract

EBCLR can be theoretically interpreted as learning the joint distribution of positive pairs, and it shows promising results on small and medium-scale datasets such as MNIST, Fashion-MNIST, CIFAR-10, and CIFAR-100. Specifically, we find EBCLR demonstrates from X4 up to X20 acceleration compared to SimCLR and MoCo v2 in terms of training epochs. Furthermore, in contrast to SimCLR, we observe EBCLR achieves nearly the same performance with 254 negative pairs (batch size 128) and 30 negative pairs (batch size 16) per positive pair, demonstrating the robustness of EBCLR to small numbers of negative pairs. Hence, EBCLR provides a novel avenue for improving contrastive learning methods that usually require large datasets with a significant number of negative pairs per iteration to achieve reasonable performance on downstream tasks. Code: https://github.com/1202kbs/EBCLR

View on arXivView PDF

Code Implementations(1)

1202kbs/EBCLROfficial100%

Official PyTorch implementation of "Energy-Based Contrastive Learning of Visual Representations", NeurIPS 2022 Oral Paper

131Python, Jupyter NotebookSep 27, 20224 years ago
contrastive-learningenergy-based-model

Similar Papers

Cite this paper

@article{kim2022energybased,
  title  = {Energy-Based Contrastive Learning of Visual Representations},
  author = {Beomsu Kim and Jong Chul Ye},
  year   = {2022},
  eprint = {2202.04933},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.04933}
}

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/2202.04933.svg)](https://codeofpaper.com/paper/2202.04933)

Discussion