arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1911.02733cs.CLcs.IR
收藏

基于多孔网格的中文NER Transformer编码器

Porous Lattice-based Transformer Encoder for Chinese NER

Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);School of Engineering, Westlake University(西湖大学工学院);Xiaomi AI Lab, Xiaomi Inc.(小米人工智能实验室,小米公司)

Xue Mengge, Yu Bowen, Liu Tingwen, Zhang Yue, Meng Erli, Wang Bin

摘要:

将格模型应用于汉字级命名实体识别是一种有效的利用显式词语信息的方法。最近的工作扩展了循环和卷积神经网络,以模拟格输入。然而,由于DAG结构或格输入的可变大小的潜在词集,这些模型阻碍了批量计算的方便使用,导致严重的低效。本文提出了一种基于多孔格的中文命名实体识别Transformer编码器。由于Transformer中的掩码机制,该编码器能够更好地利用GPU的并行性和批处理计算。我们首先研究了格感知自我注意与相对位置表征的耦合,以探索格结构中的有效单词信息。此外,为了加强相邻标记之间的局部依赖性,我们提出了一种新的多孔结构,在自注意计算过程中,每两个非相邻标记通过一个共享的枢轴节点连接。在四个数据集上的实验结果表明,我们的模型比最先进的模型快9.47倍,而与其性能大致相当。本文的源代码可以从https://github.com/xxx/xxx获得。

英文摘要:

Incorporating lattices into character-level Chinese named entity recognition is an effective method to exploit explicit word information. Recent works extend recurrent and convolutional neural networks to model lattice inputs. However, due to the DAG structure or the variable-sized potential word set for lattice inputs, these models prevent the convenient use of batched computation, resulting in serious inefficient. In this paper, we propose a porous lattice-based transformer encoder for Chinese named entity recognition, which is capable to better exploit the GPU parallelism and batch the computation owing to the mask mechanism in transformer. We first investigate the lattice-aware self-attention coupled with relative position representations to explore effective word information in the lattice structure. Besides, to strengthen the local dependencies among neighboring tokens, we propose a novel porous structure during self-attentional computation processing, in which every two non-neighboring tokens are connected through a shared pivot node. Experimental results on four datasets show that our model performs up to 9.47 times faster than state-of-the-art models, while is roughly on a par with its performance. The source code of this paper can be obtained from https://github.com/xxx/xxx.

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

↑