Skip to main content
QUICK REVIEW

[Paper Review] KGValidator: A Framework for Automatic Validation of Knowledge Graph Construction

Jack Boylan, Shashank Mangla|arXiv (Cornell University)|Apr 24, 2024
Semantic Web and OntologiesComputer Science5 citations
TL;DR

KGValidator proposes a flexible framework that uses LLMs to validate KG completion triples with context from the model, user-provided documents, Wikidata, or web sources, without requiring gold references. It demonstrates improved zero-shot validation across benchmark datasets using external context.

ABSTRACT

This study explores the use of Large Language Models (LLMs) for automatic evaluation of knowledge graph (KG) completion models. Historically, validating information in KGs has been a challenging task, requiring large-scale human annotation at prohibitive cost. With the emergence of general-purpose generative AI and LLMs, it is now plausible that human-in-the-loop validation could be replaced by a generative agent. We introduce a framework for consistency and validation when using generative models to validate knowledge graphs. Our framework is based upon recent open-source developments for structural and semantic validation of LLM outputs, and upon flexible approaches to fact checking and verification, supported by the capacity to reference external knowledge sources of any kind. The design is easy to adapt and extend, and can be used to verify any kind of graph-structured data through a combination of model-intrinsic knowledge, user-supplied context, and agents capable of external knowledge retrieval.

Motivation & Objective

  • Address the challenge of validating knowledge graph completion without large-scale human annotation.
  • Leverage large language models (LLMs) to validate triples using various contexts.
  • Provide a simple, extensible pipeline that can validate any graph-structured data.
  • Demonstrate how external sources (Wikidata, web) improve validation accuracy across datasets.

Proposed method

  • Introduce KGValidator, a framework that validates KG triples against contextual information.
  • Use Pydantic models and the Instructor library to enforce structured, semantically grounded validator outputs.
  • Support multiple validation contexts: LLM inherent knowledge, textual context from user-provided documents, Wikidata reference KG, and web search results.
  • Implement retrieval-augmented validation by chunking and embedding textual context, building a searchable index, and querying for relevant evidence.
  • Allow zero-shot validator instantiation with backbones like GPT-3.5-turbo or Llama-family models, plus external knowledge retrieval tools.

Experimental results

Research questions

  • RQ1Can an LLM-based validator accurately determine the validity of KG triples in a zero-shot setting with contextual evidence?
  • RQ2How does providing textual, Wikidata, or web-derived context impact validation performance across standard KG completion benchmarks?
  • RQ3What are the limitations of inherent LLM knowledge for triple validation, and how does external context mitigate them?

Key findings

  • External context substantially improves validation accuracy for many datasets and models.
  • GPT-4 validators generally show strong performance across datasets, especially with Wikidata and web context.
  • Inherent LLM knowledge alone often fails to reliably validate triples, indicating a need for external validation signals.
  • Open-source models like Llama-2 can underperform in zero-shot KG validation tasks, highlighting model dependency in this setting.
  • Validation effectiveness varies by domain, with domain-specific data (e.g., UMLS) remaining challenging even with context.

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.