arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.12063cs.SEcs.AI
收藏

基于指令微调的开放权重语言模型用于BPMN模型生成

Instruction-Tuning Open-Weight Language Models for BPMN Model Generation

Boğaziçi University(博雅奇大学);Utrecht University(乌得勒支大学)

Gökberk Çelikmasat, Atay Özgövde, Fatma Başak Aydemir

AI总结:

本文提出InstruBPM,通过指令微调开放权重语言模型,以高效生成BPMN过程模型,提升结构准确性和鲁棒性,减少对重型提示的依赖。

摘要:

领域模型在软件工程中至关重要,因为它们能够促进共同理解,指导实现,并支持自动化分析和基于模型的开发。然而,尽管有这些好处,从业者往往跳过建模,因为这耗时且需要稀缺的专业知识。我们通过研究开放权重大型语言模型,经过指令微调后,能否以高效且隐私保护的方式直接从自然语言描述生成高质量的BPMN过程模型来解决这一障碍。我们介绍了InstruBPM,一种可复现的方法,该方法准备了配对的文本-图表数据,并通过参数高效微调和量化对开源大型语言模型进行指令微调,以支持本地部署。我们通过互补的视角评估微调模型:(i)使用BLEU、ROUGE-L和METEOR进行文本/代码相似性分析,(ii)使用相对图编辑距离进行结构忠实性分析,(iii)使用外部工具检查进行指南符合性分析,(iv)以及小型专家审查。使用一个多领域BPMN数据集的精选子集,我们在一致的提示制度下将微调模型与未微调的开放权重基线和强大的专有模型进行比较。我们的紧凑型微调模型在序列和结构指标上均优于所有基线,同时所需的资源显著更少;指南分析和专家反馈进一步表明,生成的图表大多遵循BPMN最佳实践,并且是有用的起点,能够减少建模工作量。总体而言,指令微调相比未微调的基线提高了结构准确性并增强了鲁棒性,并减少了对重型提示支架的依赖。我们公开分享了训练好的模型和脚本以支持可复现性和进一步的研究。

英文摘要:

Domain models are central to software engineering, as they enable a shared understanding, guide implementation, and support automated analyses and model-driven development. Yet, despite these benefits, practitioners often skip modeling because it is time-consuming and demands scarce expertise. We address this barrier by investigating whether open-weight large language models, adapted via instruction tuning, can generate high-quality BPMN process models directly from natural language descriptions in a cost-effective and privacy-preserving way. We introduce InstruBPM, a reproducible approach that prepares paired text-diagram data and instruction tunes an open source large language model with parameter-efficient fine-tuning and quantization for on-prem deployment. We evaluate the tuned model through complementary perspectives: (i) text/code similarity using BLEU, ROUGE-L, and METEOR, (ii) structural fidelity using Relative Graph Edit Distance, (iii) guidelines conformance using external tool checks, and (iv) a small expert review. Using a curated subset of a multi-domain BPMN dataset, we compare the tuned model with untuned open-weight baselines and strong proprietary models under consistent prompting regimes. Our compact tuned model outperforms all baselines across sequence and structural metrics while requiring substantially fewer resources; guideline analysis and expert feedback further indicate that the generated diagrams largely follow BPMN best practices and are useful starting points that reduce modeling effort. Overall, instruction tuning improves structural accuracy and robustness compared to untuned baselines and reduces reliance on heavy prompt scaffolding. We publicly share the trained models and scripts to support reproducibility and further research.

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

↑