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

面向思维链提示的通用目的验证

General Purpose Verification for Chain of Thought Prompting

AWS AI Labs(AWS AI实验室);University of Arizona(亚利桑那大学);Technical University of Cluj-Napoca(克卢日-纳波卡技术大学);University of Bologna(博洛尼亚大学)

Robert Vacareanu, Anurag Pratik, Evangelia Spiliopoulou, Zheng Qi, Giovanni Paolini, Neha Anna John, Jie Ma, Yassine Benajiba, Miguel Ballesteros

AI总结:

本文提出一种通用验证框架,通过相关性、数学准确性和逻辑一致性三条原则约束思维链推理步骤,并结合困惑度验证器筛选高质量推理链,在9个数据集上验证其优于普通生成及多数情况下的best-of N采样。

摘要:

大型语言模型(LLMs)近期展现的许多能力主要源于其利用上下文信息的能力。在本文中,我们探索通过(1)探索不同的思维链以及(2)验证推理过程中各个步骤来提升LLMs推理能力的方法。我们提出模型在推理时应遵循的三条通用原则:(i)相关性,(ii)数学准确性,以及(iii)逻辑一致性。我们将这些约束应用于LLM生成的推理步骤,以提高最终生成的准确性。这些约束以验证器的形式施加:要求模型自身验证所生成的步骤是否满足每条约束。为了进一步引导生成朝向高质量解,我们使用推理步骤的困惑度作为额外的验证器。我们在4种不同类型的推理任务上评估我们的方法,共涵盖9个不同的数据集。实验表明,我们的方法始终优于普通生成,并且在9个数据集中的6个上,优于best-of N采样——该方法采样N条推理链并选择困惑度最低的生成。

英文摘要:

Many of the recent capabilities demonstrated by Large Language Models (LLMs) arise primarily from their ability to exploit contextual information. In this paper, we explore ways to improve reasoning capabilities of LLMs through (1) exploration of different chains of thought and (2) validation of the individual steps of the reasoning process. We propose three general principles that a model should adhere to while reasoning: (i) Relevance, (ii) Mathematical Accuracy, and (iii) Logical Consistency. We apply these constraints to the reasoning steps generated by the LLM to improve the accuracy of the final generation. The constraints are applied in the form of verifiers: the model itself is asked to verify if the generated steps satisfy each constraint. To further steer the generations towards high-quality solutions, we use the perplexity of the reasoning steps as an additional verifier. We evaluate our method on 4 distinct types of reasoning tasks, spanning a total of 9 different datasets. Experiments show that our method is always better than vanilla generation, and, in 6 out of the 9 datasets, it is better than best-of N sampling which samples N reasoning chains and picks the lowest perplexity generation.

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

↑