Multimodal Agent Visual Reasoning: Comparing Visual Primitives and Thinking with Images

    This article examines why multimodal agents often fail not at perception but at stable reasoning over what they perceive, and breaks down two abstract technical routes for handling visual information during reasoning: visual primitives, which inject structured, precisely addressable markers as unambiguous pointers, and thinking with images, which serializes crop, zoom, and region re-inspection operations into the chain of thought. It also explains how route selection reflects the division of responsibility between the framework layer and the model layer, then provides a reproducible three-step evaluation method with sample code, recommended metrics, and failure-mode clustering, followed by common configuration and discoverability pitfalls, selection guidance, and a practical adoption checklist.

    1. Background: Why Multimodal Agents Need a Different Way to “Look”

    When multimodal agents are deployed in real business scenarios, the blocker is rarely whether they can recognize something. It is whether they can reason stably after recognition. Two bottlenecks are commonly observed in the industry.

    The first is the Perception Gap: input image resolution, target scale, occlusion, and lighting conditions cause the model to lose critical detail at the encoding stage. The second is the Reference Gap: even when the model sees the target clearly, if it can only describe “that red object on the left” or “the person on the right in the third row” in natural language within its chain of thought, the reference keeps drifting along long reasoning chains. In tasks such as dense counting, complex localization, and path planning, this eventually leads to a collapse of logic.

    The two gaps have different causes and therefore different solutions. The Perception Gap leans toward engineering optimization on the input side and the encoder side, such as adaptive resolution tiling, local region upscaling, and multi-scale feature fusion. The Reference Gap leans toward expression design on the reasoning side: the core idea is to give the model a stable, back-referenceable, unambiguous “pointer” during thinking, instead of repeatedly translating visual information into vague natural language.

    2. Abstract Comparison of the Two Technical Routes

    The first route can be abstracted as “visual primitives.” The idea comes from rethinking multimodal reasoning: introduce structured, precisely addressable markers into continuous visual space to serve as unambiguous pointers during the thinking process. The model no longer says “that object” but references a stable, coordinate-based marker, keeping reference consistent across multiple reasoning steps. Its strength is the strong constraint it provides for dense counting, fine-grained localization, and spatial relation reasoning. The cost is that it requires an additional marker injection mechanism, coordination across training and inference pipelines, and high demands on context length and marker format consistency.

    The second route can be abstracted as “thinking with images.” The model repeatedly returns to the image itself during reasoning, performing operations such as cropping, zooming, and re-inspecting regions, and serializes this sequence of visual operations into the chain of thought. Its engineering coupling is lower, it is easier to adopt in general-purpose agent frameworks, and it is friendlier to open-ended tasks and tool-calling scenarios. However, for dense tasks that require absolutely precise reference, its stability depends on prompt design and sampling strategy.

    From an agent perspective, the choice between routes actually reflects how responsibilities are divided between the framework layer and the model layer. When the model’s capability is not sufficient to reliably carry structured visual expression, moving complexity up to the framework layer and filling the capability gap with external tools and process orchestration is a more pragmatic engineering trade-off. This is the fundamental reason many teams choose “thinking with images” over “visual primitives” in agent systems.

    3. A Reproducible Evaluation Method: Verify First, Conclude Later

    With newly shipped multimodal capabilities, the worst approach is to judge by feel whether the model “actually uses a certain mechanism.” A three-step verification method is recommended.

    Step one: build minimal decidable samples. For dense counting, use rule-based arrays of shapes with a known, explicit count. For complex localization, use multi-object images with clear boundaries. For maze navigation, use programmatically generated grid maps that have a unique solution. Samples must be automatically generated to avoid human annotation bias.

    Step two: fix the prompt and sampling parameters. Repeat multiple times with the same model, the same temperature, and the same maximum output length, and record the success rate and the distribution of chain-of-thought length. If a capability is only triggered under a specific prefix (for example, structured output appears only after a guiding marker is added), it is prompt-induced rather than an intrinsic capability.

    Step three: run explicit and implicit comparisons. The implicit group uses natural task descriptions; the explicit group adds guiding language, and you observe whether structured pointers appear in the output. The larger the difference between the two groups, the more it shows that the mechanism is not enabled by default.

    A schematic evaluation skeleton is shown below (pseudocode, expressing the flow only):

    1. def evaluate(model, image, task, mode="implicit", n=5):
    2. prompt = build_prompt(task, mode) # two modes: implicit / explicit
    3. results = []
    4. for _ in range(n):
    5. out = model.run(image=image, prompt=prompt,
    6. temperature=0.0, max_tokens=4096)
    7. results.append({
    8. "correct": judge(out, task.ground_truth),
    9. "cot_len": len(out.reasoning),
    10. "has_structured_pointer": detect_pointer(out.reasoning)
    11. })
    12. return summarize(results)

    The evaluation metrics should include at least four items: task accuracy, chain-of-thought length, structured pointer occurrence rate, and failure-mode clustering (missed counts, repeated counts, reference drift, path boundary violations). Only by breaking failure modes apart can you determine whether the bottleneck is on the perception side or the reasoning side.

    4. Common Pitfalls in Engineering Practice: Configuration and Discoverability

    An often underestimated problem is discoverability. When an agent runtime framework exposes capabilities through command-line flags plus configuration files, and the official documentation only provides fragmentary explanations, users easily waste time trial-and-erroring on questions like “how do I specify the model identifier” and “is configuration a command-line argument or a structured configuration file.” Three engineering recommendations follow.

    First, maintain a single source of truth for configuration. Consolidate the model identifier, temperature, maximum output length, and vision switch into one readable configuration file, with the command line used only for overrides, avoiding maintenance in two places.

    1. # Illustration: structured configuration (field names are generic examples)
    2. model:
    3. name: "vision-model"
    4. temperature: 0.0
    5. max_output_tokens: 4096
    6. vision:
    7. enabled: true
    8. mode: "image_reasoning" # image_reasoning / visual_primitive

    Second, run a self-check at startup. The framework should print a summary of the effective configuration and capability switches at startup, reducing the troubleshooting cost of “I changed it but it did not take effect.”

    Third, make versioning and upgrade paths explicit. When dependencies are upgraded through package management, the documentation should state the upgrade command and minimum version requirement on the first screen, and explain differences for third-party integrators, rather than making users guess from announcement posts.

    5. Selection Guidance and Adoption Checklist

    If the business mainly involves dense counting, precise coordinate localization, and spatial relation determination, prioritize a solution with structured visual pointer capability, and ensure marker injection and format validation at the framework layer. If the business mainly involves open-ended question answering, mixed image-text reasoning, and tool calling, the thinking-with-images route is easier to maintain, and pairing it with a region-cropping tool can achieve good results.

    Adoption checklist: first, build an automatically generated evaluation set; second, fix sampling parameters and record chain-of-thought length; third, run explicit and implicit comparison groups; fourth, cluster and attribute failure modes; fifth, maintain a single source of truth for configuration plus a startup self-check; sixth, write executable documentation for upgrades and integrations.

    Overall, the capability boundary of multimodal agents increasingly depends on “the way information is expressed during thinking” rather than the scale of visual encoding alone. Making evaluation solid, configuration transparent, and failure modes clearly separated is the reliable way to judge whether a technical route fits your own business.