Skip to main content
QUICK REVIEW

[论文解读] Large Language Models are Effective Text Rankers with Pairwise Ranking Prompting

Zhen Qin, Rolf Jagerman|arXiv (Cornell University)|Jun 30, 2023
Topic ModelingComputer Science被引用 16
一句话总结

成对排序提示(PRP)通过比较文档对使大语言模型能够对文本进行排序,在标准基准上实现了零样本排名的最先进水平,适用于中等规模的开源大模型。PRP 在 TREC-DL2019/2020 上超越了许多更大或黑箱模型,并且在 PRP-Sliding-K 等变体下具有高效性。

ABSTRACT

Ranking documents using Large Language Models (LLMs) by directly feeding the query and candidate documents into the prompt is an interesting and practical problem. However, researchers have found it difficult to outperform fine-tuned baseline rankers on benchmark datasets. We analyze pointwise and listwise ranking prompts used by existing methods and argue that off-the-shelf LLMs do not fully understand these challenging ranking formulations. In this paper, we propose to significantly reduce the burden on LLMs by using a new technique called Pairwise Ranking Prompting (PRP). Our results are the first in the literature to achieve state-of-the-art ranking performance on standard benchmarks using moderate-sized open-sourced LLMs. On TREC-DL 2019&2020, PRP based on the Flan-UL2 model with 20B parameters performs favorably with the previous best approach in the literature, which is based on the blackbox commercial GPT-4 that has 50x (estimated) model size, while outperforming other LLM-based solutions, such as InstructGPT which has 175B parameters, by over 10% for all ranking metrics. By using the same prompt template on seven BEIR tasks, PRP outperforms supervised baselines and outperforms the blackbox commercial ChatGPT solution by 4.2% and pointwise LLM-based solutions by more than 10% on average NDCG@10. Furthermore, we propose several variants of PRP to improve efficiency and show that it is possible to achieve competitive results even with linear complexity.

研究动机与目标

  • 激发大语言模型的文本排序问题,并识别逐点(pointwise)与逐列表(listwise)提示的局限性。
  • 引入成对排序提示(PRP)以降低大语言模型的任务难度。
  • 证明开源、中等规模的大模型能够在标准基准上达到最先进的排序性能。
  • 探索 PRP 的高效变体并分析对输入顺序与 API 模式的鲁棒性。

提出的方法

  • 定义一个成对提示单元 u(q, d1, d2),让 LLM 判断两段文本中哪一个与查询更相关。
  • 使用评分模式为成对输出获取基于对数似然的分数,并通过交换文档顺序来缓解提示顺序敏感性。
  • 开发三种 PRP 变体:PRP-Allpair(全局成对聚合)、PRP-Sorting(在排序中将成对比较用作比较器)、PRP-Sliding-K(线性时间、聚焦前 K)。
  • 在基于 MS MARCO 的 TREC-DL2019 和 TREC-DL2020 上,使用开源大模型(FLAN-T5-XL/XXL、FLAN-UL2)的前 100 名 BM25 重新排名进行评估,并与基线进行比较。
  • 讨论实际属性,包括对生成和评分 API 的支持、对输入顺序不敏感,以及线性时间变体。

实验结果

研究问题

  • RQ1成对提示是否能够使中等规模的开源大模型实现零-shot 排序,超越微调基线?
  • RQ2在标准基准上,PRP 变体在准确性和效率方面相对于逐点和逐列表提示方法的比较?
  • RQ3开源LLMs 在生成模式与评分模式下,在输入顺序扰动下,是否能够实现有竞争力的排序性能?
  • RQ4在计算量和鲁棒性方面,PRP-Allpair、PRP-Sorting 与 PRP-Sliding-K 之间的权衡是什么?

主要发现

  • 使用 FLAN-UL2 20B 的 PRP 在 TREC-DL2020 上达到最先进的结果,在 NDCG@1 处超过基于 GPT-4 的之前最佳超过 5%。
  • 在 TREC-DL2019 上,PRP 方法优于 InstructGPT,并在多数排序指标上与 GPT-4 相当,尤为明显。
  • 基于 FLAN-UL2 与 FLAN-T5 的 PRP 变体在与早前巨型 LLM 相比更小的模型(3B–20B)上也显示出竞争力的结果。
  • PRP-Sliding-K 以线性或近线性复杂度提供良好的效率-效果平衡,并具备良好的前-K 排名性能。
  • PRP 对输入顺序鲁棒,适用于评分和生成 API,显示出对提示模式的敏感性很低。

阅读本论文

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

在 Nubint 中阅读本论文

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