arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2004.12297cs.IRcs.CL
收藏

Beyond 512 Tokens:基于Siamese Multi-depth Transformer的长格式文档匹配分层编码器

Beyond 512 Tokens: Siamese Multi-depth Transformer-based Hierarchical Encoder for Long-Form Document Matching

Google Research(谷歌研究院)

Liu Yang, Mingyang Zhang, Cheng Li, Michael Bendersky, Marc Najork

摘要:

许多自然语言处理和信息检索问题可以形式化为语义匹配任务。这一领域的现有工作主要集中在短文本之间的匹配(例如,问答),或者在短文本和长文本之间(例如,ad-hoc检索)。长文本之间的语义匹配在新闻推荐、相关文章推荐、文档聚类等方面有着重要的应用,但目前研究相对较少,需要更多的研究工作。近年来,基于自注意力的模型如Transformers和BERT在文本匹配任务中取得了最先进的性能。然而,由于自我注意力相对于输入文本长度的二次计算复杂性,这些模型仍然限于短文本,如几个句子或一个段落。在本文中,我们解决这个问题,提出了连体多深度转换器为基础的层次(SMITH)编码器的长形式的文档匹配。我们的模型包含几个创新,以适应较长的文本输入的自我注意力模型。为了更好地捕捉文档中的句子级语义关系,除了BERT使用的掩码词语言建模任务外,我们还使用一种新的掩码句子块语言建模任务对模型进行预训练。我们在几个基准数据集上进行长格式文档匹配的实验结果表明,我们提出的SMITH模型优于以前的最先进的模型,包括层次注意力,基于多深度注意力的层次递归神经网络,和BERT。与基于BERT的基线相比,我们的模型能够将最大输入文本长度从512增加到2048。我们将开源一个基于维基百科的基准数据集、代码和一个预训练的检查点,以加速未来对长格式文档匹配的研究。

英文摘要:

Many natural language processing and information retrieval problems can be formalized as the task of semantic matching. Existing work in this area has been largely focused on matching between short texts (e.g., question answering), or between a short and a long text (e.g., ad-hoc retrieval). Semantic matching between long-form documents, which has many important applications like news recommendation, related article recommendation and document clustering, is relatively less explored and needs more research effort. In recent years, self-attention based models like Transformers and BERT have achieved state-of-the-art performance in the task of text matching. These models, however, are still limited to short text like a few sentences or one paragraph due to the quadratic computational complexity of self-attention with respect to input text length. In this paper, we address the issue by proposing the Siamese Multi-depth Transformer-based Hierarchical (SMITH) Encoder for long-form document matching. Our model contains several innovations to adapt self-attention models for longer text input. In order to better capture sentence level semantic relations within a document, we pre-train the model with a novel masked sentence block language modeling task in addition to the masked word language modeling task used by BERT. Our experimental results on several benchmark datasets for long-form document matching show that our proposed SMITH model outperforms the previous state-of-the-art models including hierarchical attention, multi-depth attention-based hierarchical recurrent neural network, and BERT. Comparing to BERT based baselines, our model is able to increase maximum input text length from 512 to 2048. We will open source a Wikipedia based benchmark dataset, code and a pre-trained checkpoint to accelerate future research on long-form document matching.

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

↑