Multimodal Agent Visual Reasoning: Visual Primitives vs. Think-with-Images
This article breaks down the two main technical routes for visual reasoning in multimodal agents—visual primitives and thinking with images—and explains why "seeing" is rarely the bottleneck. It covers the perception gap versus the referring gap, the role of the agent runtime framework, a three-layer evaluation method for reproducibility, and practical engineering recommendations for choosing and testing a route based on data.}
1. Background: Why Multimodal Agents See Clearly but Reason Poorly
Most multimodal agents built in the past two years can accept image input, yet they still fail frequently on dense counting, localization in complex scenes, and path planning. A shared view is emerging across the industry: these errors rarely come from “not seeing clearly” and more often from “not reasoning clearly.” When a model can only describe objects in natural language, references become ambiguous, similar targets get mixed up, and errors accumulate across multi-step reasoning.
The industry usually calls the first type of difficulty the perception gap—detail loss caused by resolution, compression, occlusion, and similar factors. The second type is called the referring gap—the model lacks a stable, addressable object representation internally. The two gaps have different root causes and require different fixes. Treating them as the same problem often leaves optimization efforts unfocused.
2. Two Mainstream Technical Routes
2.1 The Visual Primitives Route
The core idea of this route is to abstract objects in an image into precisely addressable “pointers,” such as coordinate points, bounding boxes, or region identifiers that uniquely locate a target in continuous visual space. Reasoning no longer depends on natural-language descriptions like “the red cup on the left”; instead, it references identifiers directly for computation and verification. The advantages are stable, traceable references, which suit structured tasks such as counting, localization, and comparison. The cost is that it requires extra annotation or alignment mechanisms, making the engineering pipeline longer.
2.2 The Think-with-Images Route
This route has the model repeatedly “look at the image” during the reasoning chain, iteratively approaching an answer through cropping, zooming, annotating, and re-inputting. In form, it is closer to how a person studies an image over and over. It is cheap to implement and general-purpose, and it works better for open-ended description and commonsense reasoning. However, when exact coordinates or strict counting are required, its stability depends on prompt design and sampling strategy, so results fluctuate more.
The two routes are not mutually exclusive. A common engineering practice is to use a think-with-images flow for outer-level control while introducing addressable representations at key steps for verification, balancing flexibility and accuracy.
3. An Often Overlooked Piece: The Agent Runtime Framework
Whichever route you choose, it ultimately runs on a concrete framework. The framework handles prompt assembly, tool invocation, context management, and result return, and it determines whether model capabilities can be reproduced reliably. Three problems come up often in practice:
- Configuration entry points are inconsistent, and documentation examples do not match actual parameters, so “copying the example” does not run.
- Versions iterate quickly, old configurations break on new versions, and clear upgrade and compatibility notes are missing.
- The default is aimed at integrators rather than end users, so there is no out-of-the-box interaction entry point.
The recommended approach is to put configuration under version control, document upgrade steps explicitly, and keep a minimal working example. The illustrative configuration below expresses structure only and does not point to any specific implementation:
{"model": "vision-reasoning","profile": "web","tools": ["crop", "zoom", "annotate"],"reasoning": { "style": "think_with_images", "max_steps": 6 }}
Upgrades and startup are usually done through a package manager. Internally, teams should turn this into a script to avoid the drift caused by passing commands around verbally.
4. A Reproducible Evaluation Method
To judge whether a route actually works, you cannot look only at the final answer; you also need to look at the intermediate process. Three layers of verification are recommended:
- Result layer: use standard task sets such as counting, localization, and maze path finding, and measure accuracy and variance.
- Process layer: check whether explicit addressing actions appear in the reasoning chain, such as coordinate references or region annotations.
- Stability layer: fix the random seed or sample multiple times, and observe answer consistency.
If the process layer shows no explicit addressing yet the answers are still correct, the tasks are most likely too easy or the priors too strong. If addressing appears in the process layer but results are unstable, check alignment precision and the step limit. The phenomenon mentioned earlier—the same prompt producing different results under different entry points—shows that the entry point implementation and prompt templates significantly affect reproducibility, so evaluation must be bound to a specific entry point and version.
5. Engineering Recommendations
- Define task boundaries clearly: prefer addressable representations for structured tasks and think-with-images for open-ended tasks.
- Control the reasoning budget: cap the number of steps and crops to prevent drift from overly long chains.
- Strengthen logging and tracing: record each crop region and intermediate conclusion to make failure points easier to locate.
- Run canary releases and regression tests: regress against a fixed task set before a new version ships to avoid capability regressions.
- Keep selection neutral: evaluate infrastructure by general capability categories, such as object storage, message queues, container platforms, logging services, and monitoring and alerting, to avoid being locked into a single implementation.
6. Conclusion
Visual primitives and think-with-images address the referring gap and the perception gap respectively, and each has its own boundaries. For developers, what matters is not picking a side but building an observable, regression-capable, reproducible evaluation loop that lets data decide the route. If you need to run this kind of agent in the cloud, you can build a stable environment for experiments and production using the general container, storage, and monitoring capabilities offered by Baidu AI Cloud, keeping your focus on reasoning quality itself.
