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

基于最优传输的对比句子学习实现可解释语义文本相似性

Toward Interpretable Semantic Textual Similarity via Optimal Transport-based Contrastive Sentence Learning

Scatterlab(Scatterlab公司);POSTECH(浦项科技大学);University of Illinois at Urbana-Champaign (UIUC)(伊利诺伊大学厄巴纳-香槟分校(UIUC))

Seonghyeon Lee, Dongha Lee, Seongbo Jang, Hwanjo Yu

摘要:

最近,微调预训练的语言模型来捕获句子嵌入之间的相似性已经显示了语义文本相似性(STS)任务的最新性能。然而,缺乏一个解释方法的句子相似性,使得它很难解释模型输出。在这项工作中,我们明确地描述句子距离的加权和的上下文中的令牌距离的基础上的运输问题,然后提出了最佳的基于运输的距离测量,命名为RCMD;它识别和利用语义对齐的令牌对。最后,我们提出了一个对比学习框架CLRCMD,它优化了句子对的RCMD,从而提高了句子相似度和句子解释的质量。大量的实验表明,我们的学习框架在STS和可解释的STS基准测试中的表现优于其他基线,这表明它计算了有效的句子相似性,并提供了与人类判断一致的解释。代码和检查点可在https://github.com/sh0416/clrcmd上公开获取。

英文摘要:

Recently, finetuning a pretrained language model to capture the similarity between sentence embeddings has shown the state-of-the-art performance on the semantic textual similarity (STS) task. However, the absence of an interpretation method for the sentence similarity makes it difficult to explain the model output. In this work, we explicitly describe the sentence distance as the weighted sum of contextualized token distances on the basis of a transportation problem, and then present the optimal transport-based distance measure, named RCMD; it identifies and leverages semantically-aligned token pairs. In the end, we propose CLRCMD, a contrastive learning framework that optimizes RCMD of sentence pairs, which enhances the quality of sentence similarity and their interpretation. Extensive experiments demonstrate that our learning framework outperforms other baselines on both STS and interpretable-STS benchmarks, indicating that it computes effective sentence similarity and also provides interpretation consistent with human judgement. The code and checkpoint are publicly available at https://github.com/sh0416/clrcmd.

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

↑