Skip to main content
QUICK REVIEW

[Paper Review] GPT4Rec: A Generative Framework for Personalized Recommendation and User Interests Interpretation

Jinming Li, Wentao Zhang|arXiv (Cornell University)|Apr 8, 2023
Topic ModelingComputer Science12 citations
TL;DR

GPT4Rec treats recommendation as query generation plus searching, using a GPT-2 based language model to generate diverse, interpretable user-interest queries and BM25 to retrieve items, improving Recall@K and offering interpretability and cold-start handling.

ABSTRACT

Recent advancements in Natural Language Processing (NLP) have led to the development of NLP-based recommender systems that have shown superior performance. However, current models commonly treat items as mere IDs and adopt discriminative modeling, resulting in limitations of (1) fully leveraging the content information of items and the language modeling capabilities of NLP models; (2) interpreting user interests to improve relevance and diversity; and (3) adapting practical circumstances such as growing item inventories. To address these limitations, we present GPT4Rec, a novel and flexible generative framework inspired by search engines. It first generates hypothetical "search queries" given item titles in a user's history, and then retrieves items for recommendation by searching these queries. The framework overcomes previous limitations by learning both user and item embeddings in the language space. To well-capture user interests with different aspects and granularity for improving relevance and diversity, we propose a multi-query generation technique with beam search. The generated queries naturally serve as interpretable representations of user interests and can be searched to recommend cold-start items. With GPT-2 language model and BM25 search engine, our framework outperforms state-of-the-art methods by $75.7\%$ and $22.2\%$ in Recall@K on two public datasets. Experiments further revealed that multi-query generation with beam search improves both the diversity of retrieved items and the coverage of a user's multi-interests. The adaptiveness and interpretability of generated queries are discussed with qualitative case studies.

Motivation & Objective

  • Motivate moving beyond item IDs by leveraging item content and NLP language modeling in recommendations.
  • Propose a generative framework that learns language-space embeddings for users and items.
  • Provide diverse, interpretable representations of user interests through multi-query generation with beam search.
  • Demonstrate effectiveness in addressing cold-start and evolving item inventories while improving relevance and diversity.

Proposed method

  • Format user history item titles into a prompt and fine-tune GPT-2 to learn language-space embeddings for users and items.
  • Generate multiple diverse queries using beam search to capture different aspects of user interests.
  • Use BM25 as a retrieval discriminator to fetch items for each generated query and aggregate results to balance relevance and diversity.
  • Train the language model and BM25 parameters separately (contrastive-style fine-tuning on item histories; grid-search BM25 ks and b).
  • Employ a ranking-based aggregation to combine results from multiple queries to form the final recommendation list.

Experimental results

Research questions

  • RQ1Can a generative language model capture rich item-content information and user interests for personalized recommendations?
  • RQ2Does multi-query beam search yield diverse, interpretable representations of user interests that improve recall and coverage?
  • RQ3How does the GPT4Rec framework handle cold-start and evolving item inventories through query-based retrieval?
  • RQ4What is the impact of combining generated queries with BM25 retrieval on diversity and coverage of user interests?

Key findings

  • GPT4Rec achieves Recall@K improvements over baselines on two public datasets, with notable gains as K increases (e.g., Recall@40 Beauty and Electronics show substantial gains over competitive methods).
  • Multi-query beam search improves both relevance and diversity of retrieved items, with best Recall@K achieved when generating K queries and retrieving one item per query.
  • Diversity@K and Coverage@K metrics increase with more queries, indicating richer representations of user interests and broader item exposure.
  • Qualitative analyses and case studies illustrate interpretability of generated queries as human-understandable representations of user interests and effective handling of multi-aspect preferences.
  • The framework remains flexible to integrate more advanced language models and search engines to further enhance performance.

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.