Multimodal Image Understanding: Principles, Limitations, and Engineering Practices

    This article explores the principles and engineering practices of multimodal image understanding. It covers why image understanding is a foundational capability for large language models, breaks down the capability layers from basic text recognition to logical reasoning, and outlines the technical architecture of mainstream multimodal models. Additionally, it examines typical application scenarios and discusses key limitations, such as knowledge timeliness and challenges with counting and spatial relations, along with practical mitigation strategies.

    1. Why Image Understanding is the Foundation of Multimodal Capabilities

    Large language models (LLMs) originally processed only text. As business scenarios expand, users increasingly upload screenshots, receipts, product photos, and on-site images, expecting the system to understand these contents directly. Without visual input capabilities, models cannot read interface information or assist in identifying anomalies within images.

    For developers, image understanding offers three core values. First, it reduces manual data entry costs by converting invoices, forms, and logistics documents into structured data. Second, it expands the perception range of AI agents, allowing them to determine the next step based on screen captures. Third, it enables question-answering systems to address image-related queries, reducing the burden on users to repeatedly describe visual contexts.

    2. Capability Layers: From Text Recognition to Semantic Understanding

    Image understanding can be divided into different capability layers, each corresponding to varying levels of technical difficulty and evaluation methods.

    1. Text Recognition (OCR): Locates text regions in an image and outputs strings. It focuses on character accuracy, commonly measured by character accuracy rate.
    2. Structured Extraction: Builds upon OCR by understanding the relationships between fields, such as pairing a label like “Amount” with its corresponding numerical value, and outputting the result as JSON.
    3. Scene Description: Summarizes the main subjects, environment, and key elements of an image. Evaluation focuses on whether critical information is omitted or if non-existent details are hallucinated.
    4. Logical Reasoning: Answers questions requiring multi-step inference based on image content, such as deducing the cause of a trend from a chart. This layer relies most heavily on the model’s reasoning capabilities.

    In practice, a single task often spans multiple layers. For instance, processing a reimbursement form requires recognizing the text, extracting the amount and date, and finally determining if it complies with reimbursement rules. Since errors in each layer cascade to the next, it is essential to design layered evaluation metrics.

    3. Technical Architecture Overview

    Mainstream multimodal models typically consist of three components:

    • Vision Encoder: Divides an image into patches and converts them into a sequence of vectors via a neural network. The encoder determines the granularity of details the model can perceive. Higher resolutions preserve small text better but increase computational costs.
    • Modality Connection Layer: Maps visual vectors into the representation space of the language model, enabling the text model to read image features. The design of this layer directly impacts the quality of image-text alignment.
    • Language Model Backbone: Receives a mixed sequence of text and visual representations to perform understanding and generation. Most of the reasoning capability is derived from the backbone model.

    Training generally occurs in three stages: image-text alignment pre-training, instruction fine-tuning, and preference optimization. The alignment stage teaches the model the correspondence between images and descriptions. Instruction fine-tuning trains the model to answer questions according to human instructions. Preference optimization enhances the helpfulness and safety of responses.

    Some models adopt a Mixture of Experts (MoE) architecture. These models have a large total parameter count but only activate a subset of parameters for each input, allowing them to accommodate more knowledge at a comparable inference cost. The trade-off is that routing design and load balancing become more complex. When evaluating model capabilities, it is important to consider both the total parameter count and the actual activated parameter count, as they represent different aspects of the model.

    Visual reasoning is a significant recent trend. The approach involves having the model first locate relevant regions in the image or generate intermediate representations, and then derive the answer based on these intermediate results rather than outputting a conclusion directly. This method helps reduce errors caused by empirical guessing but also increases output length and response latency.

    4. Typical Application Scenarios

    • Document Processing: Information extraction and verification for receipts, contracts, and tables.
    • UI Understanding: Screenshot analysis, troubleshooting, and interface state determination in automated testing.
    • Content Moderation: Identifying违规 (violating) elements in images, requiring human review.
    • E-commerce and Content Operations: Product image attribute extraction and image-text consistency checks.
    • Education and Knowledge Q&A: Exercise image parsing and chart comprehension.

    When selecting scenarios, it is recommended to prioritize tasks with low error costs, the ability for human review, and relatively stable input structures. For high-stakes scenarios, such as medical diagnosis or legal judgments, image understanding should only serve as auxiliary information.

    5. Main Limitations and Mitigations

    1. Knowledge Timeliness

    The model’s world knowledge comes from training data, which has a cutoff date. For questions involving recent events, new products, or new regulations, the model may provide outdated answers. Mitigation strategies include providing the latest information in text format alongside the request or using a retrieval mechanism to supplement the context.

    2. Counting and Spatial Relations

    Performance on complex counting tasks, precise relative position judgments, and optical illusion-type images is typically unstable. For example, accurately counting a large number of small objects or determining precise spatial relationships in complex scenes can often lead to inconsistent or incorrect results.