The Evolution of Visual Reasoning in Multimodal Agents: From Explicit Visual Primitives to Thinking with Images

    This article examines why multimodal agents often struggle with accurate image understanding, focusing on two intertwined challenges: the perception gap and the reference gap. It compares two technical routes, explicit visual primitives and the classic thinking-with-images approach, breaks down how each works, and explains why newer agent releases tend to favor the latter. It also covers common gaps between official paper results and real web experiences, practical setup and tooling tips, a checklist for verifying whether a model truly supports explicit visual primitives, and selection guidance for different use cases. The key takeaway is that developers must measure model capability and harness capability separately and treat the reasoning pipeline as an engineering problem.

    1. Background: Why Multimodal Agents Both “Miss” and “Misstate” Details

    In the engineering practice of multimodal agents, image understanding is often blocked by two intertwined problems. The first is the perception gap: insufficient sampling of image resolution, fine textures, and small objects means the information the model “sees” is already incomplete. The second is the reference gap: even when the perception layer has enough pixels, the model still tends to describe targets in natural language during reasoning (“that red object on the left, slightly higher up”). In tasks such as dense counting, localization under heavy occlusion, and multi-object relational reasoning, this kind of vague reference accumulates errors quickly and eventually shows up as a breakdown in logic.

    The industry has developed two representative routes in response:

    • Explicit visual primitives: introduce “unambiguous pointers” into the continuous visual space, and embed first-class objects such as “the nth target,” “coordinate points,” and “region boxes” into the chain of thought, so reasoning operates directly on visual-space objects instead of routing through natural language.
    • Classic thinking with images: let the model repeatedly “look at the image, crop, zoom in, and judge again” across multiple reasoning turns, forming a closed loop through tool calls and intermediate image artifacts. This is closer to how humans use magnifiers and annotation tools.

    One notable phenomenon is that recently released multimodal agent versions lean more toward the classic thinking-with-images route in agent scenarios, rather than continuing the explicit visual primitive approach emphasized in earlier papers. This reflects both engineering usability considerations and the way the harness (the agent shell/orchestration layer) shapes the boundaries of model capability.

    2. How the Two Routes Work

    2.1 Explicit Visual Primitives: Turning Reference into a Computable Object

    The core idea of explicit visual primitives is to introduce specially formatted markers into the chain of thought that uniquely point to a position or region in an image. The advantages are clear:

    1. Disambiguation: in dense counting, the model no longer relies on descriptions like “that group of people” but places a point for each target, making counting natural.
    2. Verifiability: every pointer can be mapped back to pixel coordinates, which makes programmatic validation and visualization straightforward.
    3. Composability: pointers can express relative relationships (alignment, containment, adjacency), supporting complex spatial reasoning.

    However, this route places higher demands on the model and the inference framework: special markers must be supported during training or alignment, must not be truncated during decoding, and must be preserved and parsed by the harness layer.

    2.2 Thinking with Images: Turning “Looking” into an Action via Tools

    The thinking-with-images route does not depend on special markers. Instead, it completes “locate, zoom in, confirm” through multiple tool calls. A typical flow looks like this:

    1. User question
    2. -> The model decides it needs a clearer local region
    3. -> Calls a crop/zoom tool and produces an intermediate image
    4. -> The model reads the intermediate image and continues reasoning
    5. -> Adds annotations if necessary and confirms again
    6. -> Outputs the final answer

    Its advantage is strong generality with no requirements on internal model formats, which makes it easier to deploy in real agent environments. Its drawback is a longer chain: thinking length and the number of tool calls increase, and stability depends on the quality of the harness implementation.

    3. An Unavoidable Reality: The Gap Between Official Descriptions and the Web Experience

    Many developers run into mismatches when reproducing paper examples: dense counting that works reliably in a paper drifts in a web image-recognition mode, and maze path planning that is reproducible in a paper fails completely in an interactive interface. The cause is usually not that the model has “become dumber,” but three engineering realities:

    1. Different reasoning budgets: interactive products compress thinking length and the number of tool-call rounds, while explicit primitives need more generation space.
    2. Prompts not activated: explicit primitives often require specific trigger words or system prompts to appear, and are not enabled in default sessions.
    3. Harness not passing through: intermediate images, special markers, and coordinate information are cropped or reformatted at the orchestration layer, so the model never receives the full context.

    Therefore, when evaluating a multimodal agent, you must measure “model capability” and “shell capability” separately; otherwise the conclusions are not trustworthy.

    4. Configuration and Tooling: First Get It Running

    In engineering practice, the first blocker is often not the algorithm but the environment. Taking an agent CLI shell for a coding tool as an example, common problems include an outdated version that hides new models and a configuration file format that is not intuitive. A recommended troubleshooting order:

    1. Confirm the version: upgrade to the latest stable release first, since new models and new parameters usually ship with new versions.
    2. Confirm the configuration method: different shells may use JSON, YAML, or startup flags; follow the official documentation rather than hand-writing based on guesswork.
    3. Confirm the model identifier: explicitly specify the model name via profile or the configuration file to avoid falling back to the default route.
    4. Minimal reproduction: get a single-turn image-recognition run working first, then add tools and multiple turns step by step.
    1. # Example: upgrade the shell and start with a specified profile
    2. npm update -g <agent-cli>
    3. <agent-cli> --profile web
    1. {
    2. "model": "vision-reasoning-exp",
    3. "profile": "web",
    4. "tools": ["crop", "zoom", "annotate"]
    5. }

    A very practical observation: when an official push notification does not explain the upgrade command but does write “set model=…” for third-party users, it suggests the shell is not positioned for end users but for integrators. This implies that in production integration, the shell should be managed like a dependency library: pin the version, fix the configuration, and document the upgrade path.

    5. How to Tell Whether a Multimodal Model Truly Supports Explicit Visual Primitives

    Here is a practical checklist to avoid being fooled by a model that merely “looks like it can count”:

    1. Format probing: ask for the intermediate process in the prompt and observe whether special markers or coordinate-based pointers appear.
    2. Trigger-word experiments: compare the default prompt with prompts that add “thinking with localization” or “thinking with pointers.”
    3. Verifiability: map the output pointers back to the image and check whether the landing points are actually on the targets.
    4. Stability: sample the same image multiple times and check the variance in pointer counts and answers.
    5. Length control: record thinking length and truncation rate to rule out the false negative of “no primitives output because it was truncated.”

    If none of the above experiments produce explicit primitives, but the model performs noticeably better after cropping and zooming, you can conclude that it follows the thinking-with-images route.

    6. Selection Guidance for Real Deployment

    • Dense counting, precise coordinates, spatial relationships: prefer solutions that support explicit primitives or allow pointer injection, with visualization-based validation.
    • Open-domain image recognition, document understanding, UI operation: the thinking-with-images route is more stable; focus on optimizing the toolset and the round budget.
    • Cost-sensitive scenarios: control the number and resolution of intermediate images, and add caching and deduplication.
    • High-reliability scenarios: introduce a “second confirmation” mechanism so the model verifies the same target at least twice.

    For cloud deployment, you can combine general-purpose capabilities: object storage for intermediate images, a message queue to decouple inference tasks, a container platform to host inference services, and logging plus monitoring and alerting to track thinking length and failure rates, turning “model quality” into observable, regression-testable engineering metrics.

    7. Conclusion

    The swing of multimodal agents from “explicit visual primitives” back to “thinking with images” is not a technical regression but the result of a joint choice by the harness and real-world scenarios. For developers, what truly matters is not a proprietary feature of a particular model, but how to separate model capability from shell capability, how to design verifiable evaluations, and how to engineer the reasoning pipeline.