Visual Primitives in Multimodal Models: Tokenizer Clues and the Shift from Explicit Symbols to Implicit Coordinates

    A close reading of special tokens in the tokenizer of a recently open-sourced vision-language model reveals a visual-primitive design: paired structural tokens for points, boxes, polygons, and references, plus a large placeholder-span system. This article examines how visual primitives aim to close the reference gap in multimodal reasoning, why explicit primitive tokens may be internalized during post-training, and why tokenizer evidence should be cross-checked against inference behavior and documentation.

    I. Background: Clues in the Tokenizer Vocabulary

    When analyzing a recently open-sourced visual multimodal model, architecture parameters and training configurations are only part of the picture. The tokenizer vocabulary often acts as a “treasure map” that reveals design intent. Developers recently noticed an unusual set of special tokens in the model’s tokenizer.json, including paired opening and closing markers for polygons, points, and boxes, as well as reference-related start and end markers. These tokens appear as special entries and occupy adjacent token ID ranges, for example:

    ID Content Special
    129271 `< /polygon >` true
    129272 `< polygon >` true
    129273 `< /point >` true
    129274 `< point >` true
    129275 `< /box >` true
    129276 `< box >` true
    129277 `< /ref >` true
    129278 `< ref >` true

    This paired, contiguous-ID arrangement suggests that these tokens were not added as a temporary patch. They were planned as structural tokens during vocabulary design. They point directly to the “visual primitives” technical route.

    II. What Are Visual Primitives? An Attempt to Close the “Reference Gap”

    The idea of visual primitives can be traced to an earlier research paper, Thinking with Visual Primitives. The paper re-examines image recognition in multimodal models and raises a thought-provoking point.

    In previous generations of multimodal models, the industry mainly addressed the “Perception Gap”—the problem that models “cannot see clearly.” Typical methods included increasing visual encoder resolution, dynamically splitting image patches, and refining patch granularity. But once perception improves beyond a certain point, the ceiling on recognition ability is not entirely on the image side.

    The problem lies on the reasoning side: when models think, they still tend to describe objects in images using natural language. Natural language is inherently ambiguous. When a target is referred to as “the second red cup on the left,” the description itself is vague and lossy. In tasks such as dense counting, complex object localization, and fine-grained spatial relation reasoning, this ambiguity is amplified across multi-step reasoning and can ultimately cause logical breakdown. This is the so-called “Reference Gap.”

    The visual-primitive approach introduces a special class of structured symbols into the vocabulary, allowing the model to use them in its chain of thought as “unambiguous pointers” in continuous visual space. Intuitively, the form is similar to:

    1. <|ref|> <|point|>[[x, y]] <|/point|> <|/ref|>

    Here, the coordinates are no longer part of a natural-language description. They are precise references anchored directly in the visual feature space. During reasoning, the model can “point” to an entity in the image and then count, compare, or compose these pointers without repeatedly translating visual information back into ambiguous natural language.

    III. A Puzzle: Explicit Symbols Become Implicit

    In actual testing, however, an interesting contradiction appears: the model’s chain-of-thought output does not contain the explicit visual-primitive markers described above. That is, no explicit symbol strings such as <|point|>[[a,b]]<|/point|> were observed.

    There are two reasonable explanations.

    1. Symbol internalization during post-training. During pretraining or mid-training, the model may indeed learn an explicit primitive symbol system. But during post-training—for example, alignment training for chat and chain-of-thought formats—the explicit symbols may be converted into direct coordinate values. From actual outputs, many object descriptions do contain coordinate information, indicating that the ability to “refer to objects with precise spatial coordinates” is retained, while the outer form has changed from special tokens to plain-text coordinates. This is a common evolution pattern: structural channels reserved in the architecture can be compressed or rewritten during later training into output forms closer to the data distribution.

    2. Explicit symbols used only as internal training objectives. The special tokens may be used only in specific training stages, such as supervised localization pretraining. At inference time, training may enable the model to achieve equivalent reference ability without explicitly outputting the symbols.

    Either explanation suggests that judging whether a model adopts a technical route cannot rely only on the surface form of inference outputs. The vocabulary, training configuration, and actual behavior need to be cross-validated.

    IV. Another Question: The Placeholder System for Interleaved Image-Text Content

    The vocabulary also contains a more quantitative class of special tokens: placeholders of the form place_holder_mm_span_xxxx, numbered from 0001 to 0442.

    The first intuition is that these are image placeholders embedded in the text stream for interleaved image-text scenarios. But several numbers do not line up:

    • If one placeholder corresponds to one image, then 442 placeholders would mean up to 442 images per request, which does not match the number stated in the official documentation.
    • Under another interpretation, span means “a span of multimodal content,” meaning one image can be described jointly by multiple span placeholders. But then another constraint applies: the number of visual tokens for a single image usually has an upper bound—on the order of hundreds of tokens—and the number 442 is similarly difficult to map directly.

    This “numbers do not match” situation suggests that the placeholder system may be designed at a different level from the user-facing capabilities described in the documentation. It could be a sharding mechanism used during internal data construction—for example, uniformly numbering charts, formulas, and illustrations in long documents—or a multimodal span alignment mechanism for training rather than a user-interface mapping of image limits. Without an official explanation, these hypotheses should remain open.

    V. Further Reflections

    1. Tokenizer design is a “living fossil” of multimodal architecture research. When studying open-source models, tokenizer.json deserves item-by-item review. The organization of special tokens often reveals more implementation details than a paper abstract.

    2. Structured reference is an important direction for fine-grained visual reasoning. Whether through explicit primitives or implicit coordinates, replacing vague language descriptions with precise spatial references has broad value for dense perception, document understanding, GUI operation, and similar tasks. In practical multimodal application development, developers can borrow a similar idea: in agent workflows that require precise localization, having the model output structured coordinate or box data (such as JSON) and then post-processing it programmatically is often more reliable than asking the model to “describe positions” in text.

    3. There is no absolute superiority between explicit and implicit forms. Explicit symbols are more interpretable and easier for constructing supervision signals, but they consume output space and differ from the pretraining corpus distribution. Implicit forms are more natural and fluent but weaken observability. How to achieve a smooth transition between the two during training is an open research question.

    4. Be cautious with numbers. Open-source models often show inconsistencies between documentation and implementation. Cross-validation and hands-on experiments remain the most reliable way to understand model behavior.

    Overall, this set of special tokens reveals a multimodal technical route worth watching. It attempts to solve, at the root, the problem that “the model can see but cannot describe precisely.” How explicit primitives are internalized into implicit coordinate reasoning after training is the most intriguing part of this route. For engineers working on multimodal applications, understanding this design philosophy has more long-term value than memorizing the behavior of any single model.