arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 2108.09190cs.IR
收藏

可解释长格式文档匹配的有监督对比学习

Supervised Contrastive Learning for Interpretable Long-Form Document Matching

Akshita Jha, Vineeth Rakesh, Jaideep Chandrashekar, Adithya Samavedhi, Chandan K. Reddy

摘要:

深度学习技术的最新进展已经改变了语义文本匹配领域。然而,大多数最先进的模型被设计用于短文档,如推文,用户评论,评论等,这些模型在应用于长格式文档(如科学论文,法律文档和专利)时具有根本的局限性。在处理如此长的文档时,存在三个主要挑战:(i)在整个文档中同一个词存在不同的上下文,(ii)在两个文档之间存在上下文相似的文本的小部分,但在其余部分中存在不同的文本(这违背了对“相似性”的基本理解),以及(iii)不能捕获文档内容的异质性的单个全局相似性度量的粗糙性质。在本文中,我们描述了CoLDE:对比长文档编码器-一个基于transformer的框架,它解决了这些挑战,并允许对长文档进行可解释的比较。CoLDE使用独特的位置嵌入和多头分块注意层,结合有监督的对比学习框架,以捕获三个不同级别的相似性:(i)一对文档之间的高级别相似性得分,(ii)文档内和跨文档的不同部分之间的相似性得分,以及(iii)同一文档中不同块之间和跨其他文档的相似性得分。这些细粒度的相似性分数有助于更好的可解释性。我们在三个长文档数据集上评估CoLDE,即ACL Anthology出版物,维基百科文章和USPTO专利。除了在文档匹配任务上优于最先进的方法外,CoLDE还对文档长度和文本扰动的变化具有鲁棒性,并提供可解释的结果。

英文摘要:

Recent advancements in deep learning techniques have transformed the area of semantic text matching. However, most state-of-the-art models are designed to operate with short documents such as tweets, user reviews, comments, etc. These models have fundamental limitations when applied to long-form documents such as scientific papers, legal documents, and patents. When handling such long documents, there are three primary challenges: (i) the presence of different contexts for the same word throughout the document, (ii) small sections of contextually similar text between two documents, but dissimilar text in the remaining parts (this defies the basic understanding of "similarity"), and (iii) the coarse nature of a single global similarity measure which fails to capture the heterogeneity of the document content. In this paper, we describe CoLDE: Contrastive Long Document Encoder - a transformer-based framework that addresses these challenges and allows for interpretable comparisons of long documents. CoLDE uses unique positional embeddings and a multi-headed chunkwise attention layer in conjunction with a supervised contrastive learning framework to capture similarity at three different levels: (i) high-level similarity scores between a pair of documents, (ii) similarity scores between different sections within and across documents, and (iii) similarity scores between different chunks in the same document and across other documents. These fine-grained similarity scores aid in better interpretability. We evaluate CoLDE on three long document datasets namely, ACL Anthology publications, Wikipedia articles, and USPTO patents. Besides outperforming the state-of-the-art methods on the document matching task, CoLDE is also robust to changes in document length and text perturbations and provides interpretable results.

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

↑