Visual Primitives and Coordinate Reasoning in Experimental Multimodal Models
This article explores how experimental multimodal models use visual primitives—points, bounding boxes, and polygons—to improve spatial understanding. It examines what special tokens in the tokenizer vocabulary reveal, why these tokens may not appear in final outputs, key issues in interpreting coordinates, and practical methods for verifying and integrating coordinate-based reasoning in real systems.
Visual Primitives and Coordinate Reasoning in Experimental Multimodal Models
In recent years, the focus of multimodal model capabilities has gradually shifted from “can the model recognize what’s in an image” to “can the model accurately understand spatial relationships within an image.” For example, in an image containing many objects, the model must go beyond answering “what is in this picture” and determine where a specific object is located, how two targets relate to each other, how many objects a given region contains, and how to map natural language descriptions to concrete instances in the image.
These tasks may look like visual recognition, but they actually involve multiple stages: visual encoding, spatial localization, language reasoning, and object reference. One experimental multimodal model introduced mechanisms related to visual primitives in its design, which has attracted considerable attention. By analyzing its vocabulary file, special tokens, and actual inference results, we can observe a phenomenon worth studying: the model may internally retain structured expression capabilities for points, boxes, and polygons, yet these special tokens do not necessarily appear in its final visible output.
1. Why Visual Primitives Are Needed
Traditional multimodal models typically follow an “image encoder plus language model” architecture. The image is first converted into visual features, which then enter the language model through a projection layer or other fusion mechanism, and the model completes question answering or reasoning in natural language.
This approach works well for image captioning, content classification, and text recognition, but it often runs into a “referring gap” in complex localization tasks. The referring gap means the model can roughly understand image content but cannot stably map a linguistic target to a concrete location in the image.
For example, consider these requests from a user:
- Find all circular targets in the image;
- Count how many similar objects are on the table;
- Determine the spatial relationship between the object on the left and the one on the right;
- Return the precise location of a target;
- Find instances that are partially occluded by other objects.
If the model always relies on natural language descriptions like “the one on the left,” “the object near the middle,” or “the larger-looking target” for internal reference, the following problems easily arise:
- When multiple objects look similar, language descriptions cannot uniquely identify one;
- With many targets, the model tends to double-count or miss objects;
- In complex scenes, contextual descriptions accumulate, increasing the reasoning burden;
- Object positions involve continuous space, while natural language offers only coarse expressions;
- During multi-turn reasoning, references to targets may drift.
The core idea of visual primitives is to use more structured expressions that are closer to visual space, mapping objects directly to points, bounding boxes, or polygon regions. This way, the model no longer relies entirely on natural language to remember targets—it can reference objects through coordinates or geometric structures.
2. What Special Tokens in the Vocabulary Reveal
In the tokenizer configuration of one experimental model, we can observe a group of special tokens with clear spatial semantics, mainly in the following categories:
- Start and end tokens for point structures;
- Start and end tokens for bounding box structures;
- Start and end tokens for polygon structures;
- Start and end tokens for object references;
- Placeholder tokens for interleaved image-text scenarios.
These tokens are typically not split by ordinary tokenization rules; instead, they are preserved as complete special tokens. Their significance lies not in performing visual recognition themselves, but in providing an output structure that lets the model express information such as:
<point> [x, y] </point><box> [x1, y1, x2, y2] </box><polygon> [[x1, y1], [x2, y2], ...] </polygon>
The above is only an illustration of structured expression and does not represent the actual output format of any specific model. Points suit key locations such as object centers, text anchor points, or human body joints; bounding boxes suit conventional object detection regions; polygons are better for describing irregular objects, road contours, region boundaries, or complex occlusion relationships.
From a modeling perspective, these special tokens serve at least three purposes.
1. Explicit Structural Boundaries
Without start and end tokens, coordinate sequences can easily mix with ordinary numbers, text, or other content. Special tokens help the model distinguish “this is a visual position” from “this is a number in natural language.”
2. Unified Output Format
Points, boxes, and polygons can correspond to different downstream tasks. A unified structure makes it easier for post-processing programs to extract coordinates and facilitates training data construction and evaluation.
3. Visual Reference Support
Reference tokens can associate a description with an object in the image. Ideally, the model can first locate an object, then perform attribute judgment, counting, or relational reasoning on it.
Note that the presence of these tokens in the vocabulary does not mean the model will directly generate them in every inference. The vocabulary is only part of the model’s potential expressive capability; whether these tokens are actually used depends on training methods, prompt templates, decoding strategies, post-processing pipelines, and service-layer encapsulation.
3. Why Visual Primitives May Not Appear in Actual Output
During testing, developers may find that the model’s reasoning process or answers contain no explicit point, box, or polygon tokens, yet coordinate information appears in plain text. This is not contradictory and may result from several mechanisms.
1. Special Tokens Hidden in Internal Processes
Model services usually do not return all internally generated content. To control output length and avoid exposing intermediate reasoning, the system may return only a cleaned-up answer. Visual primitives may have been generated internally but filtered, transformed, or compressed before final output.
This means “the user did not see special tokens” does not directly prove “the model did not use visual primitives.”
2. Visual Primitives Serialized as Plain Text
In later training stages, the model may gradually learn to describe targets directly with coordinates, for example:
The target is located roughly right of the image center, with bounding coordinates (x1, y1, x2, y2).
Semantically, this is still spatial structural expression—the external form has simply changed from special tokens to plain text. Internally, the model may still follow concepts of points, boxes, or regions.
This shift is common in models that must handle both general Q&A and visual localization. Special tokens are machine-friendly but unintuitive for ordinary users, so the system may convert them into more natural language during training or inference.
3. Format Conversion by Post-Processing Components
A multimodal service typically includes more than the model itself—it may also contain input preprocessing, output parsing, coordinate normalization, and result rendering components. After the model generates structured results, the service layer may convert coordinates into natural language or map special tokens to visualization boxes in the frontend.
Therefore, observing only the final API response cannot fully reconstruct the model’s internal raw sequence.
4. Capabilities Activated Only by Specific Tasks
Visual primitives are not necessarily the default output format. For ordinary image Q&A, the model may answer directly; only when the user explicitly requests localization, bounding boxes, coordinates, or fine-grained counting are the relevant mechanisms more likely to be activated.
In other words, special tokens may be an “available capability” rather than a “fixed template.”
4. Key Issues When Working with Coordinates
When a model outputs coordinates, developers must look beyond the numbers themselves and confirm the definition of the coordinate system. Common issues include:
1. Whether Coordinates Are Normalized
Coordinates may use pixel values or relative ratios to image width and height. For example, the x-coordinate may range from zero to the image width, or be normalized between zero and one.
Without a clear coordinate specification, the same set of values can produce completely different interpretations.
2. Where the Origin Is Located
Most image coordinate systems use the top-left corner as the origin, but different tasks or post-processing modules may adopt other conventions. Developers should verify the origin direction using test images with known positions.
3. The Order of Box Values
Bounding boxes may take several forms:
- Top-left corner and bottom-right corner;
- Center point, width, and height;
- Left, top, right, bottom boundaries;
- Normalized center point plus dimensions.
Do not judge the format by field count alone; confirm it through training samples, official documentation, or controlled experiments.
4. Whether the Image Was Resized or Cropped
Before entering the visual encoder, input images may undergo resizing, padding, cropping, or tiling. Whether the model’s output coordinates correspond to the original image or the preprocessed image is a critical issue in engineering integration.
It is recommended to validate with test images containing clear grids and numbered markers, recording the original dimensions, preprocessed dimensions, and returned coordinates to check the transformation chain step by step.
5. A Reasonable Understanding of Image Placeholder Tokens
The vocabulary may also contain many placeholder tokens with similar names and sequential numbering. These tokens typically represent the positions of images, video frames, local visual regions, or other multimodal inputs within the sequence.
Their main functions may include:
- Reserving insertion positions for visual features in the text sequence;
- Representing the arrangement order of image slices or visual patches;
- Supporting multiple images or large-image inputs;
- Maintaining alignment between text position encodings and visual features;
- Providing a unified sequence interface for visual inputs of varying lengths.
The number of placeholder tokens does not necessarily correspond one-to-one with “the maximum number of images supported.” One image may be split into multiple visual patches, and a single image may correspond to multiple placeholder positions; conversely, multiple visual regions may be compressed into fewer sequence positions.
Therefore, you cannot simply infer the image count limit from the numbering range of placeholder tokens. A more reliable approach is to distinguish the following concepts:
- Number of images;
- Image resolution;
- Number of visual slices;
- Visual feature sequence length;
- Total context length of text and visual features;
- Number of input objects allowed by the service layer.
These constraints operate at different stages and should not be conflated.
6. How to Verify Whether the Model Truly Uses Visual Primitives
If you want to further investigate whether visual primitives participate in reasoning, you can design a layered verification plan.
Step 1: Inspect the vocabulary and configuration files. Confirm whether the relevant special tokens are defined, whether they have independent token IDs, and whether they are marked as special tokens.
Step 2: Construct simple localization samples. Use a solid-color background, a few geometric shapes, and clearly numbered targets, and ask the model to return point coordinates and bounding boxes. This makes it easier to determine the output format and coordinate meaning.
Step 3: Test stability as target count increases. Gradually increase the number of similar objects and observe whether the model exhibits missed detections, duplicate references, or coordinate drift.
Step 4: Compare different prompting approaches. For example, separately ask the model to “describe the target’s position,” “output structured coordinates,” and “return a parseable list of boxes,” and observe whether the model adopts different expressions as instructions change.
Step 5: Distinguish raw output from rendered results. If the call chain includes output parsing, formatting, or frontend display steps, try to obtain the model’s raw generated sequence and compare it with the final displayed result.
Step 6: Verify coordinate transformations. Use fixed-size images with targets at known positions to check whether output coordinates correspond to the original, resized, or cropped image.
It is important to emphasize that whether a special token appears in a single response cannot determine whether visual primitives exist. Only by combining multiple task groups, raw generation results, and coordinate consistency tests can you reach a reasonably reliable conclusion.
7. Practical Recommendations for Developers
When integrating such models into real systems, it is advisable not to rely on parsing coordinates from natural language. Instead, establish structured output constraints—for example, requiring the model to return explicit fields:
{"objects": [{"label": "object type","box": [x1, y1, x2, y2],"confidence": null}]}
These fields are only a generic illustration; actual projects should adjust them according to model capabilities and task specifications. Engineering safeguards should also include:
- Checking whether coordinate counts are complete;
- Verifying that the left boundary is less than the right boundary;
- Verifying that coordinates do not exceed image bounds;
- Clipping or flagging abnormal values;
- Rendering results back onto the image for visual confirmation;
- Sampling and comparing model localization results against traditional vision algorithms or human annotations;
- Preserving raw responses for complex scenes to facilitate troubleshooting.
For high-risk scenarios, model-generated coordinates should not be the sole basis for decisions. Visual primitives can reduce referring ambiguity, but they cannot automatically eliminate errors caused by occlusion, low resolution, reflections, viewpoint changes, or annotation bias.
Conclusion
Visual primitives represent an important direction in multimodal reasoning: moving models from relying solely on natural language descriptions toward expressing visual objects through points, boxes, polygons, and reference relationships. Special tokens in the vocabulary indicate that a model may possess the foundation for such structured expression, but their absence from actual output does not mean the capability is missing—it may result from internal hiding, format conversion, or changes in expression style after training.
For developers, what truly matters is not whether a specific special token appears verbatim, but whether the model can stably perform object reference, spatial localization, counting, and coordinate re-mapping. Only by combining vocabulary analysis, raw output inspection, coordinate validation, and real task evaluation can we accurately judge the true role of visual primitives in multimodal systems.
