[Paper Review] Large Language Models are Zero-Shot Rankers for Recommender Systems
LLMs can serve as zero-shot rankers for recommender systems by prompting with user history and candidate items; they show strong zero-shot ranking but exhibit order, position, and popularity biases that can be mitigated with prompting and bootstrapping, performing well when candidates come from multiple generators.
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.
Motivation & Objective
- Formally model the recommendation process as a conditional ranking task using sequential histories as conditions and candidate items as candidates.
- Assess LLMs as zero-shot rankers through carefully designed prompting templates.
- Systematically study how prompting configurations for history and candidates affect ranking performance.
- Identify and address biases (order, position, popularity) in LLM-based ranking and propose mitigation strategies.
- Compare zero-shot LLM rankers against conventional models and across multiple candidate generation strategies.
Proposed method
- Represent historical interactions as conditions and retrieved candidates as items in natural language prompts.
- Use an instruction-following prompting paradigm to elicit ranking from LLMs.
- Evaluate three history-prompting strategies: sequential prompting, recency-focused prompting, and in-context learning.
- Parse LLM outputs with substring matching to ground ranks to the candidate set.
- Investigate candidate-order effects and apply bootstrapping by ranking with shuffled candidate orders across rounds.
- Conduct experiments on MovieLens-1M and a Games subset from Amazon Reviews using NDCG@K, with gpt-3.5-turbo and temperature 0.2.

Experimental results
Research questions
- RQ1What factors affect the zero-shot ranking performance of LLMs?
- RQ2What data or knowledge do LLMs rely on for making recommendations?
- RQ3How do prompting strategies and candidate ordering influence LLM-based ranking performance?
- RQ4What biases arise in LLM ranking (order, position, popularity) and how can they be mitigated?
Key findings
- LLMs often struggle to perceive the order of historical interactions unless prompted to emphasize recency or via in-context demonstrations.
- Recency-focused prompting and in-context learning generally improve ranking performance, with best results varying by dataset.
- LLMs exhibit position bias and popularity bias in ranking; bootstrapping and tailored prompts can mitigate these effects.
- Zero-shot LLM rankers can outperform certain zero-shot baselines and are competitive when candidate sets come from multiple generation models.
- Performance of LLM rankers tends to improve with larger model sizes, and their behavior reflects a mix of item popularity, textual features, and user histories.
- In practical settings with multiple candidate generators, LLMs can achieve strong zero-shot ranking, sometimes second-best to trained baselines but competitive across configurations.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.