Evolution and Practice of Visual Primitives in Multimodal Large Language Models

    This article explores the evolution of multimodal large language models (MLLMs) from addressing the "perception gap" to tackling the "reference gap" in complex visual tasks. It analyzes the theoretical appeal and practical discrepancies of visual primitives through test performance analysis, Agent tool configuration pain points, and prompt engineering practices. Finally, it provides actionable recommendations for enterprise-level multimodal application deployment, including building private benchmarks, leveraging cloud-native infrastructure, and engineering prompts and workflows.

    With the continuous iteration of Multimodal Large Language Models (MLLMs), image understanding capabilities have evolved from basic image-text matching to deep spatial logic reasoning. However, when handling high-difficulty visual tasks such as dense counting, complex object localization, or maze navigation, industry models still frequently suffer from logic collapse. The recent release of an experimental multimodal model has once again drawn industry attention to the route selection of visual processing solutions. This article strips away specific product attributes to deeply analyze the evolution of visual primitive routes in MLLMs from the dimensions of underlying technical principles, test bias analysis, Agent tool configuration pain points, and prompt engineering practices.

    1. Breaking Through the “Perception Gap” and “Reference Gap”

    In the early stages of multimodal model development, the core challenge was the “perception gap,” where models could not accurately identify objects in images. With the improvement of visual encoder performance, this gap was gradually bridged. However, industry research found that the true bottleneck limiting models from handling complex visual tasks has shifted to the “reference gap.”

    The “reference gap” refers to the fact that when large models perform visual reasoning, they are still forced to use natural language to describe image content within their chain of thought. Natural language inherently possesses ambiguity and discreteness. When facing tasks requiring high-precision spatial coordinates or dense counting (e.g., counting all members of a 25-person team), natural language descriptions easily generate ambiguity, leading to a broken logic chain.

    To solve this problem, academia proposed the concept of “visual primitives.” Visual primitives aim to provide an “unambiguous pointer” to accurately describe objects in a continuous visual space. Instead of relying on vague text descriptions, it directly embeds coordinates or geometric primitives into the model’s thinking process, thereby avoiding the interference of natural language on complex recognition tasks. In contrast, a more classic industry route is “chain-of-thought image reading,” which directly extracts and integrates image features into the model’s thinking process without explicitly generating intermediate primitive formats.

    2. Ideal vs. Reality: Test Performance Analysis

    Although “visual primitives” are highly attractive at the theoretical level, in actual deployment, developers often find significant deviations between engineering implementation and academic theory. Taking a recently released experimental vision model as an example, its web-based test results do not completely align with the capabilities claimed in its official paper.

    For instance, in a dense counting task, a 25-person team that the paper claimed could be accurately identified was mistakenly counted as 27 in web testing. In the route planning test for maze navigation, the perfect planning route demonstrated in the paper completely failed on the web. This discrepancy can be attributed to several reasons:

    1. Route compromise: Considering resource constraints or to improve overall response speed, the experimental version might have abandoned the complex “visual primitive” mechanism and reverted to the lighter “chain-of-thought image reading” route.
    2. Context truncation: To ensure a multi-user concurrent experience, the web version might strictly limit the token length per inference, causing the model to be forcibly truncated when generating long sequences of visual primitives, thus triggering logic collapse.
    3. Weight differences: The versions showcased in papers are often full-capacity or specifically fine-tuned versions, while those available on the web might be quantized or distilled lightweight models.

    3. Usability Pain Points in Agent CLI Tool Configuration

    In the process of validating these model capabilities, developers typically rely on official Agent frameworks or command-line tools. However, many model vendors currently exhibit a clear disconnect between documentation and experience in the release and maintenance of their toolchains.

    When attempting to configure specific model parameters, developers often face unclear documentation. For example, official promotional articles might only provide a simple one-line configuration example, such as setting model='xxx-vision-exp', without explaining the prerequisite environment dependencies and tool upgrade steps. If developers are unfamiliar with the underlying implementation logic, it is difficult for them to realize that the tool actually depends on a JSON configuration file rather than simple command-line parameters.

    In fact, the correct general solution path should be to use standard package managers (e.g., executing a global update command to upgrade the CLI tool) and then use specific configuration commands to switch the model’s runtime environment. This highly unfriendly documentation for third-party users reflects the problem of some vendors prioritizing “internal use over external experience” when developing tools. For enterprise developers, building a clear, standardized Agent invocation specification that includes version management instructions is a necessary condition for reducing integration costs.

    4. Practice in Triggering and Validating Underlying Visual Primitive Capabilities

    Faced with poor default performance on the web, developers can attempt to explore whether the model retains underlying “visual primitive” capabilities through prompt engineering.

    By adding specific instruction tags before the prompt (e.g., trigger words like [Think with Grounding] or [Think with Pointing]), you can attempt to force the model to explicitly output specially formatted visual primitive coordinates in its chain of thought. However, testing revealed that even if this mode is successfully triggered, the model still struggles to perfectly reproduce the complex cases demonstrated in the paper when the thinking length is limited.

    This suggests that the capability of MLLMs depends not only on whether their network architecture supports certain advanced features but also on whether sufficient alignment optimization was conducted during the post-training phase. If the model lacks enough token space to “unfold” these visual primitives during inference, then even the most exquisite theoretical design will become formalistic in engineering practice.

    5. General Recommendations for Enterprise MLLM Deployment

    For enterprises looking to integrate MLLMs into production environments, they should not blindly idolize a single cutting-edge technology or experimental metric. Instead, they should build a comprehensive evaluation and deployment system.

    1. Build private evaluation benchmarks: Construct private evaluation sets tailored to actual business scenarios (e.g., defect detection, complex chart parsing) to avoid being misled by cherry-picked cases in public papers.
    2. Cloud-native infrastructure synergy: When deploying multimodal inference services, fully utilize object storage to efficiently manage massive image data, and achieve elastic scaling of inference nodes through container platforms. Combined with general logging services and monitoring/alerting components provided by cloud service providers like Baidu AI Cloud, real-time tracking of model latency and error rates when processing complex images can be achieved, promptly detecting inference anomalies caused by the “reference gap.”
    3. Prompt and workflow engineering: Treat prompt tuning as a continuous workflow. Design differentiated system prompts for different visual tasks (e.g., counting, localization, VQA), and perform post-processing validation on the model’s output at the Agent layer to compensate for the model’s shortcomings in specific logical reasoning.

    In summary, from “visual primitives” to “chain-of-thought image reading,” the visual processing route of MLLMs is still in a constant state of exploration and trade-off. Developers need to look beyond the surface of papers and promotions, and through rigorous engineering testing and rational cloud-native architecture design, truly transform these cutting-edge technologies into stable and efficient business productivity.