Personalized Graph-Based Retrieval for Large Language Models

Steven Au, Cameron J. Dimacali, Ojasmitha Pedirappagari, Namyong Park, Franck Dernoncourt, Yu Wang, Nikos Kanakaris, Hanieh Deilamsalehy, Ryan A. Rossi, Nesreen K. Ahmed · DOI

Introduction: The Cold-Start Challenge in Personalization

Most current approaches to personalizing Large Language Models (LLMs) rely on Retrieval-Augmented Generation (RAG) based strictly on a user’s individual history, such as their previous reviews or messages. While effective for power users with extensive digital footprints, this paradigm creates a significant cold-start and data sparsity problem for the vast majority of users.

In real-world datasets like Amazon Reviews, over 99.99% of users have fewer than three interactions. Existing benchmarks often bypass this reality by filtering out low-activity users to ensure sufficient retrieval data. This leaves LLMs struggling to provide personalized responses for the actual majority of users.

User distribution size vs. number of reviews, illustrating the severe data sparsity in typical personalization datasets.

Methodology: Personalized Graph-based RAG (PGraphRAG)

To address this gap, we introduce Personalized Graph-based Retrieval-Augmented Generation (PGraphRAG). The core innovation is a shift from a flat, linear list of user history to a structured bipartite user-item knowledge graph.

The PGraphRAG Pipeline

  1. Graph Construction: The system builds a graph where nodes represent users and entities (e.g., products, hotels), and edges represent interactions like reviews or ratings.
  2. Neighbor-Aware Retrieval: Unlike standard RAG, which only queries a single user's history, PGraphRAG retrieves context from the target user’s profile plus the profiles of "neighbors"—other users who have interacted with the same items. This allows the model to use the behavior of similar users as a proxy for the target user's preferences.
  3. Prompt Augmentation: The input query is converted into a search function that finds the top-$k$ most relevant interactions from this combined user-neighbor pool. This structured, multi-user context is then used to augment the LLM prompt.
The PGraphRAG framework architecture, showing the flow from user data to graph-based retrieval and final text generation.

Benchmarking and Datasets

We evaluated PGraphRAG using a new Personalized Graph-based Benchmark for Text Generation, consisting of 12 tasks across three categories: long-form generation (e.g., hotel stories), short-form generation (e.g., review titles), and ordinal classification (e.g., predicting star ratings). These tasks were built from four primary real-world data sources: Amazon Reviews 2023, Datafiniti Hotel Reviews, Stylized Feedback datasets, and the multilingual B2W-Reviews dataset.

Key Results and Insights

PGraphRAG demonstrates significant performance gains over state-of-the-art baselines like LaMP, particularly in sparse data scenarios:

  • Performance Gains: The framework achieved an average 14.8% gain in ROUGE-1 for long-text generation. In specific tasks like Hotel Experience Generation, improvements reached as high as 32.1%.
  • Cold-Start Robustness: PGraphRAG significantly outperformed history-only methods when users had only a single interaction in their profile, proving that neighbors are powerful proxies for individual preferences.
  • Model Agnostic: The improvements were consistent across both open-source models (LLaMA 3.1 8B) and proprietary models (GPT-4o-mini).
  • Modularity: Ablation studies showed that the "Neighbors-only" version of the model often performed nearly as well as the full model, confirming that the graph structure performs the heavy lifting in sparse data environments.

Limitations and Future Directions

While PGraphRAG offers a robust solution for cold-start personalization, several challenges remain. Currently, user profiles are treated as static, whereas real-world preferences evolve over time; incorporating temporal dynamics is a key next step. Additionally, the system relies on the existence of shared neighbors; if a user interacts with an entirely unique item, the graph-based advantage is diminished. Future work will also explore incorporating implicit signals, such as click rates, to further enrich the knowledge graph.

Summary updated

BibTeX
@misc{au2025personalized,
  author = {Steven Au and Cameron J. Dimacali and Ojasmitha Pedirappagari and Namyong Park and Franck Dernoncourt and Yu Wang and Nikos Kanakaris and Hanieh Deilamsalehy and Ryan A. Rossi and Nesreen K. Ahmed},
  title = {{Personalized Graph-Based Retrieval for Large Language Models}},
  year = {2025},
  eprint = {2501.02157},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.02157},
}
Figure