Multimodal Model Visual Primitives: From Ambiguous Descriptions to Structured Pointers
This article examines the role of visual primitives in multimodal models and why they matter for tasks such as counting, dense object localization, and multi-object relational reasoning. It explains the perception gap and the reference gap, breaks the approach into perception, primitive, and reasoning layers, and reviews an implementation observation where registered special tokens for points, boxes, polygons, and references do not appear explicitly in the chain of thought. It also analyzes placeholder tokens used in interleaved image-text inputs and offers practical guidance on structured references, coordinate normalization, input budgeting, observability, and evaluation.
1. Introduction: Why Multimodal Models Need Visual Primitives
In real-world applications of multimodal large models, a long-standing problem is that a model may recognize what is in an image yet still perform inconsistently on tasks such as complex counting, dense object localization, and multi-object relational reasoning. The source material notes that an experimental multimodal model, the first experimental release in its series, continues the technical approach of “visual primitives”: its vocabulary contains special tokens for representing polygons, points, bounding boxes, and reference relationships. This is worth attention because it points to a core question: before visual information enters a language model, what kind of structured representation must it be converted into to reduce ambiguity?
The “perception gap” usually refers to a model’s limited ability to capture image details. A deeper “reference gap” is that even when the model sees the image clearly, if it can only describe targets in natural language, such as “that red object on the left,” the reference becomes ambiguous when objects are dense or spatial relationships are complex, breaking the reasoning chain. The value of visual primitives is to provide a set of unambiguous pointers that can be precisely addressed within a continuous visual space.
2. Technical Principles: From Natural Language Descriptions to Structured Pointers
The conventional approach converts an image into a natural language description and then asks the language model to reason over it. The drawback is that natural language is inherently ambiguous and spatial references depend on context. As the number of objects grows, the cost of referring to them rises quickly.
The visual primitive approach can be abstracted into three layers:
- Perception layer: encode the image into visual features while preserving spatial position information.
- Primitive layer: annotate targets with geometric structures such as points, boxes, and polygons to form identifiers that the model can reference directly.
- Reasoning layer: the model references these identifiers directly during its reasoning process instead of regenerating a natural language description.
A schematic representation can be written as:
<point>[[x1, y1]]</point><box>[[x1, y1, x2, y2]]</box><polygon>[[x1, y1], [x2, y2], ...]</polygon><ref>Target A</ref>
The key benefit of this design is that geometric primitives are naturally unique in space, so the model does not need a language intermediary to “point at” a target, which reduces error accumulation caused by referential ambiguity.
3. Implementation Observation: Special Tokens Exist but Do Not Appear Explicitly
The source material highlights a notable phenomenon: the vocabulary does register paired special tokens for polygons, points, boxes, and references, but in actual inference the model’s chain of thought does not show these tokens explicitly. Instead, it uses natural language descriptions with coordinates.
There are several plausible explanations:
- Training strategy adjustment: in later training stages, the model may learn to internalize explicit primitive tokens into coordinate-based expressions, preserving the structured information of primitives at the semantic level while switching to coordinate text at the surface output level.
- Convergence of representation: special tokens and coordinate text are informationally equivalent, and the training objective may favor the latter because coordinate text is closer to the distribution of general corpora and easier to model uniformly.
- Layered engineering implementation: the underlying system may still use primitive structures for alignment and localization, while users only see a human-readable result.
For developers, this means the output text alone is not enough to determine whether the primitive mechanism is used. A judgment should combine vocabulary design, training configuration, and alignment strategy.
4. Open Questions About Placeholder Design in Interleaved Image-Text Inputs
The source material also mentions a class of special tokens shaped like “place_holder_mm_span_xxxx” with a wide numbering range, presumably used to occupy insertion positions for visual content within multi-line text in interleaved image-text inputs. Several engineering questions need clarification:
- Relationship between count and image limit: if the documented maximum number of images does not match the number of placeholders, placeholders are not in one-to-one correspondence with images.
- Possibility of multiple placeholders per image: one image may be split into multiple segments for encoding, each corresponding to a placeholder, so the total number of placeholders can exceed the number of images.
- Per-image encoding length constraint: if a single image has an encoding length limit and the total number of placeholders is not divisible by that limit, placeholder allocation is dynamic and depends on the input content.
Therefore, the number of placeholders should be understood as the capacity limit of “visual segment slots” rather than a direct mapping of image count. When designing interleaved image-text inputs, developers should pay attention to how per-image encoding length, segment splitting strategy, and the total slot limit fit together, to avoid slot overflow or wasted resources.
5. Practical Engineering Recommendations
Based on the analysis above, consider the following when putting this into practice:
- Structure first: in scenarios requiring precise reference, prefer structured expressions such as points, boxes, and polygons over long natural language descriptions.
- Coordinate normalization: unify the normalization method and precision of coordinates to avoid localization errors caused by inconsistent scales.
- Input budget accounting: estimate the relationship among image count, per-image encoding length, and placeholder slots in advance, and plan truncation and batching strategies.
- Observability design: record the allocation of visual segments in logs and monitoring alerts to help diagnose interleaved image-text anomalies.
- Separate evaluation dimensions: evaluate perception and reference capabilities separately rather than treating them as the same problem.
6. Conclusion
The essence of visual primitives is to move visual targets from “describable by language” to “precisely referenceable.” Whether special tokens appear explicitly is only a surface phenomenon; what matters is whether the model has built a stable structured reference mechanism internally. For developers, understanding this mechanism helps organize inputs more reasonably in multimodal applications, design evaluations, and build observable and scalable engineering pipelines with general cloud capabilities such as container platforms, object storage, and logging services.
