Why Multimodal Models Need Visual Primitives

    This article explains why multimodal models and AI agents often fail at dense counting, precise localization, and path planning, and how visual primitives address the gap. It contrasts the classic "think with images" tool-call approach with structured visual primitives such as points, bounding boxes, and polygons, then details how these primitives reduce referential ambiguity, make intermediate results verifiable, lower context cost, and integrate with deterministic tools. It also covers practical implementation concerns around configuration consistency, model-versus-product decoupling, tool permissions and fallback, and observability, plus a layered evaluation methodology using render-back review and perturbation consistency. Developers will find guidance on where to validate the benefits first and how to build reproducible, visualizable evaluation pipelines without vendor lock-in.

    1. Where the Problem Starts: Recognition Errors Are Rarely About the “Eyes”

    Once multimodal capabilities move into AI agent workflows, a recurring pattern appears: models perform well on general question answering and style description, but accuracy drops sharply on tasks such as dense counting, fine-grained localization, and path planning. Common failure modes include confusing two groups of targets with similar counts, missing objects in dense small-target regions, producing coordinates that do not match the described object, and inconsistent references across multiple reasoning turns.

    A shared view in the industry is that the main cause of these errors is usually not insufficient resolution in the vision encoder, but the fact that the model still describes images in natural language while reasoning. Natural language is inherently ambiguous when expressing “which one” or “the Nth one,” so the model must maintain a constantly rewritten list of objects in text space, and errors accumulate with each reasoning step. This is the so-called referential gap. A deeper layer, caused by input resolution and encoding choices, is the loss of detail known as the perception gap. Together, the two form the real bottleneck for complex visual tasks.

    2. Two Diverging Technical Paths

    The first is the classic “think with images” path: the model calls tools to crop, resize, and re-input images, repeatedly pulling the visual problem back into context. Its strengths are generality, simple implementation, and natural compatibility with existing tool-calling protocols. Its drawbacks are the latency and context growth from multiple round trips, and the fact that intermediate conclusions are still carried in natural language, so referential ambiguity is not eliminated.

    The second is the visual primitives path: introduce structured, unambiguous pointer symbols in the continuous visual space to anchor objects directly, instead of “guessing” the object from a description. These special symbols can be understood as three basic geometric primitives—points, bounding boxes, and polygons—each with explicit start and end markers. What the model outputs is a parseable structure rather than prose.

    A verifiable side proof is the tokenizer vocabulary: if dedicated symbols for points, boxes, polygons, and their closing markers are added to the vocabulary, it indicates that the model side has indeed reserved a channel for structured visual reference. These symbols are atomic in the vocabulary, so the model does not need to spell out coordinate text character by character when generating them, nor are they affected by ordinary text rewriting rules.

    3. Why Visual Primitives Ease the Referential Gap

    First, they downgrade “reference” from a semantic problem to an addressing problem. When the model says “these targets” and attaches a set of points or boxes, downstream code can fetch pixels directly by geometric position, without relying on whether the description is unique.

    Second, they make intermediate results verifiable. Structured output can be parsed by programs, rendered back onto the image, and checked for consistency, so errors surface early rather than only at the final answer.

    Third, they compress context cost. Compared with repeatedly stuffing cropped images back into context, a set of coordinate symbols carries higher information density and gives better stability for long-chain tasks.

    Fourth, they fit the tool ecosystem naturally. Capabilities such as detection, segmentation, counting, and distance measurement can be mounted as tools; the model only decides “where to look,” while deterministic programs handle the computation, reducing hallucination.

    A schematic interaction structure is shown below (it expresses only the protocol shape, not a specific product interface):

    1. {
    2. "action": "locate",
    3. "target": "dense small-target region",
    4. "primitive": {
    5. "type": "polygon",
    6. "points": [[x1, y1], [x2, y2], [x3, y3]]
    7. },
    8. "next": "count_with_tool"
    9. }

    4. Implementation Essentials in Agent Toolchains

    First, consistency between configuration and distribution. Official documentation, sample configurations, and the actually usable configuration format are often inconsistent, so users who follow the documentation fail outright. In engineering, configuration items should be consolidated into a single source of truth, with clear migration notes on version upgrades; upgrades are often done through a package manager’s global update, then the run mode is selected via a configuration file or command-line arguments.

    Second, decouple “model capability” from “product form.” The same model may expose different capabilities on the web, via API, and in agents, so evaluation conclusions must state the runtime form; otherwise cross-form comparisons are meaningless. Sample results in documentation do not necessarily equal actual behavior under the default configuration.

    Third, tool permissions and fallback strategy. Visual primitives depend on deterministic tools, so the input boundaries, failure returns, and timeout handling of tools must be defined to prevent the model from falling into repeated calls after a tool failure.

    Fourth, observability. It is recommended to log each step’s primitive output, tool inputs and returns, and the rendered intermediate images, making it easier to determine whether an issue is a perception problem or a reference problem.

    5. How to Evaluate These Capabilities Scientifically

    Evaluation should be layered: the perception layer looks at resolution and detail retention; the reference layer checks whether the same target still points to the same entity after ten reasoning steps; the tool layer looks at call success rate and parameter correctness; the end-to-end layer looks at absolute accuracy and variance on counting, localization, and navigation tasks.

    For methodology, it is recommended to introduce “render-back review”: draw the model’s primitive output back onto the original image and have a program or a human judge whether it covers the target. Also introduce “perturbation consistency”: apply slight scaling, translation, and brightness changes to the image, and correct results should remain stable. Only when layered metrics improve together can we conclude that the capability gain comes from the reference mechanism rather than a prompt working by chance.

    6. Conclusion and Recommendations

    The value of visual primitives is not to replace the vision encoder, but to provide a parseable, verifiable intermediate representation for multimodal reasoning. Practical advice for developers: validate the benefits first in three scenarios—dense counting, fine-grained localization, and long-chain planning; standardize configuration and version management; and build an evaluation pipeline that is layered, reproducible, and includes intermediate visualization. If enterprises need to carry such workloads, they can combine a general container platform, object storage, logging services, and monitoring and alerting to build elastic inference and full-chain tracing capabilities, without binding to any vendor’s proprietary interfaces.