# A Survey on Contrastive Self-supervised Learning

対照学習に基づく自己教師あり学習のサーベイ

Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · arXiv · 2020年10月31日

- **課題** ラベル付けのコストを減らすため、データ自体から信号を作る対照学習の方法を整理します。
- **手法** 元のサンプル、拡張サンプル、負例を使って埋め込みを近づけたり遠ざけたりして学習し、負例の集め方によって構造を分けます。
- **結果** 表1では、SwAVがResNet50で、ImageNetのTop-1 75.3を報告しています。同じ表のSimCLRは69.3を報告しています。

## ラベルなしで表現を学習する問題

教師あり学習には多くの注釈付きデータが必要で、そのコストが大きいため、データが多くても活用は難しいです。自己教師あり学習は、データ自体から自己定義した疑似ラベルを作り、それを教師信号として使います。この論文では、その中でも対照学習（contrastive learning）の方法を整理しています。対照学習は、同じサンプルの拡張された2つのバージョンの埋め込みを近づけ、別のサンプルの埋め込みを遠ざけます。この論文は、pretext task、アーキテクチャ、学習方式、下流タスクの性能に分けて見ていきます。

![Figure 1: Basic intuition behind contrastive learning paradigm: push original and augmented images closer and push original and negative images away](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-08178e62b0999bff1d73ad4308f027a4.png?thumb=512)

**Figure 1** : Basic intuition behind contrastive learning paradigm: push original and augmented images closer and push original and negative images away

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの2ページ目から図の部分を抽出しています。

## Pretext taskの構成

Pretext taskは、データの性質から自動的に作られた疑似ラベルで表現を学習するタスクです。対照学習では、元の画像がanchorになり、拡張されたバージョンがpositiveサンプルになります。バッチやデータセットの残りのサンプルはnegativeサンプルとして使われます。論文は色変換、幾何変換、文脈ベースのタスク、クロスモーダルベースのタスクに分けて説明しており、各タスクは解決したい問題によって使い方が変わります。

![Figure 2: Contrastive learning pipeline for self-supervised training](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-20626612db0c3f21c109aeb0eb777e80.png?thumb=512)

**Figure 2** : Contrastive learning pipeline for self-supervised training

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの2ページ目から図の部分を抽出しています。

![Figure 4: Color Transformation as pretext task \[ 15\]. (a) Original (b) Gaussian noise (c) Gaussian blur (d) Color distortion (Jitter)](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-3fb6228374deb9269dc4ccba81ae5055.png?thumb=512)

**Figure 4** : Color Transformation as pretext task \[ 15\]. (a) Original (b) Gaussian noise (c) Gaussian blur (d) Color distortion (Jitter)

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの4ページ目から図の部分を抽出しています。

![Figure 5: Geometric Transformation as pretext task \[15\]. (a) Original (b) Crop and Resize (c) Rotate(90◦, 180◦, 270◦) (d) crop, resize, ﬂip](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-a0c74cb5d658ddb0f8b5b2aa9925a219.png?thumb=512)

**Figure 5** : Geometric Transformation as pretext task \[15\]. (a) Original (b) Crop and Resize (c) Rotate(90◦, 180◦, 270◦) (d) crop, resize, ﬂip

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

![Figure 6: Solving jigsaw puzzle being used as a pretext task to learn representation. (a) Original Image (b) reshufﬂed image. The original image is the anchor…](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-0e7c31bc9fee6648d7a1c8449e41017e.png?thumb=512)

**Figure 6** : Solving jigsaw puzzle being used as a pretext task to learn representation. (a) Original Image (b) reshufﬂed image. The original image is the anchor and the reshufﬂed image is the positive sample.

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの5ページ目から図の部分を抽出しています。

## 負例を集める4つの構造

エンドツーエンド学習は、クエリエンコーダとキーエンコーダを誤差逆伝播で同時に更新し、大きなバッチで負例を集めます。SimCLRは、バッチサイズ4096、100エポックで学習された代表的な例として紹介されています。メモリバンクは、データセットの各サンプルの特徴表現を保存しておき、バッチサイズを増やさずに負例として使います。PIRLは、この方式で学習された手法として説明されています。モーメンタムエンコーダはキーのキューを作り、クエリエンコーダのパラメータから式(1)のθk←mθk+(1−m)θqに従って更新されます。ここでmは0以上1未満のモメンタム係数です。クラスタリング方式は、サンプルのペアだけでなく、似た特徴同士がまとまってクラスタを作るようにするもので、SwAVのような手法で使われます。

![Figure 12: Linear evaluation models (ResNet-50) trained with different batch size and epochs. Each bar represents a single run from scratch \[15\]](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-0617441b5d0e100b43802bc2de8b458e.png?thumb=512)

**Figure 12** : Linear evaluation models (ResNet-50) trained with different batch size and epochs. Each bar represents a single run from scratch \[15\]

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの9ページ目から図の部分を抽出しています。

![Figure 13: Usage of memory bank in PIRL: memory bank contains the moving average representations of all negative images to be used in contrastive learning. \[17\]](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-afa664d58d857ff84648a86a8f6cf217.png?thumb=512)

**Figure 13** : Usage of memory bank in PIRL: memory bank contains the moving average representations of all negative images to be used in contrastive learning. \[17\]

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの10ページ目から図の部分を抽出しています。

![Figure 14: Conventional Contrastive Instance Learning v/s Contrastive Clustering of Feature Representations in SwA V \[13\]](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-3ff26c984680e01d1bc3533142e34fd7.png?thumb=512)

**Figure 14** : Conventional Contrastive Instance Learning v/s Contrastive Clustering of Feature Representations in SwA V \[13\]

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの11ページ目から図の部分を抽出しています。

## 対照損失と学習の最適化

対照学習の基本的な類似度はcosine similarityです。NCE損失は、クエリq、正例k+、負例k−を用い、温度係数τを使った対数の形で定義されます。負例が多い場合にはInfoNCEが使われ、ここではL2正規化と温度係数が、難しい負例をより反映させる役割を果たします。最適化ではSGDが広く使われ、大規模なバッチではLARSとcosine学習率スケジュールが学習を安定させるために導入されると説明されています。

![Figure 7: Contrastive Predictive Coding: Although the ﬁgure shows audio as input, similar setup can be used for videos, images, text etc. \[21\]](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-a5e9d2dff79338dc3641ababe1dee453.png?thumb=512)

**Figure 7** : Contrastive Predictive Coding: Although the ﬁgure shows audio as input, similar setup can be used for videos, images, text etc. \[21\]

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの6ページ目から図の部分を抽出しています。

## ImageNetの結果と代表的な比較

表1は、ImageNetで自己教師あり手法をfrozen encoderベースの線形分類器で評価したTop-1精度を報告しています。この表では、SwAVはResNet50の設定でTop-1 75.3を記録しています。同じ表のSimCLRは、ResNet50で69.3を記録しています。この数値は、表のResNet50の設定とImageNetの自己教師あり評価の条件に限った結果と解釈すべきで、他のデータセットや他のモデルの結果として移すことはできません。

![Figure 3: Top-1 classiﬁcation accuracy of different contrastive learning methods against baseline supervised method on ImageNet](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-0b499f089897473ab4174658a3306caa.png?thumb=512)

**Figure 3** : Top-1 classiﬁcation accuracy of different contrastive learning methods against baseline supervised method on ImageNet

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの3ページ目から図の部分を抽出しています。

![Table 1: Performance on ImageNet Dataset: Top-1 and Top-5 accuracies of different contrastive learning methods on ImageNet using self-supervised approach where…](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-b102dda9df38145abf75353a90ccc340.png?thumb=512)

**Table 1** : Performance on ImageNet Dataset: Top-1 and Top-5 accuracies of different contrastive learning methods on ImageNet using self-supervised approach where models are used as frozen encoders for a linear classiﬁer. The second half of the table (rightmost two columns) show the performance (top-5 accuracy) of these methods after ﬁne-tuning on 1% and 10% of labels from ImageNet

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの13ページ目から図の部分を抽出しています。

## 限界と今後の課題

メモリバンクは、表現が急速に古くなることがあり、更新の計算コストが大きくなる場合があります。エンドツーエンド方式の負例数はバッチサイズに縛られるため、GPUメモリの制約により、スケーラビリティに課題があります。論文は、pretext taskの選択、データ拡張、負例のサンプリング、データセットのバイアスに関する理論的根拠がさらに必要だと議論しています。

![Figure 9: Most of the shapes of these two pairs of images are same. However, low-level statistics are different (color and texture). Usage of right pre-text ta…](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-a28c6a65174fd5bc824659c4e224251f.png?thumb=512)

**Figure 9** : Most of the shapes of these two pairs of images are same. However, low-level statistics are different (color and texture). Usage of right pre-text task here is necessary\[28\]

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

![Figure 10: A sample from the DTD dataset \[27\]. An example of why rotation based pretext task will not work well](https://refivu.com/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7/figures/figure-f0e4cd9029fd2e475b4ffee1850b17b3.png?thumb=512)

**Figure 10** : A sample from the DTD dataset \[27\]. An example of why rotation based pretext task will not work well.

[出典](https://arxiv.org/abs/2011.00362v3) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon · A Survey on Contrastive Self-supervised Learning · 論文の図を引用 · 元のPDFの7ページ目から図の部分を抽出しています。

## 論文情報

- **著者**: Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon
- **学会・ジャーナル**: arXiv · プレプリント
- **公開日**: 2020年10月31日
- **登録日**: 2026年11月6日
- **更新日**: 2021年2月7日
- **バージョン**: v3
- **arXiv**: 2011.00362
- **カテゴリ**: cs.CV
- **ライセンス**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **掲載内容**: 論文情報・解説・論文の図

[元論文 ↗](https://arxiv.org/abs/2011.00362v3) · [PDF ↗](https://arxiv.org/pdf/2011.00362v3)

この解説は、Refivuの韓国語解説をAIで翻訳したものです。不正確な翻訳や誤りが含まれる可能性があります。論文と図の利用条件は各出典に従います。

## アブストラクト

Self-supervised learning has gained popularity because of its ability to avoid the cost of annotating large-scale datasets. It is capable of adopting self-defined pseudo labels as supervision and use the learned representations for several downstream tasks. Specifically, contrastive learning has recently become a dominant component in self-supervised learning methods for computer vision, natural language processing (NLP), and other domains. It aims at embedding augmented versions of the same sample close to each other while trying to push away embeddings from different samples. This paper provides an extensive review of self-supervised methods that follow the contrastive approach. The work explains commonly used pretext tasks in a contrastive learning setup, followed by different architectures that have been proposed so far. Next, we have a performance comparison of different methods for multiple downstream tasks such as image classification, object detection, and action recognition. Finally, we conclude with the limitations of the current methods and the need for further techniques and future directions to make substantial progress.

## この論文を引用

Ashish Jaiswal, Ashwin Ramesh Babu, Mohammad Zaki Zadeh, Debapriya Banerjee, Fillia Makedon (2020). A Survey on Contrastive Self-supervised Learning. arXiv:2011.00362v3. https://arxiv.org/abs/2011.00362v3

**BibTeX**

```
@misc{jaiswal2020survey,
  title = {{A Survey on Contrastive Self-supervised Learning}},
  author = {Ashish Jaiswal and Ashwin Ramesh Babu and Mohammad Zaki Zadeh and Debapriya Banerjee and Fillia Makedon},
  year = {2020},
  eprint = {2011.00362},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.00362v3}
}
```

## この論文の用語

- [Imagenet](https://refivu.com/ja/terms/5eadad128667-imagenet)
- [Stochastic Gradient Descent](https://refivu.com/ja/terms/a49650824022-stochastic-gradient-descent)
- [InfoNCE](https://refivu.com/ja/terms/9909993ddc7f-infonce)
- [cosine similarity](https://refivu.com/ja/terms/3baa01a8760d-cosine-similarity)
- [ResNet-50](https://refivu.com/ja/terms/eb2323a60a89-resnet-50)
- [self-supervised learning](https://refivu.com/ja/terms/5cfb8786ff12-self-supervised-learning)
- [Momentum encoder](https://refivu.com/ja/terms/6f5b1dba2a1e-momentum-encoder)
- [contrastive learning](https://refivu.com/ja/terms/180d2c06550d-contrastive-learning)
- [memory bank](https://refivu.com/ja/terms/130f857ce3f1-memory-bank)
- [MoCo](https://refivu.com/ja/terms/48667b2992b6-moco)
- [Noise Contrastive Estimation](https://refivu.com/ja/terms/2bfec15cdb82-noise-contrastive-estimation)
- [PLACES](https://refivu.com/ja/terms/f1989482056f-places)
- [SimCLR](https://refivu.com/ja/terms/d735de709ac1-simclr)
- [pretext task](https://refivu.com/ja/terms/9e1cd3a4fd51-pretext-task)
- [Top-1](https://refivu.com/ja/terms/79846c0ff8b4-top-1)
- [momentum coefﬁcient](https://refivu.com/ja/terms/ed9c66aeb12b-momentum-coefficient)

## ほかの論文解説

- [Anomaly Detection on Attributed Networks via Contrastive Self-Supervised Learning](https://refivu.com/ja/papers/c20bdbfe-b419-4df5-8f33-b1066c4f4576-anomaly-detection-on-attributed-networks-via-contrastive.md)
- [Graph Self-Supervised Learning: A Survey](https://refivu.com/ja/papers/3b8a4279-c849-4f49-8e2f-9d1981c1e87d-graph-self-supervised-learning-a-survey.md)
- [Self-supervised Learning: Generative or Contrastive](https://refivu.com/ja/papers/f29652bc-588e-4c10-accc-3c3ba6c23453-self-supervised-learning-generative-or-contrastive.md)
- [Self-supervised Learning for Human Activity Recognition Using 700,000 Person-days of Wearable Data](https://refivu.com/ja/papers/7d06c47d-a111-423f-a4f8-68d244e1093c-self-supervised-learning-for-human-activity-recognition.md)
- [Contrastive Representation Learning: A Framework and Review](https://refivu.com/ja/papers/8d475c35-65aa-4272-b3a4-00f7350d277d-contrastive-representation-learning-a-framework-and-review.md)
- [Multi-task Self-Supervised Learning for Human Activity Detection](https://refivu.com/ja/papers/ae7c537d-33fb-4fec-8014-37dab4536341-multi-task-self-supervised-learning-for-human-activity.md)
- [TransMed: Transformers Advance Multi-modal Medical Image Classification](https://refivu.com/ja/papers/23fc0792-8c66-4fa5-9842-427e13e4215b-transmed-transformers-advance-multi-modal-medical-image.md)
- [Fine-Grained Image Analysis with Deep Learning: A Survey](https://refivu.com/ja/papers/225ddd40-96a5-4a36-bb16-28857f71c737-fine-grained-image-analysis-with-deep-learning-a.md)
- [Multimodal Fusion Transformer for Remote Sensing Image Classification](https://refivu.com/ja/papers/5115f05f-19f9-447c-ab75-0ba016db652e-multimodal-fusion-transformer-for-remote-sensing-image.md)
- [Machine Learning Advances for Time Series Forecasting](https://refivu.com/ja/papers/b577b23e-c68c-4e83-81bd-b145dfbcd066-machine-learning-advances-for-time-series-forecasting.md)
- [BEHRT: Transformer for Electronic Health Records](https://refivu.com/ja/papers/cadb146f-6d4d-4255-8058-89ac62ed2dc8-behrt-transformer-for-electronic-health-records.md)
- [A review of ensemble learning and data augmentation models for class imbalanced problems: combination, implementation and evaluation](https://refivu.com/ja/papers/4ac33ac8-dbb4-4221-91b4-b7ce10be936d-a-review-of-ensemble-learning-and-data-augmentation.md)

---

AI解説には誤りが含まれることがあります。 [Refivu](https://refivu.com/ja/papers/96ece942-a5ea-4ce6-9ec5-3a38107aeef7-a-survey-on-contrastive-self-supervised-learning)
