Rule2Text: Natural Language Explanation of Logical Rules in Knowledge Graphs

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Shirvani-Mahdavi, Nasim, Wingfield, Devin, Ghasemi, Amin, Li, Chengkai
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913968593829888
author Shirvani-Mahdavi, Nasim
Wingfield, Devin
Ghasemi, Amin
Li, Chengkai
author_facet Shirvani-Mahdavi, Nasim
Wingfield, Devin
Ghasemi, Amin
Li, Chengkai
contents Knowledge graphs (KGs) often contain sufficient information to support the inference of new facts. Identifying logical rules not only improves the completeness of a knowledge graph but also enables the detection of potential errors, reveals subtle data patterns, and enhances the overall capacity for reasoning and interpretation. However, the complexity of such rules, combined with the unique labeling conventions of each KG, can make them difficult for humans to understand. In this paper, we explore the potential of large language models to generate natural language explanations for logical rules. Specifically, we extract logical rules using the AMIE 3.5.1 rule discovery algorithm from the benchmark dataset FB15k-237 and two large-scale datasets, FB-CVT-REV and FB+CVT-REV. We examine various prompting strategies, including zero- and few-shot prompting, including variable entity types, and chain-of-thought reasoning. We conduct a comprehensive human evaluation of the generated explanations based on correctness, clarity, and hallucination, and also assess the use of large language models as automatic judges. Our results demonstrate promising performance in terms of explanation correctness and clarity, although several challenges remain for future research. All scripts and data used in this study are publicly available at https://github.com/idirlab/KGRule2NL}{https://github.com/idirlab/KGRule2NL.
format Preprint
id arxiv_https___arxiv_org_abs_2507_23740
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Rule2Text: Natural Language Explanation of Logical Rules in Knowledge Graphs
Shirvani-Mahdavi, Nasim
Wingfield, Devin
Ghasemi, Amin
Li, Chengkai
Computation and Language
Artificial Intelligence
Machine Learning
Knowledge graphs (KGs) often contain sufficient information to support the inference of new facts. Identifying logical rules not only improves the completeness of a knowledge graph but also enables the detection of potential errors, reveals subtle data patterns, and enhances the overall capacity for reasoning and interpretation. However, the complexity of such rules, combined with the unique labeling conventions of each KG, can make them difficult for humans to understand. In this paper, we explore the potential of large language models to generate natural language explanations for logical rules. Specifically, we extract logical rules using the AMIE 3.5.1 rule discovery algorithm from the benchmark dataset FB15k-237 and two large-scale datasets, FB-CVT-REV and FB+CVT-REV. We examine various prompting strategies, including zero- and few-shot prompting, including variable entity types, and chain-of-thought reasoning. We conduct a comprehensive human evaluation of the generated explanations based on correctness, clarity, and hallucination, and also assess the use of large language models as automatic judges. Our results demonstrate promising performance in terms of explanation correctness and clarity, although several challenges remain for future research. All scripts and data used in this study are publicly available at https://github.com/idirlab/KGRule2NL}{https://github.com/idirlab/KGRule2NL.
title Rule2Text: Natural Language Explanation of Logical Rules in Knowledge Graphs
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2507.23740