How to Evaluate Multimodal Models: From Spatial Understanding to Diagram Reconstruction
Evaluating multimodal models requires more than scattered conversation screenshots—it demands clear, reproducible tasks. This article uses complex diagram reconstruction as a representative benchmark, covering how spatial relationships, line-type semantics, and executable drawing code reveal a model's true capabilities. It walks through building auditable intermediate representations, handling coordinates and occlusion, designing layered metrics, and computing cost per accepted task, so developers can turn subjective impressions into verifiable, reproducible engineering evidence.
1. Evaluating a Model Should Start with Task Success Rate
When a multimodal model enters testing, developers typically ask three questions: Is it more accurate? Can it handle more complex tasks? Is the actual cost of completing those tasks acceptable? Rather than relying on scattered conversation screenshots, these questions are better answered through a set of well-defined, reproducible tasks.
Complex diagram reconstruction is a representative test. The task requires the model to read an image, understand the geometric objects, spatial relationships, and visibility it contains, and then output a structured description or drawing code capable of reproducing the figure. This is not simple text recognition, nor is it merely tracing outlines—it is a combination of visual perception, structural reasoning, and program generation.
One boundary must be stated upfront: a handful of anecdotal experiences cannot prove that a test version has achieved stable improvement, let alone support conclusions about its overall performance. A professional evaluation should convert subjective impressions into recordable metrics and distinguish between “a single better result” and “a higher success rate across a class of tasks.”
2. Why Complex Diagrams Test Multimodal Capability
2.1 Spatial Relationships Hide Behind 2D Lines
A 3D-style diagram is just pixels at the image level, but at the semantic level it may contain cubes, cross-sections, auxiliary lines, projections, annotations, and multiple mutually occluding faces. The model must determine which line segments belong to the same object, which intersections carry geometric meaning, and which crossings are merely coincidental overlaps in projection.
A particularly common failure mode: the generated result looks tidy but alters the structure of the original. For example, two edges that were not connected are joined together, or a cross-section is drawn as an outer surface of the object. The silhouette may look approximately right while the mathematical relationships are already wrong.
Evaluation therefore cannot stop at “does it look similar”—it must also ask “are the relationships correct.”
2.2 Solid and Dashed Lines Carry Visibility Semantics
In common engineering and geometric diagrams, solid lines typically denote visible outlines, while dashed lines may indicate hidden edges, auxiliary relationships, or other conventions. The model must interpret line types in the context of legends and surrounding content, rather than mechanically treating every dashed line as an occluded edge.
Occlusion judgments are also dependent: if the model gets the front-back orientation of an object wrong, line types, fills, and drawing order will often fail together downstream. During evaluation, errors should be traced back to the earliest structural judgment, not patched only at the final rendering.
2.3 Output Code Must Satisfy Execution Constraints
Correct visual understanding does not guarantee usable output. A drawing description can still suffer from undefined coordinates, unclosed paths, invalid object references, or text overlapping shapes.
This means the task has at least three layers:
- Semantic correctness: objects, connections, and occlusion relationships match the original.
- Description validity: the output complies with the rules of the chosen drawing language or data format.
- Presentation quality: the rendered result is clear, readable, and consistent in layout with the original.
Each layer should be checked separately; “an image was successfully generated” cannot substitute for overall correctness.
3. Build an Intermediate Representation Before Generating the Drawing
For complex images, asking the model to produce complete drawing code in one shot tends to mix recognition, reasoning, and layout errors together. A more robust approach is to introduce an auditable intermediate representation.
3.1 Separate Objects from Relationships
The intermediate representation can include:
- Objects: points, line segments, curves, polygons, text labels.
- Geometric relationships: connected, intersecting, parallel, containing.
- Visual relationships: foreground, background, occlusion, transparent overlay.
- Style attributes: line type, line width, fill, text placement.
- Uncertain items: low-resolution regions, ambiguous dashed lines, possibly coincident points.
An illustrative description follows. It is a custom way of organizing data, not the interface of any specific product:
Objects:Face A: composed of points A, B, C, DAuxiliary line 1: connects points E and FRelationships:Face A is in front of auxiliary line 1Point G lies on edge ABStyles:Face A uses a light fillAuxiliary line 1 uses a dashed strokeTo confirm:Whether point F coincides with a back-face vertex
This format is easy for humans to inspect and for programs to validate structurally. If an edge references a nonexistent point, the problem can be caught before rendering; if occlusion relationships contradict each other, the pipeline should return to the structural analysis stage.
3.2 Do Not Force a Unique 3D Reconstruction
Inferring 3D structure from a single 2D image is usually ambiguous—different 3D objects can produce similar projections. The depth of recovery should therefore match the task goal.
If the goal is to reproduce the diagram, it is sufficient to keep the 2D projection and relationships consistent. If the goal is to compute distances, angles, or volumes, additional constraints are required, such as dimensions, viewpoint, projection method, or explicit geometric conditions.
Treating “a visually plausible interpretation” as “the one true 3D structure” is an overreach of reasoning that should be avoided when using these models.
4. How to Handle Coordinates, Occlusion, and Layering
4.1 Normalize Coordinates to Reduce Resolution Interference
Source images may come from screenshots, scans, or compressed files, so reusing raw pixel coordinates makes comparison difficult. Image coordinates can first be mapped to a unified range:
normalized x = original x ÷ image width
normalized y = original y ÷ image height
Normalization reduces the impact of resolution changes, but it does not eliminate cropping, rotation, or perspective distortion. If the input has undergone such transformations, additional alignment or transformation estimation is needed.
Also note that image coordinates typically use the top-left corner as the origin with the y-axis pointing down, while some drawing environments use a y-up coordinate system. The direction must be handled explicitly during conversion, or the result will be vertically flipped.
4.2 Fix Connectivity First, Then Fine-Tune Positions
For technical diagrams, connectivity usually matters more than local pixel precision. A sensible processing order is:
- Identify the main objects and key points.
- Establish edge and face connectivity.
- Check intersections, containment, and shared edges.
- Adjust coordinate scaling and overall layout.
- Refine line widths, colors, and label offsets.
If coordinates are tweaked repeatedly before the structure has stabilized, the result often looks locally closer but is globally more wrong.
4.3 Express Layer Order Explicitly
A common drawing strategy is to render background objects first, then filled regions, then foreground outlines and text. But this is not a fixed rule—transparent faces, hidden edges, and interleaving structures may require different handling.
For figures with cyclic occlusion, reordering whole objects may not be enough; objects may need to be split into independently drawable fragments. Layer ordering solves part of the presentation problem—it cannot replace judgment about spatial relationships.
5. Building a Reproducible Evaluation Pipeline
5.1 The Test Set Should Cover Varying Difficulty
Using a single complex image risks mistaking a lucky success for stable capability. Tasks can be grouped by characteristics:
- Basic figures: few objects, no significant occlusion.
- Relational figures: intersections, shared edges, and auxiliary lines.
- Spatial figures: hidden edges, cross-sections, and multiple visible faces.
- Mixed figures: text, fills, transparent regions, and complex annotations together.
- Degraded inputs: low resolution, slight rotation, compression noise, or partial missing content.
The same task should also be run repeatedly to observe output stability. If the best result is picked from multiple generations, the number of candidates and the selection cost must be recorded—these results cannot be compared directly with single-shot outputs.
5.2 Metrics Should Be Recorded in Layers
At minimum, record the following dimensions:
Structural correctness: Are key objects complete? Are connections correct? Are there extra edges or missing faces?
Occlusion and style correctness: Do visible edges, hidden edges, auxiliary lines, and filled regions match the intent of the figure?
Execution validity: Can the output be parsed and rendered? Does it depend on missing resources?
Presentation quality: Are overall proportions, label placement, line overlap, and readability acceptable?
Engineering efficiency: How much time, how many retries, and how much manual correction does one task require?
Image similarity can serve as an auxiliary metric but should not independently determine conclusions. Font changes and anti-aliasing differences can lower pixel similarity without affecting structural correctness; conversely, a visually close result may still contain critical connection errors.
5.3 Keep Test Conditions Consistent
When comparing different configurations, keep the input images, task instructions, output requirements, available context, and acceptance criteria as fixed as possible, and record available version information and generation settings.
Prompts should not be adjusted ad hoc during testing. If prompt optimization is needed, separate development samples from final test samples to avoid overestimating generalization after repeated tuning on fixed questions.
6. Prompt Design and the Verification Loop
An effective prompt should state the task goal explicitly rather than just saying “copy the drawing.” For example, the model can be asked to first identify objects and relationships, then list uncertain items, and finally generate an executable description—while being instructed not to add structures that do not exist in the original.
However, staged output does not necessarily improve accuracy. If an error occurs in an earlier stage, later stages may amplify it, so independent verification is still required.
A practical loop looks like this:
Input check → structure extraction → relationship validation → drawing generation → isolated rendering → result review → targeted correction.
“Targeted correction” should describe specific problems—for example, “the rear edge should be dashed” or “the label overlaps the outline”—rather than vaguely asking to “draw it more accurately.” After each round of edits, other regions must be rechecked to prevent local fixes from introducing new errors.
Auto-generated drawing code should be treated as untrusted input: execute it in a restricted environment with limits on runtime, file access, network access, and resource consumption. If drawing is the only goal, a constrained declarative description is generally easier to control than allowing arbitrary program execution.
7. Cost Should Be Measured per Accepted Task
What developers really care about is not whether a single request is cheap, but the total cost of completing a deliverable task.
A useful formula:
Cost per accepted task = total cost of all attempts and corrections ÷ number of tasks that pass acceptance.
Beyond model calls, total cost should include image processing, rendering validation, retries, and human review. A solution with fast single responses is not necessarily more efficient if it requires frequent rework.
At the engineering level, tasks can be triaged: simple figures go through rule-based processing, while complex structures are routed to multimodal reasoning. Stable intermediate results can be cached, and failed tasks should be retried—or not—based on error type. If failure stems from an ambiguous input, supplying a clearer image is often more effective than regenerating repeatedly.
8. Conclusion: Real Progress Is Verifiable, Reproducible, and Deliverable
Evaluating multimodal models cannot stop at “answers feel more natural” or “a single example looks nicer.” Complex diagram reconstruction offers a concrete path: check whether the model understands spatial relationships, whether it expresses occlusion and layering correctly, whether it generates valid descriptions, and whether the final result passes acceptance at a controllable cost.
For developers, what is worth building is a long-term, reusable testing and verification pipeline—not judgments based on one-off performance. Only when structural correctness, output stability, manual correction effort, and total task cost are all tracked continuously does a change in model capability turn from subjective experience into reliable engineering evidence.
