Skip to main content
QUICK REVIEW

[Paper Review] Zero-Shot Next-Item Recommendation using Large Pretrained Language Models

Lei Wang, Ee‐Peng Lim|arXiv (Cornell University)|Apr 6, 2023
Topic ModelingComputer Science22 citations
TL;DR

The paper proposes a three-step Zero-Shot Next-Item Recommendation (NIR) prompting strategy for GPT-3 to make next-item movie recommendations by constructing a candidate set and guiding multi-step prompts with user preferences and representative movie selection, achieving competitive zero-shot results on MovieLens 100K.

ABSTRACT

Large language models (LLMs) have achieved impressive zero-shot performance in various natural language processing (NLP) tasks, demonstrating their capabilities for inference without training examples. Despite their success, no research has yet explored the potential of LLMs to perform next-item recommendations in the zero-shot setting. We have identified two major challenges that must be addressed to enable LLMs to act effectively as recommenders. First, the recommendation space can be extremely large for LLMs, and LLMs do not know about the target user's past interacted items and preferences. To address this gap, we propose a prompting strategy called Zero-Shot Next-Item Recommendation (NIR) prompting that directs LLMs to make next-item recommendations. Specifically, the NIR-based strategy involves using an external module to generate candidate items based on user-filtering or item-filtering. Our strategy incorporates a 3-step prompting that guides GPT-3 to carry subtasks that capture the user's preferences, select representative previously watched movies, and recommend a ranked list of 10 movies. We evaluate the proposed approach using GPT-3 on MovieLens 100K dataset and show that it achieves strong zero-shot performance, even outperforming some strong sequential recommendation models trained on the entire training dataset. These promising results highlight the ample research opportunities to use LLMs as recommenders. The code can be found at https://github.com/AGI-Edgerunners/LLM-Next-Item-Rec.

Motivation & Objective

  • Motivate the exploration of LLMs for zero-shot next-item recommendation beyond traditional trained models.
  • Develop a prompting strategy to constrain the item space and capture user preferences without fine-tuning.
  • Demonstrate that structured prompting can yield competitive zero-shot recommendations on MovieLens 100K.

Proposed method

  • Construct a candidate item set per user using user filtering or item filtering to narrow the recommendation space.
  • Apply a three-step GPT-3 prompting process: Step 1 summarize user preferences from watched items; Step 2 select representative previously watched movies; Step 3 recommend a ranked list of 10 movies from the candidate set.
  • Format the third-step answer to enable simple extraction of recommended items (e.g., specific formatting hints).
  • Evaluate using GPT-3 (text-davinci-003) on MovieLens 100K with HR@10 and NDCG@10 as metrics.
Figure 1. Example inputs and outputs of GPT-3 with zero-shot prompting for a NLP task and a recommendation task.
Figure 1. Example inputs and outputs of GPT-3 with zero-shot prompting for a NLP task and a recommendation task.

Experimental results

Research questions

  • RQ1Can large pretrained language models perform next-item recommendations in a zero-shot setting when guided by structured prompts?
  • RQ2Does constraining the item space via candidate sets and multi-step prompting improve zero-shot recommendation accuracy?
  • RQ3How do different prompting components (user preferences, representative movie selection, formatting) affect performance?
  • RQ4How does zero-shot NIR compare to strong trained baselines and other zero-shot approaches on MovieLens 100K?

Key findings

  • Zero-shot NIR prompting outperforms a simple zero-shot prompt and random-candidate baselines by a large margin.
  • NIR methods with candidate sets and multi-step prompting can be competitive with fully trained sequential models on MovieLens 100K.
  • Using user-filtered candidate sets (UF) generally yields better results than item-filtered sets (IF).
  • Separating prompts to incorporate intermediate results (multi-prompt) yields better performance than combining steps into a single prompt.
Figure 2. Zero-Shot NIR prompts. The ground truth movie (i.e., The Rock) has been highlighted in red .
Figure 2. Zero-Shot NIR prompts. The ground truth movie (i.e., The Rock) has been highlighted in red .

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.