Hybrid Generative-Contrastive Representation Learning

Saehoon Kim, Sungwoong Kim, Juho Lee
6/11/2021
cs.LGcs.AI
contrastive-ssl

Official code: kakaobrain/scrl (108 stars, Python, Apache-2.0, last commit 2024-01-03).

Abstract

Unsupervised representation learning has recently received lots of interest due to its powerful generalizability through effectively leveraging large-scale unlabeled data. There are two prevalent approaches for this, contrastive learning and generative pre-training, where the former learns representations from instance-wise discrimination tasks and the latter learns them from estimating the likelihood.

Show full abstract

These seemingly orthogonal approaches have their own strengths and weaknesses. Contrastive learning tends to extract semantic information and discards details irrelevant for classifying objects, making the representations effective for discriminative tasks while degrading robustness to out-of-distribution data. On the other hand, the generative pre-training directly estimates the data distribution, so the representations tend to be robust but not optimal for discriminative tasks. In this paper, we show that we could achieve the best of both worlds by a hybrid training scheme. Specifically, we demonstrated that a transformer-based encoder-decoder architecture trained with both contrastive and generative losses can learn highly discriminative and robust representations without hurting the generative performance. We extensively validate our approach on various tasks.

View on arXivView PDF

Code Implementations(1)

kakaobrain/scrlOfficial100%
Apache-2.0

PyTorch Implementation of Spatially Consistent Representation Learning(SCRL)

10812PythonMar 19, 20212 years agoApache-2.0

Similar Papers

Cite this paper

@article{kim2021hybrid,
  title  = {Hybrid Generative-Contrastive Representation Learning},
  author = {Saehoon Kim and Sungwoong Kim and Juho Lee},
  year   = {2021},
  eprint = {2106.06162},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2106.06162}
}

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

Discussion