Visual Primitives in an Open-Source Experimental Multimodal Model
Visual primitives use points, boxes, polygons, and reference markers to reduce ambiguity in multimodal reasoning. This article explains their role in visual grounding, why tokenizer support does not guarantee visible token output, how multimodal placeholders work, and what developers should prioritize in parsing, evaluation, and training.
1. From the Perception Gap to the Reference Gap
The main challenge for early multimodal models was whether they could reliably perceive image content. As visual encoders, resolution strategies, and image–text alignment training matured, performance improved significantly on common recognition, scene description, and optical character recognition (OCR) tasks.
Developers soon found, however, that seeing an object does not mean referring to it precisely. In dense counting, complex object localization, occlusion analysis, and chart-region referencing, natural-language descriptions are inherently ambiguous. “The second button on the left” may identify more than one object. A description such as “from the upper left to the lower right” may shift depending on cropping, scaling, and coordinate conventions.
These challenges can be understood as a perception gap and a reference gap, respectively. Visual primitives offer an engineering approach to the reference gap: they allow a model to use structured symbols, such as points, boxes, and polygons, to anchor objects precisely in continuous visual space rather than relying entirely on ambiguous language.
2. Visual Primitives: Structured Pointers That Reduce Ambiguity
A visual primitive can be understood as an unambiguous pointer. Points identify centers or key locations; boxes describe rectangular regions; polygons follow irregular outlines; and reference markers bind subsequent descriptions to a particular visual object.
Their value is not more elaborate output. It is making “which object I mean” less dependent on natural-language interpretation.
For example, in a dense counting task, a model can first produce a set of point markers and then count those markers. In a complex localization task, it can first provide a box or polygon, then describe the object’s attributes and relationships. This makes references within the reasoning process explicit through a structured intermediate representation that can be parsed and validated.
Tokenizer configurations include special tokens such as <|point|>, <|/point|>, <|box|>, <|/box|>, <|polygon|>, <|/polygon|>, <|ref|>, and <|/ref|>. Their presence in the vocabulary indicates, at minimum, that support for structured visual references was provisioned at the training and formatting levels.
An illustrative representation is:
<|point|>[[x,y]]<|/point|><|box|>[[x1,y1,x2,y2]]<|/box|><|polygon|>[[x1,y1],[x2,y2],...]<|/polygon|><|ref|>object_1<|/ref|>
With these markers, a model need not refer to a target only as “that small red square.” It can provide an anchor directly in visual coordinate space. For systems that require post-processing, visual debugging, and automated evaluation, structured markers are also easier to parse and validate than prose alone.
3. Special Tokens Do Not Guarantee Explicit Output at Inference Time
Some developers have observed that displayed reasoning contains no complete visual primitive markers. Instead, it often combines natural-language descriptions with coordinates.
This does not necessarily conflict with the tokenizer configuration. The presence of special tokens establishes a formatting basis for using them, or for having used them during training. It does not establish that an inference service will preserve them in the displayed output.
Possible explanations include:
- The serving layer filters or post-processes special tokens before display.
- Later training internalizes explicit primitives into a hybrid format of natural language and coordinates.
- Decoding constraints or templates prevent special tokens from being exposed directly.
- A parser converts structured markers into hidden regions or visual overlays.
- The experimental model is still evolving, and its training objectives do not fully match its deployed presentation strategy.
One plausible interpretation is a transition from explicit representation to implicit use. Early training may use special markers to teach the model to anchor objects in visual space, while later training may favor direct coordinate descriptions to balance readability with localization capability.
Evaluation should therefore focus on observable results rather than whether special tokens appear in displayed reasoning. Does the output contain parseable coordinates? Is localization stable? Is dense counting consistent? Are references across multiple images accurate?
4. Multimodal Placeholders and Interleaved Image–Text Context
Configurations also contain placeholders with names such as place_holder_mm_span_xxxx. Tokens of this kind are typically used for interleaved image–text input: they reserve positions in a text sequence so that images, image regions, or multimodal segments can be incorporated into a unified context.
The size of the placeholder numbering range may not align exactly with publicly described image-count limits or per-image token budgets. That mismatch does not necessarily indicate a design inconsistency.
A placeholder need not correspond one-to-one with an image. It may reserve space for a region, a segment, a template slot, or the maximum span used in a training sample. The numbering space may also leave room for multiple images, multiple conversation turns, regional references, and future expansion.
From an engineering perspective, these placeholders are better treated as a context-slot protocol than as a simple image counter.
5. Implementation Priorities: Parsing, Evaluation, and Training
Teams using open-source multimodal models should focus on three areas.
Build a Unified Parsing Layer
Convert points, boxes, polygons, reference markers, and coordinate-bearing text into a common internal schema.
The parser should handle:
- Conversion between normalized and pixel coordinates
- Bounding-box formats
- Polygon closure
- Invalid coordinates
- Coordinate mapping across resolutions
This provides a consistent representation even when the model alternates between explicit markers and natural-language descriptions containing coordinates.
Create Targeted Evaluation Sets
Evaluation should cover dense counting, small-object localization, occlusion relationships, references across multiple images, chart-region referencing, and understanding of OCR regions.
Relevant metrics include:
- Counting error
- Localization intersection over union (IoU)
- Coordinate parseability rate
- Format validity rate
- Cross-resolution consistency
These tests assess whether structured references remain usable and accurate, rather than merely whether a particular token format appears.
Use Mixed Training Examples
Training data can explicitly combine natural language, visual primitives, and coordinate supervision. Curriculum learning can then gradually reduce dependence on special markers while teaching the model to produce stable, verifiable structured references.
Conclusion
The significance of visual primitives is not the addition of a few special tokens. It is the attempt to make references in multimodal reasoning computable and verifiable.
Developers should look beyond presentation-layer behavior when assessing capability. Special markers are clues; coordinate consistency and localization accuracy are the evidence that matters.
