Inside an Experimental Multimodal Model: Visual Primitives and Coordinate-Based Reasoning
An experimental open-source multimodal model has quietly been released, and its tokenizer reveals a distinct design philosophy: structural visual primitives such as polygons, boxes, points, and references, plus hundreds of mixed text-image placeholder spans. This article analyzes the tokenizer, explains the "visual primitives" approach to multimodal reasoning, discusses why explicit primitives appear to have been internalized into plain coordinate text, and offers practical advice for developers evaluating such models.
1. Background: Why Experimental Multimodal Models Matter
An experimental series of open-source multimodal models has recently been released with little fanfare. Although the name carries the word “experimental,” its tokenizer’s internal structure offers a glimpse into the designers’ deep thinking about multimodal reasoning. For developers, experimental versions like this often reveal cutting-edge technical directions better than official releases do, making them worth analyzing line by line.
2. Reading the Technical Approach from tokenizer.json
Opening the model’s tokenizer.json reveals a set of highly distinctive tokens, for example:
<|polygon|>/<|/polygon|>: start and end of a polygon<|point|>/<|/point|>: start and end of a point<|box|>/<|/box|>: start and end of a rectangle<|ref|>/<|/ref|>: start and end of a referenced object
These tokens occupy dedicated IDs in the vocabulary (roughly 129271–129278) and are marked as special tokens, meaning they are not ordinary text fragments but a “visual grammar” explicitly learned during training. This design closely aligns with the “Visual Primitives” paper proposed by a research lab earlier this year: during reasoning, the model no longer refers to objects in an image through natural language, but instead uses structured geometric primitives as unambiguous pointers.
3. Why Introduce Visual Primitives?
Understanding this design requires revisiting two core bottlenecks in multimodal models:
Perception gap: The model cannot see fine image details clearly, such as small targets or densely packed objects. Improvements to the visual encoder have partially mitigated this issue.
Reference gap: Even when the model “can see,” its chain of thought still describes images in natural language. A description like “the red car in the bottom-left corner of the image” is inherently ambiguous. As reasoning chains grow longer, the reference to “that car” drifts through the continuous text space, causing logic breakdowns in dense counting and complex grounding tasks.
The visual-primitives approach lets the model’s chain of thought “annotate” objects directly in the continuous visual space, for example:
<|point|>[[345, 267]]<|/point|><|box|>[[120, 80, 400, 320]]<|/box|>
These coordinates share a unified system and a clear structure, so they can be referenced repeatedly within the reasoning chain like variables, eliminating the referential ambiguity introduced by natural language.
4. An Intriguing Observation: The Explicit Primitives Disappear
Interestingly, when actually using this model, explicit primitives in the special-token form above are almost never seen in the output chain of thought. What appears instead are large amounts of coordinate numbers embedded directly in the text.
A plausible hypothesis: in later training stages (such as reasoning distillation or multi-stage RLHF), the model was guided to “internalize” explicit token-style primitives into pure coordinate text, effectively abstracting them into a kind of functional description. This makes engineering sense:
- The format constraints introduced by special tokens may conflict with ordinary conversational formats during instruction-following stages.
- The coordinate information itself already carries most of the unambiguity; the surrounding wrapper tags are essentially “formal redundancy.”
- Keeping continuous coordinates instead of token wrappers reduces parsing overhead and keeps output closer to a form end users can read.
The lesson for developers: training-time design and inference-time behavior in an architecture may not match. Analyzing the tokenizer can recover the engineering intent, but you cannot assume runtime behavior corresponds exactly.
5. The Placeholder Mechanism for Mixed Text and Images
Another notable finding is a series of special tokens in the tokenizer named place_holder_mm_span_0001 through place_holder_mm_span_0442.
An initial interpretation: these are placeholders embedded in the text stream for mixed text-image layouts. When multiple images interleave with long text, each image segment (span) occupies one slot in the sequence, facilitating cross-modal attention alignment.
Several details remain unresolved:
The counts don’t match: Official documentation mentions support for roughly 600 images, yet there are only 442 placeholders — the two numbers cannot be mapped directly to each other.
Span granularity: One explanation is that “an image is split into multiple spans,” i.e., divided by content semantics or resolution, with each chunk mapping to a placeholder. But if a single image can occupy up to about 384 visual tokens, a 442-span cap is equally hard to reconcile precisely.
Possible directions: The placeholder count may be reserved for the maximum number of interleaved image-text segments rather than the number of images; or, in dynamic-resolution mode, the encoder may assign spans by aspect ratio, making the total cap an engineering compromise. These guesses will need verification once a more detailed model card or inference code is published.
This is a reminder that long-context handling in multimodal models is far more complex than “image count × fixed token count.” How visual tokens are chunked, sampled, and allocated placeholders is a key engineering detail determining the ability to understand long mixed text-image documents.
6. Three Practical Suggestions for Developers
Use tokenizer reverse-engineering: When evaluating a multimodal model, the special tokens in the tokenizer are the most honest capability inventory. The presence of box/point/ref tokens indicates that grounding and referring tasks were part of the training objectives.
Watch for differences between explicit and implicit output: If a downstream application needs structured output (such as object coordinates in JSON), design explicit output parsing and post-validation logic; do not assume the model will always follow a format that appears in a paper.
Test long mixed-document scenarios: For document OCR, interleaved text-image RAG, and similar applications, measure with realistic interleaving lengths to verify whether the placeholder and visual token budgets meet peak business needs.
7. Conclusion
The value of this experimental model lies not in benchmark scores but in the fact that it openly documents a路线 being actively validated — letting multimodal reasoning break free from natural-language reference and move toward structured, coordinate-based “visual thinking.” Regardless of the final form explicit primitives take in the reasoning chain, this direction may well become standard practice for multimodal models within the next year or two. For developers following the evolution of open-source models, now is an excellent time to study the internal structure in depth.
