arXiv:2603.23482cs.SEcs.AI2026-03中稿 · VerifAI-2026 Works…

用多模型协作自动分析软件需求,准确率超人工78%。

ReqFusion: A Multi-Provider Framework for Automated PEGS Analysis Across Software Domains

  • 融合三类大模型,按PEGS框架提取需求
  • F1达0.88,较通用提示提升24%
  • 适合需快速生成需求的开发与投标场景

需求工程是软件开发中关键但耗时的环节。本文提出ReqFusion:一个基于多大语言模型(LLM)的自动化系统,可从学术、工业及招标文档(PDF、DOCX、PPTX)中提取、分类并分析软件需求。该系统集成OpenAI GPT、Anthropic Claude与Groq模型,采用领域无关的提取方法,遵循Bertrand Meyer提出的项目-环境-目标-系统(PEGS)框架。因PEGS提供详细上下文,模型表现更优:消融实验显示,使用PEGS引导提示的F1分数为0.88,高于通用提示的0.71。在18份真实文档上共生成226条需求,其中54.9%为功能性,45.1%为非功能性。对五个项目进行扩展评估,共处理1,050条需求,准确率显著提升,分析时间减少78%。多提供商架构通过模型共识与备用机制增强可靠性,PEGS方法确保需求类别全覆盖。

原文摘要 · Abstract (English)

Requirements engineering is a vital, yet labor-intensive, stage in the software development process. This article introduces ReqFusion: an AI-enhanced system that automates the extraction, classification, and analysis of software requirements utilizing multiple Large Language Model (LLM) providers. The architecture of ReqFusion integrates OpenAI GPT, Anthropic Claude, and Groq models to extract functional and non-functional requirements from various documentation formats (PDF, DOCX, and PPTX) in academic, industrial, and tender proposal contexts. The system uses a domain-independent extraction method and generates requirements following the Project, Environment, Goal, and System (PEGS) approach introduced by Bertrand Meyer. The main idea is that, because the PEGS format is detailed, LLMs have more information and cues about the requirements, producing better results than a simple generic request. An ablation study confirms this hypothesis: PEGS-guided prompting achieves an F1 score of 0.88, compared to 0.71 for generic prompting under the same multi-provider configuration. The evaluation used 18 real-world documents to generate 226 requirements through automated classification, with 54.9% functional and 45.1% nonfunctional across academic, business, and technical domains. An extended evaluation on five projects with 1,050 requirements demonstrated significant improvements in extraction accuracy and a 78% reduction in analysis time compared to manual methods. The multi-provider architecture enhances reliability through model consensus and fallback mechanisms, while the PEGS-based approach ensures comprehensive coverage of all requirement categories.

需求工程大模型应用自动化分析

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。