Visual Primitives and Spatial Reasoning in Multimodal Models: A Practical Analysis

    When evaluating multimodal models, recognition accuracy alone tells you little about how reliably the model handles complex visual tasks. This article breaks down multimodal capability into three layers—visual perception, object reference, and relational reasoning—and explains how visual primitives (points, bounding boxes, and polygons) provide spatial anchors for language-based reasoning. It covers how to distinguish perception failures from reference failures, why special tokens and placeholder markers in a model's configuration cannot be taken as proof of internal mechanisms, how to design controlled experiments that verify whether spatial expressions actually improve task performance, and how to make spatial output a verifiable, programmatically checkable part of an engineering pipeline.

    1. Understanding Multimodal Capability Goes beyond “What Was Recognized”

    When analyzing open-weight multimodal models, developers tend to focus first on image recognition accuracy, supported input sizes, and whether the model can generate detailed explanations. This information matters, but it is not enough to judge whether a model can reliably handle complex visual tasks.

    Consider an image containing multiple parts with similar shapes and colors. A model might correctly describe it as “several metal parts in the image,” yet fail to reliably answer questions like:

    • Does the second part in the top-left corner have a notch?
    • Should two partially occluding parts be counted as one or two?
    • Which part is closest to the red marker?
    • In multi-turn dialogue, does “that part we just discussed” still refer to the same object?

    These questions require not only that the model sees the image content, but also that it establishes stable object identities and maintains consistent references during subsequent reasoning.

    When evaluating multimodal models, it helps to split capability into three layers: visual perception, object reference, and relational reasoning. The value of visual primitives lies mainly in providing a more explicit spatial foundation for the latter two layers.

    2. From Perception Errors to Reference Ambiguity: Two Distinct Problems

    2.1 Perception problems: object information was not correctly extracted

    Perception problems occur at the stage where image content enters the model’s understanding pipeline. Typical symptoms include missed small objects, blurred text, misjudged occluded regions, and failure to separate adjacent objects in dense scenes.

    These issues are usually related to input resolution, image scaling, visual encoding precision, and training data coverage. If an object is reduced to a handful of pixels after preprocessing, no amount of downstream reasoning can reliably recover the lost detail.

    Engineering remedies such as local cropping, moderately increasing input resolution, and region-by-region analysis can help, but they also raise compute costs and may introduce double-counting across regions.

    2.2 Reference problems: the object is seen, but cannot be stably cited

    Reference problems occur after an object has already been recognized.

    Natural-language expressions like “the cup on the left,” “the smaller part,” or “the target near the edge” are context-dependent. If the image contains multiple similar objects, or the conversation involves a viewpoint change, these descriptions easily become ambiguous.

    Complex tasks amplify this instability. A model might first describe an object as “the target on the right,” then later call it “the larger one in the middle”—and the two descriptions may not point to the same entity. The final answer may be fluent yet built on incorrect object associations.

    Note that “perception” and “reference” here form an analytical framework; they do not imply that every model has fully separate internal modules for each. Real errors may mix visual omissions with reference confusion, and experiments are needed to disentangle them.

    3. Visual Primitives: Adding Spatial Anchors to Language Reasoning

    Visual primitives can be understood as a set of basic structures for expressing spatial locations and extents in an image. Common forms include points, bounding boxes, and polygons.

    They do not automatically grant the model correct visual understanding. Rather, they allow object judgments the model has already formed to be recorded, referenced, and checked more explicitly.

    3.1 Points: good for marking positions and centers

    A point is typically represented by two coordinates and can describe an object’s center, a key location, or an interaction point.

    Compared to “that target in the upper left,” a point provides a much more precise positional constraint. However, a point carries no size information and cannot fully describe occlusion. In dense scenes, a single center point may still be insufficient to distinguish targets with adjacent boundaries.

    3.2 Bounding boxes: good for expressing object coverage

    A bounding box is usually represented either by top-left and bottom-right coordinates, or by a center point plus width and height.

    Boxes support object localization, region cropping, and spatial relation computation. For example, you can use boxes to determine whether two objects overlap, or whether one object lies entirely within a specified region.

    However, a rectangle includes background pixels around the target. For elongated, curved, or irregular objects, the box area can be significantly larger than the object itself, so it cannot serve as a precise shape substitute.

    3.3 Polygons: good for irregular contours

    A polygon consists of an ordered list of vertices and can describe an object’s outer contour in finer detail, making it suitable for region annotation and shape-related judgments.

    The cost is longer output; vertex order, closure rules, and self-intersection also need validation. Importantly, polygon output is not equivalent to pixel-level segmentation, nor does it mean the model has accurately recovered object boundaries.

    3.4 Spatial anchors need stable references to go with them

    Coordinates are only one part of object reference. A more complete representation usually also includes an object ID, category, and attributes:

    1. Object ID: target-A
    2. Category: part
    3. Localization method: bounding box
    4. Coordinate space: normalized coordinates of the original image
    5. Extent: (0.18, 0.22, 0.36, 0.47)

    The above is an illustrative structure, not the interface of any specific model.

    In multi-turn tasks, you can first build an object inventory, then discuss defects, relative positions, or handling priority by object ID. This reduces identity drift caused by repeatedly using vague descriptions.

    4. Special Tokens Provide Clues, but Do Not Prove Model Mechanisms

    When analyzing a tokenizer configuration, finding special tokens related to points, boxes, polygons, and references reasonably indicates that the vocabulary reserves symbols for some form of structured spatial expression.

    But this finding alone does not prove the model uses these symbols in its current inference process.

    4.1 Presence in the config does not mean the capability is enabled

    A special token may serve training sample formatting, auxiliary tasks, or an internal serialization protocol—or it may simply be retained for compatibility.

    So the token names in the vocabulary alone cannot confirm whether they participate in inference in the current version, let alone let you infer accuracy on the corresponding tasks.

    4.2 Absence of tokens in the output does not mean the model lacks the internal representation

    The text users see may have gone through format cleanup, token filtering, or conversion of structured results. The model may also express coordinates using plain numbers and natural language rather than emitting special tokens.

    These are possibilities that need verification, not established facts about any specific model.

    In particular, visible explanatory text should not be treated as a complete record of the model’s internal computation. It can serve as behavioral observation material, but cannot by itself prove hidden representations or internal reasoning paths.

    4.3 Coordinates in the output do not mean correct localization

    A model may generate well-formed coordinates at the wrong locations. To judge whether a spatial expression is effective, you must compare the output against image annotations, object identities, and task answers.

    In practice, it is advisable to separate conclusions into three categories:

    • Configuration facts: what fields or tokens actually exist in the files.
    • Behavioral facts: what outputs were observed under which input conditions.
    • Mechanism hypotheses: which internal designs might explain the observations.

    This distinction prevents speculation from being written up as technical conclusions.

    5. Image Placeholder Tokens, Image Count Limits, and Visual Token Budgets Are Not the Same Thing

    Seeing consecutively numbered placeholder tokens in image-text input often leads to a misconception: the number of tokens equals the maximum number of images the model supports.

    In reality, at least three dimensions must be distinguished.

    5.1 Placeholder tokens describe sequence organization

    Placeholders may specify where multimodal content sits within the text sequence, or they may correspond to local regions, content fragments, or some internal mapping unit.

    Whether one token corresponds to one image must be confirmed against preprocessing logic and input assembly rules—it cannot be inferred from names or numbering ranges alone.

    5.2 The image count limit describes an input constraint

    How many images can be input is also constrained by context length, the total visual token budget, inference memory, and server-side limits.

    Even if the input specification allows many images, that does not mean every image enters the model at the same resolution, nor that analysis quality holds up under large-scale input.

    5.3 Visual token counts describe the size of the encoded representation

    How many visual tokens an image produces after encoding may depend on size, cropping strategy, tiling, and compression.

    A single image may map to multiple local views, or be compressed into a fixed-length representation. Therefore, the number of placeholder token types, the image count limit, and the visual token count per image do not need to be equal.

    If the full implementation is unavailable, the safest conclusion is to explain the distinctions between these concepts and withhold judgment on the specific mapping.

    6. How to Verify Whether Visual Primitives Actually Improve Task Performance

    Rather than merely observing whether the model outputs special symbols, design reproducible controlled experiments.

    6.1 Set up three output conditions

    For the same set of images and questions, ask the model to:

    • Describe objects in natural language;
    • Output object IDs and spatial coordinates;
    • First build a structured object inventory, then answer questions based on it.

    Keep image input, task goals, generation settings, and output budgets as consistent as possible. Otherwise, performance differences may come from extra prompting or longer outputs rather than from spatial expression itself.

    6.2 Cover scenarios prone to reference errors

    The test set should include densely arranged objects, same-category objects, partial occlusion, varying scales, and multi-turn references.

    For example, first ask the model to label several similar parts, then ask “is there contact between target-B and target-D?” Tasks like these test object reference stability far better than simply asking what is in the image.

    6.3 Measure both accuracy and engineering cost

    Useful metrics include:

    • Localization quality: IoU of predicted boxes against human annotations, or distance from predicted points to ground-truth positions.
    • Counting error: absolute difference between predicted and true counts.
    • Reference consistency: whether multi-turn answers keep pointing to the same object.
    • Format validity: whether coordinates are complete, in range, and structurally parseable.
    • Operational cost: latency, output length, retry counts, and resource consumption.

    For irregular contours, also check whether polygons self-intersect and whether contour error meets task requirements.

    Evaluations should ideally report grouped results per scenario rather than a single average. Significant capability gaps may exist between dense targets and clear single targets.

    7. Engineering in Practice: Making Spatial Expressions Verifiable Data

    7.1 Standardize coordinate conventions

    You must make explicit the coordinate origin, axis directions, pixel vs. normalized coordinates, and whether coordinates refer to the original or a cropped image.

    If images are resized, cropped, or padded, record the transformations and map outputs back to the original image. Many localization errors are not recognition failures but coordinate-space mix-ups.

    7.2 Apply structural and geometric validation to outputs

    Upon receiving results, check field completeness, value types, coordinate ranges, and bounding-box ordering.

    For polygons, also check vertex counts and geometric validity. A valid format only means the result is processable; it does not substitute for semantic correctness verification.

    7.3 Delegate key spatial relations to deterministic computation

    Once the model outputs reliable object positions, relations such as distance, containment, and overlap can be computed programmatically.

    For example, “which object is closest to a given location” can be answered by sorting center-point distances, rather than relying on the model to re-judge it in natural language. Note that 2D image distance is not the same as real 3D distance.

    This division of labor—model for recognition and candidate generation, program for well-defined geometric computation—improves reproducibility.

    7.4 Keep fallback paths and human confirmation

    For low-quality images, heavy object overlap, or inconsistent results, use local crop re-examination, supplementary input, or human review.

    For high-risk operations, coordinate outputs should never directly trigger irreversible actions. If images and annotations contain sensitive information, also implement access control, retention limits, and log redaction.

    8. Conclusion: What Matters Is Verifiable Spatial Reasoning

    The core value of visual primitives is providing more explicit object localization and reference mechanisms for multimodal tasks—not making the model emit a few extra special tokens.

    Judging whether this technology has practical value requires a complete evidence chain: what expressions the configuration supports, what results the model actually produces, whether the spatial results are accurate, and whether those results improve stability on complex tasks.

    For developers, the most valuable questions are: can the model consistently localize the same object, can spatial expressions be validated programmatically, does structured output reduce task errors, and do the gains justify the latency and processing costs.

    Only by combining vocabulary clues, output observations, and reproducible experiments can you move from “appears to have spatial capability” to “can be reliably used for engineering tasks.”