FNCSE: contrastive learning for unsupervised sentence embedding with false negative samples

Guiqiang Wu
{"title":"FNCSE: contrastive learning for unsupervised sentence embedding with false negative samples","authors":"Guiqiang Wu","doi":"10.1117/12.2685528","DOIUrl":null,"url":null,"abstract":"In recent years, contrastive learning has gradually been applied to the field of natural language processing from the explosion of the computer vision community. Generally speaking, for a given sentence, the original sentence is used as the anchor point, the current model uses a special data enhancement method to generate positive samples, and the remaining sentences in the batch are used as negative samples for the sentence. Although this approach effectively improves sentence embedding, we believe that in the process of constructing negative samples, negative samples will also have information similar to the current anchor point, and should not be mistakenly attributed to negative samples, which will confuse the learning ability of the model, and The increase in the number of negative pairs during training is beneficial to the training of the model. In this paper, we propose methods to identify false negatives in the text domain, and two strategies to mitigate the impact of false negatives: masking false negatives and adding to the set of positives. In addition, we propose an optimized version of momentum contrast to expand the number of negative pairs. Our method is based on the improvement made on SimCSE called FNCSE. We evaluate FNCSE on multiple benchmark datasets in the semantic similarity (STS) task. The experimental results show that in the Bert base, FNCSE averages 1.29% Spearman Correlation is better than SimCSE.","PeriodicalId":305812,"journal":{"name":"International Conference on Electronic Information Technology","volume":"18 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-08-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Conference on Electronic Information Technology","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1117/12.2685528","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In recent years, contrastive learning has gradually been applied to the field of natural language processing from the explosion of the computer vision community. Generally speaking, for a given sentence, the original sentence is used as the anchor point, the current model uses a special data enhancement method to generate positive samples, and the remaining sentences in the batch are used as negative samples for the sentence. Although this approach effectively improves sentence embedding, we believe that in the process of constructing negative samples, negative samples will also have information similar to the current anchor point, and should not be mistakenly attributed to negative samples, which will confuse the learning ability of the model, and The increase in the number of negative pairs during training is beneficial to the training of the model. In this paper, we propose methods to identify false negatives in the text domain, and two strategies to mitigate the impact of false negatives: masking false negatives and adding to the set of positives. In addition, we propose an optimized version of momentum contrast to expand the number of negative pairs. Our method is based on the improvement made on SimCSE called FNCSE. We evaluate FNCSE on multiple benchmark datasets in the semantic similarity (STS) task. The experimental results show that in the Bert base, FNCSE averages 1.29% Spearman Correlation is better than SimCSE.
FNCSE:假阴性样本无监督句子嵌入的对比学习
近年来,对比学习从计算机视觉界的爆炸式发展,逐渐被应用到自然语言处理领域。一般来说,对于给定的句子,使用原始句子作为锚点,当前模型使用特殊的数据增强方法生成正样本,使用批处理中剩余的句子作为该句子的负样本。虽然这种方法有效地提高了句子嵌入,但我们认为,在构建负样本的过程中,负样本也会有与当前锚点相似的信息,不应该被错误地归为负样本,这样会混淆模型的学习能力,而在训练过程中增加负对的数量有利于模型的训练。在本文中,我们提出了在文本域中识别假阴性的方法,以及两种减轻假阴性影响的策略:掩盖假阴性和增加阳性集。此外,我们提出了一个优化版本的动量对比,以扩大负对的数量。我们的方法是基于SimCSE的改进,称为FNCSE。在语义相似度(STS)任务中,我们在多个基准数据集上评估了FNCSE。实验结果表明,在Bert基础上,FNCSE平均1.29%的Spearman相关性优于SimCSE。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术官方微信