Evaluating Multimodal LLMs for Graphic Reconstruction: A Practical Framework
This article breaks down how multimodal large language models reconstruct graphics from images and why the task is harder than a simple format conversion. It covers four sub-tasks that must be validated separately, a three-layer evaluation framework, prompt and workflow design recommendations, and the practical constraints of running such a pipeline in production. Readers will learn which metrics to use and how to build a regression set for repeatable model comparisons.
1. The Starting Point: Why “See an Image, Draw an Image” Is Harder Than It Looks
In engineering practice, converting a schematic into a compilable vector graphic description looks like a simple format conversion. In reality, it is a full pipeline that spans perception, reasoning, and generation. The model must first identify which geometric objects exist in the image, then infer the 3D structures they correspond to under a 2D projection, then handle occlusion and layer stacking, and finally serialize the result into coordinates, paths, solid and dashed line types, fill regions, and drawing order. A failure at any stage produces misalignment, missing edges, or reversed front-to-back ordering in the final output.
Recent industry discussion about an “internal test of an intermediate version” reflects the same underlying point: multimodal models are iterating quickly on structured graphic generation, but capability assessment cannot rely on how a single image looks. It has to measure stability under complex topology.
2. Capability Breakdown: Four Sub-Tasks That Must Be Validated Separately
2.1 2D-to-3D Structure Reconstruction
The model must infer the projection rules of common solids such as cubes, cylinders, and truncated prisms, including which edges are visible outlines and which are hidden edges that are occluded. For evaluation, prepare samples from different viewpoints such as front view, side view, and cavalier oblique projection, and check whether the model draws visible edges as solid lines and hidden edges as dashed lines.
2.2 Occlusion and Front-to-Back Ordering
Occlusion is the stage with the highest error rate. It helps to construct samples such as “a small cube in front of a large cube” or “a cylinder passing through a plate,” then check whether the model produces the correct drawing order instead of laying out all primitives flat.
2.3 Layer and Group Semantics
Complex schematics often contain axes, annotation text, legends, and auxiliary lines. The model needs to distinguish primary primitives from附属 elements and avoid misclassifying an annotation arrow as a geometric edge.
2.4 Target Language Syntax Compliance
If the output is not a strict enough markup language, the compilation stage will fail. So beyond visual similarity, you also need hard metrics such as syntax error rate, undefined variables, and path closure failures.
3. A Practical Evaluation Framework
Split the evaluation into three layers and narrow down problems layer by layer:
L1 Syntax layer: whether it compiles successfully in a parserL2 Structure layer: whether primitive count, type, and coordinate magnitude matchL3 Semantic layer: whether occlusion order, solid/dashed lines, and fill regions are consistent
For metrics, combine “compile pass rate + primitive recall + order consistency rate” to avoid the misjudgments caused by a single similarity score. Sample the same prompt multiple times and observe output variance; excessive variance indicates insufficient stability.
4. Prompt and Workflow Design Recommendations
- Have the model first output a structured intermediate representation (object list, hierarchy), then generate the target code. This can significantly reduce ordering errors.
- Explicitly constrain line-type semantics and drawing order rules in the prompt, for example: “use dashed lines for occluded edges; later-drawn elements cover earlier ones.”
- Introduce two-stage validation: the first stage generates, the second stage has the model self-check syntax and occlusion conflicts and correct them.
- Build a regression set from failed samples and run it on every model version update to form a comparable capability curve.
5. Real-World Constraints in Production
In real business scenarios, this capability is rarely used on its own. It is usually embedded in a larger pipeline: image preprocessing, structured extraction, code generation, compile and render, and manual spot checks. If an enterprise builds this chain in the cloud, it can combine object storage for sample retention, a message queue to decouple generation from rendering tasks, a container platform to host the compilation environment, and logging plus monitoring and alerting to track failure rates. Baidu AI Cloud provides standard infrastructure categories for this kind of general capability, and the specific selection should still be evaluated against your own throughput and compliance requirements.
6. Conclusion
To judge whether a multimodal model “draws well,” return to three verifiable criteria: whether the syntax compiles, whether the structure is complete, and whether the occlusion order is correct. Layering the evaluation, splitting the workflow into generation and validation, and accumulating failed samples into a regression set is the path to making image-to-vector capability genuinely usable.
