DemoRank:为排序任务中的大语言模型选择有效示例
DemoRank: Selecting Effective Demonstrations for Large Language Models in Ranking Task
AI总结:
本文针对段落排序任务提出示例选择框架 DemoRank,通过引入重排序器并设计列表成对训练方法,结合迭代近似最优示例列表,有效捕捉示例间依赖关系,显著提升了大语言模型在排序任务中的性能。
摘要:
近期,将大语言模型(LLM)作为零样本段落排序器的兴趣日益增加。然而,鲜有研究探讨如何为段落排序任务选择合适的上下文示例,这正是本文的研究重点。以往的研究主要利用 LLM 的反馈来训练检索器进行示例选择。这些研究应用 LLM 独立地对每个示例进行打分,忽略了示例之间的依赖关系(这在排序任务中尤为重要),导致检索出的 top-$k$ 示例性能不佳。为缓解此问题,我们引入了一个示例重排序器来对检索到的示例进行重排序,使得排序后的 top-$k$ 示例更适合用于 ICL。然而,为这样的重排序器生成训练数据颇具挑战。一方面,与示例检索器不同,重排序器的训练样本需要包含示例间的依赖关系。另一方面,从检索到的示例中获取标准排序是一个 NP-hard 问题,难以实现。为克服这些挑战,我们提出了一种方法来迭代地近似最优示例列表,并利用 LLM 对不同长度的示例列表进行打分。通过这种方式,搜索空间被大幅缩减,同时考虑了示例间的依赖关系。基于这些打分的示例列表,我们进一步设计了一种列表成对训练方法,该方法比较仅在最后一个示例上存在差异的列表对,以教会重排序器在给定先前序列的情况下如何选择下一个示例。在本文中,我们提出了用于排序任务的示例选择框架 DemoRank,并进行了大量实验以证明其强大的能力。
英文摘要:
Recently, there has been increasing interest in applying large language models (LLMs) as zero-shot passage rankers. However, few studies have explored how to select appropriate in-context demonstrations for the passage ranking task, which is the focus of this paper. Previous studies mainly use LLM's feedback to train a retriever for demonstration selection. These studies apply the LLM to score each demonstration independently, which ignores the dependencies between demonstrations (especially important in ranking task), leading to inferior performance of top-$k$ retrieved demonstrations. To mitigate this issue, we introduce a demonstration reranker to rerank the retrieved demonstrations so that top-$k$ ranked ones are more suitable for ICL. However, generating training data for such reranker is quite challenging. On the one hand, different from demonstration retriever, the training samples of reranker need to incorporate demonstration dependencies. On the other hand, obtaining the gold ranking from the retrieved demonstrations is an NP-hard problem, which is hard to implement. To overcome these challenges, we propose a method to approximate the optimal demonstration list iteratively and utilize LLM to score demonstration lists of varying lengths. By doing so, the search space is greatly reduced and demonstration dependencies are considered. Based on these scored demonstration lists, we further design a list-pairwise training approach which compares a pair of lists that only differ in the last demonstration, to teach the reranker how to select the next demonstration given a previous sequence. In this paper, we propose a demonstration selection framework DemoRank for ranking task and conduct extensive experiments to prove its strong ability.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。