arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.22409cs.SE
收藏

NOMAD:一种多智能体LLM系统,用于从自然语言需求生成UML类图

NOMAD: A Multi-Agent LLM System for UML Class Diagram Generation from Natural Language Requirements

University of Manchester(曼彻斯特大学)

Polydoros Giannouris, Sophia Ananiadou

AI总结:

NOMAD通过分解UML生成为多个角色专用子任务,提升可解释性并支持针对性验证。通过北风案例和人工UML练习评估,NOMAD在生成质量上优于基线模型,并揭示了细粒度属性提取的持续挑战。

摘要:

大型语言模型(LLMs)在软件工程中的应用日益增加,但其生成结构化产物如UML图的能力仍不明确。本文提出NOMAD,一种受认知启发的模块化多智能体框架,将UML生成分解为一系列角色专用的子任务。每个智能体处理不同的建模活动,如实体提取、关系分类和图合成,模拟工程师的目标导向推理过程。这种分解提高了可解释性并允许针对性验证策略。我们通过混合设计评估NOMAD:一个大型案例研究(北风)用于深入探测和错误分析,以及人工编写的UML练习用于广度和现实检验。NOMAD在所有选定的基线模型上表现更优,同时揭示了细粒度属性提取的持续挑战。基于这些观察,我们引入了第一个系统性的LLM生成UML图错误分类法,将错误分为结构、关系和语义/逻辑类别。最后,我们检验了验证作为设计探针的效果,展示了其混合影响并概述了适应性策略作为有前途的方向。这些贡献使NOMAD成为生成UML类图的有效框架,同时也成为可靠语言到模型工作流程研究挑战的透镜。

英文摘要:

Large Language Models (LLMs) are increasingly utilised in software engineering, yet their ability to generate structured artefacts such as UML diagrams remains underexplored. In this work we present NOMAD, a cognitively inspired, modular multi-agent framework that decomposes UML generation into a series of role-specialised subtasks. Each agent handles a distinct modelling activity, such as entity extraction, relationship classification, and diagram synthesis, mirroring the goal-directed reasoning processes of an engineer. This decomposition improves interpretability and allows for targeted verification strategies. We evaluate NOMAD through a mixed design: a large case study (Northwind) for in-depth probing and error analysis, and human-authored UML exercises for breadth and realism. NOMAD outperforms all selected baselines, while revealing persistent challenges in fine-grained attribute extraction. Building on these observations, we introduce the first systematic taxonomy of errors in LLM-generated UML diagrams, categorising structural, relationship, and semantic/logical. Finally, we examine verification as a design probe, showing its mixed effects and outlining adaptive strategies as promising directions. Together, these contributions position NOMAD as both an effective framework for UML class diagram generation and a lens onto the broader research challenges of reliable language-to-model workflows.

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

↑