LlamaRec-LKG-RAG: A Single-Pass, Learnable Knowledge Graph-RAG Framework for LLM-Based Ranking
Vahid Azizi, Fatemeh Koochaki

TL;DR
LlamaRec-LKG-RAG introduces a single-pass, trainable framework that integrates personalized knowledge graph context into LLM-based recommendation ranking, improving accuracy and interpretability.
Contribution
It extends LlamaRec by incorporating a lightweight user preference module and knowledge graph subgraphs into prompts for enhanced recommendation performance.
Findings
Significant improvements in MRR, NDCG, and Recall on ML-100K and Amazon datasets.
Effective integration of structured knowledge graphs into LLM-based ranking.
Demonstrates the importance of relational reasoning in personalized recommendations.
Abstract
Recent advances in Large Language Models (LLMs) have driven their adoption in recommender systems through Retrieval-Augmented Generation (RAG) frameworks. However, existing RAG approaches predominantly rely on flat, similarity-based retrieval that fails to leverage the rich relational structure inherent in user-item interactions. We introduce LlamaRec-LKG-RAG, a novel single-pass, end-to-end trainable framework that integrates personalized knowledge graph context into LLM-based recommendation ranking. Our approach extends the LlamaRec architecture by incorporating a lightweight user preference module that dynamically identifies salient relation paths within a heterogeneous knowledge graph constructed from user behavior and item metadata. These personalized subgraphs are seamlessly integrated into prompts for a fine-tuned Llama-2 model, enabling efficient and interpretable…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsRecommender Systems and Techniques · Advanced Graph Neural Networks · Sentiment Analysis and Opinion Mining
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Linear Layer · Byte Pair Encoding · Attention Is All You Need · WordPiece · Weight Decay · Multi-Head Attention · Attention Dropout · Dropout · Dense Connections
