arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.07712cs.CLcs.LG
收藏

中间发现:置换自一致性提升大型语言模型的列表式排序

Found in the Middle: Permutation Self-Consistency Improves Listwise Ranking in Large Language Models

Comcast AI Technologies(康卡斯特人工智能技术公司);University of Waterloo(滑铁卢大学)

Raphael Tang, Xinyu Zhang, Xueguang Ma, Jimmy Lin, Ferhan Ture

AI总结:

本文提出置换自一致性方法,通过打乱提示中列表顺序并聚合排序结果来消除黑盒LLMs的位置偏差,在多个数据集上显著提升了列表式排序性能并超越先前最优。

摘要:

大型语言模型(LLMs)在使用上下文时表现出位置偏差,这尤其使列表式排序变得复杂。为了解决这个问题,我们提出了置换自一致性,这是一种对黑盒LLMs的排序列表输出进行自一致性的方法。我们的核心思想是边缘化提示中的不同列表顺序,以产生具有较少位置偏差的顺序无关的排序。首先,给定一些输入提示,我们反复打乱提示中的列表,并在保持指令不变的情况下将其传递给LLM。接下来,我们通过计算与所有排序距离最近的中心排序来聚合生成的排序样本,从而在此过程中边缘化提示顺序偏差。在理论上,我们证明了我们方法的鲁棒性,表明在存在随机扰动时能收敛到真实排序。在经验上,在五个用于排序和段落重排序的列表排序数据集上,我们的方法将GPT-3.5的常规推理得分提高了7-18%,将LLaMA v2 (70B)提高了8-16%,超越了段落重排序的先前最优水平。我们的代码位于 https://github.com/castorini/perm-sc。

英文摘要:

Large language models (LLMs) exhibit positional bias in how they use context, which especially complicates listwise ranking. To address this, we propose permutation self-consistency, a form of self-consistency over ranking list outputs of black-box LLMs. Our key idea is to marginalize out different list orders in the prompt to produce an order-independent ranking with less positional bias. First, given some input prompt, we repeatedly shuffle the list in the prompt and pass it through the LLM while holding the instructions the same. Next, we aggregate the resulting sample of rankings by computing the central ranking closest in distance to all of them, marginalizing out prompt order biases in the process. Theoretically, we prove the robustness of our method, showing convergence to the true ranking in the presence of random perturbations. Empirically, on five list-ranking datasets in sorting and passage reranking, our approach improves scores from conventional inference by up to 7-18% for GPT-3.5 and 8-16% for LLaMA v2 (70B), surpassing the previous state of the art in passage reranking. Our code is at https://github.com/castorini/perm-sc.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑