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

先感知后仿真:基于视觉语言模型的多体仿真代码草图生成

Perception Before Simulation: Sketch-Based Generation of Multibody Simulation Code With Vision Language Models

University of Innsbruck(因斯布鲁克大学);University of Augsburg(奥格斯堡大学)

Tobias Möltner, Peter Manzl, Sebastian Weyrer, Michael Pieber

AI总结:

本研究探究视觉语言模型(VLMs)能否从机械模型草图生成多体仿真代码,提出两阶段流程使成功率翻倍,且可迁移到手绘草图,为计算力学模型自动化创建提供新途径。

摘要:

大型语言模型(LLMs)可从文本描述生成多体仿真模型,但对于复杂机械系统,这些描述会变得冗长且易出错,而草图能紧凑地传达相同的机械系统。本研究探究视觉语言模型(VLMs)是否能直接从机械模型草图生成物理正确的多体仿真代码。在自动化闭环基准测试中,23个参数化机械模型被渲染为带注释的草图,每个生成的仿真模型都通过可执行性、图同构性、参数及轨迹一致性与真实值进行验证。在12个开放权重VLMs中,一种先提取草图机械模型的与代码无关的中间表示的两阶段流程,使仿真代码生成的成功率相比VLM直接生成代码提高了一倍(48.0% vs. 23.9%)。在通过单个编码LLM固定代码生成(仅感知方式变化)的情况下,用草图替代文本描述使成功率从94.8%降至48.0%,若文本描述与草图一同提供则成功率为78.2%。消融实验表明,性能提升源于预先选择草图中显示的元素类型。错误分类及缩放、旋转的鲁棒性测试显示,剩余失败源于绘图读取而非代码生成。该流程可迁移到手绘草图,将工程师的草图直接转化为已验证的动态仿真,为计算力学中的模型创建自动化开辟了一条途径。

英文摘要:

Large language models (LLMs) can generate multibody simulation models from textual descriptions, but for complex mechanical systems these descriptions become lengthy and error-prone, whereas a sketch conveys the same mechanical system compactly. This study investigates whether Vision Language Models (VLMs) can generate physically correct multibody simulation code directly from sketches of mechanical models. In an automated closed-loop benchmark, 23 parameterized mechanical models are rendered as annotated sketches, and every generated simulation model is verified against ground truth by executability, graph isomorphism, and parameter and trajectory agreement. Across 12 open-weight VLMs, a two-stage pipeline that first extracts a code-agnostic intermediate representation of the sketched mechanical model doubles the success rate of simulation code generation compared to direct code generation by the VLM (48.0% vs. 23.9%). With code generation held fixed by a single coder LLM, so that only perception varies, replacing the textual description with a sketch lowers success from 94.8% to 48.0%, and to 78.2% when the textual description accompanies the sketch. An ablation attributes the gain to pre-selecting the element types shown in the sketch. Error classification and robustness tests to scaling and rotation locate the remaining failures in reading the drawing rather than in code generation. The pipeline transfers to hand-drawn sketches. Turning an engineer's sketch directly into a verified dynamic simulation opens a route to automating model creation in computational mechanics.

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

↑