Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

RankCSE: Unsupervised Sentence Representations Learning via Learning to Rank

About

Unsupervised sentence representation learning is one of the fundamental problems in natural language processing with various downstream applications. Recently, contrastive learning has been widely adopted which derives high-quality sentence representations by pulling similar semantics closer and pushing dissimilar ones away. However, these methods fail to capture the fine-grained ranking information among the sentences, where each sentence is only treated as either positive or negative. In many real-world scenarios, one needs to distinguish and rank the sentences based on their similarities to a query sentence, e.g., very relevant, moderate relevant, less relevant, irrelevant, etc. In this paper, we propose a novel approach, RankCSE, for unsupervised sentence representation learning, which incorporates ranking consistency and ranking distillation with contrastive learning into a unified framework. In particular, we learn semantically discriminative sentence representations by simultaneously ensuring ranking consistency between two representations with different dropout masks, and distilling listwise ranking knowledge from the teacher. An extensive set of experiments are conducted on both semantic textual similarity (STS) and transfer (TR) tasks. Experimental results demonstrate the superior performance of our approach over several state-of-the-art baselines.

Jiduan Liu, Jiahao Liu, Qifan Wang, Jingang Wang, Wei Wu, Yunsen Xian, Dongyan Zhao, Kai Chen, Rui Yan• 2023

Related benchmarks

TaskDatasetResultRank
Semantic Textual SimilaritySTS tasks (STS12, STS13, STS14, STS15, STS16, STS-B, SICK-R) various (test)
STS12 Score75.66
393
Sentence Classification Transfer TasksSentEval transfer tasks
Average Accuracy0.8878
99
Sentence RankingSTS12
KCC42.79
3
Sentence RankingSTS13
KCC0.4626
3
Sentence RankingSTS14
KCC44.53
3
Sentence RankingSTS15
KCC52
3
Sentence RankingSTS-B
KCC63.64
3
Sentence RankingSICK-R
KCC57.4
3
Sentence RankingSTS16
KCC57.21
3
Showing 9 of 9 rows

Other info

Code

Follow for update