像工程师一样思考:一种用于生成式软件需求获取与自评审的神经-符号协作智能体
Think Like an Engineer: A Neuro-Symbolic Collaboration Agent for Generative Software Requirements Elicitation and Self-Review
AI总结:
本文提出 RequireCEG 智能体,通过神经-符号协作架构结合因果效应图,分层分析用户叙述、构建自修复 CEGs 并优化 Gherkin 场景,在 RGPair 数据集上实现 87% 覆盖率和 51.88% 多样性提升。
摘要:
最终用户软件工程(EUSE)的愿景是赋予非专业用户对软件开发生命周期的完全控制权。它旨在使用户能够仅通过自然语言需求来驱动生成式软件开发。然而,由于最终用户往往缺乏软件工程知识,他们的需求描述经常含糊不清,给生成式软件开发带来了重大挑战。尽管现有方法利用像 Gherkin 这样的结构化语言来澄清用户叙述,但它们仍然难以表达前置条件与行为动作之间的因果逻辑。本文介绍了 RequireCEG,一种将因果效应图(CEGs)嵌入神经-符号协作架构的需求获取与自评审智能体。RequireCEG 首先使用特征树对用户叙述进行分层分析,清晰界定软件组件的范围及其系统行为需求。接着,它基于所获取的需求构建自修复的 CEGs,捕获原子前置条件与行为动作之间的因果关系。最后,所构建的 CEGs 被用于评审和优化 Gherkin 场景,确保生成的 Gherkin 需求与从用户叙述中获取的系统行为需求之间的一致性。为评估我们的方法,我们创建了 RGPair 基准数据集并进行了大量实验。该方法实现了 87% 的覆盖率,并将多样性提升了 51.88%。
英文摘要:
The vision of End-User Software Engineering (EUSE) is to empower non-professional users with full control over the software development lifecycle. It aims to enable users to drive generative software development using only natural language requirements. However, since end-users often lack knowledge of software engineering, their requirement descriptions are frequently ambiguous, raising significant challenges to generative software development. Although existing approaches utilize structured languages like Gherkin to clarify user narratives, they still struggle to express the causal logic between preconditions and behavior actions. This paper introduces RequireCEG, a requirement elicitation and self-review agent that embeds causal-effect graphs (CEGs) in a neuro-symbolic collaboration architecture. RequireCEG first uses a feature tree to analyze user narratives hierarchically, clearly defining the scope of software components and their system behavior requirements. Next, it constructs the self-healing CEGs based on the elicited requirements, capturing the causal relationships between atomic preconditions and behavioral actions. Finally, the constructed CEGs are used to review and optimize Gherkin scenarios, ensuring consistency between the generated Gherkin requirements and the system behavior requirements elicited from user narratives. To evaluate our method, we created the RGPair benchmark dataset and conducted extensive experiments. It achieves an 87% coverage rate and raises diversity by 51.88%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。