Image Understanding in Large Language Models: From Image Captioning to Information Processing
This article explains how multimodal large language models understand images, from basic perception to structure parsing, reasoning, and application. It covers common failure modes, including dense counting, handwriting recognition, color perception, spatial reasoning, and fabricated answers when image content is unclear. It also describes how to build a reproducible evaluation set, structure model outputs, set confidence thresholds for human review, and handle privacy and compliance in production.
1. Why Image Capability Has Become a Core Skill for LLMs
Early multimodal models mostly stopped at image captioning: they took in a picture and returned a one-sentence summary. This works for photo album organization and accessibility aids, but it is hard to use in office work, education, research, and business systems.
As training data and vision encoders have improved, images are increasingly treated as a structured source of information. Document screenshots, tables, interface screenshots, photographed exam papers, and meeting slides can be broken down, extracted, and converted into text or data for downstream workflows.
For developers, the key question when evaluating image capability is not whether the model “can see and understand.” It is whether the model can consistently turn visual information into results that downstream systems can use.
2. Four Levels of Image Understanding
Image understanding can be split into four layers. Each layer has different task difficulty and different costs of error, so each one needs its own evaluation.
- Perception: Recognizing object categories, colors, text, and scene types. This layer is usually the most stable, but it misses objects in small, low-resolution, or occluded scenes.
- Structure: Parsing row and column relationships in tables, layout hierarchy, and the axes and legends of charts. Errors here are costly, because a misaligned cell can distort an entire table.
- Reasoning: Performing calculations or logical judgments based on image content. Examples include reading the given conditions of a geometry figure and solving it, drawing a trend conclusion from a statistical chart, or judging the relative positions of objects in space.
- Application: Producing grading comments, report summaries, or operational suggestions based on recognition results. This layer depends on the first three layers. Any upstream error gets amplified here.
Score each layer separately. A single overall “vision score” does not show which layer is failing.
3. Common Limitations and Failure Modes
3.1 Counting and Localization in Dense Scenes
When an image contains dozens of objects, the model tends to miss some or count others twice. For exhaustive tasks such as “find all red circles,” you can split the image into regions and process each one separately. Another option is to use a dedicated detection model to generate candidate bounding boxes first, then pass them to a language model for judgment.
3.2 Handwritten Text and Low-Quality Images
Accuracy drops noticeably for handwritten essays, blurry printed text, and tilted or glared text. Visually similar characters are easy to confuse, such as the digit 0 and the letter O, or the digit 1 and the letter l. Key fields like amounts and ID numbers need an additional validation step.
3.3 Color and Visual Illusions
Color-blindness test plates and color contrast questions are a clear challenge for models. The model often relies on language priors to answer instead of actually comparing pixel colors. For these tasks, do not treat the model’s answer as a visual measurement.
3.4 Spatial Relationships
Perspective changes, mirror flips, and relative position judgments among multiple objects remain error-prone. For directional questions involving left and right, front and back, or top and bottom, design dedicated test samples and compare the results with human annotations.
3.5 Fabrication When the Image Is Unclear
This is the most important risk to guard against in business systems. When an image is blurry or information is missing, the model may still give a definite answer. The prompt should explicitly require the model to return “Unable to determine” when it is uncertain, along with the reason.
4. Building a Reproducible Evaluation System
4.1 Sample Design
Organize the test set by scenario. At minimum, cover the following categories:
- Tables and formula screenshots from academic papers
- Meeting presentation pages and flowcharts
- Math problems and geometry figures
- Handwritten text and essay drafts
- Statistical charts and data dashboards
- Application interface and game result screenshots
- Everyday objects and food photos
- Low-contrast images and color vision test plates
- Spatial reasoning and counting questions
Each category should contain at least 30 samples. Keep the annotation basis for each sample so that disagreements can be reviewed later.
4.2 Scoring Dimensions
- Correctness: Whether the answer matches the reference answer.
- Completeness: Whether key information is omitted, such as a row in a table or a specific field.
- Verifiability: Whether the evidence the model cites can be found at the corresponding location in the image.
- Quality of refusal: When the case is uncertain, whether the model states that clearly instead of forcing an answer.
4.3 Illustrative Evaluation Script
The script below shows the skeleton of an evaluation pipeline. Replace the model call with your actual deployed multimodal API.
from dataclasses import dataclassfrom typing import Callable@dataclassclass EvalCase:image_path: strquestion: strexpected: strcategory: str # perception / structure / reasoning / applicationdef normalize(text: str) -> str:# Remove whitespace and convert to lowercase to reduce false mismatches caused by formatting differencesreturn "".join(text.split()).lower()def is_correct(pred: str, expected: str) -> bool:# Simple substring check. For complex scenarios, replace with structured comparison or manual scoringreturn normalize(expected) in normalize(pred)def run_eval(cases: list[EvalCase],model_fn: Callable[[str, str], str]) -> dict[str, float]:results: dict[str, list[bool]] = {}for case in cases:answer = model_fn(case.image_path, case.question)results.setdefault(case.category, []).append(is_correct(answer, case.expected))# Output accuracy by category to identify weak areasreturn {c: sum(v) / len(v) for c, v in results.items()}def model_fn(image_path: str, question: str) -> str:# Replace with the actual deployed multimodal model callraise NotImplementedError
Note that substring matching is lenient for numeric answers. For example, “12” matches “120.” In formal evaluations, use exact matching for numbers and structured fields.
5. Engineering Considerations
5.1 Input Preprocessing
- Control resolution: High resolution increases latency and cost, while low resolution loses text detail. Set an upper limit based on the task type.
- Rectify document images: Apply perspective correction and denoising to photographed documents. This usually improves text recognition noticeably.
- Split large images: Very large images can be split into tiles, processed separately, and then merged. Keep some overlap at the tile boundaries and deduplicate repeated items after merging.
5.2 Structured Output
Require the model to return results in a fixed structure so the program can validate them. An example is shown below:
{"doc_type": "table","rows": [{"item": "A", "amount": "1280"},{"item": "B", "amount": "960"}],"confidence": 0.82,"uncertain_fields": ["amount in row 2"]}
The uncertain_fields field tells downstream systems which content needs review. After receiving a result, the program should first check field types and required fields, then write the data to the business database.
5.3 Confidence Thresholds and Human Review
For high-risk scenarios such as financial receipts, medical reports, and exam grading, set a confidence threshold. Send results below the threshold, or results containing uncertain fields, to a human review queue. Determine the threshold from evaluation data rather than setting it by intuition.
5.4 General System Architecture
An image recognition service typically includes the following components:
- Images are written to object storage, and their metadata is recorded.
- Upload events are delivered through a message queue that triggers recognition tasks. Tasks are isolated from each other and can be retried after failure.
- Recognition results are written to a database and keep a reference to the original image for traceability.
- Key processing steps are logged, so the processing history of a single image can be investigated.
- Monitoring and alerts track the recognition failure rate, average processing time, and the share of results sent to human review. Investigate promptly when these metrics move abnormally.
6. Privacy and Compliance
Images often contain sensitive information such as faces, ID numbers, home addresses, and internal documents. Before launch, complete the following:
- Remove sensitive information before images reach the model. For example, mask ID numbers and face regions.
- Define the purpose of the data clearly, and retain it only as long as the task requires.
- Apply stricter access controls to images of minors, especially in educational settings.
- Include privacy requirements in test cases, and verify that the redaction logic works.
7. Summary
Multimodal image understanding can already handle tables, documents, interface screenshots, and some reasoning questions. It still has clear limits in dense counting, handwriting recognition, color judgment, and spatial relationships. When the image is unclear, the model may also return wrong answers. To deploy these systems, first build an evaluation set organized by capability layer. Then design preprocessing, structured output, and human review workflows that target the weak areas the evaluation reveals. Only conclusions backed by evaluation data should inform launch decisions.
