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, Jiebo LuoarXiv 2023 · OpenReview

Abstract

Text-based recommendation holds a wide range of practical applications due to its versatility, as textual descriptions can represent nearly any type of item. However, directly employing the original item descriptions may not yield optimal recommendation performance due to the lack of comprehensive information to align with user preferences. Recent advances in large language models (LLMs) have showcased their remarkable ability to harness commonsense knowledge and reasoning. In this study, we introduce a novel approach, coined LLM-Rec, which incorporates four distinct prompting strategies of text enrichment for improving personalized text-based recommendations. Our empirical experiments reveal that using LLM-augmented text significantly enhances recommendation quality. Even basic MLP (Multi-Layer Perceptron) models achieve comparable or even better results than complex content-based methods. Notably, the success of LLM-Rec lies in its prompting strategies, which effectively tap into the language model's comprehension of both general and specific item characteristics. This highlights the importance of employing diverse prompts and input augmentation techniques to boost the recommendation effectiveness of LLMs.

Introduction

Personalized recommendation systems frequently rely on textual descriptions to bridge the gap between item characteristics and user interests. However, these descriptions are often "cold"—purely factual, brief, or incomplete. For instance, a movie summary might detail the plot but omit the atmospheric "vibe" or thematic depth that typically influences a viewer's choice. This "information incompleteness" limits the ability of recommendation algorithms to perform effective latent feature alignment.

To address this, we present LLM-Rec, a framework that leverages the extensive world knowledge and reasoning capabilities of Large Language Models (LLMs) to enrich sparse item descriptions. By transforming dry metadata into rich, preference-aligned features, LLM-Rec enables even simple recommendation architectures to achieve state-of-the-art performance.

Methodology: The LLM-Rec Framework

The LLM-Rec pipeline consists of two primary stages: text enrichment via specialized prompting and a downstream recommendation module.

Prompting Strategies

The core innovation of LLM-Rec is the use of four distinct prompting strategies designed to elicit different nuances from the LLM:

  1. Basic Prompting: The LLM is tasked with paraphrasing, tagging, or inferring emotional tones from the original text.
  2. Recommendation-driven Prompting: The model is asked, "What else should I say if I want to recommend this to others?" This encourages the generation of persuasive and descriptive keywords.
  3. Engagement-guided Prompting: By providing the LLM with "neighbor" items (items previously liked by a user), the model identifies commonalities, injecting user-centric context into the description.
  4. Combined Prompting: A hybrid approach merging recommendation-driven and engagement-guided instructions.
The LLM-Rec framework illustrating the four prompting strategies (Basic, Recommendation-driven, Engagement-guided, and Combined) and the downstream recommendation architecture.

Recommendation Module

Once the text is enriched, it is encoded into embeddings using Sentence-BERT. These embeddings, alongside the original text features, are fed into a Multi-Layer Perceptron (MLP). This simple architecture allows the study to isolate the impact of feature quality versus model complexity.

Experimental Results

The framework was evaluated on two benchmarks: MovieLens-1M (movies) and a Recipe dataset (user-generated culinary content).

Quantitative Performance

LLM-Rec demonstrated substantial gains over standard baselines. On the Recipe dataset, using GPT-3 for enrichment resulted in a 21.72% increase in NDCG@10 and a 23.10% increase in Recall@10. On MovieLens-1M, the framework achieved an 8.54% improvement in NDCG@10.

Feature Enrichment Analysis

A key finding is that the LLM acts as a "vibe translator," adding critical high-level tags (e.g., "psychological thriller," "easy to make") that are often absent from raw metadata. As shown in the analysis of keyword density, the LLM significantly increases the percentage of important keywords across various domains, which directly correlates with improved recommendation accuracy.

Impact of LLM augmentation on keyword richness across various domains. The y-axis represents the percentage increase in important keywords after LLM processing.

Discussion and Conclusion

The success of LLM-Rec suggests that the current bottleneck in recommendation systems is often the expressiveness of input features rather than the complexity of the model architecture. By using LLMs to fill information gaps, we can achieve superior alignment with user preferences.

While the computational cost of LLM inference remains a challenge for real-time applications, LLM-Rec proves highly effective for offline feature engineering. Future work will explore dynamic prompting to capture evolving user tastes in real-time and strategies to mitigate the knowledge cutoff limitations of static LLMs.

Summary updated

BibTeX
@misc{lyu2023llm,
  author = {Hanjia Lyu and Song Jiang and Hanqing Zeng and Yinglong Xia and Jiebo Luo},
  title = {{LLM-Rec: Personalized Recommendation via Prompting Large Language Models}},
  year = {2023},
  eprint = {2307.15780},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.15780},
}
Figure