Improved Universal Sentence Embeddings with Prompt-based Contrastive Learning and Energy-based Learning
Yuxin Jiang, Linhan Zhang, Wei Wang

TL;DR
This paper introduces PromCSE, a prompt-based contrastive learning method that trains small soft prompts while keeping large language models fixed, improving universal sentence embeddings especially under domain shift conditions.
Contribution
The paper proposes a novel prompt-based contrastive learning approach with energy-based loss, reducing model overfitting and enhancing discriminative power for sentence embeddings.
Findings
Outperforms state-of-the-art on seven STS tasks
Effective under domain shift scenarios
Utilizes small trainable prompts with fixed PLMs
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopic Modeling · Natural Language Processing Techniques · Text Readability and Simplification
MethodsContrastive Learning · Normalized Temperature-scaled Cross Entropy Loss · SimCSE
