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

使用BERT编码和句子级语言模型进行句子排序

Using BERT Encoding and Sentence-Level Language Model for Sentence Ordering

University of Tehran(德黑兰大学);University of Rochester(罗切斯特大学);Emory University(埃默里大学)

Melika Golestani, Seyedeh Zahra Razavi, Zeinab Borhanifard, Farnaz Tahmasebian, Hesham Faili

摘要:

发现事件的逻辑顺序是自然语言理解的基石之一。学习事件顺序的一种方法是研究连贯文本中句子的顺序。句子排序可以应用于各种任务,例如基于检索的问答、文档摘要、讲故事、文本生成和对话系统。此外,我们可以通过学习如何对一组混洗的句子进行排序来学习建模文本连贯性。以前的研究依赖于RNN,LSTM和BiLSTM架构来学习文本语言模型。然而,由于缺乏注意力机制,这些网络表现不佳。我们提出了一个算法的句子排序的短篇小说语料库。我们提出的方法使用的语言模型的基础上通用Transformers(UT),捕捉句子的依赖关系,采用注意力机制。我们的方法在ROCStories数据集中的完美匹配率(PMR)得分方面改进了以前的最先进水平,ROCStories数据集是一个近10万短的人造故事的语料库。该模型包括三个部分:句子编码器,语言模型和句子排列与暴力搜索。第一个组件使用在ROCStories数据上微调的SBERT-WK预训练模型生成句子嵌入。然后,通用Transformer网络生成一个会话级语言模型。对于解码,网络生成候选句子作为当前句子的后续句子。我们使用余弦相似度作为评分函数来为候选嵌入和混洗集中其他句子的嵌入分配分数。然后,使用蛮力搜索来最大化连续句子对之间的相似性之和。

英文摘要:

Discovering the logical sequence of events is one of the cornerstones in Natural Language Understanding. One approach to learn the sequence of events is to study the order of sentences in a coherent text. Sentence ordering can be applied in various tasks such as retrieval-based Question Answering, document summarization, storytelling, text generation, and dialogue systems. Furthermore, we can learn to model text coherence by learning how to order a set of shuffled sentences. Previous research has relied on RNN, LSTM, and BiLSTM architecture for learning text language models. However, these networks have performed poorly due to the lack of attention mechanisms. We propose an algorithm for sentence ordering in a corpus of short stories. Our proposed method uses a language model based on Universal Transformers (UT) that captures sentences' dependencies by employing an attention mechanism. Our method improves the previous state-of-the-art in terms of Perfect Match Ratio (PMR) score in the ROCStories dataset, a corpus of nearly 100K short human-made stories. The proposed model includes three components: Sentence Encoder, Language Model, and Sentence Arrangement with Brute Force Search. The first component generates sentence embeddings using SBERT-WK pre-trained model fine-tuned on the ROCStories data. Then a Universal Transformer network generates a sentence-level language model. For decoding, the network generates a candidate sentence as the following sentence of the current sentence. We use cosine similarity as a scoring function to assign scores to the candidate embedding and the embeddings of other sentences in the shuffled set. Then a Brute Force Search is employed to maximize the sum of similarities between pairs of consecutive sentences.

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

↑