Understanding Visual Primitives in Multimodal Models: From Perception and Reference Gaps to Coordinate-Based Grounding

    This article explains how visual primitives help multimodal models address the perception gap and the reference gap that appear in dense counting, fine-grained localization, and structured extraction. It covers the core design of point, box, polygon, and reference tags, key engineering details such as disappearing explicit markers, multimodal placeholders, and coordinate normalization, and practical recommendations for data construction, training, output validation, evaluation, and service reliability. Readers will gain a clear view of how shifting references from language to visual coordinates improves parsing, consistency, and trainability.

    1. Background: Two Gaps in Multimodal Models

    Multimodal large models perform reasonably well on tasks such as describing an image, but their error rate rises sharply in scenarios involving dense counting, fine-grained localization, and structured extraction. The industry usually breaks these problems into two layers:

    1. Perception Gap: Once an input image is compressed into a limited set of visual encodings, information such as small objects, fine textures, and distant text is weakened, so the model effectively “cannot see clearly.”
    2. Reference Gap: Even when the visual information is sufficient, the model still refers to objects in natural language during reasoning, for example “the second red block from the left.” Natural language is ambiguous for spatial references, and bias accumulates step by step in long reasoning chains, eventually causing logical collapse.

    An open-source experimental multimodal model (the visual experiment version of the V4 series) continues the technical route of “visual primitives.” Its idea is to move references from the language space to a continuous visual coordinate space.

    2. Core Design of Visual Primitives

    Visual primitives can be understood as “unambiguous pointers”: geometric structures such as points, boxes, and polygons directly anchor image regions and replace vague language descriptions. Typical forms include:

    1. <point>[[x, y]]</point> # Single-point localization
    2. <box>[[x1,y1,x2,y2]]</box> # Rectangular box
    3. <polygon>[[x1,y1],...]</polygon> # Arbitrary shape contour
    4. <ref>...</ref> # Reference binding

    The tokenizer configuration shows that these markers are registered as special tokens (excluded from regular subword splitting) and appear in pairs (opening and closing tags). The settings special=true and normalized=false mean they are not rewritten by normalization, ensuring they can be reliably restored to structured data during parsing.

    The design delivers three key benefits:

    • Parseability: Outputs can be mapped directly to coordinates, making it easy for downstream systems to crop, align, render, and run automatic checks.
    • Consistency: Coordinates are globally unique identifiers that do not change with phrasing, reducing reference drift across multi-turn conversations.
    • Trainability: Coordinates enter the context as numeric sequences, allowing the model to handle language and spatial relationships within the same semantic space.

    3. Notable Engineering Details

    3.1 The Disappearance of Explicit Primitives

    During actual inference, explicit primitive markers are often absent from the chain of thought, while descriptions containing coordinates appear extensively. A reasonable explanation is that, after subsequent training stages, the model learns to internalize “explicit markers plus coordinates” into an expression that embeds coordinates directly in natural language, and the markers themselves are absorbed into the context distribution. This is representation convergence rather than a loss of capability, but it makes debugging more difficult.

    3.2 Mixed Text-and-Image Placeholders

    The configuration also contains a set of placeholders shaped like place_holder_mm_span_0001 through place_holder_mm_span_0442. Their common purpose is to mark where multimodal content is inserted in the text sequence so that text and visual segments can be aligned. The count does not fully match the stated support for “hundreds of images at most.” A more likely explanation is that a single image is split into multiple segments (spans) based on content, so the number of placeholders corresponds to the total number of segments rather than the total number of images.

    3.3 Coordinate Normalization

    In engineering practice, it must be clear whether coordinates are absolute pixel values or ratios normalized to [0,1]; otherwise, cross-resolution inference will produce systematic offsets. It is advisable to apply the same normalization at both preprocessing and postprocessing, and to log the original resolution.

    4. Implementation Recommendations

    • Data construction: Generate dual-channel supervision of “language description plus primitive annotation” for each sample. Annotations should cover points, boxes, and polygons, spanning counting and localization tasks.
    • Training strategy: First align with explicit primitives, then gradually reduce the proportion of markers to guide the model toward coordinate-embedded expression and avoid abrupt behavior changes at inference time.
    • Output validation: The parser should check that opening and closing tags are paired, and treat anomalies such as out-of-bounds coordinates, empty arrays, and non-numeric values as failures that trigger a retry.
    • Evaluation design: In addition to accuracy, add localization error metrics (such as center-point distance and intersection over union) and counting deviation metrics to reflect true perception capability.
    • Service reliability: Large-scale text-and-image tasks can rely on object storage to keep original assets, container platforms to host inference services, and logging and monitoring with alerts to track parsing failure rates and latency distribution.

    5. Conclusion

    The value of visual primitives lies in turning “reference” from a vague language problem into a computable spatial problem. Understanding the relationship among special markers, placeholders, and coordinate normalization is the prerequisite for reliably reproducing this capability in practice. Meanwhile, the tendency of explicit markers to become implicit after training reminds developers that evaluation and debugging must cover both the output text and the structured parsing paths.