Skip to main content
QUICK REVIEW

[Paper 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 Science3 citations
TL;DR

LinkNER proposes a hybrid framework that integrates a fine-tuned local NER model with a black-box LLM (GPT-3.5/Llama 2) using an uncertainty-based linking strategy (RDC) to improve robustness on out-of-domain and out-of-vocabulary entities. By leveraging uncertainty estimation (e.g., Monte-Carlo Dropout, Evidential learning), the system routes ambiguous predictions to the LLM, achieving state-of-the-art F1 scores—up to 21.30% higher than SOTA on noisy social media data (WNUT'17).

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.

Motivation & Objective

  • Address the poor generalization of fine-tuned NER models on out-of-vocabulary (OOV) and out-of-domain (OOD) entities due to limited training data and knowledge gaps.
  • Overcome the lack of task-specific specialization in large language models (LLMs), which underperform on NER despite broad knowledge.
  • Develop a lightweight, efficient framework that synergistically combines the strengths of local NER models (precision on seen entities) and LLMs (knowledge for unseen entities) without fine-tuning the LLM.
  • Improve robustness in real-world web applications where text is noisy, contains typos, or includes rare entities.
  • Provide a practical, deployable solution for NER in open-domain environments by minimizing reliance on LLM reasoning resources while maximizing performance.

Proposed method

  • Fine-tune a local NER model (SpanNER) on standard benchmarks using four uncertainty estimation techniques: Confidence, Entropy, Monte-Carlo Dropout (MCD), and Evidential-based learning.
  • Implement the RDC (Routing based on Uncertainty) strategy to route predictions with high uncertainty to the LLM for re-evaluation, while low-uncertainty predictions are retained from the local model.
  • Use in-context learning with few-shot examples and entity type descriptions to guide the LLM’s decision-making on uncertain entities.
  • Apply uncertainty thresholds to dynamically control when to offload predictions to the LLM, balancing performance and inference cost.
  • Integrate the LLM as a plugin via prompt engineering, avoiding fine-tuning and preserving model black-box integrity.
  • Evaluate the framework across standard NER datasets (CoNLL’03, Onto5.0, JNLPBA) and robustness benchmarks (WNUT’17, typos, OOV variants) to assess generalization.
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.

Experimental results

Research questions

  • RQ1Can uncertainty-based routing between a local NER model and an LLM improve performance on unseen and noisy entities compared to standalone models?
  • RQ2How do different uncertainty estimation methods (Confidence, Entropy, MCD, Evidential) affect the routing efficiency and final NER accuracy?
  • RQ3To what extent does in-context learning with few-shot examples and entity type descriptions enhance the LLM’s classification capability in the hybrid system?
  • RQ4Does the performance gain from the hybrid approach vary significantly across data distributions, particularly in noisy or out-of-domain settings?
  • RQ5Can the framework maintain high performance while minimizing the number of LLM inference calls, thus reducing cost and latency?

Key findings

  • LinkNER achieves a 21.30% absolute F1 score improvement over the SOTA on the WNUT’17 social media dataset, which contains noisy and rare entities.
  • On the CoNLL’03 dataset with typos and OOV variants, LinkNER improves F1 by 4.30% and 3.04%, respectively, demonstrating strong robustness.
  • The MCD uncertainty estimation method yields the best performance gain (3.04%↑ on OOV), outperforming E-NER and Confidence-based methods despite higher local inference cost.
  • Including entity type descriptions (LD) in prompts improves GPT-3.5’s classification accuracy, especially when combined with few-shot examples, but harms performance on low-resource, noisy datasets like WNUT’17.
  • LinkNER outperforms GPT-3.5 alone by 38.56% on ID data and 30.51% on OOV variants of CoNLL’03, proving the value of local model guidance.
  • The ablation study confirms that both few-shot examples and entity descriptions are beneficial for GPT-3.5 in clean settings, but their absence or misalignment in noisy data reduces effectiveness.
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.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.