Skip to main content
QUICK REVIEW

[Paper Review] DisCo: Remedy Self-supervised Learning on Lightweight Models with Distilled Contrastive Learning

Yuting Gao, Jiaxin Zhuang|arXiv (Cornell University)|Apr 19, 2021
Domain Adaptation and Few-Shot LearningComputer Science46 references8 citations
TL;DR

This paper proposes DisCo, a knowledge distillation framework that enhances self-supervised learning (SSL) on lightweight models by transferring the final contrastive embedding from a large teacher model to a smaller student model via MSE loss. The method significantly improves linear evaluation accuracy—boosting EfficientNet-B0's ImageNet top-1 accuracy by 22.1% when trained with a ResNet-101 teacher—without adding parameters during inference.

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. 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.

Motivation & Objective

  • Address the performance drop of self-supervised learning (SSL) on small models, where accuracy declines sharply as model size decreases.
  • Overcome the limitation of existing distillation methods that transfer suboptimal knowledge (e.g., logits or feature maps) rather than the most informative final embedding.
  • Improve the generalization capacity of lightweight models in SSL by focusing on the final contrastive embedding as the primary knowledge source.
  • Identify and resolve the 'Distilling Bottleneck'—a performance ceiling caused by limited hidden dimension in the student's MLP head—by expanding the embedding dimension.
  • Design a method that introduces no extra parameters during downstream deployment, ensuring efficiency in real-world applications.

Proposed method

  • Transfer knowledge from a large teacher model to a lightweight student model by constraining the final contrastive embedding of the student to match that of the teacher using mean squared error (MSE) loss.
  • Use the final projection head output (after the MLP) of the teacher model as the primary knowledge signal, as it contains the most informative representation for contrastive learning.
  • Introduce a modified training pipeline where the student’s final embedding is regularized to align with the teacher’s final embedding during pre-training.
  • Address the 'Distilling Bottleneck' by increasing the hidden dimension of the student’s MLP head, improving knowledge transmission capacity.
  • Ensure that the additional MLP head used during pre-training is removed before fine-tuning and inference, preserving model efficiency.
  • Integrate DisCo into various SSL frameworks (e.g., MoCo-V2, SwAV, DINO) to validate its compatibility and generalization across different architectures and learning paradigms.

Experimental results

Research questions

  • RQ1Can transferring the final contrastive embedding from a large teacher model significantly improve the representation quality of a lightweight student model in self-supervised learning?
  • RQ2Does constraining the student’s final embedding to match the teacher’s embedding via MSE loss lead to better downstream performance than existing distillation methods?
  • RQ3Is the performance degradation in small models due to a bottleneck in knowledge transfer, and can expanding the MLP head dimension alleviate this issue?
  • RQ4Can DisCo be effectively applied across diverse SSL frameworks (e.g., MoCo-V2, SwAV, DINO) without architectural modifications?
  • RQ5Does combining DisCo with other distillation techniques (e.g., AT, RKD, KD) yield further performance gains?

Key findings

  • DisCo improves the linear evaluation top-1 accuracy of EfficientNet-B0 on ImageNet by 22.1% when trained with a ResNet-101 teacher, reaching 66.5% accuracy.
  • When using ResNet-50 as the teacher, DisCo improves the top-1 accuracy of EfficientNet-B0 by 19.7%, achieving 66.6% accuracy.
  • The method surpasses state-of-the-art methods like SEED and MoCo-V2 across all tested lightweight models, including MobileNet-v3 and ResNet-18.
  • Expanding the MLP head dimension in the student model improves performance monotonically, with the highest gain observed at 2048 dimensions.
  • Combining DisCo with other distillation methods (AT, RKD, KD) leads to further performance gains, confirming its compatibility and effectiveness.
  • DisCo achieves strong results across diverse SSL frameworks, including MoCo-V2, SwAV, and DINO, demonstrating its generalization and compatibility.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.