NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LLM-Rec: Personalized Recommendation via Prompting Large Language Models

Hanjia Lyu, Song Jiang, Hanqing Zeng, Yinglong Xia, Qifan Wang, Si Zhang, Ren Chen, Christopher Leung, Jiajie Tang, Jiebo Luo

Abstract

LLM-Rec is a framework that leverages Large Language Models (LLMs) to "flesh out" sparse item descriptions through strategic prompting, significantly improving personalized recommendations. By transforming brief text into rich, context-aware descriptions, the authors demonstrate that even simple recommendation models can outperform complex, state-of-the-art architectures.

Introduction

Text-based recommendation systems are fundamentally limited by the quality of the descriptions they consume. Real-world data is often "sparse" or incomplete; for instance, a movie description might list actors and a plot summary but omit the "vibe," cinematography style, or thematic depth. Similarly, user-generated content like recipes might list ingredients but fail to mention if they are "vegan-friendly" or "quick to make."

Traditional solutions involve linking items to external knowledge bases (e.g., DBpedia), which requires massive domain expertise and often fails for novel content. LLM-Rec addresses this "incomplete information" gap by leveraging the latent world knowledge and reasoning capabilities of LLMs to enrich item profiles automatically.

The LLM-Rec Framework

The core of LLM-Rec lies in using LLMs (specifically GPT-3 and Llama-2) as sophisticated data augmenters. The framework employs four distinct prompting strategies to generate enriched text:

  1. Basic Prompting: Instructs the LLM to paraphrase, summarize with tags, or infer the "emotions" an item might evoke.
  2. Recommendation-driven Prompting: Asks the LLM specifically, "What else should I say if I want to recommend this item to others?"
  3. Engagement-guided Prompting: Uses Personalized PageRank (PPR) to identify "neighbor" items that users frequently interact with alongside the target item. The LLM then identifies commonalities between the target and its successful neighbors.
  4. Combined Strategy: Merges recommendation-driven and engagement-guided instructions.
The LLM-Rec framework architecture showing the four prompting strategies and the downstream recommendation module.

Once the LLM generates these enriched descriptions, a frozen Sentence-BERT model converts the text into embeddings. These embeddings are concatenated and fed into a simple Multi-Layer Perceptron (MLP) to predict user-item interaction scores.

Experimental Setup and Insights

The framework was evaluated on three primary benchmarks: MovieLens-1M (structured movie data), Recipe (unstructured user-generated content), and the Amazon Review Dataset (spanning 10 diverse domains like Automotive and Digital Music).

Key insights from the study include:

  • LLMs as "Common Sense" Fillers: LLMs excel at identifying implicit characteristics, such as reasoning that a movie is a "psychological thriller" even if the metadata lacks that specific tag.
  • Feature Quality > Model Complexity: A basic MLP using LLM-augmented text can outperform highly complex models (like AutoInt or DCN-V2) that only have access to original, sparse text.
  • Embedding Concatenation is Key: The study found that generating multiple augmented descriptions, embedding them separately, and then concatenating those embeddings prevents "information loss" compared to merging all text into a single giant prompt.

Key Results

LLM-Rec achieved significant relative gains over baseline models. In the Recipe dataset, NDCG@10 improved by up to 21.72% when using GPT-3. The method proved particularly effective in domains with very sparse initial text, such as Digital Music, by successfully injecting relevant keywords and context.

Performance comparison (NDCG@10) of different concatenation strategies across MovieLens-1M and Recipe datasets.

As shown in the results, the "Concat-All" strategy—which combines multiple prompting outputs—consistently yields the highest performance, validating the importance of diverse descriptive perspectives.

Limitations and Future Work

While powerful, LLM-Rec faces challenges regarding computational cost, as running LLM inference for massive catalogs is expensive. Additionally, LLMs are limited by their knowledge cutoff, potentially struggling with items released after their training data. Future work may explore "dynamic prompts" that update descriptions on-the-fly based on a specific user's most recent interactions to further personalize the recommendation process.

Summary updated

BibTeX
@inproceedings{lyu2024llm,
  author = {Hanjia Lyu and Song Jiang and Hanqing Zeng and Yinglong Xia and Qifan Wang and Si Zhang and Ren Chen and Christopher Leung and Jiajie Tang and Jiebo Luo},
  title = {{LLM-Rec: Personalized Recommendation via Prompting Large Language Models}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.39},
}
Figure