ACL 2025finding0 citations

Generating Domain-Specific Knowledge Graphs from Large Language Models

Marinela Parović, Ze Li, Jinhua Du

Abstract

Knowledge graphs (KGs) have been a cornerstone of search and recommendation due to their ability to store factual knowledge about any domain in a structured form enabling easy search and retrieval. Large language models (LLMs) have shown impressive world knowledge across different benchmarks and domains but their knowledge is inconveniently scattered across their billions of parameters. In this paper, we propose a prompt-based method to construct domain-specific KGs by extracting knowledge solely from LLMs’ parameters. First, we use an LLM to create a schema for a specific domain, which contains a set of domain-representative entities and relations. After that, we use the schema to guide the LLM through an iterative data generation process equipped with Chain-of-Verification (CoVe) for increased data quality. Using this method, we construct KGs for two domains: books and landmarks, which we then evaluate against Wikidata, an open-source human-created KG. Our results show that LLMs can generate large domain-specific KGs containing tens of thousands of entities and relations. However, due to the increased hallucination rates as the procedure evolves, the utility of large-scale LLM-generated KGs in practical applications could remain limited.

BibTeX
@inproceedings{parovic-etal-2025-generating,
    title = "Generating Domain-Specific Knowledge Graphs from Large Language Models",
    author = "Parovi{\'c}, Marinela  and
      Li, Ze  and
      Du, Jinhua",
    editor = "Che, Wanxiang  and
      Nabende, Joyce  and
      Shutova, Ekaterina  and
      Pilehvar, Mohammad Taher",
    booktitle = "Findings of the Association for Computational Linguistics: ACL 2025",
    month = jul,
    year = "2025",
    address = "Vienna, Austria",
    publisher = "Association for Computational Linguistics",
    url = "https://aclanthology.org/2025.findings-acl.602/",
    doi = "10.18653/v1/2025.findings-acl.602",
    pages = "11558--11574",
    ISBN = "979-8-89176-256-5"
}
Generating Domain-Specific Knowledge Graphs from Large Language Models · ACL 2025