Visual Primitives in Multimodal Large Models: From Special Tokens to Closing the Reference Gap
This article examines how special tokens in a multimodal model's tokenizer configuration reveal its visual grounding design. It explains the "visual primitives" approach—structured geometric tokens for points, bounding boxes, and polygons—and how it addresses two core challenges in vision-language models: the perception gap and the reference gap. It also analyzes why these tokens may not appear in actual inference outputs, and offers practical engineering guidance for evaluating and deploying multimodal models in production.
Visual Primitives in Multimodal Large Models: From Special Tokens to Closing the Reference Gap
Background: Technical Observations from an Experimental Multimodal Model
An open-source model community recently released the first experimental multimodal version of its new model series. Built on an existing text-only architecture, it introduced visual understanding capabilities and quickly drew attention from the developer community. For engineers building multimodal applications, the real value of such a release lies not in benchmark scores but in the technical choices revealed by its internal design—especially the special tokens in the tokenizer, which often expose the core intent of the model designers.
This article starts from the special tokens found in that model’s tokenizer configuration, traces the evolution of the “visual primitives” approach, analyzes the two fundamental problems it aims to solve—the perception gap and the reference gap—and, based on observed inference behavior, discusses how this direction is evolving in engineering practice.
What the Tokenizer Configuration Reveals About Visual Design
Design Intent Behind the Special Tokens
When analyzing a large model, the tokenizer configuration is often the most honest “design document.” In this experimental model’s tokenizer configuration, a set of paired special tokens can be observed, whose semantics correspond to three types of geometric elements:
| Token Type | Semantic Meaning | Typical Use Cases |
|---|---|---|
| Polygon open/close token pair | Describes irregular region contours | Segmentation, fine-grained localization |
| Point open/close token pair | Represents a precise position in 2D space | Counting, keypoint localization |
| Bounding box open/close token pair | Represents a target boundary region | Object detection, region referencing |
There is also a pair of reference-related open/close tokens, presumably used to establish referring relationships between text and specific visual regions.
The presence of these tokens is no accident. In traditional multimodal models, answering questions like “How many people are in the image?” or “Where is the cat in the picture?” can only produce vague natural language descriptions such as “upper left” or “about three people.” These special tokens suggest that the designers wanted the model to have structured, parseable, and unambiguous geometric表达能力 during reasoning—points, boxes, and polygons being the three most fundamental annotation primitives in computer vision.
Placeholder Tokens and Interleaved Image-Text Mechanisms
Beyond the geometric primitive tokens, the configuration contains a batch of special tokens in the form of “multimodal span placeholder + index,” with indices running continuously from 0001 to 0442. There are two common hypotheses about their purpose:
- Image-text interleaving placeholders: When images are inserted into text in training corpora, a placeholder marks the image position so that the visual encoder’s feature sequence aligns correctly with the text sequence.
- Block-level descriptions within an image: A single image may be split into multiple visual spans, each mapped to one placeholder for fine-grained image-text alignment.
Notably, the number of placeholders (442) does not exactly match the officially documented maximum number of supported images, or the number of visual tokens per image. This kind of mismatch is actually common: tokenizer vocabularies typically reserve redundant capacity for future expansion, or training may adopt mixed-granularity visual tiling strategies, making simple arithmetic derivations unreliable for reconstructing the true mechanism. The lesson here is that reverse engineering should be done cautiously—avoid drawing conclusions from a single piece of evidence.
Visual Primitives: Closing the Reference Gap After the Perception Gap
Two Levels of Gaps
To understand the value of visual primitives, we first need to distinguish the two layers of obstacles multimodal models face in visual understanding:
Layer one: the Perception Gap. This refers to the model “not seeing clearly”—constrained by the visual encoder’s resolution and feature extraction capability, the model cannot reliably extract fine-grained information from pixels. In recent years, this problem has been substantially mitigated through high-resolution encoding, dynamic image tiling, and stronger visual backbones.
Layer two: the Reference Gap. This is the more subtle and more fundamental problem: even when the model “sees clearly,” it must still use natural language to “describe” what it sees during reasoning. But natural language is fuzzy and lossy. When tasks involve dense counting (“count all the apples in the image”), complex spatial relations (“the person behind the second car from the left”), or precise localization, using natural language as the intermediate representation causes information loss and breakdowns in the reasoning chain. The model may “lose track” of objects it has already counted, or fail to consistently refer back to regions mentioned earlier.
The Core Idea of Visual Primitives
The core idea of the visual primitives approach is: replace natural language with structured geometric tokens, serving as unambiguous pointers for the model to think in visual space.
Concretely, when the model needs to refer to an object in an image during its chain of thought, instead of outputting “that black cat,” it outputs a structured expression like “the object at point [x, y].” This brings three significant benefits:
- Unambiguity: Coordinates are precise and unique, free from the vagueness of natural language;
- Composability: Points can form boxes, boxes can combine into polygons, supporting a task spectrum from simple localization to fine-grained segmentation;
- Verifiability: Structured intermediate results can be programmatically validated, reducing accumulated errors during reasoning.
# Illustrative chain-of-thought snippet in the ideal caseObserve image -> detect object 1 at <point>[0.32, 0.45]</point>-> detect object 2 at <point>[0.68, 0.51]</point>-> Conclusion: 2 objects exist in the image
A Puzzling Phenomenon: Why Do the Explicit Tokens “Disappear”?
Deviation Between Design and Actual Inference Behavior
Based on the tokenizer configuration, the model should explicitly output these geometric tokens during inference. However, the chain-of-thought observed in actual testing contains none of these special tokens. Instead, the model tends to directly use normalized coordinate values in natural language descriptions, such as “the object near coordinates (0.32, 0.45).”
This kind of design-versus-behavior deviation is not uncommon in large model development, and there are several plausible explanations:
- Evolving training strategy: The model may explicitly use special tokens to learn visual primitive capabilities in early training, while in later instruction tuning or reinforcement learning stages, the tokens are “internalized” into direct coordinate descriptions for readability and generality. The capability is retained, but its surface form changes;
- Decoding-level processing: Special tokens may be filtered or converted before output, so end users only see the post-processed natural language form;
- Staged capability building: Visual primitives may primarily operate at the model’s internal representation layer—that is, the alignment between visual features and text hidden states—rather than at the final output layer.
Implications for Developers
This phenomenon offers an important takeaway for application developers: when evaluating a multimodal model’s localization capability, do not focus solely on output format. Instead, use stress-test tasks such as dense counting and multi-object localization to check the consistency and accuracy of coordinate outputs. If the model still reliably outputs correct coordinates in complex scenarios, the referring capability targeted by visual primitives has been acquired in some form—regardless of whether it manifests as explicit tokens.
Engineering Practice Recommendations
For teams looking to apply this kind of multimodal model in production, consider the following:
- Task decomposition: Break visual question answering into a chained pipeline of “localize—count—reason,” leveraging the model’s coordinate output capability to build verifiable intermediate steps;
- Result parsing: Design robust parsers for coordinate-based outputs, handling multiple coordinate formats (normalized floats, pixel coordinates, etc.) with proper handling of out-of-bounds and anomalous values;
- Infrastructure support: Multimodal inference is demanding in terms of compute and storage. Generic cloud capabilities—such as object storage for managing image assets, container platforms for elastic scheduling of inference instances, and logging services for tracing inference pipelines—can help build a stable serving pipeline.
Conclusion
Starting from a set of seemingly unremarkable special tokens, we can glimpse a key thread in the evolution of multimodal models: the industry’s competitive focus is shifting from “helping models see clearly” to “helping models think clearly.” Visual primitives and their coordinate-based evolution essentially build a precise visual thinking language for models. Although the “invisibility” of explicit tokens in actual outputs leaves some open questions, the underlying idea of closing the reference gap will undoubtedly continue to shape the direction of multimodal technology—well worth close attention and hands-on practice from every developer.
