Skip to main content
QUICK REVIEW

[Paper Review] GenRec: Large Language Model for Generative Recommendation

Jianchao Ji, Zelong Li|arXiv (Cornell University)|Jul 2, 2023
Topic ModelingComputer Science6 citations
TL;DR

GenRec proposes a large language model (LLM)-based generative recommendation framework that directly generates target items using natural language prompts, leveraging textual descriptions of users and items. It outperforms existing methods, especially on large-scale datasets like MovieLens 25M, by effectively integrating user preferences and item semantics through fine-tuned LLaMA-based LLMs with specialized prompting and fine-tuning on interaction data.

ABSTRACT

In recent years, large language models (LLM) have emerged as powerful tools for diverse natural language processing tasks. However, their potential for recommender systems under the generative recommendation paradigm remains relatively unexplored. This paper presents an innovative approach to recommendation systems using large language models (LLMs) based on text data. In this paper, we present a novel LLM for generative recommendation (GenRec) that utilized the expressive power of LLM to directly generate the target item to recommend, rather than calculating ranking score for each candidate item one by one as in traditional discriminative recommendation. GenRec uses LLM's understanding ability to interpret context, learn user preferences, and generate relevant recommendation. Our proposed approach leverages the vast knowledge encoded in large language models to accomplish recommendation tasks. We first we formulate specialized prompts to enhance the ability of LLM to comprehend recommendation tasks. Subsequently, we use these prompts to fine-tune the LLaMA backbone LLM on a dataset of user-item interactions, represented by textual data, to capture user preferences and item characteristics. Our research underscores the potential of LLM-based generative recommendation in revolutionizing the domain of recommendation systems and offers a foundational framework for future explorations in this field. We conduct extensive experiments on benchmark datasets, and the experiments shows that our GenRec has significant better results on large dataset.

Motivation & Objective

  • To explore the potential of large language models (LLMs) in generative recommendation, moving beyond traditional discriminative ranking approaches.
  • To address limitations in collaborative and content-based filtering, such as cold start and data sparsity, by leveraging rich textual information in item descriptions.
  • To develop a flexible, LLM-based framework that directly generates recommended items instead of scoring candidates individually.
  • To demonstrate the efficacy of prompt engineering and fine-tuning in enhancing LLMs for personalized recommendation tasks.
  • To provide a foundation for future research in LLM-powered generative recommender systems.

Proposed method

  • Formulate specialized natural language prompts to guide the LLM in understanding recommendation tasks and user-item interactions.
  • Fine-tune the LLaMA backbone LLM on user-item interaction data represented as text sequences, incorporating user history and item descriptions.
  • Use a sequence-to-sequence generation approach where the model generates the next item directly based on context, rather than computing ranking scores.
  • Employ a prompt template that includes user history, item features (e.g., title, category), and a generation instruction to elicit target item prediction.
  • Train the model using AdamW optimizer with a warm-up learning rate schedule over 5 epochs on 4 A5000 GPUs, with a maximum input length of 256 tokens.
  • Utilize both user interaction sequences and item textual metadata (e.g., titles, categories) as input to enrich the model’s understanding of preferences and item relevance.

Experimental results

Research questions

  • RQ1Can large language models be effectively leveraged to generate recommendations directly, rather than ranking candidates?
  • RQ2How does incorporating textual item descriptions and user interaction history improve recommendation performance in a generative setting?
  • RQ3Does prompt engineering and fine-tuning on interaction data significantly enhance LLM-based generative recommendation?
  • RQ4How does GenRec compare to existing LLM-based recommendation models like P5 in terms of performance on large-scale datasets?
  • RQ5Can the generative recommendation paradigm scale effectively to large, sparse datasets with rich interaction data?

Key findings

  • GenRec achieves significantly better performance than baseline models on the MovieLens 25M dataset, particularly in Hit Ratio (HR) and Normalized Discounted Cumulative Gain (NDCG) metrics.
  • On the MovieLens 25M dataset, GenRec outperforms P5, a strong baseline, indicating superior effectiveness in leveraging large-scale interaction data and textual features.
  • The model demonstrates strong generalization on large datasets, suggesting that the integration of semantic information through LLMs enhances recommendation accuracy.
  • GenRec's performance is especially strong where interaction data is abundant, highlighting the benefit of using rich textual and behavioral context.
  • The framework is flexible and can be adapted to various LLMs, suggesting broad applicability across different model architectures.
  • The open-sourcing of code and data at https://github.com/rutgerswiselab/GenRec enables reproducibility and further research in generative recommendation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.