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

$k$ NN-NER:基于最近邻搜索的命名实体识别

$k$NN-NER: Named Entity Recognition with Nearest Neighbor Search

Peking University(北京大学);Nanyang Technological University(南洋理工大学);Zhejiang University(浙江大学);Amazon Alexa AI(亚马逊Alexa人工智能)

Shuhe Wang, Xiaoya Li, Yuxian Meng, Tianwei Zhang, Rongbin Ouyang, Jiwei Li, Guoyin Wang

摘要:

受NLP~ \citep{khandelwal2019generalization,khandelwal2020nearest,meng2021gnn}中检索增强方法的最新进展的启发,本文提出了一个$k$最近邻NER($k$ NN-NER)框架,该框架通过分配从训练集中检索到的$k$最近邻来增强实体标签的分布。这种策略使模型更有能力处理长尾情况,以及更好的少样本学习能力。$k$ NN-NER在训练阶段不需要额外的操作,并且通过将$k$最近邻搜索插入到普通NER模型中,$k$ NN-NER始终优于其普通模型:我们在中国微博数据集上实现了最先进的F1得分72.03(+1.25),并在各种广泛使用的NER基准测试中改进了结果。此外,我们表明,$k$ NN-NER可以达到可比的结果与香草NER模型的训练数据量减少40\%。代码可在\url{https://github.com/ShannonAI/KNN-NER}获得。

英文摘要:

Inspired by recent advances in retrieval augmented methods in NLP~\citep{khandelwal2019generalization,khandelwal2020nearest,meng2021gnn}, in this paper, we introduce a $k$ nearest neighbor NER ($k$NN-NER) framework, which augments the distribution of entity labels by assigning $k$ nearest neighbors retrieved from the training set. This strategy makes the model more capable of handling long-tail cases, along with better few-shot learning abilities. $k$NN-NER requires no additional operation during the training phase, and by interpolating $k$ nearest neighbors search into the vanilla NER model, $k$NN-NER consistently outperforms its vanilla counterparts: we achieve a new state-of-the-art F1-score of 72.03 (+1.25) on the Chinese Weibo dataset and improved results on a variety of widely used NER benchmarks. Additionally, we show that $k$NN-NER can achieve comparable results to the vanilla NER model with 40\% less amount of training data. Code available at \url{https://github.com/ShannonAI/KNN-NER}.

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

↑