# Contrastive Representation Learning: A Framework and Review

대조 표현 학습: 프레임워크와 리뷰

Phuc H. Le-Khac, Graham Healy, Alan F. Smeaton · arXiv · 2020년 10월 10일

- **연구 문제** 표현 학습에서 좋은 표현을 직접 측정하기 어렵다는 문제를 대조 학습의 관점에서 다룹니다.
- **연구 방법** 여러 대조 학습 방법을 유사도 분포, 인코더, 변환 헤드, 대조 손실로 나누는 일반 프레임워크를 제시합니다.
- **주요 결과** 인스턴스 판별 예시와 InfoNCE 계열 손실을 통해 대조 학습의 작동을 설명하며, 증강과 배치 크기에 대한 의존성을 분석합니다.

## 대조 학습이 필요한 이유

이 논문은 표현 학습에서 좋은 표현을 직접 측정할 목표가 명확하지 않다는 문제에서 출발합니다. 지도 학습은 라벨로 목표를 직접 최적화할 수 있지만, 라벨이 적거나 비싼 상황에서는 큰 비라벨 데이터로부터 유용한 표현을 얻는 방법이 필요합니다. 논문은 이 맥락에서 대조 학습을 입력 샘플들을 서로 비교하여 표현을 학습하는 방식으로 설명합니다.

대조 학습은 같은 대상의 서로 다른 뷰를 양성 쌍으로, 다른 대상의 뷰를 음성 쌍으로 두고, 양성 표현은 가깝게 음성 표현은 멀게 만듭니다. 논문은 이를 생성 모델이나 의사 라벨을 쓰는 판별 모델과 구분하여, 유사도 분포를 정의하는 것만으로 학습 신호를 얻는다고 설명합니다.

## 대조 표현 학습 프레임워크의 구성요소

논문은 대조 표현 학습을 유사도 분포, 기본 인코더, 변환 헤드, 대조 손실의 네 구성요소로 정리합니다. 유사도 분포는 질의와 키의 양성·음성 쌍을 정의하고, 인코더는 입력 뷰에서 표현 v를 추출합니다. 변환 헤드는 표현 v를 손실 계산에 쓰는 메트릭 임베딩 z로 바꿉니다.

예를 들어 인스턴스 판별에서는 한 이미지의 두 증강 뷰가 양성 쌍이 되고, 다른 이미지에서 나온 뷰가 음성 쌍이 됩니다. 이 틀은 여러 방법을 같은 언어로 비교하기 위한 분류 체계로 제시되며, 이 논문이 정리한 범위 안에서의 설명입니다.

## InfoNCE와 NT-Xent 손실

대표적인 대조 손실인 InfoNCE는 양성 쌍의 내적을 키 집합 전체의 지수합으로 나눈 값의 음의 로그로 정의됩니다. 이 식에서 분자는 양성 쌍의 유사도를, 분모는 한 개의 양성과 K개의 음성 쌍을 합한 정규화 항을 나타냅니다. 이 손실을 최소화하면 양성 쌍의 유사도는 커지고 음성 쌍의 유사도는 작아지는 방향으로 학습됩니다.

NT-Xent는 코사인 유사도와 온도 매개변수 τ를 사용하는 형태로, SimCLR에서 쓰인 선택지로 소개됩니다. 논문은 InfoNCE가 상호정보량의 하한과 연결된다고 설명하지만, 이는 저자들이 인용하는 이론적 동기이며 이 논문이 모든 경우를 증명한 것은 아닙니다.

## 인스턴스 판별 예시

인스턴스 판별은 각 이미지를 자기 자신만의 클래스로 취급하는 자기지도 시각 표현 학습 과제입니다. 한 이미지에서 강한 증강으로 만든 두 뷰는 양성 쌍이 되고, 서로 다른 이미지에서 만든 뷰는 음성 쌍이 됩니다. 원문은 이 방식이 저수준 시각 단서를 통한 지름길을 피하기 위해 강한 증강을 사용한다고 설명합니다.

이 설정에서 인코더 출력은 평균 풀링 뒤의 표현 v이고, 작은 MLP 투영 헤드가 메트릭 임베딩 z를 만듭니다. 학습이 끝나면 투영 헤드는 버리고 인코더를 전이 학습에 사용합니다.

## 증강 의존성과 적용 범위

원문은 ImageNet에서 증강을 사용한 대조 pre-training의 맥락에서, 적절한 증강 없이 많은 대조 학습 방법은 매우 낮은 성능을 보인다고 분석합니다. 따라서 대조 학습의 불변성은 어떤 증강을 쓰는지에 크게 의존합니다.

또한 원문은 대조 학습 방법이 일반적으로 다른 지도 또는 자기지도 방법보다 큰 배치 크기와 더 긴 학습 시간을 필요로 한다고 설명합니다. 이 결과는 해당 원문이 다룬 ImageNet 기반 분석과 방법들의 범위에서 읽어야 하며, 모든 데이터와 과제에 같은 결론이 적용된다고 보기는 어렵습니다.

## 논문 정보

- **저자**: Phuc H. Le-Khac, Graham Healy, Alan F. Smeaton
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2020년 10월 10일
- **등록일**: 2026년 11월 6일
- **수정일**: 2020년 10월 27일
- **버전**: v2
- **arXiv**: 2010.05113
- **DOI**: 10.1109/access.2020.3031549
- **분류**: cs.LG · stat.ML
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Contrastive Learning has recently received interest due to its success in self-supervised representation learning in the computer vision domain. However, the origins of Contrastive Learning date as far back as the 1990s and its development has spanned across many fields and domains including Metric Learning and natural language processing. In this paper we provide a comprehensive literature review and we propose a general Contrastive Representation Learning framework that simplifies and unifies many different contrastive learning methods. We also provide a taxonomy for each of the components of contrastive learning in order to summarise it and distinguish it from other forms of machine learning. We then discuss the inductive biases which are present in any contrastive learning system and we analyse our framework under different views from various sub-fields of Machine Learning. Examples of how contrastive learning has been applied in computer vision, natural language processing, audio processing, and others, as well as in Reinforcement Learning are also presented. Finally, we discuss the challenges and some of the most promising future research directions ahead.

## 원문 인용

Phuc H. Le-Khac, Graham Healy, Alan F. Smeaton (2020). Contrastive Representation Learning: A Framework and Review. arXiv:2010.05113v2. https://doi.org/10.1109/access.2020.3031549

**BibTeX**

```
@article{lekhac2020contrastive,
  title = {{Contrastive Representation Learning: A Framework and Review}},
  author = {Phuc H. Le-Khac and Graham Healy and Alan F. Smeaton},
  year = {2020},
  eprint = {2010.05113},
  archivePrefix = {arXiv},
  doi = {10.1109/access.2020.3031549},
  url = {https://arxiv.org/abs/2010.05113v2}
}
```

## 이 논문의 용어

- [Imagenet](https://refivu.com/terms/5eadad128667-imagenet)
- [cosine similarity](https://refivu.com/terms/3baa01a8760d-cosine-similarity)
- [InfoNCE](https://refivu.com/terms/9909993ddc7f-infonce)
- [Triplet loss](https://refivu.com/terms/6b3cf5362b16-triplet-loss)
- [Gumbel-Softmax](https://refivu.com/terms/e169554398b3-gumbel-softmax)
- [partition function](https://refivu.com/terms/78ea3a439142-partition-function)
- [SimCLR](https://refivu.com/terms/d735de709ac1-simclr)
- [Momentum encoder](https://refivu.com/terms/6f5b1dba2a1e-momentum-encoder)
- [memory bank](https://refivu.com/terms/130f857ce3f1-memory-bank)
- [instance discrimination](https://refivu.com/terms/ca7f2493fb62-instance-discrimination)
- [scoring function](https://refivu.com/terms/5e1eda00d49e-scoring-function)
- [projection head](https://refivu.com/terms/c0e8aab39889-projection-head)
- [Deep InfoMax (DIM)](https://refivu.com/terms/124b9ee2d3d9-deep-infomax-dim)
- [Momentum Contrast (MoCo)](https://refivu.com/terms/389df110f3c1-momentum-contrast-moco)
- [Mutual Information (MI)](https://refivu.com/terms/122e68177392-mutual-information-mi)
- [Sinkhorn-Knopp](https://refivu.com/terms/c95925e222d4-sinkhorn-knopp)

## 다른 논문 해설

- [Language Knowledge-Assisted Representation Learning for Skeleton-Based Action Recognition](https://refivu.com/papers/606f8e68-1af8-4a10-856d-bd1487d12ab3-language-knowledge-assisted-representation-learning-for.md)
- [Exploiting Unlabeled Data in CNNs by Self-supervised Learning to Rank](https://refivu.com/papers/0b37f7e4-24bc-430e-8e04-56053b8e4c37-exploiting-unlabeled-data-in-cnns-by-self-supervised.md)
- [One Deep Music Representation to Rule Them All? : A comparative analysis of different representation learning strategies](https://refivu.com/papers/86b13be2-8a0c-49c6-91b8-10aa621e6d11-one-deep-music-representation-to-rule-them-all.md)
- [Online Self-Supervised Deep Learning for Intrusion Detection Systems](https://refivu.com/papers/5b2dc5eb-5b04-4003-9688-63d5f91512ca-online-self-supervised-deep-learning-for-intrusion-detection.md)
- [Semantics-aware Dataset Discovery from Data Lakes with Contextualized Column-based Representation Learning](https://refivu.com/papers/160c4253-fc76-4302-b055-72f4465f9200-semantics-aware-dataset-discovery-from-data-lakes-with.md)
- [Augmenting Reinforcement Learning with Transformer-based Scene Representation Learning for Decision-making of Autonomous Driving](https://refivu.com/papers/3c0c6c58-cf87-40e9-b790-2f8d3e3d6f7c-augmenting-reinforcement-learning-with-transformer-based.md)
- [Opportunities and Challenges for ChatGPT and Large Language Models in Biomedicine and Health](https://refivu.com/papers/fddfbda2-67e8-44ae-b9b3-0a4666afe739-opportunities-and-challenges-for-chatgpt-and-large-language.md)
- [YOLOP: You Only Look Once for Panoptic Driving Perception](https://refivu.com/papers/61212604-6561-425b-9de1-178543e2926c-yolop-you-only-look-once-for-panoptic-driving.md)
- [Robust Safety-Critical Control for Dynamic Robotics](https://refivu.com/papers/3bdce761-4625-44fa-ba2a-7dbdc76dfb6f-robust-safety-critical-control-for-dynamic-robotics.md)
- [Machine learning-assisted directed protein evolution with combinatorial libraries](https://refivu.com/papers/a4309e01-25f4-4c40-896c-8ee713da1fda-machine-learning-assisted-directed-protein-evolution-with.md)
- [Learning a Dilated Residual Network for SAR Image Despeckling](https://refivu.com/papers/4914a8cc-cc9f-446b-8f1c-45359f95d9e2-learning-a-dilated-residual-network-for-sar-image.md)
- [Intelligent Inverse Treatment Planning via Deep Reinforcement Learning, a Proof-of-Principle Study in High Dose-rate Brachytherapy for Cervical Cancer](https://refivu.com/papers/989ca4a6-f0a1-49bb-acef-57ff8c8cd05d-intelligent-inverse-treatment-planning-via-deep.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/8d475c35-65aa-4272-b3a4-00f7350d277d-contrastive-representation-learning-a-framework-and-review)
