MARTI-MARS$^2$:通过强化学习实现多智能体自搜索的扩展用于代码生成
MARTI-MARS$^2$: Scaling Multi-Agent Self-Search via Reinforcement Learning for Code Generation
AI总结:
MARTI-MARS2通过多智能体强化学习实现代码生成的扩展,突破单智能体限制,提升性能和多样性。
摘要:
尽管大型语言模型(LLMs)复杂的推理能力引起了广泛关注,但单智能体系统在复杂任务如代码生成中常常面临固有的性能极限。多智能体协作提供了一个突破这些界限的有前途的途径。然而,现有框架通常依赖于基于提示的测试时间交互或使用同质参数训练的多角色配置,限制了错误纠正能力和战略多样性。在本文中,我们提出了一种多智能体强化训练和推理框架,称为MARTI-MARS2,通过将多智能体协作探索过程建模为动态且可学习的环境,将策略学习与多智能体树搜索相结合。通过允许智能体在环境中迭代探索和细化,该框架促进了从参数共享的同质多角色训练到异质多智能体训练的演变,突破了单智能体能力的限制。我们还引入了一种高效的推理策略MARTI-MARS2-T+,以充分利用多智能体协作在测试时间的扩展潜力。我们在各种模型规模(8B、14B和32B)上进行了广泛的实验,测试了具有挑战性的代码生成基准。利用两个协作的32B模型,MARTI-MARS2实现了77.7%,优于强大的基线模型如GPT-5.1。此外,MARTI-MARS2揭示了一种新的扩展定律:从单智能体到同质多角色,最终到异质多智能体范式,逐步产生更高的强化学习性能上限、更稳健的文本生成能力以及更大的策略多样性,表明策略多样性对于通过多智能体强化学习扩展智能至关重要。
英文摘要:
While the complex reasoning capability of Large Language Models (LLMs) has attracted significant attention, single-agent systems often encounter inherent performance ceilings in complex tasks such as code generation. Multi-agent collaboration offers a promising avenue to transcend these boundaries. However, existing frameworks typically rely on prompt-based test-time interactions or multi-role configurations trained with homogeneous parameters, limiting error correction capabilities and strategic diversity. In this paper, we propose a Multi-Agent Reinforced Training and Inference Framework with Self-Search Scaling (MARTI-MARS2), which integrates policy learning with multi-agent tree search by formulating the multi-agent collaborative exploration process as a dynamic and learnable environment. By allowing agents to iteratively explore and refine within the environment, the framework facilitates evolution from parameter-sharing homogeneous multi-role training to heterogeneous multi-agent training, breaking through single-agent capability limits. We also introduce an efficient inference strategy MARTI-MARS2-T+ to fully exploit the scaling potential of multi-agent collaboration at test time. We conduct extensive experiments across varied model scales (8B, 14B, and 32B) on challenging code generation benchmarks. Utilizing two collaborating 32B models, MARTI-MARS2 achieves 77.7%, outperforming strong baselines like GPT-5.1. Furthermore, MARTI-MARS2 reveals a novel scaling law: shifting from single-agent to homogeneous multi-role and ultimately to heterogeneous multi-agent paradigms progressively yields higher RL performance ceilings, robust TTS capabilities, and greater policy diversity, suggesting that policy diversity is critical for scaling intelligence via multi-agent reinforcement learning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。