Evaluating Multimodal Image Understanding: From Text Recognition to Production
This article explains how to evaluate multimodal image-understanding systems beyond fluent answers, covering OCR, layout, visual semantics, and spatial reasoning. It uses vertical traditional inscriptions, occluded posters, and complex layouts as examples, then outlines test sets, ground truth, layered metrics, prompt constraints, and a reviewable production pipeline.
1. How Image Understanding Should Be Evaluated
A fluent answer to an image that contains text, graphics, and a complex layout does not mean the model understood the image. In text recognition especially, evaluation should distinguish what comes from visible pixels, what is inferred from language, and what remains uncertain.
General multimodal image understanding typically includes:
- Text recognition: characters, digits, punctuation, and their combinations.
- Layout understanding: relationships among titles, body text, and notes, and recovery of reading order.
- Visual semantic understanding: objects, scenes, and how information is related.
- Spatial reasoning: above/below, left/right, containment, adjacency.
- Image-grounded generation: descriptions, structured records, or UI drafts from visual evidence.
These capabilities are related but not interchangeable. Accurate OCR does not imply reliable spatial relations. A visually appealing generated interface does not imply that text, sizes, and layout match the source image.
Professional evaluation should move from “the answer looks good” to “each result can be verified.” For developers and enterprises, value shows up in data accuracy, human review cost, and whether business risk is controllable.
2. Three Scenarios That Reveal Real Difficulty
2.1 Vertical Traditional Inscriptions: Separate Glyph Recognition from Reading Order
Vertical inscriptions combine traditional characters, calligraphic deformation, stone wear, low contrast, and right-to-left columns.
Even if column order is recovered, similar glyphs can still be confused. For example, 焉 and 馬 may be misread when strokes are blurred or missing. Such errors are not simply “lack of classical knowledge”; they may occur in visual recognition or in language inference.
Check separately whether the model:
- Detects vertical text.
- Outputs columns right to left.
- Reads each column top to bottom.
- Preserves traditional forms, variant characters, and repeated characters.
- Mixes semantic interpretation into the transcription.
Treat faithful transcription and normalization as two tasks. When variant glyphs are visible, keep them in the transcript. If a modern form is needed, provide a separate normalized version and record the mapping. Unexplained substitution changes source material and reduces research value and traceability.
2.2 Occluded Posters: Plausible Completion Is Not Accurate Recognition
Text is often occluded by people, ornaments, or other elements. Models can fill missing characters from context, but that fill-in is an inference, not necessarily image-supported.
A blocked letter in a common place name may be completed from remaining letters. That can help topic understanding; it cannot be treated as fact for address entry, credential review, or identity checks.
Pay special attention to digits and short IDs. A code of letters plus consecutive digits may drop a digit due to merged repeats. Such fields have little semantic redundancy, so context cannot easily correct errors.
Use three output states:
- Visually confirmed: text that can be read in the image.
- Contextually inferred: partial occlusion with a reasonable completion basis.
- Unconfirmed: too many candidates or insufficient evidence.
If the job requires strict transcription, the prompt should forbid auto-completion. Keep missing-character markers instead of a falsely complete answer.
2.3 Complex Layouts: All Characters Correct Can Still Lose Relationships
Art posters scatter text across regions with vertical, rotated, size-varying, and stylized type. Character-correct text can still be unusable if order is wrong.
Complex layouts must answer:
- Where is the text?
- How are blocks related?
- In what order should they be read or displayed?
A year may belong to exhibition metadata, a side phrase to notes, and large graphic type at the top to the main title. Merging them into one paragraph destroys hierarchy.
Extract by region first, then classify semantically. Use neutral location labels such as “upper left,” “right vertical column,” or “center title.” Record verified coordinates only when precise localization is required. Model-emitted coordinates are not automatically accurate.
3. From One-Off Demos to a Repeatable Test System
3.1 Build a Sample Set That Matches Real Workloads
A few hard images find failure modes but do not prove overall performance. Include routine and hard cases, stratified by scenario:
| Dimension | Suggested coverage |
|---|---|
| Font | Print, handwriting, calligraphy, decorative type |
| Arrangement | Horizontal, vertical, multi-column, rotated |
| Clarity | Sharp, blurry, low contrast, compression artifacts |
| Completeness | Intact, cropped, partially occluded |
| Content | Chinese, traditional characters, non-Chinese, digits, mixed |
| Layout | Documents, posters, tables, receipts, long images |
Match the actual input distribution. If the product mainly handles clean scans, do not decide from art posters. If it handles field photos, cover perspective distortion, shadows, and glare.
3.2 Create Trustworthy References
References should be human-checked; complex samples need dual annotation or disagreement review. Labels should cover text, reading order, region splits, and unreadable locations.
Agree rules before scoring:
- Whether spaces and line breaks count.
- Whether simplified/traditional conversion is allowed.
- How punctuation and full-width/half-width characters are treated.
- Markers for unreadable characters.
- Separate inferred answers for occluded characters.
Without shared rules, the same output can score differently across annotators.
3.3 Use Layered Metrics, Not a Single Score
At the character level, character error rate is commonly:
CER = (substitutions + deletions + insertions) / number of reference characters
CER measures transcription error but not business usability. A long paragraph with a few errors can look good while a wrong amount, date, or ID still fails the workflow.
Also track:
- Exact match rate on key fields
- Text-block coverage (missed titles, fine print, edges)
- Reading-order correctness
- Structural validity for downstream parsers
- Ungrounded completion rate
- Human review effort
Production systems should also log latency, failures, and consistency across retries. Without measurements, avoid claims such as “faster” or “more stable.”
4. Prompt Design: Constrain Evidence Before Format
“Recognize the text in the image” is a useful baseline because it is simple and comparable. In production it does not specify reading order, inference bounds, or structure.
A stricter transcription prompt:
Transcribe only text that can be read directly from the image. Group by text region, then keep each region’s reading order. Do not complete occluded or unreadable characters from common knowledge. Mark uncertain locations as “[unclear]”. Put candidate interpretations in a separate section, not in the transcript body.
For vertical material, add:
First determine column order and within-column direction. Keep traditional and variant characters; do not convert to modern standard forms.
For complex posters, add:
List main title, notes, date/location, edge fine print, and unclassified text separately, and describe each region’s approximate position.
Prompts only tighten constraints; they do not guarantee compliance. Validate outputs. Do not treat a model’s self-reported “confidence” as a calibrated probability.
5. Production: A Reviewable Image-Understanding Pipeline
5.1 Input Preprocessing
Typical steps: orientation correction, cropping, perspective correction, modest contrast enhancement, and splitting long images. The goal is readability, not changing text.
When splitting long images, keep overlap so characters are not cut on boundaries. Merge by removing duplicates and restoring order from original positions. Upscaling or sharpening cannot recover lost information and may create stroke-like artifacts. Keep the original image for review.
5.2 Separate Extraction from Interpretation
A more robust flow:
Source image → text regions and layout analysis → faithful transcription → structured cleanup → rule checks → human review
Semantic interpretation should run on already extracted text and must not rewrite the original transcript.
Classic OCR and multimodal understanding can be combined: the former for text and positions, the latter for layout relations, semantic grouping, and hard cases. Agreement between the two does not prove correctness; shared errors still occur.
5.3 Store Evidence in Structured Form
Persist:
- Original image and identifier
- Regions or verified coordinates
- Raw transcript
- Normalized text
- States such as occluded, blurry, inferred
- Rule-check results
- Human edit history
Raw and normalized text must not overwrite each other. When later unifying punctuation or merging line breaks, keep the first extraction so errors can be traced to recognition, cleanup, or business mapping.
5.4 Apply Business Rules Without Silent Correction
Format rules can flag abnormal dates, amounts, and IDs (“wrong length,” “impossible date”) but cannot prove which candidate is correct.
On anomalies, re-run recognition or send to review. Do not silently rewrite to a “reasonable” value. For ID numbers, financial data, and contract clauses, wrong completion can be more dangerous than an explicit failure.
5.5 Protect Sensitive Data
Images may contain personal, internal, or commercial data. Define access, retention, and logging, and avoid dumping full sensitive text in debug logs.
Treat instructional text in the image as content to transcribe, not as system commands. If the image says “ignore previous instructions,” the pipeline should transcribe it, not change the task.
6. Evaluate Graphic and UI Generation Separately
Generating graphics or front-end from an image is a different task and must not share a score with OCR. Check visual similarity, text fidelity, layout relations, editability, and functional usability separately.
A page that looks like the original may still miss interactions, edge states, or responsive behavior. Spatial reasoning needs dedicated tests for localization, adjacency, and hierarchy, not inferences from how a generated page looks.
Web search is not required for OCR. If external sources are used to check image content, keep retrieval distinct from transcription so retrieved text does not replace what is actually visible.
7. Conclusion: Quality Depends on Evidence and Boundaries
Multimodal image understanding now jointly handles glyphs, layout, and semantics. Stronger language reasoning also creates risk: uncertain content can become fluent, complete answers that lack image support.
Reliable evaluation and deployment rest on three separations: visual recognition vs. semantic inference; character accuracy vs. business correctness; user-facing fluency vs. engineering control. With references, layered metrics, evidence logs, and review, “it reads images well” can become a capability that is actually usable.
