arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.12373cs.CL
收藏

RankPrompt:逐步比较使语言模型成为更好的推理器

RankPrompt: Step-by-Step Comparisons Make Language Models Better Reasoners

Alibaba(阿里巴巴)

Chi Hu, Yuan Ge, Xiangnan Ma, Hang Cao, Qiang Li, Yonghua Yang, Tong Xiao, Jingbo Zhu

AI总结:

RankPrompt是一种无需额外资源即可让LLMs自排序响应的新提示方法,通过将排序分解为逐步比较,显著提升了ChatGPT和GPT-4在多个推理任务上的性能,并在自动评估中与人类判断高度一致。

摘要:

大型语言模型(LLMs)在各种推理任务中取得了令人瞩目的表现。然而,即使是像ChatGPT这样最先进的LLMs,在推理过程中也容易出现逻辑错误。现有的解决方案,例如部署特定任务的验证器或对多个推理路径进行投票,要么需要大量的人工标注,要么在响应不一致的场景中失败。为了解决这些挑战,我们引入了RankPrompt,这是一种新的提示方法,使LLMs能够对自身响应进行自排序而无需额外资源。RankPrompt将排序问题分解为对多种响应的一系列比较,利用LLMs的固有能力生成比较链作为上下文示例。我们在11个算术和常识推理任务上的实验表明,RankPrompt显著提升了ChatGPT和GPT-4的推理性能,提升幅度高达13%。此外,RankPrompt在基于LLMs的开放式任务自动评估中表现出色,在AlpacaEval数据集中有74%的时间与人类判断一致。它还表现出对响应顺序和一致性变化的鲁棒性。总的来说,我们的结果验证了RankPrompt作为一种有效方法,能够从语言模型中引出高质量的反馈。

英文摘要:

Large Language Models (LLMs) have achieved impressive performance across various reasoning tasks. However, even state-of-the-art LLMs such as ChatGPT are prone to logical errors during their reasoning processes. Existing solutions, such as deploying task-specific verifiers or voting over multiple reasoning paths, either require extensive human annotations or fail in scenarios with inconsistent responses. To address these challenges, we introduce RankPrompt, a new prompting method that enables LLMs to self-rank their responses without additional resources. RankPrompt breaks down the ranking problem into a series of comparisons among diverse responses, leveraging the inherent capabilities of LLMs to generate chains of comparison as contextual exemplars. Our experiments across 11 arithmetic and commonsense reasoning tasks show that RankPrompt significantly enhances the reasoning performance of ChatGPT and GPT-4, with improvements of up to 13%. Moreover, RankPrompt excels in LLM-based automatic evaluations for open-ended tasks, aligning with human judgments 74% of the time in the AlpacaEval dataset. It also exhibits robustness to variations in response order and consistency. Collectively, our results validate RankPrompt as an effective method for eliciting high-quality feedback from language models.

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

↑