用AI把排队网络图转为可验证的仿真模型,无需编程也能保证结果可靠。
Generative Artificial Intelligence (GenAI) to convert images of queuing networks into verifiable simulation models: an open-weight LLM workflow approach

- 通过三阶段流程将图纸转为结构化数据,中间可检查验证。
- 在8个不同复杂度的图上测试,结果与人工编码和理论值无显著差异。
- 适合没有编程基础的研究者,提升仿真的可复现性与透明度。
现有研究尝试用大语言模型(LLM)自动构建仿真模型,通常直接从自然语言生成可执行代码,但存在验证难、复现性差的问题,尤其对非编程用户。本文提出Sketch2DES工作流,利用开源大模型将排队网络的图示转化为可验证的离散事件仿真模型。该流程分三步:(1) 使用多模态大模型将图纸转为半结构化文本;(2) 通过带反思验证循环的模型将文本转为符合模式的结构化数据(JSON);(3) 通过软件适配器确定性转换为可执行仿真模型。中间产物可审查并自动验证。我们在8个不同复杂度的排队网络图上评估该方法,各阶段均表现高可靠性,结果与人工编码及分析基准无统计差异。相比直接代码生成,该方法显著提升复现性、透明度与可验证性,降低编程门槛。局限在于模型覆盖范围有限,且依赖视觉理解准确性。结果证明,基于结构化工作流的模型生成是大模型辅助仿真建模的稳健基础。
原文摘要 · Abstract (English)
Recent work has explored the use of Large Language Models (LLMs) to automate simulation model building, typically by generating executable code directly from natural language descriptions. However, this raises challenges for verification and reproducibility particularly for users without programming expertise. We propose Sketch2DES, a sketch-to-simulation workflow that converts diagrammatic representations of queuing networks into verifiable discrete-event simulation models using open-weight LLMs. The workflow has three stages: (1) translation of a diagram into a semi-structured textual description using a multimodal LLM; (2) conversion into schema-validated structured data (JSON) via an LLM with a reflection-based verification loop; and (3) deterministic transformation into an executable simulation model using a software adapter. Intermediate artefacts can therefore be inspected and automatically validated before execution. We evaluate the approach on eight queuing-network diagrams of varying complexity. The workflow achieved high reliability for all stages, and results were statistically indistinguishable from human-coded and analytical benchmarks. Compared to direct code generation, the workflow improves reproducibility, transparency, and verifiability, while reducing the need for programming expertise. Limitations include restricted model scope and dependence on accurate visual interpretation. The results demonstrate the feasibility of structured, workflow-based model generation as a robust foundation for LLM-assisted simulation modelling.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。