Multimodal Visual Reasoning: Visual Primitives vs. Thinking with Images
Multimodal models can recognize image content yet struggle with counting, localization, and consistent object references. This article explains the perception and reference gaps, compares thinking with images against visual primitives, and outlines practical methods for evaluating models and integrating replaceable visual components into agent systems.
1. Seeing an Image Is Not the Same as Explaining It Accurately
A multimodal model typically processes visual information in two stages: encoding an image into features, then expressing its conclusions in language. Both stages can fail, but the failures take different forms.
Developers may see a model apparently understand an image in a demonstration, only to encounter inaccurate counts, drifting bounding boxes, or inconsistent answers to repeated questions once it is deployed. Diagnosing these problems starts with distinguishing two types of bottlenecks.
2. Two Bottlenecks: The Perception Gap and the Reference Gap
The Perception Gap
A perception gap occurs when the visual encoder cannot provide enough detail. Low resolution, heavy compression, or cropped regions can remove small objects, text, and textures from the information available to the model.
Engineering techniques such as increasing input resolution or encoding image tiles can help reduce this problem.
The Reference Gap
A reference gap occurs when the model must rely on natural language to identify objects during reasoning. Descriptions such as “the person in red on the left” or “the car in the middle of the second row” can become ambiguous in crowds or densely arranged scenes.
Once a reference shifts from one object to another during reasoning, subsequent counting or localization steps can fail in a chain reaction.
These two problems are often confused. A simple diagnostic is to enlarge the relevant image region and ask the same question again. If the answer improves, perception is likely the main bottleneck. If the model still misses or double-counts objects, and its object descriptions become inconsistent, a reference bottleneck is more likely.
3. Two Main Technical Approaches
Approaches to addressing the reference gap generally fall into two categories.
Approach 1: Thinking with Images
The model can use operations such as cropping, zooming, and annotation during reasoning. It then feeds the intermediate visual results back into its context and continues reasoning.
This approach is broadly applicable, works with existing toolchains, and makes the sequence of operations traceable. However, it depends on external operations, each of which adds latency and invocation costs. The strategy for choosing those operations also requires training or careful design.
Approach 2: Visual Primitives
The model introduces geometric primitives directly into its output, such as points, bounding boxes, and polygons. Structured coordinate markers refer to specific locations in the image.
These primitives are interleaved with text, turning object references into precisely locatable “pointers” rather than relying entirely on verbal descriptions.
This approach has clear theoretical advantages for dense counting and complex localization. The trade-off is that it requires specialized training data. Coordinate discretization introduces quantization error, and output quality is highly sensitive to vocabulary design and decoding format.
Choosing an Approach
The choice depends on the task:
- For open-ended visual question answering and multistep reasoning, thinking with images is generally the safer choice.
- For tasks that depend heavily on accurate counting and location outputs, visual primitives offer more substantial potential benefits.
4. How to Evaluate Visual Primitive Capabilities
Descriptions in public papers do not always match the behavior of deployed versions, and demonstration examples may be selectively chosen. Evaluation should therefore go beyond promotional material.
Inspect the Vocabulary and Output Format
Paired special tokens associated with points, bounding boxes, or polygons can provide indirect evidence that a model uses visual primitives.
However, these tokens are only a clue, not proof. Some may be reserved for other functions.
Build a Structured Test Set
Cover four task categories:
- Dense object counting.
- Small-object localization.
- Geometric path planning, such as maze navigation.
- Distinguishing occluded or visually similar objects.
Each category should include samples with ground-truth annotations. The ground truth must come from a source independent of the model being evaluated.
Measure Output Stability
Sample the model multiple times on the same input and examine how much the answers vary.
In theory, a visual-primitive approach should produce more consistent coordinate outputs. If variation is large, investigate sampling settings and output-parsing logic before drawing conclusions.
Record the Version and Runtime Environment
Record the model version, access date, inference parameters, and input resolution.
The same model name may correspond to different configurations across access channels. Evaluation findings must remain tied to this metadata.
The following illustrative framework evaluates counting. Here, model is a wrapper around the model under test; users must implement parse_int and summarize.
def evaluate_counting(model, cases, runs=5):report = []for case in cases:answers = [model.ask(case.image, case.prompt) for _ in range(runs)]counts = [parse_int(a) for a in answers]errors = [abs(c - case.truth) for c in counts if c is not None]report.append({"case_id": case.id,"mean_abs_error": sum(errors) / len(errors) if errors else None,"consistent": len(set(counts)) == 1,})return summarize(report)
5. Engineering Integration: Make Vision a Replaceable Component
In agent systems, visual capabilities are typically a subsystem and should be decoupled from the main workflow.
Avoid Hard-Coding Model Identifiers
Store model identifiers, inference modes, and input-resolution settings in configuration files or environment variables, and inject them through the deployment process.
Version configuration changes so that they can be rolled back when problems arise.
Document Toolchain Upgrades Explicitly
Before upgrading command-line tools or dependencies, check their current versions and changelogs. Include the upgrade commands in the deployment guide rather than assuming users will discover the required steps themselves.
Keep Deterministic Fallbacks for Critical Tasks
For counting and measurement tasks, cross-check model outputs with traditional detection algorithms or deterministic counting programs.
If the results disagree, route the case to human review or decline to make an automated decision.
Maintain a Regression Test Set
After every model or configuration change, rerun a fixed test set and compare error and consistency metrics.
Continuously add production failures to the regression set.
6. Practical Recommendations for Developers
- Diagnose errors by layer: perception, reference, and reasoning. Do not apply the same remedy to every failure.
- Evaluate models with batches of ground-truth-labeled samples rather than relying on a single demonstration.
- Retain human spot checks for high-risk use cases, and adjust the review rate dynamically based on observed error rates.
- Record the input, output, and reasoning text for each failure. These records provide direct evidence for improving prompts and selecting models.
7. Conclusion
A multimodal model’s ability to reason about images depends on both perception quality and its mechanism for referring to objects. Thinking with images and visual primitives address these challenges in different ways and suit different workloads.
Developers should evaluate and integrate models through reproducible tests and rollback-ready configurations—not promotional descriptions or one-off experiences.
