Evaluating Native Multimodal Models on Document Reconstruction: Practice and Assessment
This article explains how to evaluate the visual understanding of native multimodal models by converting handwritten notes into compilable LaTeX documents. It covers the test design, scoring dimensions, prompt guidance, cost considerations, and the engineering benefits of native multimodal architectures for document processing.
Introduction: Why Native Multimodality Matters
In the roadmap for large language models, multimodality has long been considered a key step toward full capability. For a long time, text models and vision models were often separate systems. Developers had to first use a vision model to understand an image, then pass the recognized results to a text model as text for further reasoning and generation. This architecture carried three costs: the overhead of switching between models, the repeated transfer of context, and the complexity of orchestrating the toolchain.
“Native multimodal” means the model is trained from the start to model multiple modalities, such as images and text, in a unified way. Visual understanding and language reasoning share the same representations and context. When this capability reaches lightweight models, meaning those designed for low latency and low cost, its significance goes beyond “the model can now see images.” It simplifies the entire Agent workflow. Image input, file handling, and structured output can all be completed in a single inference.
This article uses a demanding test case, converting handwritten notes (containing formulas, highlights, and geometric diagrams) into a compilable LaTeX document. It outlines a method for evaluating multimodal visual understanding and summarizes practical lessons and pitfalls.
1. Test Task Design: Why Image-to-LaTeX
Simple image description (“what is in this picture”) does little to separate model capabilities. Converting handwritten notes to LaTeX is an effective stress test because it exercises several levels of ability at once:
- Character and symbol recognition (OCR layer): Accurate recognition of handwritten characters, math symbols, and superscripts and subscripts. This is the most basic visual perception skill.
- Structured layout reconstruction (layout layer): Heading levels, paragraph order, highlights, and list structures must be mapped to semantic LaTeX markup.
- Spatial and graphical understanding (geometry layer): Geometric diagrams require the model to identify vertices, axes, and auxiliary lines, understand layer occlusion and perspective, and translate the figure into drawing code such as TikZ. Coordinates, paths, solid and dashed lines, filled regions, and drawing order are all necessary.
- Code generation (output layer): The visual understanding must be expressed as syntactically correct, compilable code. An error in any coordinate or closed path causes rendering to fail.
This task compresses the full chain of perception, understanding, and expression into one call, which makes it a good test of end-to-end ability.
2. Evaluation Dimensions and Observation Methods
In practice, score each dimension separately rather than judging by whether the output “looks right.”
2.1 Accuracy of Characters and Formulas
This is the easiest part to verify. Check each character against the original image. Look at easily confused symbols (such as α and a, or × and x), superscript and subscript positions, fraction bar levels, and integral limits. Newer native multimodal models are generally stable at this layer, and basic recognition errors are clearly reduced.
2.2 Fidelity of Style Elements
Highlights, color marks, and underlines test whether the model understands visual emphasis as meaning. A common pattern is that most highlights are correctly restored to the matching LaTeX coloring commands, but some colors, such as one red highlight, may show color value deviations or be omitted. These issues do not affect the main content, so they can be recorded as minor defects.
2.3 Quality of Geometric Diagram Reconstruction
This is the core dimension for separating stronger models from weaker ones. For a simple two-dimensional coordinate diagram, the model must recognize vertex labels, axis directions, and key point positions, then generate correct TikZ coordinates and connecting lines. More complex cases, where a two-dimensional image implies a three-dimensional structure, also require the model to understand occlusion, the convention that hidden edges are drawn dashed, filled regions, and drawing order.
A typical failure mode is drawing extra lines or getting ray directions wrong. The model recognizes that an element exists but misjudges its direction of extension in space. This suggests that geometric reasoning remains a weak link in converting visual understanding into code.
2.4 Baseline Comparison with the Previous Generation
Evaluation needs a baseline. Run the same task through the previous-generation vision model, and the gap becomes clear. Typical results include many highlight elements lost and diagrams drawn incorrectly, with distorted proportions or misaligned structure. Only a comparison using the same task, the same prompt, and different models can objectively measure the extent of improvement. A single impressive result can be misleading.
3. Practical Tips and Prompt Suggestions
To let the model fully use its restoration ability, the task description must be clear and complete:
- Define the scope clearly: Ask it to “restore as much as possible, including formulas, characters, highlights, layout, and diagrams,” so the model does not summarize or omit content on its own.
- Specify the output format: Request a complete, compilable LaTeX document, with diagrams drawn in TikZ.
- Expect some tolerance: For complex diagrams, expect partial deviations. Treat them as data on the capability boundary, not as failed cases.
On the engineering side, build a fixed test set covering simple formulas, varied highlights, and figures of different complexity. Rerun it after each model update, and compare results across models using the same scoring criteria.
4. Cost and Efficiency
For lightweight model tiers, inference speed (token throughput) and unit cost are the key variables for deployment. In repeated tests of image-to-document conversion, token consumption concentrated on the output side. A full LaTeX document plus TikZ drawing code often produces a long generated sequence. When evaluating cost, consider the following:
- Input side: The number of tokens for an encoded image is relatively fixed and depends on the image resolution strategy.
- Output side: Document complexity directly determines output length. More complex diagrams mean longer TikZ code.
- Overall judgment: If a new-generation model significantly improves quality while keeping call costs similar, the improvement in cost-effectiveness is substantive.
For production use at scale, store original scans in object storage, use task queues for asynchronous batch processing, and log each conversion’s token usage and quality score in a logging service. This creates a sustainable cost monitoring loop. Object storage, message queues, log services, and monitoring and alerting are available from major cloud platforms, so you can choose based on your needs.
5. Engineering Significance of Native Multimodality
Looking at the architecture, the real value of native multimodality lies in simplifying workflows:
- Fewer model switches: Image understanding and text generation happen within one model, which removes the intermediate step from a vision model to a text model.
- Less context transfer: Recognition results no longer need to be serialized into text and injected back, which avoids information loss.
- Lower orchestration cost: Agents can drive subsequent tool calls directly from multimodal input, reducing the number of workflow nodes.
For use cases such as document digitization, structuring educational content, and handwritten work order entry, this changes the design. A pipeline that once required an OCR engine, layout analysis, and LLM post-processing might be consolidated into one model call plus a small set of rule-based checks.
Conclusion
The handwritten-notes-to-LaTeX task shows that the new generation of native multimodal models has reached a high level of usability in character recognition, formula restoration, and style preservation. Understanding and coding of geometric diagrams has also clearly improved, although local errors still appear with complex spatial relationships such as ray directions and three-dimensional occlusion. For developers, an evaluation system built on a fixed test set, multi-dimensional scoring, and cross-generation comparison gives a more objective view of capability boundaries than a single trial. As native multimodal models mature in lightweight tiers, the architecture of document intelligence applications should see a notable simplification that is worth tracking and planning for early.
