Contrastive Learning-based Sentence Encoders Implicitly Weight Informative Words

Hiroto Kurita, Goro Kobayashi, Sho Yokoi, Kentaro Inui
10/24/2023
cs.CL

No confident code implementation found for this paper.

Abstract

The performance of sentence encoders can be significantly improved through the simple practice of fine-tuning using contrastive loss. A natural question arises: what characteristics do models acquire during contrastive learning? This paper theoretically and experimentally shows that contrastive-based sentence encoders implicitly weight words based on information-theoretic quantities; that is, more informative words receive greater weight, while others receive less. The theory states that, in the lower bound of the optimal value of the contrastive learning objective, the norm of word embedding reflects the information gain associated with the distribution of surrounding words. We also conduct comprehensive experiments using various models, multiple datasets, two methods to measure the implicit weighting of models (Integrated Gradients and SHAP), and two information-theoretic quantities (information gain and self-information). The results provide empirical evidence that contrastive fine-tuning emphasizes informative words.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kurita2023contrastive,
  title  = {Contrastive Learning-based Sentence Encoders Implicitly Weight Informative Words},
  author = {Hiroto Kurita and Goro Kobayashi and Sho Yokoi and Kentaro Inui},
  year   = {2023},
  eprint = {2310.15921},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.15921v1}
}

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

Discussion