Multimodal Visual Primitives: Practical Coordinate Grounding
Visual primitives help multimodal models refer consistently to individual objects, not just describe an image. This article explains how points, bounding boxes, and polygons support instance binding, how geometric tokens differ from multimodal placeholders, and what coordinate conventions, training objectives, and validation checks are needed for reliable deployment.
The Problem Is Not Just Seeing Clearly—It Is Pointing Precisely
Evaluations of multimodal models often attribute failures to the visual encoder: insufficient resolution, lost detail, or small objects compressed into too few visual units. These failures constitute a perception gap—information in the pixels does not reliably reach downstream reasoning. Increasing input resolution, using multiscale tiling, and preserving high-resolution local features can often improve what the model can see.
Another class of failure is harder to address. A model may correctly describe an object’s category, color, and approximate location, yet contradict itself when counting dense groups, distinguishing instances of the same class, reasoning about occlusion, or identifying “the third object from the left.”
Here, the limitation is not necessarily the image representation. It is that the reasoning process still refers to objects through natural language. Language handles categories and relationships well, but it is less effective at assigning a stable, verifiable identity to an instance in continuous space. In a crowded scene, phrases such as “the car on the left” or “the slightly larger box” can drift. A later step may no longer refer to the same object. This is the reference gap.
Visual primitives address this gap by giving objects unambiguous spatial pointers. Points, bounding boxes, and polygons are less likely than descriptive phrases to change their referent during multistep reasoning. They are not merely another writing style: they move the question of “which object do I mean?” from semantic descriptions into coordinate space.
What Visual Primitives Solve
A localization task can be divided into three stages:
- Perception: Encode image regions into computational representations.
- Binding: Associate a language concept with a spatial region.
- Reference: Reuse that binding during counting, comparison, and relationship assessment.
Natural language primarily supplies the category side of binding; geometric primitives supply the spatial side.
Points work well for keypoints and marking individual instances for counting. Bounding boxes suit axis-aligned objects. Polygons suit irregular contours, lanes, text lines, and visible regions of partially occluded objects.
Their value is not that they resemble annotation formats. It is that every subsequent reference can return to the same coordinates instead of describing the object again.
This also explains why dense counting is fragile. If a model outputs “about twelve” without an enumerable set of pointers, there is no intermediate representation for checking missed objects, duplicate counts, or objects outside the target region. If each instance first receives a point or box, counting becomes an auditable operation on a pointer set: deduplication and containment checks.
What Geometric Tokens in a Vocabulary Mean
Experimental multimodal models may reserve special tokens for geometric structures. Points, bounding boxes, and polygons can each have start and end tokens; some vocabularies also include delimiters for referring text spans.
Unlike ordinary subword tokens, these are typically designated as special symbols. They are not subject to ordinary prefix or suffix stripping, and their delimited structures should remain intact during decoding.
From a modeling perspective, these tokens serve three purposes:
- Define structural boundaries: Keep coordinate numbers separate from surrounding prose.
- Declare geometric types: Prevent the same numeric sequence from being interpreted under the wrong grammar, such as a point instead of a box.
- Anchor supervision: Support alignment across annotations, reasoning traces, and final answers.
Reference delimiters enclose the text span being grounded. For example, a category phrase may be followed by a box, or the box may appear within the delimited span. This creates an explicit relationship between language and geometry rather than leaving it to punctuation.
The presence of these symbols in a vocabulary establishes only that the model can express the syntax. It does not establish that the model will emit them during inference. Their visibility depends on which output forms later alignment and preference optimization favor.
Why Explicit Tokens May Become Plain Coordinate Descriptions
Papers and early training recipes often represent visual primitives with explicit special tokens, such as a point placed on an object followed by normalized coordinates. In a deployed conversation or product interface, users may instead see an object name and coordinates, without special tokens.
That does not necessarily mean the primitives have been abandoned. The surface representation may have changed.
Several pressures can arise during later training:
- Readability preferences: Evaluators and users may prefer natural language with coordinates to output filled with control tokens.
- Tool interfaces: Downstream detection, drawing, and review systems need numeric boxes rather than a token-specific syntax.
- Search and compression: If coordinates already distinguish instances, extra delimiters contribute less information, encouraging a shorter representation.
A plausible interpretation is that explicit tokens enforce syntax early in training, while later stages distill the same binding into direct coordinate descriptions. Explicit primitives act as training scaffolding; coordinate descriptions become a compressed inference-time form.
Whether the two forms are equivalent cannot be determined by checking for angle brackets in the interface. The relevant questions are whether the coordinates remain stable, parseable, and consistent with the image coordinate system.
There is also a misleading failure mode: an answer may contain numbers that look like localization but are not aligned with visual features. The absence of special tokens does not establish the presence of a working primitive representation, and the presence of coordinates does not prove visual grounding.
The Minimum Coordinate Contract
Whether or not special tokens remain visible, coordinate output needs explicit conventions so that upstream and downstream systems can verify it.
- Coordinate system: Are coordinates relative to the original image pixels or the resized canvas seen by the model? Is the origin at the top left or bottom left?
- Normalization: Are values expressed from 0 to 1, from 0 to 999, or in absolute pixels? Mixing conventions can shift or scale an entire box.
- Box format: Is a box represented by its top-left and bottom-right corners, or by its center, width, and height? The type must match the values: a point has two coordinates, an axis-aligned box typically has four, and a polygon consists of vertex pairs.
- Out-of-bounds and degenerate geometry: Negative widths or heights, points outside the canvas, and self-intersecting polygons need rejection or correction policies. Silently clamping values and treating the result as correct is not sufficient.
- Instance ordering: Are instances ordered left to right, by confidence, or in reading order? Unstable ordering can make counts and “the nth object” references drift.
The structure can be simple. What matters is separating the type from the values and making the output easy to parse:
Object: pedestrianType: boxCoordinates: 0.12, 0.40, 0.28, 0.91
If start and end tokens are retained, they should delimit the structure. The coordinate contract still defines the numerical meaning. Tokens should not implicitly carry undocumented scaling factors.
Multimodal Placeholders and Visual Segmentation
Another category of special symbols consists of sequentially numbered multimodal placeholders. These appear in the text sequence to indicate that a span of visual information belongs at a particular position.
They are not geometric primitives.
A geometric primitive describes where an object is located in the image plane. A multimodal placeholder describes where visual features belong in the language model’s sequence. Both can be called pointers, but they point into different spaces and cannot replace one another.
The number of placeholders often does not match the maximum number of images a request can accept. This is generally expected: a single image rarely occupies only one sequence position. A common approach divides an image into multiple visual spans using a grid or content-adaptive segmentation. Each span occupies one or more positions, and text and images can be interleaved.
The placeholder limit therefore represents a budget for visual spans in the sequence, not an image-count limit. The number of supported images also depends on context length, visual units per image, and the resolution strategy.
Likewise, a per-image visual-unit limit need not equal the largest placeholder index. The index range may need to cover the worst-case total number of spans and leave room for alignment and reserved ranges. Per-image visual units are governed by a separate budget.
Reverse-engineering an implementation by assuming that the largest placeholder index equals the per-image token limit can produce apparent contradictions. Those contradictions do not necessarily indicate an implementation error; the two budgets answer different questions.
Engineering documentation should distinguish four quantities and explain their relationships:
- Images per request
- Visual units per image
- Placeholder spans in the sequence
- The canvas referenced by geometric coordinates
Without this clarity, users who only know that they can upload many images may encounter silent truncation in long interleaved inputs. Later images may receive no placeholders, while the model still generates language about their supposed locations.
Training Objectives That Make Primitives Useful
Adding special tokens to a vocabulary does not automatically close the reference gap. Supervision must require the model to bind coordinates when instance distinctions matter.
- Data: Use images containing multiple instances of the same class, with questions that depend on “which one,” not merely “what is it?” Image captioning alone lets the model avoid coordinates.
- Ordering: Require binding before reasoning. If the model can provide a conclusion first and add boxes afterward, those boxes may become post hoc decoration rather than a representation consistent with the reasoning.
- Loss: Beyond next-token prediction, additional constraints on coordinate regression or discrete coordinate bins can discourage the model from generating numbers as arbitrary text.
- Consistency: The pointer set in the reasoning trace and the set referenced by the final answer should be automatically checkable. A sample that omits a point but reports a larger count should be treated as incorrect.
- Output-format migration: When moving from explicit tokens to plain coordinates, continue using parsers to check types and ranges. Otherwise, the model may learn only to produce output that looks numerical.
Preference optimization that rewards only fluent prose can systematically penalize control tokens and long coordinate lists. Referential capability may then become less visible in the interface and weaker in the model’s output distribution.
Rewards should preserve parseability and reference consistency, not readability alone.
Validating Inference and Product Behavior
Acceptance testing should go beyond a single demonstration image. At minimum, cover the following cases and score them programmatically rather than relying only on visual inspection.
- Dense same-class objects: The count should equal the number of valid pointers. Duplicate boxes should be handled using a defined intersection-over-union merge rule.
- Occlusion and truncation: Document whether boxes or polygons should cover only visible regions, so evaluation criteria do not conflict.
- Relative relationships: Left/right, containment, and adjacency judgments should be reproducible from coordinates rather than accepted solely from a natural-language claim.
- Coordinate-system perturbations: Resizing an image or adding borders should produce coordinate behavior consistent with the declared convention. Unexpectedly invariant coordinates can indicate that the output is not grounded in the relevant canvas.
- Multiple interleaved images: A question about the second image must not use the first image’s canvas. Placeholder spans must stay aligned with image identity.
- Absent targets: Return an empty set when the target does not exist, rather than turning background noise into a large box.
Parse failure rate is itself a metric. A localization model that frequently emits incomplete, unparseable coordinates is not ready for an automated workflow, even if isolated examples appear impressive.
Where the Primitive Layer Fits in a Deployment Architecture
Visual primitives fit between perception and application rules.
The perception layer handles features and image patches. The primitive layer binds instances. The application layer uses those pointers for counting, review, retrieval, or visualization.
Application code should not directly parse the model’s unrestricted prose. An intermediate structuring step should capture the geometry type, coordinates, image identity, and confidence where available.
Confidence may come from model scores or overlap between a box and a visual heatmap, but integrations should not invent interface fields that do not exist.
Common cloud components include object storage for original images, message queues for smoothing load, container platforms for inference, and logging and monitoring for parse failures and out-of-bounds rates. These are general infrastructure components; none replaces the coordinate contract.
Logs should record canvas dimensions and normalization conventions. Without them, production boxes cannot be traced back to the original image.
For human review, the interface should draw boxes on the original image instead of displaying only numbers. People can assess whether a box encloses the intended object much faster than they can interpret a list of decimal values.
This is also the final check that a reference is complete: the pointer must project back onto pixels.
Conclusion
The perception gap concerns whether an object is represented in the visual features. The reference gap concerns whether later reasoning continues to refer to that same object.
Points, bounding boxes, and polygons provide unambiguous pointers in continuous space. Special geometric tokens provide syntactic scaffolding, and their replacement by plain coordinate descriptions is not inherently problematic—as long as a parseable coordinate contract survives.
Multimodal placeholders manage visual spans within a sequence. They should not be confused with image-count limits or geometric primitives.
Localization becomes operationally reliable only when the pointer set, final answer, and projection onto the image agree. Otherwise, the model may simply sound good at describing a scene without consistently grounding its references.
