Multimodal AI Agent Visual Reasoning: Visual Primitives vs. Thinking with Images
This article examines why multimodal AI agents often describe images well yet fail at dense counting, small-object localization, and complex spatial reasoning. It identifies a hidden "referential gap" alongside the perception gap, compares two technical paths—visual primitives and thinking with images—and explains how the agent runtime framework can matter more than the model version. It then outlines practical guidance on configuration governance, a four-layer evaluation design, observability and cost control, and how to choose between the two approaches.
1. Background: Why Multimodal Agents See but Cannot Explain
Once multimodal agents move into real business scenarios, a recurring problem appears: models perform reasonably well on general image description, but fail frequently on tasks such as dense counting, small-object localization, and complex spatial relationship judgment. The industry usually attributes the first category of difficulty to a “perception gap”—lost detail caused by insufficient input resolution, encoding methods, or visual context. A more hidden layer is the “referential gap”: during reasoning, the model can only refer to objects in an image through natural language. Once there are many objects, the objects are similar to each other, or spatial relationships are dense, the language description loses uniqueness and the reasoning chain collapses.
This judgment carries an important engineering implication: improving multimodal capability is not the same as simply increasing input clarity. The “thinking process” also needs a more reliable way to carry visual information. Two mainstream technical paths have formed around this proposition.
2. Two Technical Paths: Visual Primitives and Thinking with Images
2.1 The Visual Primitives Path
The core idea of “visual primitives” is to construct unambiguous pointers in continuous visual space, so the model can directly reference image regions during reasoning instead of transcribing a region into a natural language description. Its advantage is referential precision: when multiple targets of the same kind must be distinguished, a pointer is naturally unique and avoids the ambiguity of vague expressions such as “the one on the left” or “the second from the right in the back row.”
The cost is equally obvious. It requires deep modification of model training, the inference framework, and the toolchain around the primitive representation, which creates high engineering coupling. In addition, primitives are weaker in interpretability, so debugging and result review rely more on visualization.
2.2 The Thinking with Images Path
“Thinking with images” is closer to the classic paradigm: during reasoning, the model actively crops, scales, annotates, and re-inputs images, embedding visual operations into a multi-step reasoning loop. Its strengths are generality and good compatibility with the existing tool ecosystem; the model can complete tasks without carrying any special representation capability. Under an agent framework, visual operations are treated as ordinary tool calls, orchestration logic stays clear, and failures can be rolled back and retried.
What deserves more engineering attention is that this path shifts the capability focus from “internal model representation” to the “agent runtime framework.” The performance difference of the same model across different frameworks may be far larger than the difference between model versions. This is exactly the phenomenon observed in the original text—when capabilities described in research do not match actual behavior on a web interface, it is often not model degradation but differences in the visual tools, context organization, and invocation strategies provided by the runtime framework.
3. Configuration and Runtime Environment: Reducing Uncertainty
When multimodal agents are deployed, the most common inefficiency is not an algorithm problem but opaque environment configuration. Teams often run into several situations: configuration snippets in official documentation do not match the format that actually takes effect; configuration exists as a structured file but lacks explanation; the priority between command-line arguments and configuration files is unclear; behavior changes after an upgrade with no notice.
Recommended order for reducing uncertainty:
- Pin the runtime version. Record the agent runtime framework version in the project dependency list, and handle upgrades as independent changes rather than mixing them into business code commits.
- Externalize and validate configuration. Use structured configuration to describe the model identifier, visual tool switches, context length, and retry policy, and print the final effective configuration at startup.
- Build a minimal reproduction sample. Prepare fixed inputs and expected outputs for each type of visual task, and run the minimal sample set first after any configuration change.
- Define priority rules explicitly. Agree on the override order of command-line arguments, environment variables, and configuration files to avoid “changed but not effective.”
An illustrative configuration structure follows (it only expresses generic field semantics and does not point to any specific product):
{"model": "<model identifier>","profile": "web","vision": {"enabled": true,"max_image_side": 1536,"crop_tool": true,"annotate_tool": true},"runtime": {"max_steps": 12,"retry": 2,"timeout_ms": 60000},"logging": {"level": "debug","trace_tool_calls": true}}
4. Evaluation Design: From “Can It” to “By How Much”
To decide whether a visual path fits the business, you must build a quantifiable evaluation rather than rely on subjective impressions from individual cases. A practical evaluation framework has four layers:
- Perception layer: basic metrics such as clarity, resolution, and color fidelity, validated with standard image sets to confirm the input pipeline is lossless.
- Reference layer: dense counting, distinguishing similar targets, and small-object localization, with particular attention to whether referential drift occurs.
- Planning layer: path planning and multi-step spatial reasoning, checking whether the handoff between visual operations and reasoning steps is stable.
- End-to-end layer: task success rate, average number of steps, and failure type distribution on real business samples.
Three pitfalls to watch for in evaluation: first, sample leakage, where overlap between the evaluation set and the tuning set inflates results; second, prompt sensitivity, where rephrasing the same task causes large swings in results; third, framework confusion, where differences in the runtime framework are mistaken for model differences. It is recommended to fix the prompt template, the version, and the visual tool switches, and to run single-variable comparisons.
5. Observability and Cost Governance
The invocation chain of a multimodal agent is long, so observability is essential. It is recommended to record the input region, output result, latency, and token consumption of each visual operation to form replayable traces; to archive failed samples by type and separate four root causes—“cannot see clearly,” “points to the wrong target,” “calculates wrong,” and “timeout”—and optimize input quality, reference strategy, reasoning prompts, and timeout configuration respectively.
On cost, visual operations significantly amplify context and the number of calls. Common practice is to limit the maximum number of steps per task, crop images on demand instead of repeatedly inputting the full image, cache high-frequency repeated operations, and use general cloud capabilities such as object storage, message queues, logging services, and monitoring alerts for data retention, asynchronous orchestration, and anomaly alerting.
6. Selection Guidance
If tasks are mainly precise localization, dense counting, and fine-grained comparison, and the team has strong framework modification capability, visual primitive approaches can be evaluated first. If task types are diverse and you need a fast launch with reuse of the existing tool ecosystem, the thinking with images path usually offers better cost-performance and gains more easily from upgrading the runtime framework. In practice, a more robust strategy is layering: keep a general visual toolchain at the bottom layer, decide at the upper layer whether to enable precise reference capability by task type, and continuously regress with a unified evaluation set.
Overall, the capability ceiling of a multimodal agent is determined not only by the model; the runtime framework, configuration governance, and evaluation system are equally critical. Doing these three things solidly is what delivers stable, reproducible, and optimizable visual understanding in real business scenarios.
