Improving Factuality in LLMs via Inference-Time Knowledge Graph Construction

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Wu, Shanglin, Liu, Lihui, Choi, Jinho D., Shu, Kai
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866915974654984192
author Wu, Shanglin
Liu, Lihui
Choi, Jinho D.
Shu, Kai
author_facet Wu, Shanglin
Liu, Lihui
Choi, Jinho D.
Shu, Kai
contents Large Language Models (LLMs) often struggle with producing factually consistent answers due to limitations in their parametric memory. Retrieval-Augmented Generation (RAG) paradigms mitigate this issue by incorporating external knowledge at inference time. However, such methods typically handle knowledge as unstructured text, which reduces retrieval accuracy, hinders compositional reasoning, and amplifies the influence of irrelevant information on the factual consistency of LLM outputs. To overcome these limitations, we propose a novel framework that dynamically constructs and expands knowledge graphs (KGs) during inference, integrating both internal knowledge extracted from LLMs and external knowledge retrieved from external sources. Our method begins by extracting a seed KG from the question via prompting, followed by iterative expansion using the LLM's internal knowledge. The KG is then selectively refined through external retrieval, enhancing factual coverage and correcting inaccuracies. We evaluate our approach on three diverse Factual QA benchmarks, demonstrating consistent gains in factual accuracy over baselines. Our findings reveal that inference-time KG construction is a promising direction for enhancing LLM factuality in a structured, interpretable, and scalable manner.
format Preprint
id arxiv_https___arxiv_org_abs_2509_03540
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Improving Factuality in LLMs via Inference-Time Knowledge Graph Construction
Wu, Shanglin
Liu, Lihui
Choi, Jinho D.
Shu, Kai
Computation and Language
Artificial Intelligence
Large Language Models (LLMs) often struggle with producing factually consistent answers due to limitations in their parametric memory. Retrieval-Augmented Generation (RAG) paradigms mitigate this issue by incorporating external knowledge at inference time. However, such methods typically handle knowledge as unstructured text, which reduces retrieval accuracy, hinders compositional reasoning, and amplifies the influence of irrelevant information on the factual consistency of LLM outputs. To overcome these limitations, we propose a novel framework that dynamically constructs and expands knowledge graphs (KGs) during inference, integrating both internal knowledge extracted from LLMs and external knowledge retrieved from external sources. Our method begins by extracting a seed KG from the question via prompting, followed by iterative expansion using the LLM's internal knowledge. The KG is then selectively refined through external retrieval, enhancing factual coverage and correcting inaccuracies. We evaluate our approach on three diverse Factual QA benchmarks, demonstrating consistent gains in factual accuracy over baselines. Our findings reveal that inference-time KG construction is a promising direction for enhancing LLM factuality in a structured, interpretable, and scalable manner.
title Improving Factuality in LLMs via Inference-Time Knowledge Graph Construction
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2509.03540