# Self-supervised Learning: Generative or Contrastive

자기지도 학습: 생성형 또는 대조형

Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang 외 1명 · arXiv · 2020년 6월 15일

- **연구 문제** 지도 학습은 레이블 비용과 일반화 문제가 있어 자기지도 학습이 대안으로 주목받고 있습니다.
- **연구 방법** 자기지도 학습 방법을 생성, 대조, 생성-대조 범주로 나누고 각 범주의 목적 함수와 구조를 비교합니다.
- **주요 결과** MoCo와 SimCLR 등 대조 학습 방법은 ImageNet 선형 분류 비교에서 높은 정확도를 보였다고 원문이 보고합니다.

## 지도 학습의 한계와 자기지도 학습의 등장

지도 학습은 대규모 레이블 데이터에 의존하는데, 이 레이블은 비용이 크고 일반화 오류, 허위 상관, 적대적 공격 같은 문제를 안고 있습니다. 이 서베이는 입력 데이터 자체를 감독 신호로 쓰는 자기지도 학습(SSL)을 대안으로 보고, 컴퓨터 비전, 자연어 처리, 그래프 학습에 걸친 표현 학습 방법을 정리합니다. 원문은 자기지도 학습을 레이블을 자동으로 만드는 과정과 데이터의 일부로 다른 일부를 예측하는 과정으로 요약합니다. 이 절에서는 이러한 문제 설정이 왜 필요한지와 이 논문이 다루는 범위를 먼저 짚습니다.

![Figure 2: Number of publications and citations on self- supervised learning during 2012-2020, from Microsoft Aca- demic \[116\], \[154\]. Self-supervised learning…](https://refivu.com/papers/f29652bc-588e-4c10-accc-3c3ba6c23453/figures/figure-a6df61c723f51e72ccd819bd7928d8a0.png?thumb=512)

**Fig. 2** : Number of publications and citations on self- supervised learning during 2012-2020, from Microsoft Aca- demic \[116\], \[154\]. Self-supervised learning is drawing tremendous attention in recent years.

[원문](https://arxiv.org/abs/2006.08218v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang, Jie Tang · Self-supervised Learning: Generative or Contrastive · 원문 그림 인용 · 원본 PDF 2쪽에서 그림 영역을 추출했습니다.

## 생성, 대조, 생성-대조 범주의 구분

이 논문은 자기지도 학습 방법을 생성(Generative), 대조(Contrastive), 생성-대조(적대적, Generative-Contrastive) 세 범주로 나눕니다. 생성 방법은 입력 x를 명시적 벡터 z로 인코딩하고 디코더로 x를 복원합니다. 대조 방법은 표현 z 사이의 유사도를 측정하며, 생성-대조 방법은 생성기와 판별기를 두고 가짜 샘플과 실제 샘플의 분포 차이를 줄입니다. 세 범주의 차이는 잠재 분포의 명시성, 판별기 유무, 목적 함수에서 드러납니다. 생성 방법은 판별기가 없고, 대조 방법의 판별기는 2~3층 MLP 수준으로 GAN의 판별기보다 파라미터가 적다고 설명됩니다.

![Figure 4: Conceptual comparison between Generative, Con- trastive, and Generative-Contrastive methods](https://refivu.com/papers/f29652bc-588e-4c10-accc-3c3ba6c23453/figures/figure-71df3bfaf942ba1eeb5eab0e695ca4e4.png?thumb=512)

**Fig. 4** : Conceptual comparison between Generative, Con- trastive, and Generative-Contrastive methods.

[원문](https://arxiv.org/abs/2006.08218v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang, Jie Tang · Self-supervised Learning: Generative or Contrastive · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

## 대조 학습과 InfoNCE 목적 함수

대조 학습은 기준 샘플 x와 유사한 샘플 x+를 가깝게, 다른 샘플 x−를 멀게 만드는 방식으로 표현을 학습합니다. 원문의 NCE 목적 함수는 로그 항 안에서 양성 쌍의 지수 점수를 양성과 음성 점수의 합으로 나눈 값을 사용합니다. 음성 샘플을 K개로 늘린 InfoNCE는 분모에 여러 음성 항을 더한 형태입니다. MoCo는 최근 배치를 저장하는 큐를 두어 많은 음성 샘플을 사용하며, 원문은 K를 최대 65536까지 설명합니다. SimCLR은 여러 증강으로 양성 쌍을 만들고 NT-Xent 손실을 사용하며, 배치 크기 N을 최대 8196까지 선택한다고 설명합니다.

![Figure 12: Conceptual comparison of three contrastive loss mechanisms. Taken from MoCo \[52\]](https://refivu.com/papers/f29652bc-588e-4c10-accc-3c3ba6c23453/figures/figure-72977d6d1fd501d44c0305bab53e0680.png?thumb=512)

**Fig. 12** : Conceptual comparison of three contrastive loss mechanisms. Taken from MoCo \[52\].

[원문](https://arxiv.org/abs/2006.08218v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang, Jie Tang · Self-supervised Learning: Generative or Contrastive · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 부정 샘플 없는 방법과 인스턴스 판별

BYOL은 음성 샘플을 사용하지 않고 온라인 네트워크와 지수 이동평균으로 갱신되는 목표 네트워크 사이의 회귀 손실로 학습합니다. 원문은 이 구조에서 표현이 붕괴하지 않도록 목표 네트워크를 갱신하는 방식이 중요하다고 설명합니다. 이 결과는 음성 샘플이 항상 필요하다는 가정을 의심하게 하지만, 원문은 이 메커니즘이 아직 충분히 이해되지 않았다고 밝힙니다. 따라서 BYOL의 성능은 해당 아키텍처와 학습 조건에서 관찰된 결과로 읽어야 합니다.

## 대조 학습의 한계와 ImageNet 비교

그림 7은 2021년 3월 기준 ImageNet 상위 1 정확도를 선형 분류 프로토콜로 비교한 자료이며, 원문은 그 결과에서 BigBiGAN을 제외한 모델들이 모두 대조 학습 방법이라고 설명합니다. 이 비교는 선형 분류라는 특정 프로토콜에서의 결과이며, 다른 과제 전반의 우열을 뜻하지 않습니다. 원문은 대조 학습이 임베딩 공간의 조기 퇴화 문제를 겪을 수 있으며 이것이 언어 생성 등에서 기대에 못 미치는 원인일 수 있다고 지적합니다. 이 지적은 저자의 해석과 향후 과제로 제시된 것입니다.

![Figure 7: Self-supervised representation learning performance on ImageNet top-1 accuracy in March, 2021, under linear classiﬁcation protocol. The self-supervis…](https://refivu.com/papers/f29652bc-588e-4c10-accc-3c3ba6c23453/figures/figure-289e1d0cb58d1cb4337c5d99f6a73dd5.png?thumb=512)

**Fig. 7** : Self-supervised representation learning performance on ImageNet top-1 accuracy in March, 2021, under linear classiﬁcation protocol. The self-supervised learning’s ability on feature extraction is rapidly approaching the supervised method (ResNet50). Except for BigBiGAN, all the models above are contrastive self-supervised learning methods.

[원문](https://arxiv.org/abs/2006.08218v5) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang, Jie Tang · Self-supervised Learning: Generative or Contrastive · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang, Jie Tang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 6월 15일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 3월 20일
- **버전**: v5
- **arXiv**: 2006.08218
- **DOI**: 10.1109/tkde.2021.3090866
- **분류**: cs.LG · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2006.08218v5) · [원문 PDF ↗](https://arxiv.org/pdf/2006.08218v5)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Deep supervised learning has achieved great success in the last decade. However, its deficiencies of dependence on manual labels and vulnerability to attacks have driven people to explore a better solution. As an alternative, self-supervised learning attracts many researchers for its soaring performance on representation learning in the last several years. Self-supervised representation learning leverages input data itself as supervision and benefits almost all types of downstream tasks. In this survey, we take a look into new self-supervised learning methods for representation in computer vision, natural language processing, and graph learning. We comprehensively review the existing empirical methods and summarize them into three main categories according to their objectives: generative, contrastive, and generative-contrastive (adversarial). We further investigate related theoretical analysis work to provide deeper thoughts on how self-supervised learning works. Finally, we briefly discuss open problems and future directions for self-supervised learning. An outline slide for the survey is provided.

## 원문 인용

Xiao Liu, Fanjin Zhang, Zhenyu Hou, Zhaoyu Wang, Li Mian, Jing Zhang, Jie Tang (2020). Self-supervised Learning: Generative or Contrastive. arXiv:2006.08218v5. https://doi.org/10.1109/tkde.2021.3090866

**BibTeX**

```
@article{liu2020self,
  title = {{Self-supervised Learning: Generative or Contrastive}},
  author = {Xiao Liu and Fanjin Zhang and Zhenyu Hou and Zhaoyu Wang and Li Mian and Jing Zhang and Jie Tang},
  year = {2020},
  eprint = {2006.08218},
  archivePrefix = {arXiv},
  doi = {10.1109/tkde.2021.3090866},
  url = {https://arxiv.org/abs/2006.08218v5}
}
```

## 이 논문의 용어

- [Imagenet](https://refivu.com/terms/5eadad128667-imagenet)
- [Top-1 Accuracy](https://refivu.com/terms/653c0b9eaa58-top-1-accuracy)
- [Mutual information](https://refivu.com/terms/31de24f17a5e-mutual-information)
- [Generative Adversarial Networks](https://refivu.com/terms/889f2a50b737-generative-adversarial-networks)
- [InfoNCE](https://refivu.com/terms/9909993ddc7f-infonce)
- [contrastive learning](https://refivu.com/terms/180d2c06550d-contrastive-learning)
- [Wasserstein distance](https://refivu.com/terms/240851406de5-wasserstein-distance)
- [Self-Supervised Learning](https://refivu.com/terms/5cfb8786ff12-self-supervised-learning)
- [Evidence Lower Bound](https://refivu.com/terms/ab8bf35324c3-evidence-lower-bound)
- [Variational Autoencoders](https://refivu.com/terms/4e570b65e841-variational-autoencoders)
- [SimCLR](https://refivu.com/terms/d735de709ac1-simclr)
- [MoCo](https://refivu.com/terms/48667b2992b6-moco)
- [Next Sentence Prediction](https://refivu.com/terms/1f8e569cac6a-next-sentence-prediction)
- [masked language model](https://refivu.com/terms/7ab0d97f6798-masked-language-model)
- [BYOL](https://refivu.com/terms/81180b7503df-byol)
- [instance discrimination](https://refivu.com/terms/ca7f2493fb62-instance-discrimination)
- [VQ-VAE](https://refivu.com/terms/0d9367acbf9c-vq-vae)
- [Noise Contrastive Estimation](https://refivu.com/terms/2bfec15cdb82-noise-contrastive-estimation)
- [DeepCluster](https://refivu.com/terms/cff025807bdb-deepcluster)
- [SwAV](https://refivu.com/terms/67ac1ca5e1a0-swav)
- [NT-Xent loss](https://refivu.com/terms/30d70809d3e2-nt-xent-loss)
- [자기지도 학습](https://refivu.com/terms/78dd1524c578)

## 다른 논문 해설

- [Visualizing and Understanding Contrastive Learning](https://refivu.com/papers/1c935acc-e6a1-4adf-b191-ce3d39858069-visualizing-and-understanding-contrastive-learning.md)
- [Learning Representations with Contrastive Self-Supervised Learning for Histopathology Applications](https://refivu.com/papers/34056d75-d0d7-4a13-a797-cabf81501cec-learning-representations-with-contrastive-self-supervised.md)
- [Cross-Modal Contrastive Learning of Representations for Navigation using Lightweight, Low-Cost Millimeter Wave Radar for Adverse Environmental Conditions](https://refivu.com/papers/5c56fa5a-3227-4a44-a609-9b42bb1290c2-cross-modal-contrastive-learning-of-representations-for.md)
- [Accurate Clinical Toxicity Prediction using Multi-task Deep Neural Nets and Contrastive Molecular Explanations](https://refivu.com/papers/cd601127-20d4-4092-be9b-9fbf722b973c-accurate-clinical-toxicity-prediction-using-multi-task-deep.md)
- [Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data](https://refivu.com/papers/7d06c47d-a111-423f-a4f8-68d244e1093c-self-supervised-learning-for-human-activity-recognition.md)
- [Context Vectors are Reflections of Word Vectors in Half the Dimensions](https://refivu.com/papers/b7b81b8b-5025-4fbd-a52e-a2e1e26668da-context-vectors-are-reflections-of-word-vectors-in.md)
- [Deep Reinforcement Learning Based Intelligent Reflecting Surface for Secure Wireless Communications](https://refivu.com/papers/7f104da3-3d98-4ecd-95d9-a25944d61e36-deep-reinforcement-learning-based-intelligent-reflecting.md)
- [Retrieval-Pretrained Transformer: Long-range Language Modeling with Self-retrieval](https://refivu.com/papers/624b0d3d-2626-449c-9b8d-15b795867446-retrieval-pretrained-transformer-long-range-language.md)
- [Writer Identification and Writer Retrieval Based on NetVLAD with Re-ranking](https://refivu.com/papers/5c507cda-3490-4660-8811-36c766c434c8-writer-identification-and-writer-retrieval-based-on-netvlad.md)
- [Reinforced Prompt Personalization for Recommendation with Large Language Models](https://refivu.com/papers/27afc2ea-b641-4b86-8888-206972777f90-reinforced-prompt-personalization-for-recommendation-with.md)
- [Six Fallacies in Substituting Large Language Models for Human Participants](https://refivu.com/papers/bb0ec81c-502c-4c66-a26c-df852f429e31-six-fallacies-in-substituting-large-language-models-for.md)
- [Masked Vision-Language Transformer in Fashion](https://refivu.com/papers/39eccadd-3753-47c1-9ac7-d525054ba0a4-masked-vision-language-transformer-in-fashion.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/f29652bc-588e-4c10-accc-3c3ba6c23453-self-supervised-learning-generative-or-contrastive)
