Visual Primitives in Multimodal Models: A Technical Analysis of Structured Visual Tokens and Image-Text Placeholders

    As multimodal models evolve from basic image recognition toward stable, verifiable visual reasoning, techniques like visual primitives and image-text placeholders are becoming increasingly important. This article explains what visual primitives are, why special tokens in a vocabulary do not necessarily mean a model reasons with them explicitly, how coordinate expressions serve as a practical compromise, and how to systematically verify whether visual primitives actually take effect. It also covers placeholder mechanisms in interleaved image-text inputs and offers practical guidance for application developers building precision visual systems.

    In recent years, the focus of multimodal model capability has gradually shifted from “can it recognize images” to “can it reason stably, precisely, and verifiably based on visual information.” For ordinary visual question answering, understanding the general content of an image is usually sufficient. However, in tasks such as dense object counting, fine-grained localization, spatial relation judgment, complex document parsing, and visual agent workflows, relying solely on natural language descriptions often exposes clear limitations.

    Some experimental multimodal models have begun adding special tokens for points, boxes, and polygons to their vocabularies, attempting to convert objects in continuous visual space into structured representations that language models can process. This design is commonly referred to as “visual primitives.” From a technical perspective, it is not simply about adding a few special symbols; it is an attempt to change how models describe and reason about images.

    From the Perception Gap to the Reference Gap

    Multimodal systems typically face two levels of problems.

    The first is the perception gap, meaning the model fails to see the image correctly. Targets that are too small, heavily occluded, low in resolution, or containing blurry text can all cause the visual encoder to extract incomplete information. These are input comprehension problems, usually mitigated through higher-quality image encoding, more sensible resolution strategies, and local region enhancement.

    The second is the reference gap. Even when a model has correctly identified the objects in an image, it may be unable to stably refer to a specific target during subsequent reasoning. For example, when multiple similar objects appear in a scene, the model may know “there are three cars” yet fail to consistently distinguish “the second car from the left” from “the car occluded behind the tree.” When tasks involve dense counting, object tracking, or spatial relation judgment, natural language references like “this one,” “that one,” or “the object on the left” easily become ambiguous.

    The core idea behind visual primitives is to replace vague natural language references with structured markers that carry explicit geometric meaning. For example:

    • Points: represent object centers, keypoints, or precise locations;
    • Boxes: represent the rectangular extent of an object;
    • Polygons: represent irregular objects or instance segmentation regions;
    • Reference markers: represent a piece of text, a region, or an identified object;
    • Coordinate sequences: represent the relative or absolute position of objects in the image.

    These representations allow models to retain more stable spatial anchors during reasoning, reducing the risk of “seeing the object but being unable to point to it accurately.”

    What Special Tokens Reveal About Design Intent

    In a multimodal model’s vocabulary, if you find paired special markers, such as a start marker and an end marker for some structure, it usually means the model supports encapsulating a piece of structured visual information. The form might look like:

    1. <point> x, y </point>
    2. <box> x1, y1, x2, y2 </box>
    3. <polygon> p1, p2, p3 ... </polygon>
    4. <ref> object_description </ref>

    Note that the presence of these markers in the vocabulary only shows that the token system has reserved space for such expressions. It does not directly prove that the model explicitly outputs these markers in all reasoning tasks.

    Vocabulary and reasoning behavior belong to different layers:

    1. The vocabulary layer
      Defines which discrete symbols the model can recognize and generate.

    2. The model architecture layer
      Handles image features, text features, and the alignment between them.

    3. The training data layer
      Determines in which scenarios the model learns to use points, boxes, or polygons.

    4. The inference decoding layer
      Determines whether these structures are output directly, or converted into plain text, coordinate sequences, or internal representations.

    Therefore, you cannot conclude that a model necessarily employs “explicit visual primitive reasoning” based solely on the existence of special tokens.

    Why Visual Primitives May Not Appear in Actual Outputs

    In practical testing, the reasoning text may only contain descriptions like “the target is located in the upper-left region of the image, with a center coordinate of approximately …” without directly displaying point, box, or polygon markers. This is not contradictory; there are several reasonable explanations.

    First, visual primitives may be used during training, with natural language conversion at output time. The model may internally generate structured region representations first, then convert them into user-readable text through a post-processing module. This improves readability and prevents ordinary users from facing large amounts of coordinate markers.

    Second, visual primitives may exist only as supervision signals. Training data can use points, boxes, and polygons to tell the model “where the object is,” while the final optimization target remains natural language answers. The model learns spatial information without needing to reproduce the markers verbatim.

    Third, special tokens may primarily serve interleaved image-text layout or tool calling. They might be used to insert image regions in the input, mark visual segments in intermediate representations, or be read by external parsers, rather than being oriented toward the final answer.

    Fourth, the model may have undergone post-alignment training. The base model may produce structured symbols more frequently, but during instruction tuning, the training objective tends toward coherent, natural explanations, reducing the probability of explicit markers.

    Fifth, visual primitives may have been compressed into coordinate expressions. In other words, the model no longer outputs complete tag structures but directly generates coordinates, directions, and region descriptions. The idea of visual primitives still exists; the form has simply evolved from “explicit markers” to “structured text.”

    Therefore, determining whether a model genuinely leverages visual primitives requires more than observing final answers. You should also consider input templates, intermediate outputs, post-processing logic, and task data formats.

    Why Coordinate Expressions Are an Important Compromise

    In engineering practice, complete polygons or complex markers, while expressive, increase sequence length and parsing costs. Coordinate expressions are a more practical compromise.

    Take the bounding box as an example. Normalized coordinates can be used:

    1. Target region: top-left (0.18, 0.24), bottom-right (0.63, 0.78)

    Here, both the horizontal and vertical coordinates are mapped to the 0-to-1 range. This offers several benefits:

    • Independence from specific image resolutions;
    • Easy processing across devices and datasets;
    • Direct conversion to pixel coordinates;
    • Straightforward integration with detection, cropping, and annotation systems;
    • Results that are easier for programs to parse.

    However, coordinate expressions carry risks. First, model-generated numbers may suffer from rounding errors, ordering mistakes, or out-of-range values. Second, the coordinate system must be clearly defined, such as whether the origin is at the top-left or bottom-left, and whether coordinates are based on the original or a scaled image. Third, the model may output regions that look visually plausible but are geometrically imprecise.

    Therefore, in production systems, coordinate results should be validated:

    1. Check that x1 <= x2
    2. Check that y1 <= y2
    3. Check that all coordinates are within the valid range
    4. Check that the box area exceeds a minimum threshold
    5. Check that the region corresponding to the coordinates matches the target category

    If results are used for automatic cropping, mechanical control, or review workflows, you should also add confidence scores, retry mechanisms, and human fallback.

    Placeholder Mechanisms in Interleaved Image-Text Inputs

    Multimodal input is not necessarily “a piece of text plus one image.” More complex scenarios may involve multiple images, multiple local regions, tables, scanned pages, and interleaved text. To maintain the correspondence between text sequences and visual features, models typically use placeholders or span markers.

    Placeholders can be understood as “visual slots” in the text sequence, for example:

    1. This is the first image: <image_slot_1>
    2. The local region in the image is: <region_slot_1>
    3. Next, analyze the second image: <image_slot_2>

    Internally, the model may replace these placeholders with visual encoding results, or associate text segments with image features through positional indexing.

    It is important to distinguish between “number of images” and “number of visual spans.” A single image may be split into multiple visual patches, or simultaneously produce global features, local features, text region features, and object region features. Therefore, the upper limit of placeholder numbering cannot simply be equated with the number of images. The numbering range may also be affected by:

    • Whether the image is split into multiple regions;
    • Whether high-resolution processing is enabled;
    • Whether local crops are inserted;
    • Whether pages, tables, and text blocks are encoded simultaneously;
    • The model’s context window and visual feature length;
    • How the inference framework organizes batched inputs.

    Therefore, when analyzing placeholders, do not infer the maximum number of supported images based solely on numbering. You must verify against the input template and the visual encoding pipeline.

    How to Systematically Verify Whether Visual Primitives Actually Take Effect

    If you want to study the visual mechanism of a multimodal model, you can follow these steps.

    First, inspect the vocabulary. Confirm whether special tokens appear in pairs, whether they have clear start and end boundaries, and record their IDs, whether they are special tokens, and whether they participate in regular tokenization.

    Second, inspect the input template. Observe where images are inserted, how regions are inserted, the placeholder numbering rules, and how multiple images are separated.

    Third, design verifiable tasks. Do not only test “what is in the image”; also test:

    • Localizing multiple similar objects;
    • Counting objects;
    • Counting objects within a specified region;
    • Spatial relations between two objects;
    • Sorting objects by position;
    • Outputting object boxes and validating coordinates;
    • Outputting polygons for irregular objects.

    Fourth, compare different output formats. Ask the model to use natural language, coordinates, box markers, and region references separately, and observe accuracy, stability, and format error rates.

    Fifth, check post-processing. Confirm whether the final answer you see has undergone marker stripping, coordinate formatting, or natural language rewriting. Many cases of “invisible special markers” actually happen after the model’s output.

    Sixth, conduct perturbation experiments. Vary image size, object arrangement, object colors, and background complexity to observe whether the model relies on semantic descriptions or can maintain stable spatial references.

    Implications for Application Development

    For systems requiring precise visual interaction, it is recommended to handle natural language and structured visual results in separate layers. Natural language suits explanation and dialogue; coordinates, boxes, and polygons suit programmatic execution. The two should not be conflated.

    A reasonably robust output structure might look like:

    1. {
    2. "description": "Two objects detected",
    3. "objects": [
    4. {
    5. "label": "Object A",
    6. "box": [0.18, 0.24, 0.63, 0.78],
    7. "confidence": 0.91
    8. }
    9. ]
    10. }

    Production systems should also add schema validation, coordinate normalization, exception retries, and logging. For high-risk scenarios involving safety, healthcare, or industrial control, model outputs must not be used as the final decision basis; they must pass through a rules engine or human review.

    Overall, the value of visual primitives lies not in the special symbols themselves, but in the more precise spatial referencing they provide for multimodal reasoning. Whether a model displays these primitives directly to users is not the sole criterion for judging whether the technical approach works. What matters more is observing whether it can stably perform object localization, relation judgment, dense counting, and region-level reasoning in complex scenarios.

    Looking ahead, multimodal systems may further integrate natural language, coordinates, region references, and executable operations, forming a collaborative model in which “language explanations handle communication, visual structures handle localization, and programmatic interfaces handle execution.” For developers, understanding the relationship among vocabularies, placeholders, and visual primitives helps evaluate model capabilities more accurately and provides a more reliable technical foundation for applications such as image retrieval, document understanding, intelligent content review, and visual agents.