用心智理论让AI理解开发者意图,自动优化需求
Towards Conversational Development Environments: Using Theory-of-Mind and Multi-Agent Architectures for Requirements Refinement
- 构建具备心智理论的多智能体系统,模拟开发人员心理状态
- 在150个场景中准确提炼需求并生成可执行步骤
- 适合需要精准需求转化的AI辅助开发团队
基础模型(FMs)在自然语言任务中表现优异,但在准确捕捉利益相关者需求方面仍面临挑战。本文提出一种名为AlignMind的FM驱动多智能体系统,通过赋予模型心智理论能力,考虑软件开发者的心理状态与视角。该方法能迭代澄清利益相关者的信念、欲望和意图,将这些转化为精炼的需求规范与可操作的自然语言工作流程,填补了软件工程中常被忽视的需求细化阶段空白。在涵盖150种多样用例的多维度评估中,本方法成功准确捕捉利益相关者意图,并将其表达为具体规格说明与分步行动方案。研究结果表明,该方法显著提升开发效率,为构建以意图为核心的未来开发环境奠定基础,使开发者能与AI无缝协作,实现真正契合需求的软件构建。
原文摘要 · Abstract (English)
Foundation Models (FMs) have shown remarkable capabilities in various natural language tasks. However, their ability to accurately capture stakeholder requirements remains a significant challenge for using FMs for software development. This paper introduces a novel approach that leverages an FM-powered multi-agent system called AlignMind to address this issue. By having a cognitive architecture that enhances FMs with Theory-of-Mind capabilities, our approach considers the mental states and perspectives of software makers. This allows our solution to iteratively clarify the beliefs, desires, and intentions of stakeholders, translating these into a set of refined requirements and a corresponding actionable natural language workflow in the often-overlooked requirements refinement phase of software engineering, which is crucial after initial elicitation. Through a multifaceted evaluation covering 150 diverse use cases, we demonstrate that our approach can accurately capture the intents and requirements of stakeholders, articulating them as both specifications and a step-by-step plan of action. Our findings suggest that the potential for significant improvements in the software development process justifies these investments. Our work lays the groundwork for future innovation in building intent-first development environments, where software makers can seamlessly collaborate with AIs to create software that truly meets their needs.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。