[Paper Review] Is ChatGPT Good at Search? Investigating Large Language Models as Re-Ranking Agents
The paper shows that properly instructed ChatGPT and GPT-4 can perform passage re-ranking competitive with or surpassing state-of-the-art supervised methods, and introduces permutation distillation to transfer this capability to smaller models.
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.
Motivation & Objective
- Investigate whether zero-shot ChatGPT and GPT-4 can perform passage re-ranking effectively on standard IR benchmarks.
- Propose an instructional permutation generation approach with a sliding window to handle context limits.
- Assess data contamination concerns by introducing NovelEval, a fresh evaluation set with unknown knowledge.
- Develop a permutation distillation method to transfer LLM ranking capabilities into small specialized models.
- Evaluate resulting specialized models’ performance versus existing supervised methods and analyze scalability.
Proposed method
- Use two prompting strategies (query generation and relevance generation) and introduce a permutation generation prompt to output a ranked list of passages.
- Apply a sliding window strategy to rank more passages beyond token limits.
- Evaluate on TREC, BEIR, and Mr.TyDi benchmarks, plus NovelEval for unseen knowledge.
- Distill ChatGPT permutation outputs into smaller models using RankNet loss and a cross-encoder or GPT-like architecture.
- Compare instructions and model families (GPT-3.5, GPT-4, ChatGPT, and open-source equivalents) to assess reliability and stability.
Experimental results
Research questions
- RQ1RQ1: How does ChatGPT (and GPT-4) perform on passage re-ranking tasks across standard IR benchmarks?
- RQ2RQ2: Can the ranking capabilities of ChatGPT be effectively distilled into smaller, specialized models?
- RQ3RQ3: How does instruction design (permutation generation vs. relevance/query generation) impact re-ranking quality?
- RQ4RQ4: How well do LLM-based re-rankers handle unknown knowledge via NovelEval?
Key findings
- GPT-4 with instructional permutation generation surpasses state-of-the-art supervised methods on multiple benchmarks, averaging nDCG@10 gains (2.7 on TREC, 2.3 on BEIR, 2.7 on My.TyDi).
- GPT-4 achieves state-of-the-art results on NovelEval, a test set with novel knowledge not seen during training.
- ChatGPT can outperform many supervised baselines on BEIR, and a mixed GPT-4/ChatGPT setup can balance cost and performance.
- Permutation distillation yields smaller models (435M-parameter DeBERTa/LLaMA-7B variants) that outperform monoT5 (3B) on BEIR and can even surpass the teacher in some cases.
- Distilled DeBERTa models trained with ChatGPT-generated permutations show stronger BEIR and overall benchmark performance than supervised MS MARCO-trained counterparts, with improved stability.
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.