Visual Primitives in Multimodal Models: From Spatial Reference to Engineering Validation

    Visual primitives such as points, boxes, and polygons give language a spatial anchor, but tokenizer markers and placeholders are only clues. This article separates perception from stable reference, explains what special tokens do and do not prove, and outlines reproducible checks and coordinate conventions for verifiable multimodal outputs.

    1. Understanding vision means more than what the model “recognized”

    In technical analysis of multimodal models, developers often focus on image-recognition accuracy, the number of image inputs, and visual encoding length. A different question is easier to miss: during later reasoning, can the model keep pointing to the same object?

    Consider a shelf image with several similar packages. The model may correctly recognize “a blue package,” but a request such as “count the blue packages on the second level at the left, and exclude the occluded one” can become ambiguous if it relies only on natural language.

    Two layers should be distinguished:

    • Perception: whether the model identifies objects, text, and spatial relations in the image.
    • Reference: whether, while describing, comparing, and reasoning, the model can stably map language to a specific object or region.

    The two are related but not equivalent. Correct recognition does not guarantee correct later reference. Clear coordinates do not guarantee that the content inside the cited region was recognized correctly.

    When analyzing a multimodal approach, it is not enough to check whether the output reads fluently. Object localization, reference stability, and the verifiability of structured results also matter. Visual primitives are a class of representations built around these issues.

    2. The core of visual primitives: give language a clear spatial anchor

    A visual primitive can be understood as a basic structure for expressing a position or region in an image. Common forms include points, rectangles, and polygons.

    Their value is not to replace all natural language, but to add a clearer spatial anchor. “The part on the right” can shift in meaning with context, while “the part inside a specified rectangle” can be located and checked by a program.

    “Unambiguous,” however, depends on an agreed coordinate system, image identity, and geometric meaning. A set of numbers by itself does not automatically form a reliable object pointer.

    2.1 Points: position, not a full boundary

    A point is suitable for an object center, a key location, or an interaction target—for example, a data point in a chart, a connection point on a part, or a click location on a page.

    The structure is compact, but expressive power is limited. A point states a location; it usually cannot fully describe size, contour, or occlusion. In a dense scene, a point may fall near several objects and needs an object identifier or other information to interpret.

    2.2 Rectangles: region localization and cropping

    Rectangles are commonly used for object detection, text-region localization, and local image cropping. Two representations are common:

    • top-left and bottom-right coordinates;
    • top-left coordinates plus width and height.

    These formats must not be mixed. The same numbers can otherwise be interpreted as different regions.

    Rectangles are easy to process and map cleanly onto cropping and region retrieval. Their limits are that they may include substantial background and fit poorly to tilted or irregular objects.

    2.3 Polygons: more complex region contours

    A polygon describes a region with an ordered set of vertices. It suits tilted text, irregular parts, and complex boundaries.

    Compared with a rectangle, a polygon can express a finer contour, but it demands higher output quality and stricter parsing. Developers need explicit rules for vertex order, closure, whether self-intersection is allowed, and how abnormal vertices are handled.

    A polygon representation does not by itself mean pixel-level segmentation. A contour made of a few vertices may still be only an approximation of the object boundary.

    3. What special markers can and cannot show

    Tokenizer configurations for multimodal models sometimes include paired structured markers, for example:

    Marker example Structure it may express
    `< point >and< /point >` A point-coordinate span
    `< box >and< /box >` A rectangular-region span
    `< polygon >and< /polygon >` A polygon-vertex span
    `< ref >and< /ref >` A reference span; the exact meaning needs further confirmation

    These markers matter because they show that related symbols are reserved in the vocabulary. When the corresponding encoding rules are supported, special markers can participate in text processing as independent units.

    Vocabulary information is static evidence. It cannot by itself prove a complete runtime mechanism.

    3.1 Presence in the vocabulary does not mean every inference uses it

    A marker may be used in training data, an input format, a specific task, or a retained compatibility path. Even if it exists in the vocabulary, not every request will generate it.

    “Spatial markers were found” is better stated as “there is a clue of structured spatial representation,” not as “the model has been shown to use visual primitives on every inference.”

    3.2 A marker name is not a full protocol

    A name alone cannot determine the coordinate range, numeric encoding, object-ID rules, or reference relations.

    A reference marker might be tied to an object label, or it might cite some other span. Without a format specification or repeatable input–output examples, it should not be assigned a definite internal meaning.

    3.3 Special markers are not evidence of stronger capability

    A rectangle marker in the vocabulary does not directly prove high-precision localization, nor that the model is better than other approaches at counting, spatial reasoning, or complex scene understanding.

    Capability should be judged by task tests, not by a configuration file alone.

    4. Why visual primitives may be absent from user-visible output

    Seeing structured markers in configuration but not in actual output is not a direct contradiction. The cause may lie in generation, decoding, or presentation. Each explanation below is engineering-plausible, but none should be treated as fact without evidence.

    4.1 Decoding or presentation may filter special markers

    Some text pipelines skip special markers at decode time. An application layer may also turn structured regions into ordinary coordinate text or visualized selections.

    The string a user sees is therefore not necessarily identical to the raw output sequence. Validation should separate the raw marker sequence, decoded text, and interface display.

    4.2 The format may trigger only on specific tasks

    General image question answering may return only natural language, while object localization and region reference may require structured representation.

    Testing only with prompts such as “describe this image” is usually not enough to judge whether visual primitives take part in particular tasks.

    4.3 Coordinate text may be another output form

    If the model says “the center is near a certain coordinate,” it has produced a spatial description. That does not prove the description was converted from special markers.

    Plain coordinate text may also come from a separate training format, task prompt, or application-layer constraint.

    4.4 Visible explanation is not the full internal process

    Explanations, summaries, or reasoning text shown to the user are not a complete record of internal computation.

    The absence of a marker in visible text does not prove the model used no spatial information. The presence of coordinates does not prove a particular internal reasoning mechanism.

    A bounded conclusion is appropriate: static configuration supplies clues, and visible output supplies behavioral evidence; neither alone can reconstruct the full internal implementation.

    5. Why multimodal placeholder counts do not map directly to image counts

    Another common clue is numbered multimodal placeholders. They may mark where a visual span sits in the sequence, or link a text position to visual content, but the actual use must be confirmed against the processing logic.

    Three quantities should be kept distinct:

    1. the number of placeholder types;
    2. the number of images allowed in a single request;
    3. the length of the visual sequence after image conversion.

    These three need not correspond one to one.

    5.1 Placeholder types are not an image-count limit

    Several numbered placeholders in the vocabulary do not establish how many images the model supports.

    Placeholders may be reused, or they may serve span indexing, region reference, or other format conventions. Only an explicit encoding protocol can state their relationship to image count.

    5.2 One image may produce multiple visual spans

    In some general processing schemes, an image may be tiled, processed at multiple scales, or locally cropped into several spans.

    Conversely, one placeholder may only mark where visual content is inserted, with a sequence of visual features behind it rather than a single visual unit.

    5.3 Visual sequence length can change with processing strategy

    Sequence length may depend on resolution, tiling, dynamic scaling, and compression.

    Without the preprocessing rules, image limits cannot be inferred by dividing placeholder count by the sequence length of one image. Service-layer quantity limits and internal model encoding should also be discussed separately.

    6. Designing reproducible validation experiments

    Developers should split speculation into questions that can be checked separately, rather than concluding an entire technical approach from one test.

    6.1 Build a layered sample set

    Useful coverage includes:

    • basic localization with few objects and a simple background;
    • counting of densely arranged, similar-looking objects;
    • overlap and partial occlusion among multiple objects;
    • localization of chart, table, and document regions;
    • similar objects across multiple images;
    • rotation, scaling, and different input resolutions.

    These samples probe perception, spatial expression, and reference stability, and avoid overly optimistic judgments from simple images alone.

    6.2 Compare different output requirements

    For the same image, request separately:

    • natural-language description only;
    • object name and center point;
    • object ID and rectangle;
    • later answers that refer to objects by ID.

    Watch whether structured results are stable, whether coordinates are valid, and whether the same object drifts in identity across turns.

    6.3 Score format correctness and semantic correctness separately

    Structured output needs at least three checks:

    • Syntax: can it be parsed, and are fields complete;
    • Geometry: are coordinates in range, and is the region valid;
    • Semantics: does the region actually correspond to the target object.

    A parseable rectangle may still enclose the wrong object. Format compliance does not replace task correctness.

    7. Engineering use starts with a shared coordinate protocol

    Even good localization output will produce system errors if upstream and downstream interpret coordinates differently.

    At minimum, specify:

    • whether coordinates refer to the original image or a preprocessed image;
    • origin and axis directions;
    • pixel values or normalized values;
    • field order for rectangles;
    • whether the image was cropped, rotated, scaled, or padded;
    • image identity in multi-image scenes.

    The structure below is illustrative. It does not represent any specific model or interface protocol:

    1. {
    2. "image_id": "img_01",
    3. "coordinate_system": "normalized",
    4. "objects": [
    5. {
    6. "object_id": "obj_01",
    7. "label": "target object",
    8. "box": [0.12, 0.18, 0.35, 0.46]
    9. }
    10. ]
    11. }

    If the rectangle means a normalized top-left and bottom-right, the application layer should check:

    1. 0 <= x1 < x2 <= 1
    2. 0 <= y1 < y2 <= 1

    When there is no crop, rotation, or padding, coordinates can be mapped to pixels by image width and height. If preprocessing changed the image geometry, the corresponding inverse transform is required; simple multiplication is not enough.

    For device control, automated clicks, or quality decisions, add exception handling and human review. A legally structured output is not sufficient reason to act immediately.

    8. What matters is verifiable spatial capability

    Visual primitives matter because they move a multimodal system from “describing an image in words” toward “referring to image content with an explicit spatial structure.”

    Technical value should still be judged at three levels:

    • Representation: whether structured symbols such as points, boxes, and polygons exist;
    • Protocol: whether coordinates, references, and multimodal spans are specified;
    • Capability: whether real tasks improve localization accuracy, reference stability, and result verifiability.

    Special markers and placeholders are useful entry points for analysis, not conclusions. A reliable assessment connects configuration evidence, actual output, and reproducible experiments.

    For developers and enterprise users, the goal is not more coordinates in the answer. It is that every region reference can be explained, checked, and traced, that errors can be found, and that structured visual results become a maintainable engineering interface.