Visual Grounding Challenges in Multimodal Models and the Visual Primitives Approach
Multimodal models often summarize images well but fail at tasks requiring precise, object-by-object reference, such as counting similar items or locating a specific part. This article distinguishes two root causes—the perception bottleneck and the grounding (referring) bottleneck—explains why natural language makes a poor visual pointer, and introduces visual primitives (points, bounding boxes, masks) as verifiable references in reasoning. It also covers engineering implementation, evaluation design, and practical guidance for teams building precise visual reasoning systems.
1. Problem Background
Multimodal models can already summarize the overall content of an image, yet they perform inconsistently on tasks that demand precise answers. Typical scenarios include counting identical products on a shelf, pointing out the location of a specific part in an industrial inspection image, or distinguishing two visually similar objects in the same scene. These tasks share one property: the answer depends on precisely referring to each object one by one, rather than on a holistic understanding of the image.
When developers hit this kind of problem, the first instinct is often to blame image resolution or input quality. That judgment is sometimes correct, but it does not always explain the failure. After an image is encoded into the model, errors can still occur during the reasoning stage—the step where the model converts visual information into textual statements.
2. Two Types of Bottlenecks: Perception and Grounding
Breaking down the causes of failure, there are two categories.
The perception bottleneck means the model cannot extract enough detail from pixels—for example, small text, distant small objects, or low-contrast edges. Increasing input resolution, using tile-based encoding, or strengthening the visual encoder are common ways to mitigate this category.
The grounding (referring) bottleneck means the model has already seen the object but cannot stably point to it during reasoning. Suppose a scene contains more than twenty visually similar bottles: the model may perceive each one individually, yet still miss some or double-count when enumerating them in text. The reason is that reference in natural language depends on context and phrasing—expressions like “the second one from the left” or “the red one” are inherently ambiguous. In multi-step reasoning, once the referenced object drifts, every subsequent conclusion degrades with it.
The two bottlenecks call for different fixes. The perception bottleneck is addressed on the vision side; the grounding bottleneck is addressed in how reasoning is represented. If the two are conflated, teams often keep investing in visual encoding upgrades without seeing the error rate drop.
3. Why Natural Language Makes a Poor Visual Pointer
Using natural language to refer to visual objects has four main problems.
- Ambiguity: the same object can be described in many ways, with no unified mapping between descriptions.
- Unverifiability: textual descriptions cannot be directly aligned with pixel regions, making it hard for humans or programs to quickly check whether the model referred to the correct object.
- Error accumulation: later steps cite earlier descriptions, so a grounding deviation in an early step propagates along the reasoning chain.
- Loss of geometric information: language describing location can only express rough direction, not precise boundaries.
For example, the model writes “the person in the upper-left corner” at step two, then writes “the person mentioned earlier” at step five. Each occurrence of a reference must be re-resolved by the model—this is a common path to logical collapse in multi-step reasoning.
4. The Core Idea of Visual Primitives
Visual primitives are representational units that point directly at objects using computable geometric structures in a continuous visual space. Common forms include point coordinates, bounding boxes, and contour masks. Their core function is to turn “reference” during reasoning from language into coordinates, so that every object has a unique, verifiable citation.
Below is an illustrative reasoning fragment showing how referenced objects are organized. This structure is for explanation only and does not correspond to any specific interface.
{"step": 3,"thought": "Count items of the same type","refs": [{"id": "obj_01", "type": "box", "coords": [0.12, 0.30, 0.18, 0.52]},{"id": "obj_02", "type": "box", "coords": [0.20, 0.31, 0.26, 0.53]}],"count": 2}
This structure has three design points: coordinates use normalized values so they can be reused across images of different resolutions; object IDs are unique within a single reasoning session; and later steps may only reference IDs that have already been generated. With these three rules satisfied, references in the reasoning chain become verifiable.
5. Key Engineering Steps
Implementing a visual primitives approach can be broken into four stages.
1. Data construction
Annotations must contain both textual reasoning and geometric anchors. Annotation rules must be unified, including how boxes are defined, how occluded objects are handled, and how overlapping objects are distinguished. When rules are inconsistent, the model learns the disagreements between annotators.
2. Training objectives
The loss function must constrain both text and coordinates. The coordinate part typically uses regression-style losses; ID consistency can be constrained through contrastive or matching losses. The weights of the two parts should be tuned on a validation set to prevent text capability from degrading due to coordinate training.
3. Decoding constraints
Output format can be guaranteed through constrained decoding or grammar constraints. Coordinates must fall within valid ranges, IDs must not repeat, and references must not point to undefined objects. Enforcing these constraints at decoding time is more reliable than patching outputs afterward.
4. Post-inference validation
A validation program checks whether references exist, whether boxes are out of bounds, and whether the count matches the number of references. The pseudocode below shows the basic validation logic.
function validate_refs(refs):seen = empty setfor r in refs:if r.id in seen:raise error "Duplicate object ID"add r.id to seen(x1, y1, x2, y2) = r.coordsif not (0 <= x1 < x2 <= 1 and 0 <= y1 < y2 <= 1):raise error "Invalid coordinates"return ok
Samples that fail validation should enter a review queue and serve as material for subsequent training or rule refinement.
6. Evaluation Design
Evaluation cannot rely on overall accuracy alone, otherwise failures in dense scenes will be masked by successes in simple ones. It is recommended to report results separately across the following four dimensions.
| Dimension | Metric | Notes |
|---|---|---|
| Counting | Absolute error, exact-match rate | Report dense scenes separately |
| Localization | IoU pass rate | A common threshold is 0.5 |
| Referring consistency | Object ID retention rate | Measures reference drift in multi-step reasoning |
| Structural validity | Proportion of valid outputs | Counts out-of-bounds coordinates, duplicate IDs, etc. |
The test set should be stratified by object count—for example, three tiers: fewer than 5 objects, 5 to 20 objects, and more than 20 objects—with results reported separately for each tier. The same batch of samples should also be run through a pure-text reasoning baseline to determine whether the gains from coordinate-based reasoning are real.
Localization metrics typically rely on Intersection over Union (IoU). The pseudocode below shows how it is computed.
function iou(a, b):ix1 = max(a.x1, b.x1)iy1 = max(a.y1, b.y1)ix2 = min(a.x2, b.x2)iy2 = min(a.y2, b.y2)inter = max(0, ix2 - ix1) * max(0, iy2 - iy1)union = area(a) + area(b) - interreturn inter / union if union > 0 else 0
7. Practical Recommendations
- Identify the error type first: if errors concentrate on small objects, prioritize investigating the perception bottleneck;
