Composition-contrastive Learning for Sentence Embeddings

Sachin J. Chanchani, Ruihong Huang
7/14/2023
cs.CLcs.LG

Official code: perceptiveshawty/CompCSE (7 stars, last commit 2023-07-25).

Abstract

Vector representations of natural language are ubiquitous in search applications. Recently, various methods based on contrastive learning have been proposed to learn textual representations from unlabelled data; by maximizing alignment between minimally-perturbed embeddings of the same text, and encouraging a uniform distribution of embeddings across a broader corpus. Differently, we propose maximizing alignment between texts and a composition of their phrasal constituents. We consider several realizations of this objective and elaborate the impact on representations in each case. Experimental results on semantic textual similarity tasks show improvements over baselines that are comparable with state-of-the-art approaches. Moreover, this work is the first to do so without incurring costs in auxiliary training objectives or additional network parameters.

View on arXivView PDF

Code Implementations(1)

Code for the ACL 2023 long paper "Composition-contrastive Learning for Sentence Embeddings"

70Shell, PythonJul 25, 20233 years ago
contrastive-learningmixupnlpsentence-embeddingssentence-representations+1 more

Cite this paper

@article{chanchani2023compositioncontrastive,
  title  = {Composition-contrastive Learning for Sentence Embeddings},
  author = {Sachin J. Chanchani and Ruihong Huang},
  year   = {2023},
  eprint = {2307.07380},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2307.07380v1}
}

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

Discussion