The Evolution of Visual Reasoning Paths in Multimodal Agents: From Visual Primitives to Thinking with Images
This article examines a shift in multimodal agents from "visual primitives" to the more classic "thinking with images" approach, and explains why paper-level capabilities often differ from what developers see in web or agent interfaces. It covers the core ideas behind both approaches, the three main reasons for that gap, a vendor-neutral setup workflow for connecting agents to a multimodal model, and five engineering recommendations spanning image preprocessing, explicit visual tools, layered evaluation, cost and latency control, and fallback paths.
1. Where the Problem Starts: A Route Debate Triggered by a Version Update
A recent release in a general-purpose large model series introduced an experimental multimodal version for visual understanding, and made it callable inside the official coding agent harness. Developers immediately flooded agent scenarios with hands-on tests and quickly noticed something worth digging into: in agent tasks, the new version behaves less like the “visual primitives” image-processing scheme proposed in earlier papers, and more like the industry’s classic “thinking with images” route.
This shift is not a simple feature regression, but a typical trade-off between engineering and algorithms. Understanding it requires two concepts to be defined first.
1.1 What Are “Visual Primitives”
The core claim of “visual primitives” is that a multimodal model’s inability to see clearly is not entirely due to insufficient image information, but because the model still refers to objects in an image using natural language during reasoning. For tasks such as dense counting and complex scene localization, once reasoning depends on vague descriptions like “the third person on the left,” the logical chain collapses. Visual primitives are “unambiguous pointers” in continuous visual space that can precisely point to objects, replacing natural-language references with coordinate-based ones.
1.2 What Is “Thinking with Images”
“Thinking with images” is more straightforward: it allows the model to perform interactive operations on an image during reasoning, such as cropping, zooming, annotating, and re-observing, treating the image as an external workspace that can be read repeatedly rather than a static input encoded into vectors all at once. Its advantage is that it makes fewer assumptions about the model’s internal mechanisms, has low migration cost, and naturally fits the multi-turn tool calls of agents.
2. Why Paper Capabilities and Web Experience Often Diverge
Many developers hit a gap when reproducing paper conclusions: dense crowds that could be counted accurately in papers show obvious count deviations in the web image-recognition mode; the maze path planning demonstrated in papers almost completely fails in the web interface. The reasons usually fall into three categories:
- Different reasoning budgets: Paper experiments often provide ample thinking length and multiple samples, while online products compress the reasoning budget to control latency.
- Different toolchains: In papers, image operations are executed by controlled scripts, while in online environments the precision of cropping and annotation and the way results are returned may be simplified.
- Different entry points: The agent entry and the chat entry differ in system prompts and context organization strategies, so divergence in the behavior of the same weights is normal.
The conclusion is pragmatic: paper capabilities are an upper-bound reference, and engineering-usable capability must be based on the entry point and parameters you actually call, with your own regression evaluation set built.
3. General Configuration Practices for Agent Integration
The predicament of “not knowing where to start configuring the model” is very common. Here is a vendor-neutral approach that applies to model services offered by platforms such as Baidu AI Cloud Qianfan, as well as to self-built gateways.
First, confirm the tool version. Command-line coding agent tools iterate extremely fast, and model identifiers often become available only after a version update, so run a global upgrade once and retry:
npm update -g @your-org/agent-cliagent-cli --profile web
Second, externalize the model identifier as a configuration item to avoid scattering it across command-line arguments:
{"model": "vision-multimodal-exp","profile": "web","image": { "max_side": 1536, "keep_exif": false },"reasoning": { "budget": "medium" }}
Third, run a minimal connectivity check: first run plain text, then single-image question answering, and finally a task requiring multi-turn image operations, locating layer by layer whether the problem is in the integration layer or the model layer.
4. Engineering Recommendations for Multimodal Agents
- Make image preprocessing solid. Resolution, aspect ratio, and compression quality directly determine the upper bound of detail-oriented tasks; it is recommended to unify the policy on the gateway side and keep records.
- Provide visual operation tools explicitly. If the model follows the “thinking with images” route, encapsulate cropping, zooming, drawing boxes, and coordinate return as structured tools, with returned results accompanied by an explanation of the original image coordinate system.
- Build layered evaluation. Distinguish perception tasks (counting, localization), reasoning tasks (path planning, relation judgment), and end-to-end task success rate, and set thresholds for each.
- Control cost and latency. Image tokens are expensive; combining object storage for asset reuse, message queues for peak shaving, and log services with monitoring alerts to observe long-tail requests is a fairly general cloud combination.
- Keep a fallback path. When the visual pipeline is unstable, allow falling back to plain text or human confirmation to avoid the agent getting stuck in critical flows.
5. Conclusion
From visual primitives to thinking with images, the essence is transforming the hard problem of “how the model internally refers to objects” into an engineering problem of “how external tools cooperate with the model to observe repeatedly.” For developers, rather than chasing the specific behavior of a particular experimental version, it is better to make these four things solid: configuration management, image preprocessing, tool encapsulation, and layered evaluation. This is the real foundation for the stable deployment of multimodal agents.
