Visual Primitives and Multimodal Placeholder Mechanisms in Experimental Multimodal Models: How Language Models Reference What They See
This article explains how experimental multimodal models use visual primitives—points, bounding boxes, polygons, and reference tokens—to let language models accurately reference visual objects during reasoning, and how multimodal placeholders align image features with text sequences. It also clarifies why these special tokens rarely appear in final outputs, why placeholder counts cannot be equated with supported image counts, and how to verify a model's real mechanisms through layered experiments and engineering-side validation.
From “Seeing Images” to “Accurately Referencing Image Objects”
The focus of multimodal model capabilities has gradually shifted from simple image captioning to complex visual reasoning. Beyond answering “what is in the image,” models are now expected to:
- Count instances of a target category in an image;
- Determine spatial relationships between two objects;
- Locate the exact position of an object within an image;
- Find a corresponding region based on a text description;
- Distinguish multiple instances in dense scenes;
- Perform multi-step reasoning combining image regions, text, and context.
The difficulty of these tasks does not come entirely from image encoding quality. Even when the vision encoder has correctly identified the objects, the language model may still fail during subsequent reasoning: it typically converts image content into natural language and then reasons over that language. However, natural language is poor at expressing precise spatial references.
Descriptions such as “the second object from the left,” “the object near the edge,” or “the larger of two similar regions” are all ambiguous in scenes with dense targets, heavy occlusion, or similar appearances. The model may have “seen” the object but be unable to consistently refer to the same object across a continuous reasoning process. This gap between visual perception and linguistic reasoning can be summarized as two types of problems:
- Perception gap: the model fails to accurately recognize image content;
- Reference gap: the model recognizes the content but cannot refer to targets stably and precisely.
Visual primitives are designed primarily to address the second type of problem.
What Are Visual Primitives
Visual primitives can be understood as structured representations that connect the visual space with the language reasoning space. They are not ordinary text descriptions, but special token combinations used to point to specific positions or regions in an image.
Common visual primitives include:
- Point: represents the center, a keypoint, or a specific location of a target;
- Bounding box: represents a rectangular region;
- Polygon: represents the contour of an irregularly shaped target;
- Reference identifier: represents a visual object that will be reused repeatedly in subsequent reasoning.
Formally, they can be abstracted as:
<point> (x, y) </point><box> (x1, y1, x2, y2) </box><polygon> (x1, y1), (x2, y2), ... </polygon>
Coordinates are typically normalized to adapt to input images of different sizes. For example, the top-left corner may be mapped to (0, 0) and the bottom-right corner to (1, 1), or a fixed integer range may be used.
The core value of visual primitives is that they turn “this object” into a computable, reusable, low-ambiguity pointer. During later reasoning, the model no longer needs natural-language phrases like “the blue object on the right,” and can directly reference the same coordinate region.
This is especially important for tasks such as:
- Dense object counting;
- Multi-object tracking;
- Complex relationship reasoning;
- Region-level visual question answering;
- Parsing image editing instructions;
- Visual navigation and spatial planning;
- Document layout analysis.
Why Point, Box, and Polygon Tokens Appear in the Vocabulary
In a model’s tokenizer configuration or vocabulary file, you can often find special tokens with clearly structured meanings. They typically appear in pairs, such as:
<point> and </point><box> and </box><polygon> and </polygon>
Unlike ordinary text tokens, these symbols usually share the following characteristics:
- They are registered as special tokens;
- They are excluded from regular subword segmentation;
- They remain intact during encoding and decoding;
- They can constrain the structure of model outputs;
- They can serve as boundary markers in training data.
From an engineering perspective, these special tokens work like a lightweight markup language. The model can insert them into a text sequence and generate coordinates or point sets inside the tags. For example:
The target is located in the region <box> 0.18, 0.24, 0.47, 0.71 </box>.
Such output preserves the readability of a language model while adding machine-parseable spatial information. Downstream applications can extract bounding boxes directly, without guessing object positions from natural language.
Note, however, that the presence of these tokens in the vocabulary does not mean the model will explicitly emit them in every inference. The vocabulary only shows that the model has the basic capability to express such structures; it does not prove that the model actually uses this form during real reasoning.
Why Explicit Visual Primitives Are Rarely Visible in Actual Outputs
This is the most common point of confusion when analyzing such models: if visual primitives are so important, why do the final reasoning traces or answers usually show only ordinary coordinates or region descriptions—or no special tags at all?
There are several possible explanations.
1. Used in Training, Hidden at Inference
Special tokens may primarily serve as intermediate supervision during training rather than user-facing output. During training, the model can use structured labels such as points, boxes, and polygons to learn the correspondence between visual space and language space; at inference, it may compress these intermediate results into plain coordinates or natural language.
This resembles intermediate representations in program compilation: the intermediate representation matters for internal optimization, but it is not necessarily shown to the end user.
2. Post-Training Changed the Output Style
A base model may tend to generate complete structured tags, while later training stages may encourage more natural, concise outputs. If the training data mostly uses expressions like “the target is located at the coordinate region,” the model will gradually form new output habits.
The observable behavior may look like this:
Explicit format:<point> 0.42, 0.36 </point>Naturalized format:The object's center is roughly at 42% of the image width and 36% of its height.
The two are semantically close but completely different in surface form.
3. The User Interface May Filter Special Content
Multimodal services typically separate internally generated results from externally displayed results. The system may filter, transform, or re-render special tokens, mapping the raw structured output into more readable text, annotation boxes, or image overlays.
Therefore, what users see is not necessarily the complete sequence the model originally generated.
4. Coordinates Themselves Already Serve as Visual Pointers
In some training schemes, the model does not need paired special tags at all. As long as the coordinate format is stable and training samples are sufficiently consistent, a sequence of continuous coordinates can itself carry the visual referencing function.
For example:
Object A: center approximately (0.31, 0.58)Object B: bounding box approximately (0.62, 0.20, 0.84, 0.67)
Here, explicit <point> or <box> tags are mere formatting markers; the genuinely useful information is the coordinates and their contextual relationships.
Understanding Multimodal Placeholders
Beyond visual primitives, the vocabulary may also contain many special tokens of the following form:
<mm_span_0001><mm_span_0002>...<mm_span_0442>
These tokens generally belong to the category of multimodal placeholders, used to mark the position of visual content in image-text sequences. They may serve the following purposes:
- Marking where image embeddings are inserted into the text sequence;
- Representing the span of visual encoding results within the sequence;
- Connecting image features to the language model’s input positions;
- Supporting interleaved layouts of multiple images or multiple visual segments;
- Reserving alignment space for different visual regions.
Importantly, “the number of placeholders” cannot be directly equated with “the number of supported images,” nor simply with “the number of visual tokens per image.”
Image Count and Visual Spans Are Not the Same Thing
If a system supports multi-image input, at least three concepts must be distinguished:
- Number of image instances: how many images the user actually uploads;
- Number of visual encoding blocks: how many feature groups each image produces after encoding;
- Number of sequence placeholders: how many positions these features occupy in the language model’s sequence.
A single image may correspond to one logical placeholder, or it may be split into multiple visual spans; multiple images may also be concatenated, compressed, or batch-processed into a unified sequence structure. Therefore, several hundred consecutively numbered placeholders in the vocabulary do not imply support for hundreds of images.
Why the Placeholder Upper Bound May Exceed Single-Image Visual Token Counts
The number of placeholders may also relate to factors such as:
- Maximum sequence capacity for multi-image input;
- Complex interleaved layouts of images and text;
- Extensions for video frames or page regions;
- Visual patching at different resolutions;
- Reserved special control positions;
- Different sequence layouts used during training versus inference.
You therefore cannot judge the actual input limit from numbering ranges or vocabulary size alone. A more reliable approach is to verify against the model configuration, preprocessing code, input templates, and runtime tensor shapes.
How to Experimentally Determine the Model’s Real Mechanisms
If you want to confirm whether a model actually uses visual primitives, design layered experiments instead of merely observing the final answers.
Experiment 1: Inspect the Raw Output Sequence
First, confirm whether the inference interface returns the raw generated result. You need to distinguish between:
- The raw token sequence;
- The decoded text;
- Filtered display text;
- Front-end rendered annotations.
If only the final text is available, you cannot determine whether special tokens were removed during generation.
Experiment 2: Construct Localization Tasks
Prepare images containing multiple similar targets, then ask the model to:
- Identify the position of a specified target;
- Return the target’s center point;
- Output a bounding box;
- Compare the relative positions of two targets;
- Refer to the same target repeatedly across turns.
If the model consistently returns coordinates and maintains consistent references across multiple turns, it suggests the model has at least some structured spatial representation internally.
Experiment 3: Test Coordinate Consistency
Ask the model about the same object’s position in the same image using different questions, and compare whether the output coordinates are stable. Metrics such as center-point error and bounding box IoU can be used for evaluation.
For example, bounding box IoU can be expressed as:
IoU = intersection area / union area
If coordinates vary significantly across differently phrased questions, the model likely relies mainly on language descriptions rather than stable visual pointers.
Experiment 4: Test Reference Chains
First have the model identify multiple objects, then ask it to:
Find all objects and assign each a number.Determine whether object 2 or object 4 is closer to the image center.State whether there is another object of the same class to the left of object 2.
Such tasks test whether the model can maintain object identity across long reasoning chains, rather than re-guessing at every step.
Engineering Recommendations
In production systems, do not treat coordinates embedded in the model’s natural language output as absolutely trustworthy detection results. Safer practices include:
- Unify coordinate conventions: clarify whether coordinates are normalized, where the origin is, and whether the order is (x, y) or (row, column);
- Add range validation: check that coordinates fall within the legal interval;
- Perform format parsing: use structured parsers to extract points, boxes, and polygons;
- Draw back onto the image: re-draw the model’s output regions on the original image and verify semantic correctness;
- Set up confidence and retry mechanisms: add secondary handling for malformed formats, out-of-bounds regions, and multi-object confusion;
- Distinguish reasoning results from detection results: coordinates generated by the model are suitable for assisting reasoning, but high-risk scenarios should still be verified with dedicated vision algorithms;
- Preserve raw sequences: when debugging, save tokens, decoded text, and final rendered output together, to avoid misjudgment caused by intermediate filtering.
Conclusion
Visual primitives in experimental multimodal models address one key problem: enabling language models to accurately reference visual objects during reasoning, instead of relying on ambiguous natural language descriptions.
Points, bounding boxes, polygons, and reference identifiers provide a structured interface to visual content. Special tokens in the vocabulary show that the model is capable of expressing these structures, but they do not guarantee that the model will emit them explicitly at inference time. The absence of these tags in actual output may be because they are used only in training, hidden by post-processing, replaced by natural language forms during post-training, or compressed into direct coordinate expressions.
Likewise, the number of multimodal placeholders cannot be simply interpreted as the image count or the per-image visual token count. They more likely serve alignment between visual features and the language sequence, and their exact meaning must be determined jointly with the input template, preprocessing logic, model configuration, and runtime tensors.
For developers, the real question is not whether a particular special token appears in the final text, but whether the model can reliably perform visual object localization, identity persistence, spatial relationship reasoning, and structured output. Only through raw sequence inspection, localization error evaluation, reference chain testing, and engineering-side format validation can you reliably determine whether visual primitives are truly doing their job.
