EntGPT: Linking Generative Large Language Models with Knowledge Bases

Yifan Ding, Amrit Poudel, Qingkai Zeng, Tim Weninger, Balaji Veeramani, Sanmitra Bhattacharya · OpenReview

TL;DR

This paper introduces EntGPT, a novel framework that enhances Large Language Models (LLMs) for Entity Disambiguation (ED) by grounding them with knowledge bases. EntGPT uses advanced prompting techniques and instruction tuning to significantly improve LLMs' ability to correctly identify real-world entities mentioned in text, achieving competitive results without extensive fine-tuning and even boosting performance on downstream question-answering tasks.

What Problem Does This Paper Address?

Large Language Models (LLMs) are incredibly powerful at generating text and reasoning, but they often struggle with factual accuracy and knowledge grounding. This means they can "hallucinate" or produce incorrect information because they aren't reliably connected to real-world knowledge. The Entity Disambiguation (ED) task, which involves linking mentions of entities in text (like "Washington") to specific entries in a knowledge base (like "Washington, D.C." or "George Washington"), is crucial for making LLMs more reliable. Traditional ED methods can be complex and hard to adapt to new domains. While LLMs show promise, simply prompting them often leads to suboptimal performance. This paper aims to bridge this gap by developing methods to effectively leverage LLMs for ED, improving their factual grounding and performance on related tasks.

Methods

The authors propose two main approaches under the EntGPT umbrella:

  • EntGPT-Prompting (EntGPT-P): This is a three-step "hard-prompting" method designed for zero-shot or few-shot scenarios.
  • Candidate Generation: It first generates a set of potential entity candidates for a given mention using a combination of prior knowledge (like hyperlink statistics) and a dense retrieval model (BLINK).
  • Augmentation by Prompting: The LLM is then prompted to generate auxiliary context about the mention, drawing on both the document's context and the LLM's general knowledge.
  • Multi-Choice Selection: Finally, the LLM is presented with the candidate entities and the augmented context in a multiple-choice format to select the most appropriate entity. This approach doesn't require any supervised fine-tuning.
  • EntGPT-Instruction Tuning (EntGPT-I): This method builds upon EntGPT-P by using instruction tuning.
  • Instruction Dataset Construction: They create an instruction dataset by transforming existing entity linking datasets (like AIDA) into instruction-response pairs.
  • Instruction Tuning: Two LLMs (GPT3.5 and Llama2-chat) are then fine-tuned on this curated dataset. This approach aims for more controllable and predictable behavior.

Datasets

The authors evaluated their models on a variety of datasets:

  • Entity Disambiguation (ED) Datasets: Ten public ED benchmark datasets were used, including AIDA, MSNBC, Aquaint, ACE2004, WNED-WIKI, WNED-CWEB, KORE50, OKE-2015, OKE-2016, REU, and RSS. Wikipedia was used as the knowledge base.
  • Question Answering (QA) Datasets: Six commonsense reasoning benchmarks were used: ARC-C, OBQA, aNLI, CSQA, PIQA, and SIQA.
  • AIDA Dataset: This large, manually annotated dataset was specifically used for constructing the instruction tuning dataset for EntGPT-I.

Key Insights and Ideas

  • Prompt Engineering is Key: Simply asking LLMs to perform ED with basic prompts is insufficient. Advanced, structured prompting (EntGPT-P) is crucial for unlocking their potential.
  • Auxiliary Context Matters: The augmentation step in EntGPT-P, where the LLM generates additional context about the mention, significantly boosts performance. This highlights how LLMs can leverage their world knowledge to disambiguate.
  • Instruction Tuning for Control: While prompt-based methods are powerful, instruction tuning (EntGPT-I) offers more controllable and predictable results, leading to even better performance on ED and downstream QA tasks.
  • Entity Grounding Benefits QA: Enhancing LLMs with entity-based knowledge not only improves their performance on ED but also positively impacts their accuracy on question-answering tasks, suggesting a strong correlation between entity understanding and reasoning.
  • LLMs Can Outperform Supervised Models (in some settings): EntGPT-P achieves competitive performance comparable to supervised models without any fine-tuning, demonstrating the power of LLMs in zero-shot settings.

Key Results

  • EntGPT-P:
    • Boosted micro-F₁ scores by up to 36% over vanilla prompts in zero-shot settings.
  • Achieved competitive performance across 10 ED datasets without supervised fine-tuning.
  • Reported an average micro-F₁ improvement of +7.0% over the second-best model in zero-shot ED benchmarks.
  • EntGPT-I:
    • Improved micro-F₁ scores by 2.1% on average in supervised ED tasks.
  • Outperformed several baseline models in six QA tasks, achieving state-of-the-art (SOTA) performance in the zero-shot setting.
  • Achieved SOTA micro-F₁ on AQUAINT, ACE2004, CWEB, and WIKI when fine-tuned only on the AIDA dataset.
  • Ablation Studies:
    • Removing the BLINK candidate generation model had a minor impact, suggesting the Prior model is also effective.
  • Removing the auxiliary content (Step 2 in EntGPT-P) severely decreased performance, underscoring its importance.
  • Fine-tuning GPT3.5 without entity candidates showed a sharp decline in performance, confirming the direct benefit of entity grounding.

Limitations and Future Work

  • Limitations:
    • The paper notes that while EntGPT-I shows improved performance, it still makes mistakes. For example, in the soil case study, it incorrectly identified "roots" instead of "microscope."
    • Mathematical reasoning remains a challenge for LLMs, even with enhanced entity knowledge.
  • The ablation study was limited to eight datasets due to budget constraints.
  • Future Work:
    • Extend the EntGPT framework to perform full entity linking (which includes mention extraction, not just disambiguation).
  • Investigate more deeply how and why entity disambiguation improves question answering performance, potentially by incorporating entity correlation more directly into QA paradigms.

Summary updated

BibTeX
@misc{ding2024entgpt,
  author = {Yifan Ding and Amrit Poudel and Qingkai Zeng and Tim Weninger and Balaji Veeramani and Sanmitra Bhattacharya},
  title = {{EntGPT: Linking Generative Large Language Models with Knowledge Bases}},
  year = {2024},
  eprint = {2402.06738},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.06738},
}
Figure