An Investigation of Prompt Variations for Zero-shot LLM-based Rankers

Shuoqi Sun, Shengyao Zhuang, Shuai Wang, Guido Zuccon
6/20/2024
35 citations
cs.IRcs.CL

Official code: ielab/zeroshot-rankers-prompt-variations (2 stars, Python, Apache-2.0, last commit 2025-04-08).

Abstract

We provide a systematic understanding of the impact of specific components and wordings used in prompts on the effectiveness of rankers based on zero-shot Large Language Models (LLMs). Several zero-shot ranking methods based on LLMs have recently been proposed.

Show full abstract

Among many aspects, methods differ across (1) the ranking algorithm they implement, e.g., pointwise vs. listwise, (2) the backbone LLMs used, e.g., GPT3.5 vs. FLAN-T5, (3) the components and wording used in prompts, e.g., the use or not of role-definition (role-playing) and the actual words used to express this. It is currently unclear whether performance differences are due to the underlying ranking algorithm, or because of spurious factors such as better choice of words used in prompts. This confusion risks to undermine future research. Through our large-scale experimentation and analysis, we find that ranking algorithms do contribute to differences between methods for zero-shot LLM ranking. However, so do the LLM backbones -- but even more importantly, the choice of prompt components and wordings affect the ranking. In fact, in our experiments, we find that, at times, these latter elements have more impact on the ranker's effectiveness than the actual ranking algorithms, and that differences among ranking methods become more blurred when prompt variations are considered.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
20PythonJun 20, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{sun2024investigation,
  title  = {An Investigation of Prompt Variations for Zero-shot LLM-based Rankers},
  author = {Shuoqi Sun and Shengyao Zhuang and Shuai Wang and Guido Zuccon},
  year   = {2024},
  eprint = {2406.14117},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.14117v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.14117.svg)](https://codeofpaper.com/paper/2406.14117)

Discussion