Aligning Knowledge Graphs and Language Models for Factual Accuracy

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Nishat, Nur A Zarin, Coletta, Andrea, Bellomarini, Luigi, Amouzouvi, Kossi, Lehmann, Jens, Vahdati, Sahar
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915397641437184
author Nishat, Nur A Zarin
Coletta, Andrea
Bellomarini, Luigi
Amouzouvi, Kossi
Lehmann, Jens
Vahdati, Sahar
author_facet Nishat, Nur A Zarin
Coletta, Andrea
Bellomarini, Luigi
Amouzouvi, Kossi
Lehmann, Jens
Vahdati, Sahar
contents Large language models like GPT-4, Gemini, and Claude have transformed natural language processing (NLP) tasks such as question answering, dialogue generation, summarization, and so forth; yet their susceptibility to hallucination stands as one of the major challenges. Among numerous approaches to overcome this challenge, integration of Knowledge Graphs (KGs) into language models has emerged as a promising solution as it provides structured, reliable, domain-specific, and up-to-date external information to the language models. In this paper, we introduce ALIGNed-LLM, a simple yet effective approach to improve language models' factuality via a lean strategy to infuse KGs into the latent space of language models inspired by LLaVA where visual and textual information is infused. We use embeddings from a pre-trained Knowledge Graph Embedding (KGE) model, such as TransE, and a trainable projection layer to align entity and text embeddings. This alignment enables the language model to distinguish between similar entities improving factual grounding and reducing hallucination. We tested our approach on three popular questions-answering benchmark datasets alongside language models of varying sizes, showing significant improvement. Furthermore, we applied our approach to a real-world financial use case from a large central bank in Europe, which demands high accuracy and precision, demonstrating a substantial improvement of the LLM answers.
format Preprint
id arxiv_https___arxiv_org_abs_2507_13411
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Aligning Knowledge Graphs and Language Models for Factual Accuracy
Nishat, Nur A Zarin
Coletta, Andrea
Bellomarini, Luigi
Amouzouvi, Kossi
Lehmann, Jens
Vahdati, Sahar
Computation and Language
Artificial Intelligence
Large language models like GPT-4, Gemini, and Claude have transformed natural language processing (NLP) tasks such as question answering, dialogue generation, summarization, and so forth; yet their susceptibility to hallucination stands as one of the major challenges. Among numerous approaches to overcome this challenge, integration of Knowledge Graphs (KGs) into language models has emerged as a promising solution as it provides structured, reliable, domain-specific, and up-to-date external information to the language models. In this paper, we introduce ALIGNed-LLM, a simple yet effective approach to improve language models' factuality via a lean strategy to infuse KGs into the latent space of language models inspired by LLaVA where visual and textual information is infused. We use embeddings from a pre-trained Knowledge Graph Embedding (KGE) model, such as TransE, and a trainable projection layer to align entity and text embeddings. This alignment enables the language model to distinguish between similar entities improving factual grounding and reducing hallucination. We tested our approach on three popular questions-answering benchmark datasets alongside language models of varying sizes, showing significant improvement. Furthermore, we applied our approach to a real-world financial use case from a large central bank in Europe, which demands high accuracy and precision, demonstrating a substantial improvement of the LLM answers.
title Aligning Knowledge Graphs and Language Models for Factual Accuracy
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2507.13411