Skip to main content
QUICK REVIEW

[论文解读] LinkNER: Linking Local Named Entity Recognition Models to Large Language Models using Uncertainty

Zhen Zhang, Yuhua Zhao|arXiv (Cornell University)|Feb 16, 2024
Topic ModelingComputer Science被引用 3
一句话总结

LinkNER 提出了一种混合框架,通过基于不确定性的链接策略(RDC),将微调后的局部 NER 模型与黑箱大语言模型(GPT-3.5/Llama 2)相结合,以提升在分布外(OOD)和低频词(OOV)实体上的鲁棒性。通过利用不确定性估计(如蒙特卡洛丢弃、证据学习),系统将模糊预测路由至 LLM,从而在噪声社交媒体数据(WNUT'17)上实现最先进(SOTA)的 F1 分数——相比 SOTA 最高提升 21.30%。

ABSTRACT

Named Entity Recognition (NER) serves as a fundamental task in natural language understanding, bearing direct implications for web content analysis, search engines, and information retrieval systems. Fine-tuned NER models exhibit satisfactory performance on standard NER benchmarks. However, due to limited fine-tuning data and lack of knowledge, it performs poorly on unseen entity recognition. As a result, the usability and reliability of NER models in web-related applications are compromised. Instead, Large Language Models (LLMs) like GPT-4 possess extensive external knowledge, but research indicates that they lack specialty for NER tasks. Furthermore, non-public and large-scale weights make tuning LLMs difficult. To address these challenges, we propose a framework that combines small fine-tuned models with LLMs (LinkNER) and an uncertainty-based linking strategy called RDC that enables fine-tuned models to complement black-box LLMs, achieving better performance. We experiment with both standard NER test sets and noisy social media datasets. LinkNER enhances NER task performance, notably surpassing SOTA models in robustness tests. We also quantitatively analyze the influence of key components like uncertainty estimation methods, LLMs, and in-context learning on diverse NER tasks, offering specific web-related recommendations. Code is available at https://github.com/zhzhengit/LinkNER.

研究动机与目标

  • 解决微调后的 NER 模型在低频词(OOV)和分布外(OOD)实体上泛化能力差的问题,原因包括训练数据有限和知识缺口。
  • 克服大语言模型(LLMs)缺乏任务特定专业化的问题,尽管其具备广泛知识,但在 NER 任务上表现不佳。
  • 开发一种轻量、高效的框架,协同利用本地 NER 模型(对已见实体具有高精度)和 LLM(对未见实体具备知识)的优势,且无需微调 LLM。
  • 提升在真实网络应用中的鲁棒性,这些场景中文本常含噪声、拼写错误或罕见实体。
  • 通过最小化对 LLM 推理资源的依赖,同时最大化性能,提供一种实用、可部署的开放域 NER 解决方案。

提出的方法

  • 在标准基准数据集上微调本地 NER 模型(SpanNER),采用四种不确定性估计技术:置信度、熵、蒙特卡洛丢弃(MCD)和基于证据的学习。
  • 实施基于不确定性的路由策略(RDC),将高不确定性预测路由至 LLM 进行重新评估,而低不确定性预测则保留在本地模型中。
  • 通过少样本示例和实体类型描述,在上下文中学习,引导 LLM 对不确定实体的决策。
  • 应用不确定性阈值,动态控制何时将预测卸载至 LLM,以在性能与推理成本之间取得平衡。
  • 通过提示工程将 LLM 作为插件集成,避免微调,同时保持模型的黑箱完整性。
  • 在标准 NER 数据集(CoNLL’03、Onto5.0、JNLPBA)和鲁棒性基准(WNUT’17、拼写错误、OOV 变体)上评估该框架,以评估其泛化能力。
Figure 1. Illustration of LinkNER processing the NER task. If the local NER model is uncertain about its output (see the second case), the linked LLM undergoes further classification to determine the final result.
Figure 1. Illustration of LinkNER processing the NER task. If the local NER model is uncertain about its output (see the second case), the linked LLM undergoes further classification to determine the final result.

实验结果

研究问题

  • RQ1与独立模型相比,基于不确定性的路由机制在本地 NER 模型与 LLM 之间是否能提升对未见和噪声实体的性能?
  • RQ2不同的不确定性估计方法(置信度、熵、MCD、基于证据)如何影响路由效率和最终的 NER 准确率?
  • RQ3在混合系统中,通过少样本示例和实体类型描述进行上下文学习,在多大程度上提升了 LLM 的分类能力?
  • RQ4该混合方法的性能增益是否在不同数据分布中存在显著差异,特别是在噪声或分布外设置下?
  • RQ5该框架能否在显著减少 LLM 推理调用次数的同时保持高性能,从而降低计算成本和延迟?

主要发现

  • 在包含噪声和罕见实体的 WNUT’17 社交媒体数据集上,LinkNER 相较于 SOTA 的 F1 分数绝对提升高达 21.30%。
  • 在 CoNLL’03 数据集上,针对拼写错误和 OOV 变体,LinkNER 分别将 F1 提升 4.30% 和 3.04%,展现出强大的鲁棒性。
  • 蒙特卡洛丢弃(MCD)不确定性估计方法表现最佳(OOV 上提升 3.04%),尽管本地推理成本更高,但仍优于 E-NER 和基于置信度的方法。
  • 在提示中加入实体类型描述(LD)可提升 GPT-3.5 的分类准确率,尤其在结合少样本示例时效果更明显;但在低资源、噪声较大的数据集(如 WNUT’17)上反而会损害性能。
  • 在 ID 数据上,LinkNER 相较于 GPT-3.5 单独使用,性能提升 38.56%;在 CoNLL’03 的 OOV 变体上提升 30.51%,证明了本地模型引导的价值。
  • 消融实验证实,在干净环境下,少样本示例和实体描述对 GPT-3.5 均有帮助;但在噪声数据中若二者缺失或不匹配,则会显著降低其有效性。
Figure 2. Link’s overall framework. A fine-tuned NER model is used for recognizing entities and detecting uncertain entities, and the LLM reclassifies the detected uncertain entities.
Figure 2. Link’s overall framework. A fine-tuned NER model is used for recognizing entities and detecting uncertain entities, and the LLM reclassifies the detected uncertain entities.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。