Understanding Visual Primitives in Multimodal Models: Design, Evolution, and Engineering

    This article breaks down the concept of visual primitives in multimodal large models, explaining why language-based references create ambiguity in dense counting and complex localization tasks. It covers the perception gap and the reference gap, the basic forms of visual primitives such as points, boxes, polygons, and reference tags, and the observed shift where explicit primitive markers disappear from chain-of-thought output in favor of coordinate-based natural language. It also discusses image-text placeholder design and offers practical guidance for input, output, task, evaluation, and engineering layers. Readers will learn why structured spatial pointers matter and how to build tolerant parsing and strict validation into their integration.

    1. Introduction: Why Multimodal Models Need Visual Primitives

    In real-world applications of multimodal large models, image understanding is far more than “looking at a picture and describing it.” When tasks move from simple object classification to dense counting, complex scene localization, or fine-grained comparison, models often experience reasoning breakdowns. The root cause is usually not the image itself, but the fact that the model still relies on natural language to describe image content during reasoning, which leads to ambiguous references.

    One experimental multimodal model adopted a technical approach based on “visual primitives,” attempting to establish unambiguous pointers to objects within a continuous visual space. Using this technical background as a starting point, this article discusses the design motivation behind visual primitives, how they are implemented, and the key issues involved in engineering deployment, without referring to any specific product capabilities.

    2. Background: The Perception Gap and the Reference Gap

    2.1 The Perception Gap

    The perception gap refers to cases where the model “cannot see clearly,” such as insufficient resolution, loss of detail, or information loss caused by encoding and compression. The industry typically mitigates this through higher-resolution input, patch-based encoding, and multi-scale feature fusion.

    2.2 The Reference Gap

    Once perception issues are alleviated, the real bottleneck shifts to the language layer. When a model reasons using natural language references such as “the one on the left” or “the one near the red object,” ambiguity easily arises. In dense counting or complex localization tasks, a single pronoun may correspond to multiple candidate regions, and the reasoning chain becomes unstable.

    The core idea of visual primitives is to replace vague language with structured symbols that act as precise pointers in visual space.

    3. The Basic Form of Visual Primitives

    Public configuration information reveals a class of special markers used to represent polygons, points, bounding boxes, and reference relationships. They typically appear in pairs, forming an open-close structure, for example:

    1. <point> [x, y] </point>
    2. <polygon> [x1,y1], [x2,y2], ... </polygon>
    3. <box> [x1,y1,x2,y2] </box>
    4. <ref> target identifier </ref>

    The significance of this design is:

    • Points are used to refer to specific locations, suitable for keypoint localization;
    • Boxes express coarse regions, suitable for detection-style tasks;
    • Polygons express irregular contours, suitable for segmentation tasks;
    • Reference markers bind language descriptions to visual regions.

    4. Why Primitives Do Not Explicitly Appear in Actual Reasoning

    A noteworthy phenomenon is that explicit visual primitive markers are often absent from actual chain-of-thought output, replaced instead by natural language descriptions containing coordinates. This usually indicates a behavioral evolution that occurred in the later stage of training: the model learned to internalize structured pointers as coordinate expressions rather than relying on special symbols.

    This evolution leads to two outcomes:

    1. Output is closer to natural language, improving readability;
    2. Structural constraints weaken, increasing the cost of parsing and validation.

    For developers, this means you cannot assume that output will always contain parseable primitive markers, and a compatibility layer needs to be designed.

    5. The Design Logic of Image-Text Placeholders

    The configuration also contains a set of sequentially numbered image-text placeholder markers used to reserve positions in mixed image-text layouts. Their count is inconsistent with the officially claimed scale of multi-image support and the maximum number of markers per single image. Possible reasons include:

    • A single image occupies multiple placeholders depending on content complexity;
    • The placeholder pool is pre-allocated according to the maximum number of concurrent image-text segments;
    • Version iteration causes configuration and documentation to fall out of sync.

    From an engineering perspective, placeholders should be treated as a resource pool rather than a one-to-one mapping.

    6. Practical Recommendations

    1. Input side: Keep resolution and patch strategy consistent to avoid loss of detail.
    2. Output side: Build coordinate parsing and validity checks that support both explicit primitives and pure coordinates.
    3. Task side: For counting tasks, require point-by-point output; for localization tasks, require box or polygon output.
    4. Evaluation side: Measure perception metrics and reference metrics separately to locate the source of problems.
    5. Engineering side: Combine general cloud capabilities such as object storage, message queues, logging services, and monitoring alerts to build a traceable reasoning pipeline.

    7. Conclusion

    The value of visual primitives lies in transforming vague semantic references into computable spatial pointers. Understanding their design motivation and evolution path matters more than memorizing specific markers. When integrating such capabilities, developers should keep the parsing layer tolerant and the validation layer rigorous, so that stable performance can be achieved in complex visual tasks.