arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2308.07937cs.CLcs.SE
收藏

命名实体识别系统的自动化测试与改进

Automated Testing and Improvement of Named Entity Recognition Systems

The Chinese University of Hong Kong, Shenzhen (CUHK-Shenzhen)(香港中文大学(深圳))

Boxi Yu, Yiyan Hu, Qiuyang Mang, Wenhan Hu, Pinjia He

AI总结:

本文提出TIN方法,通过相似上下文和实体一致性自动检测并修复NER系统错误,在模型与商业API上验证了高精度和显著错误降低。

摘要:

近年来,由于深度神经网络的发展,命名实体识别(NER)系统取得了快速进展。这些系统被广泛应用于信息抽取、问答和情感分析等各种自然语言处理应用。然而,深度神经网络的复杂性和难处理性可能使NER系统在某些情况下不可靠,从而导致错误预测。例如,NER系统可能将女性名字错误识别为化学物质,或未能识别少数群体的名称,进而引起用户不满。为解决这一问题,我们提出了TIN,这是一种新颖且适用广泛的方法,用于自动测试和修复各种NER系统。自动化测试的关键思想是:相同命名实体在相似上下文下的NER预测应当一致。自动化修复的核心思想是:相似命名实体在相同上下文下应当具有相同的NER预测。我们使用TIN测试了两个SOTA NER模型和两个商业NER API,即Azure NER和AWS NER。我们人工验证了TIN报告的784个可疑问题,发现其中702个是错误问题,从而在遗漏、过度标注、类别错误和范围错误这四类NER错误上取得了85.0%–93.4%的高精度。在自动化修复方面,TIN在四个被测系统上实现了26.8%–50.6%的较高错误降低率,成功修复了所报告的1,877个NER错误中的1,056个。

英文摘要:

Named entity recognition (NER) systems have seen rapid progress in recent years due to the development of deep neural networks. These systems are widely used in various natural language processing applications, such as information extraction, question answering, and sentiment analysis. However, the complexity and intractability of deep neural networks can make NER systems unreliable in certain circumstances, resulting in incorrect predictions. For example, NER systems may misidentify female names as chemicals or fail to recognize the names of minority groups, leading to user dissatisfaction. To tackle this problem, we introduce TIN, a novel, widely applicable approach for automatically testing and repairing various NER systems. The key idea for automated testing is that the NER predictions of the same named entities under similar contexts should be identical. The core idea for automated repairing is that similar named entities should have the same NER prediction under the same context. We use TIN to test two SOTA NER models and two commercial NER APIs, i.e., Azure NER and AWS NER. We manually verify 784 of the suspicious issues reported by TIN and find that 702 are erroneous issues, leading to high precision (85.0%-93.4%) across four categories of NER errors: omission, over-labeling, incorrect category, and range error. For automated repairing, TIN achieves a high error reduction rate (26.8%-50.6%) over the four systems under test, which successfully repairs 1,056 out of the 1,877 reported NER errors.

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

↑