Multimodal Model Visual Primitives: How Pointer-Based Grounding Improves Visual Understanding
This article breaks down the visual primitive approach used in recent open-source multimodal models, explaining the perception gap and reference gap that make models miscount or mislocate objects. It covers the paired point, box, polygon, and reference markers, why explicit primitives often disappear from chain-of-thought output as grounding is internalized into plain coordinates, how placeholder spans decouple text templates from visual inputs, and practical guidance for prompting, post-processing, layered evaluation, resolution tuning, and cost control.
1. Background: Why Multimodal Models “See” Poorly and “Say” Inaccurately
A recent experimental open-source multimodal model has drawn considerable discussion. The focus is not parameter count but the technical route it takes for visual understanding. To understand that route, it helps to look at two long-standing gaps.
The first is the perception gap. Images fed into a model are often compressed into a fixed number of visual tokens. Once resolution drops, small objects, dense objects, and fine textures are lost. A row of small squares that a person can count easily may appear to the model as a single blurry patch of color.
The second is the reference gap. Even when the model does “see” a target, it still has to describe its position in natural language during reasoning, for example “the red object slightly right of the upper-left corner.” Natural language is inherently ambiguous. As the number of targets grows and they sit close together, referential relationships break down, producing missed counts, double counting, and drifting localization.
The core claim of visual primitives is to introduce unambiguous pointers into continuous visual space, replacing vague natural-language references with structured points, boxes, and polygons, so that reasoning is built directly on coordinates.
2. What Visual Primitives Actually Are
The public configuration reveals a family of paired special markers that wrap polygons, points, bounding boxes, and reference relationships, forming an “opening marker + content + closing marker” structure. Three properties stand out.
- Paired closure: boundaries are explicit, so a parser can extract the structure reliably without confusing it with natural language.
- Type separation: points mark centers, boxes mark coarse extents, and polygons mark irregular contours, so precision and overhead can be used selectively.
- Extensible references: reference markers link multiple primitives together, which makes it easier to express “several parts of the same object.”
Illustrative forms (shown only to explain the structure, not as a specific product interface):
<|point|>[x, y]<|/point|><|box|>[x1, y1, x2, y2]<|/box|><|polygon|>[x1,y1, x2,y2, x3,y3]<|/polygon|>
3. An Interesting Phenomenon: Explicit Primitives Go Invisible
In practice, the explicit markers above almost never appear in the model’s chain of thought. Instead, output is dominated by natural-language descriptions that carry coordinates, such as “this object is located near (0.42, 0.61).”
The reasonable explanation is a shift in form during training. Pre-training or mid-training uses explicit primitives to establish a strong binding between position and symbol. Subsequent alignment and reinforcement training internalize that capability, and the model learns to express position directly with numeric coordinates instead of emitting special markers. This is capability internalization, not capability loss. The takeaway for users: do not judge whether a model can localize by whether special markers appear; look instead at the stability and accuracy of its coordinate output.
4. Placeholder Design in Interleaved Image-Text Sequences
The configuration also contains markers shaped like place_holder_mm_span_N with consecutive numbering. Their role is to hold a position: when concatenating image and text sequences, a slot is reserved in the text stream first, and the visual encoding result is then filled into the corresponding slot. The benefit is that the text template is decoupled from the visual input, so one template can be reused across different images.
As for the apparent mismatch between the number of these IDs and the officially stated multi-image limit, the explanation closer to engineering reality is that a single image can be split into multiple segments. High-resolution images are often cut into several sub-blocks and encoded separately, each occupying one slot, so the total number of slots does not map one-to-one to the number of images. In multi-image, long-document scenarios, the slot budget should be treated as an important input to capacity planning.
5. Recommendations for Production Use
- Constrain output format at the prompt level: explicitly require coordinate-based answers for localization questions to reduce ambiguity from natural-language references.
- Validate in post-processing: after parsing coordinates, check for out-of-bounds values, duplicates, and whether the total count matches the question.
- Evaluate in layers: test counting, localization, occlusion, and dense scenes separately so an aggregate score does not hide weak spots.
- Tune resolution and tiling strategy: for tasks with many small objects, raise effective resolution first rather than blindly adding more images.
- Keep cost under control: the number of visual tokens directly determines context length, so long-document scenarios need an assessment of memory and latency overhead. Container platforms can provide elastic scaling, object storage can hold the source material, and logging and monitoring with alerting can track quality fluctuations.
6. Conclusion
The value of visual primitives lies not in special symbols as a formality, but in turning “position” into a first-class citizen that can be computed and verified. Understanding the causes of the perception gap and the reference gap, and seeing the evolution path from explicit markers to internalized coordinates, is what lets teams reliably obtain usable localization and counting capability in real business settings.
