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

多头多层关注深度语言表示以进行语法错误检测

Multi-Head Multi-Layer Attention to Deep Language Representations for Grammatical Error Detection

Tokyo Metropolitan University(东京都立大学)

Masahiro Kaneko, Mamoru Komachi

摘要:

众所周知,用大规模数据预训练的深度神经网络模型大大提高了各种任务的准确性,特别是在存在资源约束的情况下。然而,解决给定任务所需的信息可能会有所不同,简单地使用最后一层的输出并不一定足够。此外,据我们所知,利用大型语言表示模型来检测语法错误尚未被研究。在这项工作中,我们研究了不仅利用来自最终层的信息,而且还利用来自预训练语言表示模型的中间层的信息来检测语法错误的效果。我们提出了一个多头多层注意力模型,确定适当的层在双向编码器表示从Transformers(BERT)。所提出的方法在三个数据集上获得了语法错误检测任务的最佳分数,在FCE上超过了当前最先进的方法6.0分,在CoNLL 14上超过了8.2分,在JFLEG上超过了12.2分。我们还证明,通过使用多头多层注意力,我们的模型可以利用更广泛的信息,为每个令牌在一个句子比模型,只使用最后一层的信息。

英文摘要:

It is known that a deep neural network model pre-trained with large-scale data greatly improves the accuracy of various tasks, especially when there are resource constraints. However, the information needed to solve a given task can vary, and simply using the output of the final layer is not necessarily sufficient. Moreover, to our knowledge, exploiting large language representation models to detect grammatical errors has not yet been studied. In this work, we investigate the effect of utilizing information not only from the final layer but also from intermediate layers of a pre-trained language representation model to detect grammatical errors. We propose a multi-head multi-layer attention model that determines the appropriate layers in Bidirectional Encoder Representation from Transformers (BERT). The proposed method achieved the best scores on three datasets for grammatical error detection tasks, outperforming the current state-of-the-art method by 6.0 points on FCE, 8.2 points on CoNLL14, and 12.2 points on JFLEG in terms of F_0.5. We also demonstrate that by using multi-head multi-layer attention, our model can exploit a broader range of information for each token in a sentence than a model that uses only the final layer's information.

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

↑