paper-with-me

홈 › Papers

Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learning

2022-03-14 · Yuxin Jiang, Linhan Zhang, Wei Wang

Contrastive learning has been demonstrated to be effective in enhancing pre-trained language models (PLMs) to derive superior universal sentence embeddings. However, existing contrastive methods still have two limitations. Firstly, previous works may acquire poor performance under domain shift settings, thus hindering the application of sentence representations in practice. We attribute this low performance to the over-parameterization of PLMs with millions of parameters. To alleviate it, we propose PromCSE (Prompt-based Contrastive Learning for Sentence Embeddings), which only trains small-scale \emph{Soft Prompt} (i.e., a set of trainable vectors) while keeping PLMs fixed. Secondly, the commonly used NT-Xent loss function of contrastive learning does not fully exploit hard negatives in supervised learning settings. To this end, we propose to integrate an Energy-based Hinge loss to enhance the pairwise discriminative power, inspired by the connection between the NT-Xent loss and the Energy-based Learning paradigm. Empirical results on seven standard semantic textual similarity (STS) tasks and a domain-shifted STS task both show the effectiveness of our method compared with the current state-of-the-art sentence embedding models. Our code is publicly avaliable at https://github.com/YJiangcm/PromCSE

📄 PDF Abstract BibTeX arXiv:2203.06875

Code (1)

yjiangcm/promcse 공식 구현 pytorch

Tasks

AttributeContrastive LearningSemantic Textual SimilaritySentenceSentence EmbeddingsSTS

Methods 이 논문이 사용한 방법론

Contrastive Learning 설명 없음
NT-Xent NT-Xent, or Normalized Temperature-scaled Cross Entropy Loss, is a loss function. Let $\text{sim}\left(\mathbf{u}, \mathbf{v}\right) =…
SimCSE SimCSE is a contrastive learning framework for generating sentence embeddings. It utilizes an unsupervised approach, which takes an input sentence and predicts itself in…

Similar Papers 제목 키워드 기반

Learning Universal Sentence Embeddings with Large-scale Parallel Translation Datasets

2021-11-16 · ACL ARR November 2021 11 · Anonymous

Although contrastive learning has greatly improved sentence representation, its performance is still limited by the size of monolingual sentence-pair datasets. Meanwhile, there exist large-scale parallel translation pair…

Contrastive LearningSemantic Textual SimilaritySentenceSentence Embeddings+2

English Contrastive Learning Can Learn Universal Cross-lingual Sentence Embeddings

2022-11-11 · Yau-Shian Wang, Ashley Wu, Graham Neubig

Universal cross-lingual sentence embeddings map semantically similar cross-lingual sentences into a shared embedding space. Aligning cross-lingual sentence embeddings usually requires supervised cross-lingual parallel se…

Contrastive LearningRetrievalSentenceSentence Embedding+3

Deep Continuous Prompt for Contrastive Learning of Sentence Embeddings

2022-01-16 · ACL ARR January 2022 1 · Anonymous

The performance of sentence representation has been remarkably improved by the framework of contrastive learning. However, recent works still require full fine-tuning, which is quite inefficient for large-scaled pre-trai…

Contrastive LearningLanguage ModelingLanguage ModellingSentence+1

DeCLUTR: Deep Contrastive Learning for Unsupervised Textual Representations

2020-06-05 · ACL 2021 5 · John Giorgi, Osvald Nitski, Bo wang, Gary Bader

Sentence embeddings are an important component of many natural language processing (NLP) systems. Like word embeddings, sentence embeddings are typically learned on large text corpora and then transferred to various down…

ClusteringContrastive LearningLinear-Probe ClassificationMetric Learning+4

D2CSE: Difference-aware Deep continuous prompts for Contrastive Sentence Embeddings

2023-04-18 · Hyunjae Lee

This paper describes Difference-aware Deep continuous prompt for Contrastive Sentence Embeddings (D2CSE) that learns sentence embeddings. Compared to state-of-the-art approaches, D2CSE computes sentence vectors that are …

Contrastive LearningRetrievalSemantic Textual SimilaritySentence+2