Knowledge Bases and Language Models: Complementing Forces

Fabian M. Suchanek, Anh Tuan Luu

TL;DR

This paper argues that Large Language Models (LLMs) and structured knowledge bases (KBs) are complementary, not competing, technologies. LLMs excel at natural language interaction and commonsense reasoning, while KBs provide factual accuracy and deterministic data. The authors explore how to bridge the gap between these two paradigms to leverage their combined strengths.

What Problem Does This Paper Address?

The rapid advancement of Large Language Models (LLMs) like GPT and LLaMA has revolutionized natural language processing, enabling them to perform a wide range of tasks from writing code to answering complex questions. However, a critical limitation of LLMs is their probabilistic nature and tendency to "hallucinate" or generate incorrect information. This makes them unreliable for applications requiring factual accuracy, such as storing critical data in organizations. Conversely, traditional structured data repositories like databases and knowledge bases (KBs) offer precision and determinism but lack the intuitive, natural language interface of LLMs. The problem this paper addresses is how to effectively combine the strengths of LLMs (ease of interaction, commonsense knowledge) with those of KBs (factual accuracy, determinism) to create more robust and reliable AI systems.

Methods

The paper doesn't introduce a single novel algorithm but rather surveys and discusses various approaches to integrate LLMs with structured data. Key methods discussed include:

  • Fusing structured data into LLMs: This involves incorporating KB data directly into the LLM's training or fine-tuning process. However, this is often hindered by the "black box" nature of LLMs, making it difficult to access and modify their internal architecture.
  • Natural language as a bridge: This approach uses natural language to teach LLMs about structured data. Techniques include:
  • Prompt Engineering: Crafting specific prompts to guide LLMs to access and utilize information from external knowledge sources.
  • Cross-examination: Having LLMs "rethink" their answers by querying them in different ways or comparing their outputs with structured data.
  • Outsourcing factual knowledge: Training LLMs to focus on language understanding and generation, while relying on KBs for factual recall. This can lead to smaller, more efficient LLMs.
  • Equipping LLMs with tools: This involves giving LLMs the ability to interact with external tools, including knowledge graphs and databases. This can be achieved through:
  • Plugins: Allowing LLMs to call external APIs.
  • Augmented Language Models: Architectures designed to integrate external knowledge.
  • LLM-SQL bridges: Enabling LLMs to query structured databases using SQL.
  • Information Extraction (IE): Techniques to extract structured information from natural language text, which can then be used to populate or augment KBs. This includes Named Entity Recognition (NER), Disambiguation, and Relation Extraction.

Datasets

The paper does not focus on introducing new datasets for training or evaluation. Instead, it discusses the use of existing structured data repositories like databases and knowledge bases (e.g., YAGO, Wikidata) as sources of factual information. It also mentions the creation of benchmarks for specific tasks, such as the HANNA benchmark for story generation evaluation and GLADIS for acronym disambiguation.

Key Insights and Ideas

  • LLMs and KBs are complementary, not substitutes: LLMs excel at fuzzy, probabilistic tasks and natural language interaction, while KBs are ideal for crisp, deterministic facts. Trying to force one to do the job of the other is inefficient and error-prone.
  • The "black box" problem of LLMs: The opaque nature of LLMs makes it difficult to audit their knowledge, fix errors, or guarantee factual accuracy, highlighting the need for external grounding.
  • The rise of prompt engineering: The need to carefully craft prompts to elicit desired behavior from LLMs underscores their sensitivity to input and the emerging discipline of prompt engineering.
  • Information Extraction is crucial: Bridging the gap between natural language and symbolic representations requires robust IE techniques, which are still facing significant challenges.
  • LLMs can be used to improve KBs: LLMs can assist in tasks like information extraction, entity alignment, and even KB curation, creating a virtuous cycle.

Key Results

The paper is primarily a survey and a position statement, rather than a report on specific experimental results. However, it highlights the effectiveness of various approaches:

  • LLMs democratize access to information: They enable novices to perform complex tasks like writing code or understanding scientific articles.
  • LLMs can be tricked: This poses security risks and emphasizes the need for grounding their outputs.
  • LLMs can improve reasoning performance: The TINA approach is mentioned as increasing textual inference performance by up to 20%.
  • YAGO KB: The paper references YAGO as a flagship knowledge base containing 50 million entities and hundreds of millions of facts, demonstrating the scale of structured knowledge available.

Limitations and Future Work

The authors acknowledge several limitations and suggest future directions:

  • Bridging the gap: The fundamental challenge remains bridging the gap between natural language and symbolic knowledge representations. This involves overcoming issues in Named Entity Recognition, Disambiguation, and Relation Extraction, especially for complex or subjective information.
  • Error accumulation: IE pipelines can suffer from cascading errors, making it difficult to build accurate symbolic representations of entire texts.
  • KB maintenance: KBs themselves require constant curation to address errors and outdated information.
  • Reasoning capabilities: While LLMs show promise, their reasoning abilities are still limited, especially in complex scenarios.
  • Future work: The authors suggest continued research into combining LLMs with structured data, developing better IE techniques, and exploring new ways for LLMs to interact with external tools and knowledge sources. They also point to the potential of LLMs to aid in the creation and curation of knowledge bases.

Summary updated

BibTeX
@inproceedings{suchanek2023knowledge,
  author = {Fabian M. Suchanek and Anh Tuan Luu},
  title = {{Knowledge Bases and Language Models: Complementing Forces}},
  booktitle = {RuleML+RR},
  year = {2023},
  doi = {10.1007/978-3-031-45072-3\_1},
}
Figure