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

R2D2:使用Transformers的关系文本解码

R2D2: Relational Text Decoding with Transformers

University of Toronto(多伦多大学);Vector Institute(向量研究所);Google Research(谷歌研究院)

Aryan Arbabi, Mingqiu Wang, Laurent El Shafey, Nan Du, Izhak Shafran

摘要:

我们提出了一个新的框架,用于建模图形结构和与其节点和边相关联的自然语言文本之间的交互。现有的方法通常分为两类。On Group通过将它们转换为线性序列来忽略关系结构,然后利用非常成功的Seq 2Seq模型。另一方面,忽略了文本的连续性,将它们表示为固定维向量,并应用图神经网络。这两种简化都会导致信息丢失。我们提出的方法利用了文本的图形结构和顺序性质。我们的模型的输入是一组与图的节点和边相关联的文本片段,然后用Transformer编码器-解码器模型进行处理,该模型配备了自注意力机制,该机制知道包含片段的节点之间的图形关系。这也允许我们使用已经在大量文本上训练过的类似BERT的模型。虽然所提出的模型具有广泛的应用,我们展示了它的能力,数据到文本生成任务。我们的方法在四个任务中与最先进的方法相比毫不逊色,而无需定制模型架构。我们还提供了一个新的实际应用的早期演示-从临床访问期间提到的医疗实体生成临床笔记。

英文摘要:

We propose a novel framework for modeling the interaction between graphical structures and the natural language text associated with their nodes and edges. Existing approaches typically fall into two categories. On group ignores the relational structure by converting them into linear sequences and then utilize the highly successful Seq2Seq models. The other side ignores the sequential nature of the text by representing them as fixed-dimensional vectors and apply graph neural networks. Both simplifications lead to information loss. Our proposed method utilizes both the graphical structure as well as the sequential nature of the texts. The input to our model is a set of text segments associated with the nodes and edges of the graph, which are then processed with a transformer encoder-decoder model, equipped with a self-attention mechanism that is aware of the graphical relations between the nodes containing the segments. This also allows us to use BERT-like models that are already trained on large amounts of text. While the proposed model has wide applications, we demonstrate its capabilities on data-to-text generation tasks. Our approach compares favorably against state-of-the-art methods in four tasks without tailoring the model architecture. We also provide an early demonstration in a novel practical application -- generating clinical notes from the medical entities mentioned during clinical visits.

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

↑