Multi-task Transformer with Relation-attention and Type-attention for Named Entity Recognition
Ying Mo (Beihang University); Hongyin Tang (Meituan); Jiahao Liu (Meituan); Qifan Wang (Meta AI); Zenglin Xu (Harbin Institute of Technology, Shenzhen); Jingang Wang (Meituan); Wei Wu (Meituan); Zhoujun Li (Beihang University)
-
SPS
IEEE Members: $11.00
Non-members: $15.00
Named entity recognition (NER) is an important research problem in natural language processing. There are three types of NER tasks, including flat, nested and discontinuous entity recognition. Most previous sequential labeling models are task-specific, while recent years have witnessed the rising of generative models due to the advantage of unifying all NER tasks into the seq2seq model framework. Although achieving promising performance, our pilot studies demonstrate that existing generative models are ineffective at detecting entity boundaries and estimating entity types. This paper proposes a multi-task Transformer, which incorporates an entity boundary detection task into the named entity recognition task. More concretely, we achieve entity boundary detection by classifying the relations between tokens within the sentence. To improve the accuracy of entity-type mapping during decoding, we adopt an external knowledge base to calculate the prior entity-type distributions and then incorporate the information into the model via the self and cross-attention mechanisms. We perform experiments on an extensive set of NER benchmarks, including two flat, three nested, and three discontinuous NER datasets. Experimental results show that our approach considerably improves the generative NER model's performance.