Visual Primitives in Multimodal Large Language Models: Design and Practical Considerations
Visual primitives aim to improve multimodal reasoning by replacing ambiguous language-based references with structured points, bounding boxes, and polygons. This article examines the tokenizer design behind this approach, possible reasons explicit markers may be absent from observed outputs, uncertainties around image–text placeholders, and practical steps for evaluating localization accuracy and multi-image behavior.
1. Why Multimodal Models Need Visual Primitives
Technical details from an experimental open-source multimodal model have recently sparked discussion in the developer community. Beyond the specific model, its use of visual primitives represents an approach to a persistent problem in multimodal large language models (MLLMs).
Image understanding has long faced two distinct gaps:
The perception gap: The model cannot see an image clearly enough. This depends largely on the visual encoder’s resolution, patch granularity, and the quality of vision–language alignment. Advances in high-resolution encoding and dynamic image partitioning have substantially narrowed this gap.
The reference gap: The model can see the relevant content but cannot refer to it reliably. Natural language introduces ambiguity when describing image elements. A phrase such as “the red object near the middle of the upper-left corner” can become unreliable in dense counting, complex object localization, and spatial reasoning tasks. The model may perceive an object correctly yet lose track of its location during subsequent reasoning.
Visual primitives address the second gap. They give the model a set of unambiguous “pointers” in continuous visual space, replacing vague language-based references with structured geometric coordinates.
2. What the Tokenizer Reveals About the Design
One useful source of evidence about a multimodal model’s intended architecture is the set of special tokens in its tokenizer configuration, typically tokenizer.json.
The model discussed here includes paired markers for three geometric primitives, along with a reference marker:
| Special tokens | Primitive or function | Purpose | ||||
|---|---|---|---|---|---|---|
| `< | point | >…< |
/point | >` | Point | Identifies a specific coordinate in an image |
| `< | box | >…< |
/box | >` | Bounding box | Specifies the boundaries of a rectangular region |
| `< | polygon | >…< |
/polygon | >` | Polygon | Describes the outline of an irregular object |
| `< | ref | >…< |
/ref | >` | Reference | Associates a primitive with the object it refers to |
The idea is that, during chain-of-thought (CoT) reasoning, the model can use a structured expression such as <|point|>[[x, y]]<|/point|> rather than a phrase like “the cat in the middle of the image.”
This moves the act of referencing from language into geometry. Coordinates provide a precise spatial reference that the model can revisit across multiple reasoning steps. In principle, this could improve the stability of complex localization and counting tasks.
From an engineering perspective, the approach has several advantages:
- Compatibility with language-model decoding: Primitives remain token sequences, so they do not require a different decoding framework.
- Interpretability: Coordinate markers in reasoning outputs can be visualized, making debugging and evaluation easier.
- Clear training targets: Localization tasks can use structured sequences as supervision targets, reducing alignment difficulty.
However, the presence of these tokens indicates a design intention; it does not, by itself, establish how the model behaves in practice.
3. Where Did the Explicit Primitives Go?
Community developers testing the model reported an interesting discrepancy: its observed reasoning outputs did not contain the explicit <|point|>[[a,b]]<|/point|> markers shown in the paper.
Instead, the model used natural language mixed with coordinate values—for example, “the red vehicle near (0.42, 0.61).”
Several explanations are plausible.
Behavior Changes During Later Training
The model may have learned the complete explicit primitive syntax during pretraining or supervised fine-tuning. Later reinforcement learning from human feedback or instruction tuning may have favored more readable output, shifting its behavior toward coordinates embedded directly in prose.
In that case, the special tokens would remain in the vocabulary but appear less frequently in generated outputs.
Differences in Inference Configuration
Chat templates or decoding constraints may hide structured output and expose only a natural-language rendering.
Internalized Referencing Capabilities
The model may have internalized precise spatial referencing and no longer need explicit markers to maintain coordinate-level consistency during reasoning.
These remain possible explanations rather than confirmed findings. The practical lesson is the same: tokenizer inspection cannot substitute for end-to-end testing. Developers need to verify whether the intended capability actually appears under their inference conditions.
4. The Image–Text Placeholder Count Puzzle
Another noteworthy group of special tokens consists of image–text interleaving placeholders numbered consecutively from 0001 to 0442.
Such placeholders typically reserve positions for image features within an input sequence, enabling text and images to be interleaved.
Developers noticed two apparent inconsistencies:
- The official documentation describes support for more input images than the 442 placeholders would suggest.
- The maximum number of visual tokens for a single image does not align with the placeholder numbering range.
One plausible interpretation, based on the term “span,” is that these placeholders are allocated to image spans rather than individual images.
Under this interpretation, a single image could be divided into multiple content spans, each using a placeholder. The number 442 would therefore represent a limit on the total number of image spans within one context, not necessarily the number of input images.
This would offer greater flexibility for high-resolution and multi-image inputs. It could also mean that placeholder consumption varies with image complexity, requiring developers to leave sufficient headroom when building multi-image applications.
The span-based interpretation is a hypothesis, however, and should be validated against actual input processing and inference behavior rather than treated as a confirmed implementation detail.
5. Practical Recommendations for Developers
When evaluating or deploying a multimodal model with similar design features, focus on the following areas.
Inspect the vocabulary, then test the behavior.
Special tokens offer a window into the model’s intended design. Actual inference is needed to determine whether those capabilities are active and reliable.Build evaluation sets for precise localization.
Dense counting, small-object localization, and spatial-relation question answering are useful tests of the reference gap. Include them in regression testing.Define coordinate output conventions.
If an application depends on coordinates, establish whether outputs use normalized values, such as a 0–1 range, or absolute pixel coordinates. Make post-processing tolerant of output-format variations.Stress-test context usage with multiple images.
Measure performance and cost under long-context conditions. If placeholder allocation is span-based, consumption may depend on how images are partitioned rather than simply on image count.Keep the architecture model-agnostic.
Visual-primitive approaches are still evolving. Treat the visual-understanding layer as a replaceable module to avoid tight coupling to a single model.
6. Conclusion
The central value of visual primitives is their use of structured geometric references in place of ambiguous natural-language descriptions. This offers a mechanism for addressing the reference gap in multimodal reasoning, even when visual perception itself is sufficiently accurate.
The discrepancy between tokenizer design and observed output behavior also highlights an important limitation: technical claims and architectural clues still require hands-on validation.
For developers building image–text understanding, document parsing, or visual question-answering applications, understanding these mechanisms can directly inform evaluation design and implementation quality.
