LLM-Rec: Personalized Recommendation via Prompting Large Language Models

TL;DR

Proposes LLM-Rec, using four prompting strategies to enrich item descriptions, significantly improving recommendation accuracy.

cs.CL 🔴 Advanced 2023-07-25 46 views
Hanjia Lyu Song Jiang Hanqing Zeng Yinglong Xia Qifan Wang Si Zhang Ren Chen Christopher Leung Jiajie Tang Jiebo Luo
recommendation large language models prompt engineering text augmentation personalization

Key Findings

Methodology

This paper introduces a framework leveraging GPT-3 and LLAMA-2 with four prompting strategies—basic, recommendation-driven, engagement-guided, and combined—to enhance item descriptions. The enriched texts are fed into an MLP-based recommendation module, optimizing user-item interaction prediction. Experiments on Movielens-1M and Recipe datasets show that augmented texts outperform traditional content-based methods, with NDCG@10 improvements of 6.24% to 12.57%.

Key Results

  • LLM-Rec with GPT-3 achieves up to 8.54% NDCG@10 improvement on Movielens-1M and 21.72% on Recipe, surpassing multiple baselines. Even simple MLP models attain or exceed the performance of complex models when using augmented text.
  • Different prompting strategies generate richer, more detailed descriptions that better capture item nuances, leading to higher recommendation precision. User-behavior-informed prompts (peng) notably improve personalization.
  • Enhanced texts provide deeper semantic insights into items, improving model interpretability and transparency, which benefits user trust and system explainability.

Significance

This work addresses the core challenge of limited descriptive information in recommendation systems by harnessing the knowledge and reasoning capabilities of large language models. It simplifies feature engineering, reduces reliance on external knowledge bases, and offers a scalable, effective solution for personalized content delivery. The approach enhances both accuracy and interpretability, paving the way for more user-centric recommendation systems in diverse domains.

Technical Contribution

The paper introduces a multi-strategy prompting framework that exploits LLMs’ capabilities for text generation and reasoning. By designing diverse prompts—paraphrasing, tagging, inference, recommendation, and user engagement—the method enriches item descriptions without complex feature engineering. It demonstrates that simple models like MLP can achieve state-of-the-art performance with augmented input, highlighting the method’s efficiency and versatility. The framework’s modular design facilitates adaptation across various content types and domains.

Novelty

This is the first systematic application of multi-strategy prompting to enhance textual descriptions for recommendation. Unlike prior approaches relying on external knowledge graphs or handcrafted features, this method directly leverages LLMs’ natural language understanding and generation. The combination of diverse prompts tailored for different scenarios represents a new paradigm in text-based recommendation enhancement.

Limitations

  • The approach depends heavily on large pre-trained models, incurring high computational costs, which may limit scalability in real-time applications.
  • Prompt design requires domain-specific tuning, and the effectiveness may vary across different content types or languages.
  • Sensitivity to prompt phrasing can affect stability and robustness, necessitating further research into prompt optimization and model calibration.

Future Work

Future research will explore automatic prompt generation techniques, multi-modal data integration (images, audio), and domain adaptation to improve robustness. Additionally, developing lightweight models or distillation methods could reduce computational overhead, making deployment more feasible at scale. Investigating user feedback mechanisms for dynamic prompt refinement is also a promising direction.

AI Executive Summary

In an era overwhelmed by vast amounts of content, personalized recommendation systems serve as vital filters, guiding users toward relevant items. Traditional methods, while effective, often rely on explicit features or structured knowledge, which are limited when item descriptions are sparse or ambiguous. Recent advances in large language models (LLMs) like GPT-3 and LLAMA-2 have unlocked new possibilities, owing to their extensive knowledge bases and sophisticated reasoning abilities.

This study introduces LLM-Rec, a novel framework that employs four distinct prompting strategies—basic, recommendation-driven, engagement-guided, and their combination—to automatically enrich item descriptions. These prompts guide LLMs to generate more detailed, nuanced, and personalized descriptions, which are then fed into a simple yet powerful MLP-based recommendation module. The core innovation lies in leveraging the natural language understanding and generation capabilities of LLMs to overcome the limitations of original textual data.

Experimental results on Movielens-1M and Recipe datasets demonstrate that augmented descriptions significantly outperform baseline models, with NDCG@10 improvements ranging from 6.24% to 12.57%. Notably, even basic models like MLP, when supplied with enriched text, match or surpass more complex content-based approaches. The diverse prompts effectively capture both general and specific item features, enhancing recommendation accuracy and interpretability.

This approach offers a scalable, domain-agnostic solution that reduces reliance on extensive feature engineering and external knowledge bases. It opens new avenues for deploying personalized recommendation systems across various industries, especially where descriptive data is limited. Looking ahead, integrating multi-modal data, automating prompt design, and optimizing computational efficiency will further expand the impact of this promising methodology.

Deep Analysis

Background

The evolution of recommendation systems has shifted from collaborative filtering towards content-based and knowledge-enhanced methods. Deep learning models like DeepCoNN and BERT4Rec have improved user preference modeling, but they still depend heavily on rich, structured data. In many real-world scenarios, item descriptions are brief or noisy, limiting the effectiveness of traditional approaches. The advent of large language models (LLMs) such as GPT series and LLAMA has demonstrated their capacity for extensive knowledge storage, complex reasoning, and natural language understanding. Prior work has explored knowledge graph integration and feature engineering, yet these methods often require domain expertise and manual effort. Recent developments suggest that prompting LLMs can serve as a flexible, scalable alternative for text augmentation, but systematic strategies for optimizing prompts remain underexplored.

Core Problem

The core challenge lies in the incomplete or superficial descriptions of items, which hinder accurate personalization. Existing models struggle to extract meaningful features from sparse text, especially in user-generated content domains like recipes or social media posts. External knowledge bases can help but are costly and domain-specific. Moreover, manual feature engineering is labor-intensive and lacks scalability. How to leverage the intrinsic reasoning and knowledge capabilities of LLMs to automatically generate richer, more informative descriptions remains an open question. Addressing this gap could significantly enhance recommendation accuracy, interpretability, and user satisfaction.

Innovation

This paper introduces a multi-strategy prompting framework that systematically guides LLMs to produce enriched item descriptions. The four prompts—basic paraphrasing, tagging, inference, and combined recommendation+engagement—are designed to capture different aspects of item features. This approach is needed to address the limitations of original descriptions and to exploit LLMs’ reasoning abilities fully. Unlike prior methods that rely on external data or complex feature extraction, this framework directly manipulates natural language inputs, making it adaptable and easy to implement. The integration of user behavior into prompts further personalizes descriptions, bridging the gap between generic content and individual preferences. This innovation creates a new paradigm for text-based recommendation enhancement, emphasizing prompt design as a key lever.

Methodology

  • �� Input original item description into LLM with specific prompts tailored for different strategies.
  • �� Basic prompts (para, tag, infer) instruct the model to paraphrase, summarize, or categorize the description.
  • �� Recommendation-driven prompts (prec) ask the model what additional info or tags would improve recommendation.
  • �� Engagement-guided prompts (peng) incorporate user interaction data, combining descriptions of related items to generate personalized summaries.
  • �� The generated enriched texts are concatenated and used as input to an MLP model for predicting user-item interactions.
  • �� The training objective maximizes the likelihood of observed interactions, using cross-entropy loss.
  • �� Evaluation involves metrics like Precision@10, Recall@10, and NDCG@10, comparing the impact of different prompts.
  • �� Experiments test various prompt combinations and models (GPT-3, LLAMA-2) across datasets, validating the framework’s robustness and effectiveness.

Experiments

The experimental setup involves two benchmark datasets: Movielens-1M for movies and Recipe for culinary content. Baselines include traditional content-based models, feature engineering approaches, and recent text augmentation methods. The models employ GPT-3 and LLAMA-2 for prompt generation, with hyperparameters tuned via validation sets. The negative sampling ratio is set at 1000:1, ensuring evaluation fairness. The recommendation module remains a simple MLP, emphasizing the contribution of augmented text. Multiple prompt strategies are tested, with performance measured through Precision@10, Recall@10, and NDCG@10 across five data splits. Ablation studies analyze the effect of each prompt type, confirming the superiority of combined prompts.

Results

Results show that LLM-Rec consistently outperforms baselines, with NDCG@10 gains of up to 12.57%. GPT-3-based prompts yield the highest improvements, demonstrating the importance of prompt design. The enriched descriptions contain more detailed and expressive features, which help the MLP model better understand item characteristics. Ablation results indicate that combining recommendation and engagement prompts (prec+peng) produces the best performance, highlighting the synergy of semantic richness and personalization. The models maintain robustness across different datasets and prompt variations, confirming the framework’s generalizability.

Applications

This approach is highly applicable in e-commerce, streaming platforms, and social media where item descriptions are often sparse or user-generated. It enables rapid deployment of personalized recommendation engines with minimal domain-specific tuning. The method also facilitates explainability, as enriched texts can be directly inspected to understand recommendation rationale. Future integration with multi-modal data (images, audio) could further enhance personalization, making the system adaptable to emerging content types and user preferences.

Limitations & Outlook

The reliance on large pre-trained models incurs high computational costs, limiting real-time deployment in resource-constrained environments. Prompt sensitivity may cause variability in outputs, requiring careful tuning. The approach’s effectiveness depends on the quality of initial descriptions and may degrade with extremely noisy or irrelevant inputs. Future work should focus on automating prompt optimization, reducing model size, and exploring multi-modal extensions to overcome these limitations.

Plain Language Accessible to non-experts

想象你去超市买东西,但商品标签写得很简单,比如只写‘苹果’或‘牛奶’,没有详细介绍。你可能不知道这些苹果是甜的还是酸的,牛奶是全脂还是低脂。现在,假如有个聪明的助手,他可以根据你的喜好,用一些提示帮你补充信息,比如告诉你‘这苹果很甜,适合做苹果派’,或者‘这牛奶是低脂,适合减肥’。这样,你就能更容易找到喜欢的商品。这个研究就像那个聪明的助手,用不同的提示帮助推荐系统,把商品的描述变得更丰富、更贴合你的需求,让你买东西更开心。

ELI14 Explained like you're 14

想象你在玩一个游戏,但游戏里的角色介绍很简短,比如只写‘勇敢的骑士’,没有讲他的故事或技能。你可能不知道他为什么那么勇敢,也不知道怎么玩得更好。这个研究就像给角色加了个故事,让你更了解他,知道他喜欢什么、擅长什么。通过特别的提示,系统能帮你补充这些信息,让推荐的内容更贴合你的兴趣。就像你在学校里,老师用不同的提示帮你写作文,让作文更精彩、更符合题意。这样一来,系统就能更聪明地帮你找到喜欢的电影、书或者游戏,变得更贴心、更懂你。

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.

cs.CL cs.AI cs.IR