Personalizing Large Language Models using Retrieval Augmented Generation and Knowledge Graph

Deeksha Prahlad, Chanhee Lee, Dongha Kim, Hokeun Kim
5/15/2025
cs.CLcs.AIcs.LG

No official code found. Best implementation: asu-kim/personal-llm-kg (8 stars, BSD-3-Clause, last commit 2025-03-05).

Abstract

The advent of large language models (LLMs) has allowed numerous applications, including the generation of queried responses, to be leveraged in chatbots and other conversational assistants. Being trained on a plethora of data, LLMs often undergo high levels of over-fitting, resulting in the generation of extra and incorrect data, thus causing hallucinations in output generation. One of the root causes of such problems is the lack of timely, factual, and personalized information fed to the LLM. In this paper, we propose an approach to address these problems by introducing retrieval augmented generation (RAG) using knowledge graphs (KGs) to assist the LLM in personalized response generation tailored to the users. KGs have the advantage of storing continuously updated factual information in a structured way. While our KGs can be used for a variety of frequently updated personal data, such as calendar, contact, and location data, we focus on calendar data in this paper. Our experimental results show that our approach works significantly better in understanding personal information and generating accurate responses compared to the baseline LLMs using personal data as text inputs, with a moderate reduction in response time.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause

Personalization of LLMs using Knowledge Graphs

81PythonFeb 6, 20251 years agoBSD-3-Clause

Cite this paper

@article{prahlad2025personalizing,
  title  = {Personalizing Large Language Models using Retrieval Augmented Generation and Knowledge Graph},
  author = {Deeksha Prahlad and Chanhee Lee and Dongha Kim and Hokeun Kim},
  year   = {2025},
  eprint = {2505.09945},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.09945v1}
}

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.09945.svg)](https://codeofpaper.com/paper/2505.09945)

Discussion