SCREWS:一个用于带修订推理的模块化框架
SCREWS: A Modular Framework for Reasoning with Revisions
AI总结:
本文提出模块化框架SCREWS,通过采样、条件重采样和选择三个模块统一并拓展基于修订的LLM推理方法,揭示异质修订与候选选择策略在算术、多跳问答和代码调试任务中的关键作用。
摘要:
大型语言模型(LLMs)可以通过基于反馈迭代地改进和修订其输出,来提高在各种任务上的准确性。我们观察到,这些修订可能会引入错误,在这种情况下,回滚到先前的结果会更好。此外,修订通常是同质的:它们使用与产生初始答案相同的推理方法,这可能无法纠正错误。为了在这一空间中进行探索,我们提出了SCREWS,一个用于带修订推理的模块化框架。它由三个主要模块组成:采样(Sampling)、条件重采样(Conditional Resampling)和选择(Selection),每个模块又由可以按任务手工选择的子模块组成。我们表明,SCREWS不仅在一个统一框架下统一了多种先前的方法,而且还揭示了几种用于识别改进推理链的新策略。我们使用最先进的LLMs(ChatGPT和GPT-4)在多样化的推理任务集上评估了我们的框架,并为每个任务发现了有用的新推理策略:算术文字题、多跳问答和代码调试。异质修订策略被证明是重要的,在原始候选和修订候选之间进行选择也同样重要。
英文摘要:
Large language models (LLMs) can improve their accuracy on various tasks through iteratively refining and revising their output based on feedback. We observe that these revisions can introduce errors, in which case it is better to roll back to a previous result. Further, revisions are typically homogeneous: they use the same reasoning method that produced the initial answer, which may not correct errors. To enable exploration in this space, we present SCREWS, a modular framework for reasoning with revisions. It is comprised of three main modules: Sampling, Conditional Resampling, and Selection, each consisting of sub-modules that can be hand-selected per task. We show that SCREWS not only unifies several previous approaches under a common framework, but also reveals several novel strategies for identifying improved reasoning chains. We evaluate our framework with state-of-the-art LLMs (ChatGPT and GPT-4) on a diverse set of reasoning tasks and uncover useful new reasoning strategies for each: arithmetic word problems, multi-hop question answering, and code debugging. Heterogeneous revision strategies prove to be important, as does selection between original and revised candidates.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。