GPTKB v1.5: A Massive Knowledge Base for Exploring Factual LLM Knowledge

Yujia Hu, Tuan-Phong Nguyen, Shrestha Ghosh, Moritz Müller, Simon RazniewskiarXiv 2025 · DOI

TL;DR

GPTKB v1.5 is a massive, densely interlinked knowledge base consisting of 100 million factual triples extracted recursively from GPT-4.1. By materializing an LLM's internal beliefs into a structured, queryable format, this project enables researchers to systematically analyze, query via SPARQL, and expose the structural flaws and biases of LLM knowledge at scale.

What Problem Does This Paper Address?

While Large Language Models (LLMs) demonstrate a remarkable capacity for storing factual knowledge, understanding the exact scope and boundaries of that knowledge remains a challenge. Traditional benchmarking methods rely on pre-selected evaluation samples. This introduces an "availability bias," meaning researchers only test for facts they already expect the model to know, leaving unexpected beliefs, hallucinations, or structural gaps completely unnoticed.

To truly understand what an LLM "knows," we need a way to map its entire factual landscape without a priori assumptions. The authors address this by scaling up a recursive extraction methodology to build a massive, open-ended knowledge base directly from the model's outputs.

Methods

The authors utilize the GPTKB methodology, which consists of two primary phases:

  1. Knowledge Elicitation: Starting from a single seed entity (Vannevar Bush), the LLM is prompted to return its knowledge in the form of subject-predicate-object triples. The system uses constrained decoding to force the LLM to adhere strictly to this triple format. New named entities discovered within the objects are identified using an LLM-based Named-Entity Recognition (NER) step and enqueued for further exploration using a recursive Breadth-First Search (BFS) graph traversal up to a depth of 10 layers.
  2. Knowledge Consolidation: To combat the natural redundancy and linguistic variance of LLM outputs (e.g., creating slightly different predicates for the same relationship), the authors apply a post-hoc greedy clustering algorithm. This merges relations and classes based on high label embedding similarity into canonical forms.

Datasets

The primary artifact introduced is GPTKB v1.5, which was constructed using the GPT-4.1 model over an 18-day period, costing $14,136 in API calls.

To evaluate its quality, the authors sampled:

  • A random subset of 1,000 triples for automated verification using a RAG-based web search framework.
  • A subset of 100 triples for manual human assessment.

Additionally, the platform includes a comparative evaluation dataset featuring outputs from five different LLMs (including Llama 3.3-70B-Instruct, 4-Scout-17B-16E-Instruct, GPT-4o-mini, GPT-4.1, and DeepSeek-R1) across a diverse set of 100 entities.

Key Insights and Ideas

  • Exposing the "Reversal Curse" at Scale: By translating the model's knowledge into a graph, the authors could easily run structural queries. They found that asymmetry is rampant in GPT-4.1. For example, a SPARQL query looking at spousal relationships revealed that only 16.2% of spousal triples were present in both directions (e.g., the model knows Person A is married to Person B, but fails to explicitly link Person B to Person A).
  • Ontological Differences Across Families: When comparing models side-by-side, the authors noted distinct architectural behaviors. For instance, GPT models tend to produce human-readable instanceOf values (like gptkb:person), whereas Llama models frequently default to Wikidata identifiers (like Q5).
  • Systemic Hallucinations: The comparative framework makes it easy to spot shared failures. For certain entities (like Ilya Sutskever), multiple independent models asserted the exact same incorrect birth date, exposing shared biases or corrupted data patterns in their pre-training corpora.

Key Results

The final GPTKB v1.5 knowledge base contains 100 million triples (120 million including meta-relations) spanning 6.1 million unique entities.

Statistics of the generated GPTKB v1.5 knowledge base.

Key data quality metrics include:

  • Subject-Precision: 85.3% of the extracted subjects were deemed Verifiable, 3.4% Plausible, and 11.3% Unverifiable.
  • Triple-Precision: 75.5% of the generated facts were verified as True, 5.0% as Plausible, and 19.5% were False.
  • Wikidata Overlap: Only 43% of the subjects extracted exist in Wikidata, indicating that the recursive generation captures a massive long-tail of niche or LLM-specific entities.

The data is hosted via a web interface allowing interactive graph exploration and direct SPARQL querying.

Figure 1: GPTKB page for Merlion statue.
A sample SPARQL query demonstrating how users can analyze entity frequencies within the knowledge base.

Limitations and Future Work

While powerful, the approach has clear limitations:

  • Financial Cost: At over $14,000 for a single model run, massive-recursive materialization remains expensive for standard academic budgets, though costs are expected to fall with cheaper frontier APIs.
  • Semantic Noise: Roughly 14% to 19.5% of the generated triples are false, and a small portion remains entirely undecidable or semantically incomprehensible.
  • Graph Completeness: The graph's boundaries are heavily dependent on the initial seed entity and the BFS depth limits, meaning some knowledge pockets within the LLM might still remain unmapped.

Summary updated

BibTeX
@misc{hu2025gptkb,
  author = {Yujia Hu and Tuan-Phong Nguyen and Shrestha Ghosh and Moritz Müller and Simon Razniewski},
  title = {{GPTKB v1.5: A Massive Knowledge Base for Exploring Factual LLM Knowledge}},
  year = {2025},
  eprint = {2507.05740},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.05740},
}
Figure