arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2008.03736cs.CL
收藏

快速准确的神经CRF成分分析

Fast and Accurate Neural CRF Constituency Parsing

School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院)

Yu Zhang, Houquan Zhou, Zhenghua Li

摘要:

概率分布估计是自然语言处理领域的核心问题之一。然而,在深度学习(DL)和前DL时代,与线性链CRF在序列标记任务中的广泛应用不同,很少有工作将树结构CRF应用于选区解析,主要是由于内部-外部算法的复杂性和效率低下。这项工作提出了一个快速,准确的神经CRF选区解析器。其核心思想是通过直接在GPU上进行大张量运算来批量化损失计算的内部算法,同时通过有效的反向传播来避免梯度计算的外部算法。我们还提出了一个简单的两阶段括号,然后标记解析方法,以进一步提高效率。为了提高分析性能,灵感来自依存句法分析的最新进展,我们引入了一个新的评分架构的基础上边界表示和biaffine注意,和一个有益的辍学策略。在PTB、CTB5.1和CTB 7上的实验表明,我们的两阶段CRF句法分析器在w/o和w/ BERT两种设置下都达到了最新的性能水平,每秒可以分析超过1,000个句子。我们在https://github.com/yzhangcs/crfpar上发布代码。

英文摘要:

Estimating probability distribution is one of the core issues in the NLP field. However, in both deep learning (DL) and pre-DL eras, unlike the vast applications of linear-chain CRF in sequence labeling tasks, very few works have applied tree-structure CRF to constituency parsing, mainly due to the complexity and inefficiency of the inside-outside algorithm. This work presents a fast and accurate neural CRF constituency parser. The key idea is to batchify the inside algorithm for loss computation by direct large tensor operations on GPU, and meanwhile avoid the outside algorithm for gradient computation via efficient back-propagation. We also propose a simple two-stage bracketing-then-labeling parsing approach to improve efficiency further. To improve the parsing performance, inspired by recent progress in dependency parsing, we introduce a new scoring architecture based on boundary representation and biaffine attention, and a beneficial dropout strategy. Experiments on PTB, CTB5.1, and CTB7 show that our two-stage CRF parser achieves new state-of-the-art performance on both settings of w/o and w/ BERT, and can parse over 1,000 sentences per second. We release our code at https://github.com/yzhangcs/crfpar.

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

↑