DisCo: Remedy Self-supervised Learning on Lightweight Models with Distilled Contrastive Learning

Yuting Gao, Jia-Xin Zhuang, Shaohui Lin, Hao Cheng, Xing Sun +2 more
4/19/2021
45 citations
cs.CVcs.AI
contrastive-ssl

Official code: Yuting-Gao/DisCo-pytorch (105 stars, Python, last commit 2023-02-20).

Abstract

While self-supervised representation learning (SSL) has received widespread attention from the community, recent research argue that its performance will suffer a cliff fall when the model size decreases. The current method mainly relies on contrastive learning to train the network and in this work, we propose a simple yet effective Distilled Contrastive Learning (DisCo) to ease the issue by a large margin.

Show full abstract

Specifically, we find the final embedding obtained by the mainstream SSL methods contains the most fruitful information, and propose to distill the final embedding to maximally transmit a teacher's knowledge to a lightweight model by constraining the last embedding of the student to be consistent with that of the teacher. In addition, in the experiment, we find that there exists a phenomenon termed Distilling BottleNeck and present to enlarge the embedding dimension to alleviate this problem. Our method does not introduce any extra parameter to lightweight models during deployment. Experimental results demonstrate that our method achieves the state-of-the-art on all lightweight models. Particularly, when ResNet-101/ResNet-50 is used as teacher to teach EfficientNet-B0, the linear result of EfficientNet-B0 on ImageNet is very close to ResNet-101/ResNet-50, but the number of parameters of EfficientNet-B0 is only 9.4\%/16.3\% of ResNet-101/ResNet-50. Code is available at https://github. com/Yuting-Gao/DisCo-pytorch.

View on arXivView PDF

Code Implementations(1)

Code for DisCo: Remedy Self-supervised Learning on Lightweight Models with Distilled Contrastive Learning

10511Python, Jupyter NotebookJul 6, 20213 years ago
distillationself-supervised-learning

Similar Papers

Cite this paper

@article{gao2021disco,
  title  = {DisCo: Remedy Self-supervised Learning on Lightweight Models with Distilled Contrastive Learning},
  author = {Yuting Gao and Jia-Xin Zhuang and Shaohui Lin and Hao Cheng and Xing Sun and Ke Li and Chunhua Shen},
  year   = {2021},
  eprint = {2104.09124},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.09124}
}

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

Discussion