Skip to main content
QUICK REVIEW

[论文解读] Large Language Models are Zero-Shot Rankers for Recommender Systems

Yupeng Hou, Junjie Zhang|arXiv (Cornell University)|May 15, 2023
Topic ModelingComputer Science被引用 23
一句话总结

大语言模型(LLMs)可以通过用用户历史和候选项进行提示,作为推荐系统的零-shot 排序器;它们在零-shot 排序方面表现出色,但存在排序、位置和流行度偏见,这些偏见可以通过提示和引导学习来缓解,当候选项来自多个生成器时表现良好。

ABSTRACT

Recently, large language models (LLMs) (e.g., GPT-4) have demonstrated impressive general-purpose task-solving abilities, including the potential to approach recommendation tasks. Along this line of research, this work aims to investigate the capacity of LLMs that act as the ranking model for recommender systems. We first formalize the recommendation problem as a conditional ranking task, considering sequential interaction histories as conditions and the items retrieved by other candidate generation models as candidates. To solve the ranking task by LLMs, we carefully design the prompting template and conduct extensive experiments on two widely-used datasets. We show that LLMs have promising zero-shot ranking abilities but (1) struggle to perceive the order of historical interactions, and (2) can be biased by popularity or item positions in the prompts. We demonstrate that these issues can be alleviated using specially designed prompting and bootstrapping strategies. Equipped with these insights, zero-shot LLMs can even challenge conventional recommendation models when ranking candidates are retrieved by multiple candidate generators. The code and processed datasets are available at https://github.com/RUCAIBox/LLMRank.

研究动机与目标

  • 以连续历史作为条件、候选项作为候选对象,将推荐过程形式化建模为条件排序任务。
  • 通过精心设计的提示模板评估 LLMs 作为零-shot 排序器。
  • 系统地研究用于历史和候选项的提示配置如何影响排序性能。
  • 识别并解决基于 LLM 的排序中的偏差(顺序、位置、流行度),并提出缓解策略。
  • 将零-shot LLM 排序器与传统模型进行比较,并覆盖多种候选项生成策略。

提出的方法

  • 在自然语言提示中将历史互动表示为条件,将检索得到的候选项表示为条目。
  • 使用遵循指令的提示范式从 LLM 获取排序结果。
  • 评估三种历史提示策略:顺序提示、以最近性为焦点的提示,以及上下文学习。
  • 通过子字符串匹配解析 LLM 输出,将排序锚定到候选集。
  • 研究候选项顺序效应,并通过跨轮以打乱的候选顺序进行排序来进行自举并评估排序。
  • 在 MovieLens-1M 和来自 Amazon Reviews 的 Games 子集上进行实验,使用 NDCG@K,模型为 gpt-3.5-turbo,温度 0.2。
Figure 1: An overview of the proposed LLM-based zero-shot ranking method.
Figure 1: An overview of the proposed LLM-based zero-shot ranking method.

实验结果

研究问题

  • RQ1哪些因素会影响 LLM 的零-shot 排序性能?
  • RQ2LLMs 在推荐时依赖哪些数据或知识?
  • RQ3提示策略和候选项排序如何影响基于 LLM 的排序性能?
  • RQ4在 LLM 排序中会出现哪些偏差(排序、位置、流行度),如何缓解?

主要发现

  • 除非通过强调最近性或在上下文示例中进行示范,否则 LLM 往往难以感知历史互动的顺序。
  • 以最近性为焦点的提示和在上下文学习通常能提升排序性能,最佳结果随数据集而异。
  • LLMs 在排序中表现出位置偏见和流行度偏见;自举和定制提示可以缓解这些影响。
  • 零-shot LLM 排序器可以超越某些零-shot基线,在候选集来自多种生成模型时具有竞争力。
  • LLM 排序器的性能往往随模型规模增大而提高,其行为反映了项目流行度、文本特征和用户历史的混合影响。
  • 在具有多个候选生成器的实际设置中,LLMs 可以实现强大的零-shot 排序,有时仅次于训练好的基线,但在不同配置下具有竞争力。
Large Language Models are Zero-Shot Rankers for Recommender Systems

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。