Injecting Knowledge Graphs into Large Language Models

Erica Coppolillo
5/12/2025
cs.LGcs.IR

No confident code implementation found for this paper. 3 possible matches can be shown below.

Abstract

Integrating structured knowledge from Knowledge Graphs (KGs) into Large Language Models (LLMs) remains a key challenge for symbolic reasoning. Existing methods mainly rely on prompt engineering or fine-tuning, which lose structural fidelity or incur high computational costs. Building on recent encoding techniques which integrate graph embeddings within the LLM input as tokens, we extend this paradigm to the KG domain by leveraging Knowledge Graph Embedding (KGE) models, thus enabling graph-aware reasoning. Our approach is model-agnostic, resource-efficient, and compatible with any LLMs. Extensive experimentation on synthetic and real-world datasets shows that our method improves reasoning performance over established baselines, further achieving the best trade-off in terms of accuracy and efficiency against state-of-the-art LLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{coppolillo2025injecting,
  title  = {Injecting Knowledge Graphs into Large Language Models},
  author = {Erica Coppolillo},
  year   = {2025},
  eprint = {2505.07554},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.07554v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.07554.svg)](https://codeofpaper.com/paper/2505.07554)

Discussion