A-ProS:通过多模型反馈实现可靠的自主编程
A-ProS: Towards Reliable Autonomous Programming Through Multi-Model Feedback
AI总结:
本文提出A-ProS,一种通过多模型反馈框架实现自主编程的AI代理,结合生成器和调试器,通过多轮反馈提升代码生成的准确性与效率,实验表明其在解决编程问题上具有显著优势。
摘要:
大型语言模型(LLMs)在自动化代码生成方面展现出强大潜力,但其通过执行反馈迭代优化解决方案的能力仍待探索。编程竞赛提供了一个理想的测试平台,因为它要求端到端的算法推理、在严格计算约束下的精确实现以及完全的功能正确性。在本文中,我们提出了A-ProS,一个通过混合多模型反馈框架解决编程竞赛问题的自主AI代理,该框架将解决方案生成与专门的调试分离。A-ProS结合基于ChatGPT的生成器(GPT-4和GPT-5)以及三个调试批评者:Codestral-2508、Llama-3.3-70B和DeepSeek-R1,在2 x 3的因子设计下进行评估。我们对367个问题进行了六种工作流程的评估,涵盖ICPC世界总决赛(2011-2024)和Codeforces(评级1200-1800)。结果表明,GPT-5工作流程在三次优化轮次后,接受的解决方案从39个提升到85-90个,而GPT-4从15个提升到31-38个。对47个问题的受控消融分析显示,具有状态的优化优于无状态方法,提高了8.5-10.6个百分点,并将重复失败减少了多达3.5倍。与基线代理循环相比,A-ProS实现了超过2倍的收益,突显了持久上下文和多模型反馈在可靠自主程序合成中的重要性。
英文摘要:
Large Language Models (LLMs) demonstrate strong potential for automated code generation, yet their ability to iteratively refine solutions using execution feedback remains underexplored. Competitive programming offers an ideal testbed for this investigation, as it demands end-to-end algorithmic reasoning, precise implementation under strict computational constraints, and complete functional correctness with rigorous evaluation. In this paper, we present A-ProS, an autonomous AI agent that solves competitive programming problems through a hybrid multi-model feedback framework separating solution generation from specialized debugging. A-ProS combines ChatGPT-based generators (GPT-4 and GPT-5) with three debugging critics: Codestral-2508, Llama-3.3-70B, and DeepSeek-R1, under a 2 x 3 factorial design. We evaluate six workflows on 367 problems from ICPC World Finals (2011-2024) and Codeforces (rated 1200-1800). The results show that GPT-5 workflows improve from 39 initial accepted solutions to 85-90 after three refinement rounds, while GPT-4 improves from 15 to 31-38. A controlled ablation on 47 problems shows that stateful refinement outperforms stateless approaches by 8.5-10.6 percentage points and reduces repeated failures by up to 3.5x. Compared to baseline agent loops, A-ProS achieves over 2x greater gains, highlighting the importance of persistent context and multi-model feedback for reliable autonomous program synthesis.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。