计算机科学
自然语言处理
判决
构造(python库)
光学(聚焦)
人工智能
嵌入
相似性(几何)
聚类分析
语义相似性
图像(数学)
程序设计语言
物理
光学
作者
Jiali Zeng,Yongjing Yin,Yufan Jiang,Shuangzhi Wu,Yunbo Cao
标识
DOI:10.18653/v1/2022.findings-emnlp.522
摘要
Contrastive learning has become a new paradigm for unsupervised sentence embeddings.Previous studies focus on instance-wise contrastive learning, attempting to construct positive pairs with textual data augmentation. In this paper, we propose a novel Contrastive learning method with Prompt-derived Virtual semantic Prototypes (ConPVP). Specifically, with the help of prompts, we construct virtual semantic prototypes to each instance, and derive negative prototypes by using the negative form of the prompts.Using a prototypical contrastive loss, we enforce the anchor sentence embedding to be close to its corresponding semantic prototypes, and far apart from the negative prototypes as well as the prototypes of other sentences.Extensive experimental results on semantic textual similarity, transfer, and clustering tasks demonstrate the effectiveness of our proposed model compared to strong baselines.Code is available at https://github.com/lemon0830/promptCSE.
科研通智能强力驱动
Strongly Powered by AbleSci AI