Visual Primitives in Open-Source Multimodal Models: Spatial Grounding and Reasoning Explained

    An analytical guide to evaluating open-source multimodal models for vision tasks. This article explains how to distinguish perception errors from referential ambiguity, what visual primitives like points, bounding boxes, and polygons can and cannot prove, why special tokens in the vocabulary are not evidence of mature capabilities, and how to build a trustworthy evaluation pipeline covering counting, localization, spatial reasoning, and coordinate protocols for production use.

    Evaluating Multimodal Models: Define the Problem First

    When an experimental multimodal model releases its resources, developers typically care about three questions: Can it understand complex images? Can it perform spatial reasoning reliably? Can it be integrated into real business workflows at a manageable cost?

    These questions cannot be answered by a few demo examples alone. In tasks like dense counting, fine-grained localization, and chart understanding, there is often a significant gap between “an answer that sounds plausible” and “an answer that correctly corresponds to objects in the image.”

    A more useful way to analyze this is to break the discussion into three layers:

    1. How the model extracts information from an image — visual perception.
    2. How the model consistently refers to the same object during reasoning — spatial referencing and object binding.
    3. How the model converts internal processing results into parseable, verifiable outputs — interaction protocols and engineering interfaces.

    Visual primitives such as points, boxes, and polygons mainly relate to the latter two layers. They deserve attention, but they should not be equated directly with improved recognition accuracy, nor should the presence of special tokens in a vocabulary alone be taken as proof of a mature capability.

    From “Can’t See Clearly” to “Can’t Say Precisely”: Two Distinct Problems

    1. Perception errors: input information is not extracted correctly

    Low image resolution, small text, occluded targets, and unclear object boundaries can all cause errors at the initial information extraction stage.

    For example, in a photo of store shelves with multiple similar packages, if a distant product occupies only a few pixels, the model may fail to distinguish it even if all subsequent reasoning is perfectly correct.

    These problems usually require improvements in input quality, image scaling, local cropping, visual encoding, and multi-scale processing. Structured coordinates cannot recover visual details that were already lost.

    1. Referential ambiguity: the object is seen, but cannot be referenced consistently

    The second type of problem occurs after an object has been perceived.

    Suppose an image contains multiple parts with similar colors and shapes. The model reasons using natural language descriptions like “the small part on the left” or “the round object near the middle.” These expressions lack strict boundaries and may point to different objects in later steps, causing double counting, omissions, or incorrect relationship judgments.

    This can be understood as unstable binding between objects and their language descriptions.

    Multimodal reasoning therefore needs to answer not only “what is here” but also “which object exactly is being discussed.”

    Visual Primitives: Computable Spatial References for Objects

    Visual primitives are basic structures for expressing spatial positions and region extents. Common forms include points, bounding boxes, and polygons.

    1. Points: position anchors

    A point is typically represented by a pair of 2D coordinates and can mark a target’s center, a key part, or an interaction position.

    For example, when counting scattered granular objects, you can assign a center point to each target and then check for missed or duplicated marks. Compared to outputting a single total, this makes errors much easier to localize.

    However, points cannot express an object’s full extent. When two adjacent targets have close center positions, points alone may not sufficiently distinguish their boundaries.

    1. Bounding boxes: approximate object extents

    A bounding box is usually expressed as top-left and bottom-right coordinates, or as a center position with width and height.

    It suits target localization, layout region detection, and subsequent local cropping. Once “the larger table on the right” is converted into an explicit rectangular region, downstream processing can operate on that region instead of repeatedly relying on vague natural language.

    That said, a rectangle may include substantial background or cover neighboring objects. A bounding box is not a precise segmentation result.

    1. Polygons: more complex region contours

    A polygon consists of ordered vertices and can approximate irregular regions, making it suitable for skewed text areas, complex contours, and boundary representation of specific zones.

    The cost is longer output and more complex parsing, with stricter validation requirements for vertex ordering, boundary closure, and self-intersection.

    Note also that a polygon is merely a representation. It only has practical value when correctly matched to the target region; outputting many vertices does not mean the model has fine-grained segmentation capability.

    What Special Tokens Can and Cannot Prove

    When analyzing released resources, developers may find special tokens related to points, boxes, polygons, and object references.

    Such information is useful as a reference, but it should be interpreted in layers of evidence strength:

    • Vocabulary evidence: A special token appearing in the vocabulary only shows that the tokenizer has reserved a representation for the symbol. It does not prove the model has learned its meaning.
    • Protocol evidence: If public format documentation or training examples show the structure of these tokens, it further confirms what they are intended to express and how they should be parsed.
    • Behavioral evidence: Only actual testing can confirm whether the model generates well-formed output in appropriate tasks and whether coordinates correctly correspond to image objects.
    • Task evidence: Only when evaluations across diverse scenarios show that structured output genuinely reduces omissions, duplicates, and localization errors is there a basis for discussing real-world benefits.

    There is therefore still a distance to verify between “a token exists in the vocabulary” and “the model can use this capability reliably.”

    Vocabulary tokens may also serve training, compatibility, or other processing pipelines. Without explicit documentation, their purpose should not be assumed.

    Why the User Interface Doesn’t Show Visual Primitives

    When no special tokens appear in the visible response, you cannot conclude that the model is not using structured spatial information.

    Possible reasons include:

    • The current task only requires a natural language answer, so no coordinates need to be output.
    • The API or presentation layer filters, replaces, or reformats special symbols.
    • The relevant representations are only used in specific training or invocation modes.
    • The model genuinely does not adopt such output forms for the current task.

    All of these are hypotheses to be verified, not conclusions in themselves.

    In particular, a visible explanation is not the same as the model’s internal computation. Even if coordinates appear in the response, that only proves the output contains coordinates — it does not determine what internal representation the reasoning used.

    A more reliable research approach is to inspect public protocols, observe raw responses where accessible, and evaluate results with reproducible controlled experiments, rather than inferring the entire internal mechanism from displayed text.

    Multimodal Placeholders Are Not Image Count Limits

    Another commonly misread piece of information is multimodal placeholder tokens with sequential numbering.

    Intuitively, people may map one placeholder to one image and infer the maximum number of input images from the placeholder count. But this correspondence is not universally guaranteed.

    Across different systems, placeholder structures may represent image positions, image tiles, local crops, visual feature segments, or content segments in mixed image-text layouts.

    A single image may be split into multiple regions for processing; multiple images may also be organized through other indexing structures. Some numbering may only be valid within a single sample rather than as a global resource count.

    Three concepts should therefore be distinguished:

    • How many images the input layer accepts.
    • How many visual segments the preprocessing stage produces.
    • How much context resource the encoding actually consumes.

    These may be related but cannot be equated. To determine real limits, rely on public documentation, actual API constraints, and boundary testing — not on placeholder names alone.

    Coordinate Protocols: The Most Overlooked Engineering Detail

    Even if a model outputs correct object positions, inconsistent coordinate protocols can make the results unusable in production.

    First, define the coordinate system. Whether coordinates refer to the original image, a scaled image, or a cropped region must be explicitly specified.

    Second, define the units. Pixel coordinates are convenient for direct rendering, while normalized coordinates transfer better across resolutions — but converting between them requires preserving image size information.

    For example, with a width-height normalization convention:

    1. x_norm = x / W
    2. y_norm = y / H

    where W and H are the image width and height. If subsequent mapping to discrete pixel indices is needed, boundary and rounding rules must also be defined to avoid out-of-range coordinates at the rightmost or bottom edges.

    Third, record preprocessing transforms. If an image was scaled with padding, mapping coordinates back to the original image requires undoing both translation and scaling; if it was cropped, the crop offset must also be restored.

    Finally, design exception handling. Out-of-bounds coordinates, empty regions, insufficient vertices, duplicated objects, and unparseable structures all need explicit handling strategies — they should never be passed directly to downstream business logic.

    Building a Trustworthy Evaluation System

    Evaluating the value of visual primitives should not merely check whether output contains coordinates. It should examine three dimensions: perception, referencing, and format.

    1. Dense counting

    Beyond comparing predicted totals with ground-truth totals, check object-level matching. Duplicating one object while missing another can yield a correct total while exposing unstable object binding.

    Analyze total count error, missed detections, and duplicates together.

    1. Object localization

    For bounding boxes, use Intersection over Union (IoU) between predicted and annotated regions. For points, set distance tolerances based on target scale — avoid applying a single pixel threshold to objects of very different sizes.

    1. Spatial relationship judgment

    Design samples with similar objects to test left/right, above/below, containment, and adjacency relationships. The focus should be whether object references remain consistent, not just whether the final relation word is correct.

    1. Document and chart understanding

    Verify both content extraction and the binding between text, values, and their regions. Extracting the correct value but associating it with the wrong row or column still counts as a task failure.

    1. Protocol reliability

    Measure parse success rate, field completeness, coordinate validity, and consistency across repeated calls. For automated systems, an unparseable correct answer is just as unusable.

    Test sets should also cover small targets, occlusion, rotation, low contrast, and images with no targets, so results are not dominated by a few ideal samples.

    A Recommended Pipeline for Production Deployment

    A more robust approach is to place model output inside a verifiable processing chain:

    Image input → preprocessing with transform logging → model generates structured results → format validation → geometric validation → business rule validation → display or human review.

    Format validation checks field completeness and type correctness; geometric validation checks boundary legality and region validity; business validation judges whether results satisfy task-specific constraints.

    For high-risk scenarios, add rejection and review mechanisms. When image information is insufficient, object relationships are ambiguous, or repeated recognitions conflict significantly, the system should be allowed to return “cannot reliably determine” rather than forcing a definitive answer.

    Also keep traceable records of input versions, preprocessing parameters, model versions, and validation results. This is the only way to determine whether a problem originates from image quality, model capability, coordinate conversion, or business rules.

    What Really Matters: A Closed Capability Loop

    The real significance of visual primitives is that they provide clearer spatial anchors for image objects than natural language, making localization, counting, and relationship judgment convertible into inspectable intermediate results.

    But going from special tokens to reliable capability requires training, protocols, coordinate systems, and evaluation infrastructure working together. Token presence does not mean mature capability; a missing token in the UI does not mean no internal processing; coordinate output does not mean correct localization.

    For developers evaluating open-source multimodal models, the most valuable principles are: separate facts from speculation, verify capabilities through behavior, measure benefits with task metrics, and control risk with engineering validation. Only by forming this closed loop do visual primitives become more than an interesting concept — they become a technical component that supports real applications.