arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.17167cs.SEcs.AI
收藏

QualityFlow:由LLM质量检查控制的程序合成智能体工作流

QualityFlow: An Agentic Workflow for Program Synthesis Controlled by LLM Quality Checks

Iowa State University(爱荷华州立大学);Amazon Web Services(亚马逊云科技);University of California, Irvine(加利福尼亚大学欧文分校)

Yaojie Hu, Qiang Zhou, Qihong Chen, Xiaopeng Li, Linbo Liu, Dejiao Zhang, Amit Kachroo, Talha Oz, Omer Tripp

AI总结:

QualityFlow提出一种由LLM质量检查器动态控制的智能体工作流,通过想象执行结果来指导代码生成、测试与调试,在MBPP、HumanEval等基准上取得最先进成果。

摘要:

我们引入了QualityFlow,一种用于程序合成的动态智能体工作流。给定编程问题的英文描述和一组单元测试,模型的目标是合成能解决问题并通过测试的正确程序。QualityFlow包含模拟软件开发团队的大语言模型(LLM)智能体,包括代码生成、测试和自我调试。我们提出了LLM质量检查器,它明确“想象”合成程序的执行是否符合单元测试。质量检查动态控制工作流,包括提交最终答案、澄清问题陈述和回退先前工作流步骤的操作。我们的实验表明,质量检查器能精确接受任何正确程序,减轻有缺陷的合成测试,并防止潜在的工作流偏离。QualityFlow在四个程序合成基准上建立了最先进的结果:MBPP、HumanEval,以及来自MBPP-EvalPlus和HumanEval-EvalPlus的更严格评估。

英文摘要:

We introduce QualityFlow, a dynamic agentic workflow for program synthesis. Given the English description of a programming problem and a set of unit tests, the model's goal is to synthesize the correct program that solves the problem and passes the tests. QualityFlow includes large language model (LLM) agents resembling a software development team, including code generation, testing, and self-debugging. We propose the LLM Quality Checker, which explicitly "imagines" whether the synthesized programs' execution would conform to the unit tests. The Quality Checks dynamically control the workflow, including actions to submit the final answer, clarify the problem statement, and revert previous workflow steps. Our experiments show that the Quality Checker can precisely accept any correct program, mitigate faulty synthesized tests, and prevent potential workflow deviation. QualityFlow establishes the state-of-the-art results on four program synthesis benchmarks: MBPP, HumanEval, and stricter evaluations from MBPP-EvalPlus and HumanEval-EvalPlus.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑