NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generating Domain-Specific Knowledge Graphs from Large Language Models

Marinela Parovic, Ze Li, Jinhua DuACL 2025

Introduction

Knowledge Graphs (KGs) serve as the structural backbone for modern information retrieval, yet their construction remains a significant bottleneck. Traditional approaches rely on labor-intensive manual curation or complex NLP pipelines designed to extract facts from massive text corpora. This research explores an alternative paradigm: "mining" the internal parameters of Large Language Models (LLMs) to construct domain-specific KGs from scratch, bypassing the need for external document access.

Methodology

The researchers propose a three-stage iterative framework to systematically extract latent knowledge from models such as Llama 3.1-70B and Qwen 2.5-72B.

  1. Schema Generation: The LLM defines the domain's ontology, including entity types (e.g., Author, Publisher) and their respective relations.
  2. Iterative Data Generation: This involves an initial seeding of famous entity pairs, followed by Entity Completion (EnComp) to fill in attributes and Entity Generation (EnGen) to expand the graph horizontally by requesting related entities.
  3. Chain-of-Verification (CoVe): To mitigate hallucinations, a verification loop is integrated. The model generates self-correction questions, answers them independently, and refines its original output based on the results.

Empirical Results

Scale and Model Comparison

The methodology successfully generated substantial KGs for two domains: Books and Landmarks. Using Llama 3.1, the process yielded approximately 26,000 entities for books and 22,000 for landmarks.

Comparison of Llama 3.1 and Qwen 2.5 entity and relation counts with and without Chain-of-Verification (CoVe).

As shown in the data, while Qwen 2.5-72B generated a higher volume of entities and relations, Llama 3.1-70B demonstrated superior factual accuracy. Qwen's output was notably noisier, highlighting a trade-off between raw scale and data integrity.

Accuracy and the Impact of CoVe

Accuracy was measured by calculating the overlap with Wikidata as a ground-truth baseline. In the books domain, Llama with CoVe achieved a 52.4% overlap, a significant improvement over the 42.5% baseline without verification. This 10-13% quality boost confirms that self-correction mechanisms are vital for automated KG construction, even though the CoVe step introduces a computational bottleneck, often adding 40 seconds per verification cycle.

The Hallucination Ceiling

A critical finding of the study is the "Head vs. Tail" knowledge gap. LLMs exhibit high precision when generating facts about well-known "head" entities but struggle as the iterative process reaches for more obscure "long-tail" knowledge.

Accuracy of generated book entities across four iterations, illustrating the 'Head vs. Tail' knowledge gap.

As illustrated in the figure above, accuracy across all entity types in the books domain declines as the number of iterations increases. This "hallucination ceiling" suggests that while LLMs are excellent at structured recall of popular facts, their utility for capturing niche or highly specific data remains limited without external grounding.

Conclusion and Future Work

This research demonstrates that LLMs can act as effective, document-free sources for KG construction, provided that verification loops like CoVe are employed. However, the trade-off between graph size and factual accuracy remains a primary challenge. Future research directions include improving entity resolution (e.g., recognizing name variants), optimizing the efficiency of verification steps, and exploring hybrid models that combine internal parameter mining with Retrieval-Augmented Generation (RAG) to ground long-tail facts in external evidence.

Summary updated

BibTeX
@inproceedings{parovic2025generating,
  author = {Marinela Parovic and Ze Li and Jinhua Du},
  title = {{Generating Domain-Specific Knowledge Graphs from Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure