arXiv:2409.12147cs.CL2024-09EMNLP被引 47

用多智能体迭代精炼提升大模型推理,少样本也能更准

MAgICoRe: Multi-Agent, Iterative, Coarse-to-Fine Refinement for Reasoning

  • 分难易问题:简单题粗粒度聚合,难题用多智能体逐步优化
  • 一次迭代比自洽法高3.4%,用样本不到一半却越改越准
  • 引入奖励模型定位错误,三智能体协作让纠错更精准

大语言模型的推理可通过测试时聚合策略(生成多个答案后投票)提升,但性能易达瓶颈。精炼方法则通过模型生成反馈改进解题质量,却面临三大挑战:(1) 过度精炼:统一精炼所有实例可能过矫正,降低整体表现;(2) 错误定位能力弱:模型难以识别并修正自身错误;(3) 精炼不足:迭代次数难定,过早停止会遗漏错误。为此,我们提出MAgICoRe,通过分类问题难度区分处理:简单题采用粗粒度聚合,难题则使用细粒度、迭代式的多智能体精炼。为增强错误定位,引入逐步奖励模型(RM)评分;设计三智能体循环:求解者(Solver)、评审者(Reviewer,基于步骤级RM评分生成针对性反馈)、精炼者(Refiner,融合反馈改进答案)。为确保充分精炼,持续重新评估更新后的解,触发新一轮迭代。在Llama-3-8B和GPT-3.5上评估,覆盖5个数学数据集。仅一次迭代即超越Self-Consistency(+3.4%)、Best-of-k(+3.2%)和Self-Refine(+4.0%),且样本量不足其一半。与基线迭代精炼不同,MAgICoRe随迭代次数增加持续提升。消融实验表明奖励模型与多智能体通信至关重要。

原文摘要 · Abstract (English)

Large Language Models' (LLM) reasoning can be improved using test-time aggregation strategies, i.e., generating multiple samples and voting among generated samples. While these improve performance, they often reach a saturation point. Refinement offers an alternative by using LLM-generated feedback to improve solution quality. However, refinement introduces 3 key challenges: (1) Excessive refinement: Uniformly refining all instances can over-correct and reduce the overall performance. (2) Inability to localize and address errors: LLMs have a limited ability to self-correct and struggle to identify and correct their own mistakes. (3) Insufficient refinement: Deciding how many iterations of refinement are needed is non-trivial, and stopping too soon could leave errors unaddressed. To tackle these issues, we propose MAgICoRe, which avoids excessive refinement by categorizing problem difficulty as easy or hard, solving easy problems with coarse-grained aggregation and hard ones with fine-grained and iterative multi-agent refinement. To improve error localization, we incorporate external step-wise reward model (RM) scores. Moreover, to ensure effective refinement, we employ a multi-agent loop with three agents: Solver, Reviewer (which generates targeted feedback based on step-wise RM scores), and the Refiner (which incorporates feedback). To ensure sufficient refinement, we re-evaluate updated solutions, iteratively initiating further rounds of refinement. We evaluate MAgICoRe on Llama-3-8B and GPT-3.5 and show its effectiveness across 5 math datasets. Even one iteration of MAgICoRe beats Self-Consistency by 3.4%, Best-of-k by 3.2%, and Self-Refine by 4.0% while using less than half the samples. Unlike iterative refinement with baselines, MAgICoRe continues to improve with more iterations. Finally, our ablations highlight the importance of MAgICoRe's RMs and multi-agent communication.

大模型推理多智能体迭代优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。