paperbot · PL 论文追踪

全部论文 待读 收藏

P2 SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents

SOEN-101:使用大语言模型智能体模拟软件过程模型进行代码生成
ICSE 2025 IEEE/ACM 47th International Conference on Software Engineering (ICSE)2025匹配度 2/10 · 该论文用多个 LLM Agent 模拟软件过程模型来生成代码,属于 LLM 多智能体代码生成方向,既不做静态分析/形式化验证,也不分析 Agentic 程序本身,与研究画像的核心问题(PL↔AI 交叉、浮点与贝叶斯程序分析)基本无交集。且其底层模型为 GPT-3.5、评测集中在 HumanEval/MBPP 等成熟基准上追求 Pass@1 提升,与用户偏好(强模型、问题驱动、工业落地或新场景 benchmark)不符。引用 15 inbox
Feng Lin, Dong Jae Kim, Tse-Hsun Chen
crossref: 2026-09-12

AI 速览

一句话:提出 FlowGen,用多个 LLM 智能体模拟瀑布、TDD 与 Scrum 过程模型协同生成代码,Scrum 变体在四个基准上较 RawGPT 平均提升约 15%。

软件过程模型有助于团队协作完成复杂开发任务。本文提出 FlowGen——用多个 LLM 智能体模拟 Waterfall、TDD 与 Scrum 软件过程模型的代码生成框架:智能体扮演需求、架构、开发、测试与 Scrum Master 等角色并按开发活动通信,协同生成代码。作者以 GPT-3.5 为底座,在 HumanEval、MBPP 及 ET 变体上与 RawGPT、CodeT、Reflexion 对比。FlowGen_Scrum 最优,Pass@1 为 75.2、65.5、82.5、56.7,较 RawGPT 平均提升约 15%,MBPP 上优于 CodeT,与 CodeT 结合可再提升;设计与评审可增异常处理、减代码坏味。

问题
如何借助软件过程模型组织多个 LLM 智能体协作,以提升 LLM 代码生成的质量与稳定性。
方法
提出 FlowGen 框架,将 LLM 智能体分配为需求工程师、架构师、开发者、测试者与 Scrum Master 等角色,按 Waterfall、TDD 与 Scrum 三种过程模型组织通信,并结合思维链、提示组合与持续自精化协同生成代码。
评估
以 GPT-3.5 为底座,在 HumanEval、HumanEval-ET、MBPP 与 MBPP-ET 四个基准上与 RawGPT、CodeT、Reflexion 对比,并分析不同开发活动对代码坏味与异常处理的影响,以及在不同 GPT-3.5 版本与温度下的 Pass@1 稳定性。
原文摘要(Abstract)

Software process models are essential to facilitate collaboration and communication among software teams to solve complex development tasks. Inspired by these software engineering practices, we present FlowGen - a code generation framework that emulates software process models based on multiple Large Language Model (LLM) agents. We emulate three process models, FlowGenWaterfall, FlowGenTDD, and FlowGenScrum, by assigning LLM agents to embody roles (i.e., requirement engineer, architect, developer, tester, and scrum master) that correspond to everyday development activities and organize their communication patterns. The agents work collaboratively using chain-of-thought and prompt composition with continuous selfrefinement to improve the code quality. We use GPT3.5 as our underlying LLM and several baselines (RawGPT, CodeT, Reflexion) to evaluate code generation on four benchmarks: HumanEval, HumanEval-ET, MBPP, and MBPP-ET. Our findings show that FlowGenScrumexcels compared to other process models, achieving a Pass@1 of 75.2, 65.5, 82.5, and 56.7 in HumanEval, HumanEval-ET, MBPP, and MBPP-ET, respectively (an average of 15% improvement overRawGPT). Compared with other state-of-the-art techniques, FlowGenScrumachieves a higher Pass@1 in MBPP compared to CodeT, with both outperforming Reflexion. Notably, integrating CodeT into FlowGenScrumresulted in statistically significant improvements, achieving the highest Pass@1 scores. Our analysis also reveals that the development activities impacted code smell and exception handling differently, with design and code review adding more exception handling and reducing code smells. Finally, FlowGen models maintain stable Pass@1 scores across GPT3.5 versions and temperature values, highlighting the effectiveness of software process models in enhancing the quality and stability of LLM-generated code.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot8771,
  title = {SOEN-101: Code Generation by Emulating Software Process Models Using Large Language Model Agents},
  author = {Feng Lin and Dong Jae Kim and Tse-Hsun Chen},
  booktitle = {ICSE},
  year = {2025},
  doi = {10.1109/icse55347.2025.00140}
}