arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.09892cs.CLcs.AI
收藏

面向无监督句子表示的聚类感知负采样

Clustering-Aware Negative Sampling for Unsupervised Sentence Representation

Sun Yat-sen University(中山大学);Vipshop (China) Co., Ltd.(唯品会(中国)有限公司)

Jinghao Deng, Fanqi Wan, Tao Yang, Xiaojun Quan, Rui Wang

AI总结:

针对对比学习中负样本选择不当导致硬负样本稀缺和伪负样本问题,提出ClusterNS方法,利用改进的K-means聚类算法在统一框架内补充硬负样本并识别伪负样本,在STS任务上优于基线。

摘要:

对比学习在句子表示学习中已被广泛研究。然而,早期工作主要关注正样本的构建,而批内样本通常被简单地视为负样本。这种方法忽视了选择合适负样本的重要性,可能导致硬负样本稀缺并引入伪负样本。为解决这些问题,我们提出ClusterNS(聚类感知负采样),一种将聚类信息融入对比学习以用于无监督句子表示学习的新方法。我们应用改进的K-means聚类算法,在训练期间补充硬负样本并识别批内伪负样本,旨在以统一框架解决这两个问题。在语义文本相似性(STS)任务上的实验表明,我们提出的ClusterNS在无监督句子表示学习中表现优于基线方法。我们的代码已公开发布。

英文摘要:

Contrastive learning has been widely studied in sentence representation learning. However, earlier works mainly focus on the construction of positive examples, while in-batch samples are often simply treated as negative examples. This approach overlooks the importance of selecting appropriate negative examples, potentially leading to a scarcity of hard negatives and the inclusion of false negatives. To address these issues, we propose ClusterNS (Clustering-aware Negative Sampling), a novel method that incorporates cluster information into contrastive learning for unsupervised sentence representation learning. We apply a modified K-means clustering algorithm to supply hard negatives and recognize in-batch false negatives during training, aiming to solve the two issues in one unified framework. Experiments on semantic textual similarity (STS) tasks demonstrate that our proposed ClusterNS compares favorably with baselines in unsupervised sentence representation learning. Our code has been made publicly available.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑