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

GRACE: 基于判别器的链式推理

GRACE: Discriminator-Guided Chain-of-Thought Reasoning

University of Michigan(密歇根大学);LG AI Research(LG人工智能研究);University of Illinois at Chicago(伊利诺伊大学香槟分校)

Muhammad Khalifa, Lajanugen Logeswaran, Moontae Lee, Honglak Lee, Lu Wang

AI总结:

GRACE通过引入判别器引导链式推理,有效提升多步推理任务中答案的准确性和中间推理的正确性。

摘要:

在多步推理的背景下,例如链式推理中,语言模型(LMs)很容易为错误步骤分配高似然度。因此,优化解决方案似然度的解码策略往往会产生错误的解决方案。为了解决这个问题,我们提出了Guiding chain-of-thought ReAsoning with a CorrectnEss Discriminator(GRACE),一种分步解码方法,它引导解码过程产生正确的推理步骤。GRACE采用一个在正确和错误步骤上使用对比损失训练的步骤级验证器或判别器,在解码过程中根据正确性对下一步候选者进行评分。重要的是,GRACE仅需要从LM进行采样,而无需LM的训练或微调。使用来自FLAN-T5和LLaMA家族的模型,我们在四个数学和两个符号推理任务上评估了GRACE,结果显示在大多数情况下,其性能优于贪婪解码、验证器和自一致性方法。当进一步结合自一致性时,GRACE在所有基线方法上都取得了显著的优势。人类和LLM对GSM8K的评估显示,GRACE不仅提高了最终答案的准确性,还提高了中间推理的正确性。我们的实现可在https://github.com/mukhal/grace上获取。

英文摘要:

In the context of multi-step reasoning, e.g., with chain-of-thought, language models (LMs) can easily assign a high likelihood to incorrect steps. As a result, decoding strategies that optimize for solution likelihood often yield incorrect solutions. To address this issue, we propose Guiding chain-of-thought ReAsoning with a CorrectnEss Discriminator (GRACE), a stepwise decoding approach that steers the decoding process towards producing correct reasoning steps. GRACE employs a step-level verifier or discriminator trained with a contrastive loss over correct and incorrect steps, which is used during decoding to score next-step candidates based on their correctness. Importantly, GRACE only requires sampling from the LM, without the need for LM training or fine-tuning. Using models from FLAN-T5 and LLaMA families, we evaluate GRACE over four math and two symbolic reasoning tasks, where it exhibits substantial performance gains compared to greedy decoding, verifiers, and self-consistency in most settings. When further combined with self-consistency, GRACE outperforms all the baselines by sizeable margins. Human and LLM evaluations over GSM8K show that GRACE not only improves the final answer accuracy but also the correctness of the intermediate reasoning. Our implementation can be accessed at https://github.com/mukhal/grace.

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

↑