A two-stage pipeline that first reads a sketch into a code-agnostic intermediate representation doubles VLM success at generating verified multibody simulation code, from 24% to 48%, but still halves the 95% achieved from text.
| overall success (%) | ||||
| VLM | naive + text | naive | IR | IR + text |
| Qwen3-VL-32B-Instruct | 94.8 | 30.4 | 76.5 | 88.7 |
| Qwen3.5-27B | 47.8 | 1.7 | 75.7 | 92.2 |
| Qwen3.6-27B | 99.1 | 66.1 | 68.7 | 86.1 |
| gemma-4-31B-it | 100.0 | 74.8 | 67.0 | 87.0 |
| Qwen3.5-9B | 81.7 | 20.0 | 64.3 | 87.8 |
| Qwen3-VL-8B-Instruct | 68.7 | 6.1 | 56.5 | 93.0 |
| Ministral-3-8B-Instruct-2512 | 78.3 | 15.7 | 44.3 | 75.7 |
| Qwen2.5-VL-32B-Instruct | 87.0 | 38.3 | 43.5 | 70.4 |
| Ministral-3-14B-Instruct-2512 | 67.8 | 18.3 | 37.4 | 81.7 |
| gemma-3-27b-it | 85.2 | 14.8 | 24.3 | 77.4 |
| Qwen2.5-VL-7B-Instruct | 31.3 | 0.9 | 17.4 | 67.8 |
| gemma-3-4b-it | 0.9 | 0.0 | 0.9 | 30.4 |
| mean | 70.2 | 23.9 | 48.0 | 78.2 |
| text-only baseline (no VLM): 94.8% | ||||
Going deeper

Imagine you show a mechanic a quick sketch of a contraption—masses on springs, a pendulum, a four-bar linkage—and ask them to build a computer simulation of it. If you describe it in words, the computer gets it right 95 times out of 100. But if you hand it the drawing alone, it stumbles to about 24 out of 100.
The fix is like giving the mechanic a parts checklist before they start reading the drawing. First, circle which kinds of parts are in the picture—springs? joints? rigid bars?—then fill in a standard form with the values. That checklist doubles the success to 48 out of 100. The structured form keeps the reading step separate from the building step, so you can tell which one went wrong.
The catch: 48 out of 100 still means more than half the sketches fail, and the failures are almost all in misreading the drawing—getting the wrong connections or the wrong numbers—not in writing bad code. The computer can build correctly from a good description; it just cannot read the picture well enough yet.
The abstract, word for word, with the seven densest phrases unpacked.
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 representation1 of the sketched mechanical model doubles the success rate of simulation code generation compared to direct code generation2 by the VLM (48.0% vs. 23.9%3). 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%4, 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 sketch5. Error classification and robustness tests to scaling and rotation locate the remaining failures in reading the drawing rather than in code generation6. The pipeline transfers to hand-drawn sketches7. Turning an engineer’s sketch directly into a verified dynamic simulation opens a route to automating model creation in computational mechanics.
Two lines converge: generating simulation code from text with LLMs, and extending LLMs to visual input.
Read four parts, in this order.
Skip Section 2 if you know VLM architectures and LLM-for-engineering work.
If the 48% claim is weaker than it looks, check these places.

| pipeline | generated sketches | set A | set B | set C |
|---|---|---|---|---|
| naive | 2/8 | 2/8 | 2/8 | 2/8 |
| naive + text | 8/8 | 7/8 | 7/8 | 7/8 |
| IR | 7/8 | 8/8 | 6/8 | 7/8 |
| IR + text | 8/8 | 7/8 | 8/8 | 8/8 |
Fig. 4 shows the overall success of IR and naive + text under down-scaling and rotation. For IR, success stays near 59% from 0.9× to 0.7×, falls measurably below 0.6×, and reaches 33.9% at 0.3×, 18.5% at 0.25× and 4.1% at 0.2× (between 0 and 10.4% for the individual VLM), where the sketch measures 218×146 pixels and its annotations are no longer legible. Rotation degrades IR symmetrically beyond ±10circ, from 57.6% upright to 30.7% at -45circ and 28.7% at +45circ (individual VLM: 3.5 – 48.7% and 5.2 – 52.2%), and matched angles agree within 2 PP in the mean. Naive + text is unaffected by both and stays between 83.9% and 89.3% under scaling and between 85.7% and 88.0% under rotation. Perception of the drawing is thus load-bearing only where the drawing is the sole source of the mechanical model.
Nothing on this page was recomputed. Every claim points to the paper so you can check it.
During the preparation of this work the authors used Anthropic’s Claude Opus and OpenAI’s GPT-6 in order to improve language, check spelling and translate. After using this tool/service, the authors reviewed and edited the content as needed and take full responsibility for the content of the published article.
More latest news
Read all