DistillCSE: Distilled Contrastive Learning for Sentence Embeddings

Jiahao Xu, Wei Shao, Lihui Chen, Lemao Liu
10/20/2023
13 citations
cs.CL
contrastive-ssldistillation

Official code: Jiahao004/DistillCSE (4 stars, Python, last commit 2023-11-30).

Abstract

This paper proposes the DistillCSE framework, which performs contrastive learning under the self-training paradigm with knowledge distillation. The potential advantage of DistillCSE is its self-enhancing feature: using a base model to provide additional supervision signals, a stronger model may be learned through knowledge distillation.

Show full abstract

However, the vanilla DistillCSE through the standard implementation of knowledge distillation only achieves marginal improvements due to severe overfitting. The further quantitative analyses demonstrate the reason that the standard knowledge distillation exhibits a relatively large variance of the teacher model's logits due to the essence of contrastive learning. To mitigate the issue induced by high variance, this paper accordingly proposed two simple yet effective solutions for knowledge distillation: a Group-P shuffling strategy as an implicit regularization and the averaging logits from multiple teacher components. Experiments on standard benchmarks demonstrate that the proposed DistillCSE outperforms many strong baseline methods and yields a new state-of-the-art performance.

View on arXivView PDF

Code Implementations(1)

40Python, ShellOct 8, 20233 years ago

Similar Papers

Cite this paper

@article{xu2023distillcse,
  title  = {DistillCSE: Distilled Contrastive Learning for Sentence Embeddings},
  author = {Jiahao Xu and Wei Shao and Lihui Chen and Lemao Liu},
  year   = {2023},
  eprint = {2310.13499},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.13499v2}
}

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

Discussion