Visual Primitives and Spatial Reasoning in Multimodal Models: A Practical Engineering Analysis
This article examines the distinction between visual perception and stable visual reference in multimodal models, then explains how visual primitives such as points, bounding boxes, polygons, and object reference identifiers can support spatial reasoning. It discusses why special tokens are evidence of representation rather than proof of capability, why coordinate conventions and identity management matter, and why placeholder counts cannot be used directly to infer image limits. It also presents experiment designs for separating description from localization and outlines an engineering workflow for validation, fallback handling, and privacy-aware logging.
1. Understanding Multimodal Models Beyond What They Recognize
In multimodal tasks, recognizing image content is only the first step. A model that can answer “there is a cup in the image” is not necessarily able to answer “is the second cup on the right inside the tray,” and it is even less certain that it can consistently refer to the same cup across multiple turns.
These questions involve two different capabilities.
The first is visual perception: extracting text, objects, shapes, colors, and local details from an image. Blur, small targets, heavy occlusion, or insufficient input resolution can all cause perception failures.
The second is visual reference and spatial reasoning: organizing recognized objects into a stable spatial representation, then counting, comparing, localizing, and judging relationships around those objects. Even when the image itself is clear enough, the model may fail at this stage.
For example, when facing a dozen similar-looking parts, a model may repeatedly describe objects with natural language such as “the one on the left” or “the small part above.” This can lead to reference drift: “that part” in one sentence and “that part” in the next sentence actually correspond to different targets. Duplicate or missed counts in dense counting may also be related to unstable object reference.
Therefore, when analyzing the technical value of multimodal models, the question should move from “can it see” to “can it reliably reference, compare, and manipulate visual objects.”
2. Visual Primitives: Building Spatial References for Image Objects
Visual primitives can be understood as basic units used to express the spatial structure of an image. Common forms include points, bounding boxes, and polygons, which can also be combined with object reference identifiers to form a more complete structured description.
1. Points: Representing Position or Key Parts
A point is usually represented by two-dimensional coordinates and can describe an object center, corner, key part, or interaction location.
For example, in chart understanding, a point can indicate a data position; in interface understanding, a point can represent a button click location; in object recognition, a point can serve as a localization hint for an object.
The advantage of a point is its concise expression, but it only describes position and does not directly describe object extent. In dense or occluded scenes, a single point may still have ambiguous ownership.
2. Bounding Boxes: Representing the Spatial Extent of an Object
A bounding box is generally described by the top-left and bottom-right coordinates, or by an origin plus width and height.
It is suitable for target localization, region cropping, and local recognition. Compared with text descriptions such as “the larger object on the left,” a bounding box provides a clearer spatial boundary, making it easier for downstream components to crop, verify, or display.
However, a bounding box usually contains background, and it may not accurately express thin, curved, or irregular objects. Two object boxes may overlap heavily, so object identity cannot be determined solely from box overlap.
3. Polygons: Representing More Detailed Boundaries
A polygon describes a region through an ordered set of vertices. It is suitable for irregular object contours, document regions, or complex region boundaries.
It is more precise than a bounding box, but the output is longer and validation is more complex. For example, it is necessary to check vertex order, self-intersection, out-of-bounds coordinates, and whether there are too many redundant vertices.
4. Reference Identifiers: Maintaining Object Identity
Beyond spatial position, object identity is also needed.
If a model first locates a target and then answers questions about its color, count relationship, or containing region, it is best to use a consistent object identifier across these steps. Otherwise, even if coordinates are output each time, the target may switch during reasoning.
It is important to note that visual primitives do not inherently constitute completely unambiguous pointers. Coordinate precision, image transformations, object overlap, and reference lifetime all affect reliability. A more accurate understanding is this: visual primitives can reduce the uncertainty of natural language reference, but they still require explicit coordinate protocols and identity management mechanisms.
3. Special Tokens Provide Clues, Not Direct Proof of Capability
When analyzing public model materials, developers often inspect tokenizer configurations, special tokens, and input/output examples. If the vocabulary contains dedicated tokens for points, regions, contours, or object references, this at least shows that the relevant symbols can be recognized and encoded by the tokenizer in a predefined way.
However, there are multiple steps between “the token exists” and “the model has reliable capability”:
- Whether the training data actually used these tokens;
- Whether the model learned the mapping between tokens and image positions;
- Whether the inference template triggers the relevant output;
- Whether the server allows these contents to be returned as-is;
- Whether the output coordinates or boundaries have actual localization precision.
Therefore, special tokens are evidence at the representation level, not a conclusion at the effect level.
Even if a token is configured as a special token, it cannot be assumed that the model already has stable target localization, instance segmentation, or spatial reasoning capability. A vocabulary may retain symbols for experimental use, compatibility, or paths that are not currently used. Their specific role still needs to be verified through implementation and experiments.
Similarly, the absence of these tokens in public responses does not directly prove that the model does not use spatial representations.
Possible explanations include: the system converts structured content into plain text; the current task does not trigger the corresponding output format; the display layer hides some tokens; or the model uses another form of expression. All of these are explanations to be verified, and no definitive conclusion should be drawn from interface observations alone.
In particular, avoid treating visible explanatory text as a complete record of internal computation. For engineering use, what matters more is whether final localization is accurate, whether references are stable, and whether task results are reproducible.
4. Coordinate Descriptions and Special Tokens Are Not Mutually Exclusive
Visual positions can be expressed through special tokens, plain text, or structured fields. The key is not whether the output looks special, but whether the expression convention is explicit and whether the result can be processed reliably.
The following application-layer illustrative structure does not represent any model’s official interface:
{"coordinate_system": "normalized","objects": [{"id": "object_1","category": "target","center": [0.42, 0.36],"box": [0.31, 0.22, 0.53, 0.51]}]}
Here, the convention is that the bounding box uses the order “left-top x, left-top y, right-bottom x, right-bottom y” and uses normalized coordinates.
Without these conventions, the same set of numbers may be interpreted as completely different regions by different components. Developers need to clarify at least the following:
- Where the coordinate origin is located;
- How the horizontal and vertical axis directions are defined;
- Whether pixel coordinates or normalized coordinates are used;
- Which field order the bounding box uses;
- Whether the coordinates correspond to the original image, a resized image, or a cropped image;
- The validity scope of object identifiers across a single image, multiple images, and multi-turn conversations.
Normalized coordinates can reduce dependence on fixed image dimensions. For example, under an explicit continuous-coordinate convention, if the original image width is W and the normalized horizontal coordinate is u, the corresponding horizontal position can be written as x = u × W. If conversion to discrete pixel indices is required, rounding and boundary clipping rules must also be specified.
In addition, if the input is cropped, resized, or padded, output coordinates must be mapped back to the original image according to the corresponding transformation. Correct coordinate values with the wrong coordinate system will still cause localization failure.
5. Why Placeholder Count Cannot Directly Infer the Image Limit
An image-text interleaved system may insert placeholder tokens into the text sequence to associate image content or locate multimodal segments. However, the number of placeholder tokens does not necessarily equal the number of images the system supports.
Understanding this issue requires distinguishing three levels.
1. Image Count: Independent Image Objects in the Input
This describes how many images are contained in a request or context. The allowed number may be affected jointly by the input protocol, total context budget, image processing cost, and service limits.
2. Visual Segment Count: Organizational Units After Image Preprocessing
An image may be encoded as a whole, or it may be split into multiple local regions or segments at different scales. The specific approach depends on the model architecture and preprocessing pipeline.
Therefore, one image and one placeholder token are not necessarily in a one-to-one relationship. A placeholder token may also only mark an insertion position rather than directly correspond to all visual segments.
3. Visual Sequence Length: Representation Scale After the Image Enters the Model
A vision encoder may convert an image into a set of features, which then pass through a connector or compression mechanism to form a representation that the language model can receive.
These visual positions may not correspond to ordinary text symbols in the tokenizer vocabulary. The observation of several placeholder tokens is not enough to infer that the visual representation must have the same length.
Therefore, placeholder count, per-image visual sequence length, and maximum image count should be validated separately. Only by combining the input protocol, preprocessing logic, model configuration, and actual runtime behavior is it possible to judge their relationships.
6. Experiments to Separate “Can Describe” from “Can Localize”
To judge whether visual primitives have practical value, it is not enough to look at a few successful screenshots. A more reliable method is to build test sets that can locate the source of errors.
1. Dense Object Counting
Select images containing multiple similar objects and require the model to output both the count and the position of each object.
If the count is correct but the localization list contains duplicates, the result may only be an accidental match. If the count is wrong, further checks should determine whether the issue is missed detection, duplicate localization, or an error in count aggregation.
2. Similar Object Reference
Set up multiple visually similar targets and ask the model to locate “the object within a specified region and near a certain reference object.”
This type of task can test whether the model truly understands spatial relationships rather than selecting targets only by category or salience.
3. Multi-Turn Reference Consistency
First ask the model to locate an object, then continuously ask about its attributes and relationships with other objects.
The evaluation focus is not whether each answer is fluent, but whether object identity drifts. Initial regions, subsequent output regions, and manual annotations can be saved for comparison.
4. Image Transformation Consistency
Resize, crop, or add padding to the same image, then check whether the model output follows the corresponding geometric transformation.
This helps reveal excessive dependence on absolute position and coordinate mapping errors in the application pipeline.
5. Evaluate Structural Validity and Semantic Accuracy Separately
Structural validity includes complete fields, correct types, legal coordinates, ordered boundaries, and parseable references.
Semantic accuracy focuses on whether localization corresponds to the real target. Bounding boxes can use intersection-over-union to measure region overlap, point localization can use distance error, and counting tasks can measure absolute error. Different tasks should also be combined with manual verification to avoid a single metric masking actual problems.
7. Integrating Spatial Representation into Reliable Engineering Workflows
In applications, the processing flow can be divided into input preprocessing, model inference, structure parsing, geometry validation, and business execution.
The input stage should record the original image dimensions and all transformation parameters. The inference stage should specify the task and output conventions. The parsing stage should check fields and data types. The geometry validation stage should verify out-of-bounds coordinates, degenerate regions, and reference consistency. Business rules should make the final decision on whether to accept the result.
For critical operations, an unverified localization output should not directly trigger execution. For example, interface operations, production inspection, and automated document processing can all include secondary verification, human confirmation, or fallback paths.
At the same time, “uncertain” should be designed as a valid result. When an image is too blurry, an object is occluded, or multiple candidates are difficult to distinguish, the system should be allowed to request clearer input or hand off to a human rather than forcing the generation of seemingly precise coordinates.
Logging should also follow the principle of minimization. Images may contain personal information or sensitive business content. When storing original images, cropped regions, and output records, access control and retention periods should be configured to avoid expanding data exposure during evaluation and troubleshooting.
8. Conclusion: Value Should Lie in Verifiable Spatial Capabilities
The core value of the visual primitives approach for multimodal models is that it transforms some object descriptions that depend on natural language into more explicit, computable, and verifiable spatial references. This provides a better representational foundation for dense counting, complex localization, image-text association, and multi-turn object tracking.
However, the existence of dedicated tokens does not mean the capability is mature, and ordinary coordinate output does not mean the technical route has definitively changed. Placeholder token counts also cannot be used directly to infer image capacity or visual sequence length.
Developers should examine the representation mechanism, input protocol, and task effects separately, then form judgments through localization precision, reference consistency, coordinate transformation correctness, and exception handling capability. The real highlight is not how many special symbols a model outputs, but whether these representations can reduce errors and be reliably integrated into real business workflows.
