PRIME:基于策略强化的迭代多智能体执行框架用于大语言模型中的算法推理
PRIME: Policy-Reinforced Iterative Multi-agent Execution for Algorithmic Reasoning in Large Language Models
AI总结:
PRIME通过多智能体框架提升大语言模型在算法推理中的性能,显著提高复杂任务的准确率。
摘要:
大型语言模型在多样化的推理任务中展示了显著的能力,但其在算法推理中的表现仍然有限。为解决这一限制,我们提出了PRIME(Policy-Reinforced Iterative Multi-agent Execution),一个包含三个专门智能体的框架,包括用于逐步推理的执行器、用于约束检查的验证器以及用于回溯控制的协调器,通过群体相对策略优化进行优化。为了全面评估,我们引入了PRIME-Bench,目前最大的算法推理基准,包含86个任务,覆盖12个类别,共有51,600个实例。任务涵盖排序算法、图和树结构、自动机和状态机、符号推理以及基于约束的谜题,执行轨迹达到一百万步以上。与基线方法相比,PRIME将平均准确率从26.8%提升到93.8%,提升幅度达250%。最大的改进出现在需要持续状态跟踪的任务上,图灵机模拟从9%提升到92%,长除法从16%提升到94%。消融研究发现,迭代验证是主要贡献者,防止了基线方法中因错误传播而导致的灾难性失败。在不同模型规模(8B-120B参数)上的分析显示,较小的模型受益显著,其准确性可与8倍大的模型相媲美。
英文摘要:
Large language models have demonstrated remarkable capabilities across diverse reasoning tasks, yet their performance on algorithmic reasoning remains limited. To handle this limitation, we propose PRIME (Policy-Reinforced Iterative Multi-agent Execution), a framework comprising three specialized agents, an executor for step-by-step reasoning, a verifier for constraint checking, and a coordinator for backtracking control, optimized through group relative policy optimization. For comprehensive evaluation, we introduce PRIME-Bench, the largest algorithmic reasoning benchmark to date, comprising 86 tasks across 12 categories with 51,600 instances. Tasks span sorting algorithms, graph and tree structures, automata and state machines, symbolic reasoning, and constraint-based puzzles, with execution traces reaching over one million steps. Compared to baseline approach, PRIME improves average accuracy from 26.8% to 93.8%, a 250% relative gain. The largest improvements occur on tasks requiring sustained state tracking, with Turing machine simulation improving from 9% to 92% and long division from 16% to 94%. Ablation studies identify iterative verification as the primary contributor, preventing the error propagation that causes baseline approaches to fail catastrophically. Analysis across model scales (8B-120B parameters) reveals that smaller models benefit disproportionately, achieving accuracy comparable to models 8x larger.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。