Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents

Weiwei Sun, Lingyong Yan, Xinyu Ma, Shuaiqiang Wang, Pengjie Ren +3 more
4/19/2023
cs.CLcs.IR

No official code found. Best implementation: sunnweiwei/RankGPT (669 stars, Apache-2.0, last commit 2024-03-10).

Abstract

Large Language Models (LLMs) have demonstrated remarkable zero-shot generalization across various language-related tasks, including search engines. However, existing work utilizes the generative ability of LLMs for Information Retrieval (IR) rather than direct passage ranking. The discrepancy between the pre-training objectives of LLMs and the ranking objective poses another challenge. In this paper, we first investigate generative LLMs such as ChatGPT and GPT-4 for relevance ranking in IR. Surprisingly, our experiments reveal that properly instructed LLMs can deliver competitive, even superior results to state-of-the-art supervised methods on popular IR benchmarks. Furthermore, to address concerns about data contamination of LLMs, we collect a new test set called NovelEval, based on the latest knowledge and aiming to verify the model's ability to rank unknown knowledge. Finally, to improve efficiency in real-world applications, we delve into the potential for distilling the ranking capabilities of ChatGPT into small specialized models using a permutation distillation scheme. Our evaluation results turn out that a distilled 440M model outperforms a 3B supervised model on the BEIR benchmark. The code to reproduce our results is available at www.github.com/sunnweiwei/RankGPT.

View on arXivView PDF

Code Implementations(1)

sunnweiwei/RankGPTCommunity100%
Apache-2.0

Is ChatGPT Good at Search? LLMs as Re-Ranking Agent [EMNLP 2023 Outstanding Paper Award]

66966PythonApr 19, 20232 years agoApache-2.0
chatgptinformation-retrievallarge-language-modelsreranking

Similar Papers

Cite this paper

@article{sun2023chatgpt,
  title  = {Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents},
  author = {Weiwei Sun and Lingyong Yan and Xinyu Ma and Shuaiqiang Wang and Pengjie Ren and Zhumin Chen and Dawei Yin and Zhaochun Ren},
  year   = {2023},
  eprint = {2304.09542},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.09542v3}
}

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/2304.09542.svg)](https://codeofpaper.com/paper/2304.09542)

Discussion