arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2402.18281cs.CL
收藏

为了更好地理解对比句子表示学习:一种统一的梯度范式

Towards Better Understanding of Contrastive Sentence Representation Learning: A Unified Paradigm for Gradient

Beihang University(北京航空航天大学);Zhongguancun Laboratory(中关村实验室);Shen Yuan Honors College, Beihang University(北京航空航天大学沈元荣誉学院)

Mingxin Li, Richong Zhang, Zhijie Nie

AI总结:

本文从梯度视角提出统一范式,揭示对比损失在语义文本相似度任务中表现优异的关键组件,并通过调整这些组件使非对比自监督学习在STS任务中取得出色性能。

摘要:

句子表示学习(SRL)是自然语言处理(NLP)中的一项关键任务,其中对比自监督学习(SSL)目前是主流方法。然而,其显著有效性背后的原因仍不清楚。具体而言,许多研究从理论角度调查了对比与非对比SSL之间的相似性。这种相似性可以在分类任务中得到验证,其中两种方法实现了可比的性能。但在排序任务(即SRL中的语义文本相似度(STS))中,对比SSL显著优于非对比SSL。因此,出现了两个问题:首先,是什么共性使各种对比损失在STS中实现了优越的性能?其次,我们如何使非对比SSL在STS中也有效?为了解决这些问题,我们从梯度视角出发,发现四种有效的对比损失可以整合到一个统一范式中,该范式依赖于三个组件:梯度耗散、权重和比率。然后,我们深入分析了这些组件在优化中的作用,并通过实验证明了它们对模型性能的重要性。最后,通过调整这些组件,我们使非对比SSL在STS中实现了出色的性能。

英文摘要:

Sentence Representation Learning (SRL) is a crucial task in Natural Language Processing (NLP), where contrastive Self-Supervised Learning (SSL) is currently a mainstream approach. However, the reasons behind its remarkable effectiveness remain unclear. Specifically, many studies have investigated the similarities between contrastive and non-contrastive SSL from a theoretical perspective. Such similarities can be verified in classification tasks, where the two approaches achieve comparable performance. But in ranking tasks (i.e., Semantic Textual Similarity (STS) in SRL), contrastive SSL significantly outperforms non-contrastive SSL. Therefore, two questions arise: First, *what commonalities enable various contrastive losses to achieve superior performance in STS?* Second, *how can we make non-contrastive SSL also effective in STS?* To address these questions, we start from the perspective of gradients and discover that four effective contrastive losses can be integrated into a unified paradigm, which depends on three components: the **Gradient Dissipation**, the **Weight**, and the **Ratio**. Then, we conduct an in-depth analysis of the roles these components play in optimization and experimentally demonstrate their significance for model performance. Finally, by adjusting these components, we enable non-contrastive SSL to achieve outstanding performance in STS.

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

↑