Multimodal Agent Visual Reasoning: Visual Primitives vs. Thinking with Images
This article breaks down why "seeing" an image is not the same as "understanding" it in multimodal agents, focusing on two core gaps: the Perception Gap and the Reference Gap. It compares two technical approaches—Visual Primitives and Thinking with Images—and explains why mature systems usually combine both. You will also learn how the surrounding harness affects reproducibility, how to build a layered evaluation suite, how to design prompts for structured output, and how to diagnose common failure modes in a fixed order. The goal is a practical, repeatable engineering path rather than reliance on a single impressive demo.
1. Background: Why “Looking” Is Not “Understanding”
Over the past year, the capability boundaries of multimodal agents have been discussed repeatedly, but the discussion often stays at the demo level: one image, one question, one fluent answer. What really determines the experience is how the model behaves on two things: “cannot see clearly” and “cannot state precisely.”
The industry usually calls the first barrier the Perception Gap: an input image is split into a limited number of visual patches, and resolution, compression, and occlusion all cause detail loss. The second barrier is more subtle and is called the Reference Gap: even when the model sees the target, it can only describe position and quantity in natural language during reasoning, and natural language is inherently ambiguous. Expressions like “the person slightly right of the top-left corner” or “the second one in the third row” keep drifting across multi-turn reasoning, eventually breaking the logic of dense counting, fine-grained localization, and path planning.
These two gaps are fundamentally different. The former can be mitigated by improving input fidelity, increasing the number of visual patches, and introducing high-resolution tiles. The latter is a problem of expression, and “seeing more clearly” does not solve it.
2. The Essential Difference Between Two Technical Routes
Route 1: Visual Primitives
The core idea is to separate “reference” from natural language and anchor objects in continuous visual space with structured, precisely locatable pointers (for example, coordinate points, boxes, or numbered markers). The reasoning chain becomes: produce a pointer first, then make judgments around that pointer. The benefit is that every reference step has a unique interpretation and no ambiguity from wording changes; the cost is that both the model and the reasoning framework must support this structured output, and the parsing, validation, and return path is longer, with higher demands on context length and format stability.
Route 2: Thinking with Images
The model repeatedly “looks back” at the image during reasoning, crops local regions, and zooms into details, carrying intermediate conclusions visually instead of transcribing everything into text. This is closer to human behavior when looking at an image: scan once, then zoom in on suspicious regions for confirmation. This route relies less on the framework, is more general, and needs almost no special protocol; but the interpretability of intermediate steps is weaker, and whether it truly “looks back” is often hard to verify from the outside.
From an engineering perspective, the two are not substitutes. Structured pointers are good at precise reference, and visual look-back is good at detail confirmation. Mature solutions usually stack them: use look-back to fill perception gaps and pointers to stabilize reference.
3. An Easily Overlooked Variable: The Harness
The harness is the scheduling and execution framework around the model, responsible for prompt assembly, tool invocation, image preprocessing, context trimming, result parsing, and retries. Its capability ceiling often directly determines the floor of the model’s capability.
There are three common gaps:
- The demo environment is inconsistent with the default environment. The best performance in papers or marketing usually depends on a specific prompt template, a specific resolution strategy, and specific decoding parameters, and often cannot be reproduced under default configuration.
- Configuration entry points are not unified. The same capability is exposed differently across entries (CLI, config file, web UI), and users following the docs cannot find the corresponding switch—the most common source of frustration.
- Version drift. Capabilities iterate quickly, and when the client, server, and docs are out of sync, behavior differences get misjudged as “the model is not good.”
The practical advice is direct: treat the harness as a first-class citizen, pin versions, freeze configuration, and record a complete environment snapshot for every evaluation.
4. A Reproducible Evaluation Method
The goal of evaluation is not to “run one pretty case” but to determine whether a capability stably exists. It is recommended to design cases in four layers:
- Perception layer: small-font text reading, low-contrast targets, occlusion judgment.
- Counting layer: dense same-type target counting, with quantity ranges covering under 10, 10 to 30, and above 30.
- Localization layer: return coordinates for a given description, then reverse-check with coordinates whether the description is consistent.
- Planning layer: path feasibility and step optimality in mazes and grid maps.
Prepare at least three samples per layer and fix the same prompt and parameters. A schematic evaluation skeleton is as follows (pseudocode, expressing only the flow):
cases = load_cases("vision_eval_v1.jsonl")report = []for c in cases:resp = run_agent(image=c.image, prompt=c.prompt, config=FIXED_CONFIG)pred = parse_structured(resp) # Parse structured fields such as coordinates/IDsscore = compare(pred, c.golden) # Numeric comparison, not text similarityreport.append({"id": c.id, "layer": c.layer, "score": score,"env": env_snapshot()}) # Record environment snapshotsummary = aggregate(report) # Aggregate by layer and observe variance
Key details: scoring should use numeric and set comparison, not text similarity; record variance, not just the mean; repeat the same case multiple times to observe whether results are stable.
5. Prompt and Structured Output Design
If you want the model to stably output parseable reference information, the prompt must make three things explicit: output format, coordinate basis, and failure handling. Example:
Task: Identify and count all red markers in the image.Output requirements:1) Output JSON only, with fields items (array) and count (integer);2) Each item contains id and point, where point is [x, y] in the range 0-1, with the origin at the top-left corner;3) If uncertain, set id to null and explain the reason in note;4) Do not output any explanatory text.
Engineering also needs two safeguards: first, automatically retry with error information attached when format validation fails; second, treat results as invalid when coordinates are out of bounds, IDs are duplicated, or count is inconsistent with the length of items, rather than reluctantly accepting them.
6. Common Failure Modes and Troubleshooting Order
- Quantity deviation: mostly a perception-layer issue; prioritize improving input fidelity and enabling local tiles.
- Position drift: mostly a reference-layer issue; switch to structured pointer output.
- Path planning failure: first confirm whether the grid and coordinate basis are consistent, then check whether step constraints are correctly expressed.
- Long chain of thought with unchanged conclusion: usually caused by insufficient format constraints leading to repeated self-confirmation; tightening the output protocol is more effective.
- Unstable results for the same input: prioritize checking decoding parameters and context trimming strategy.
The recommended troubleshooting order is fixed: environment consistency → input fidelity → output protocol → prompt wording → model parameters. Most conclusions of “missing capability” can be disproved in the first two steps.
7. Implementation Recommendations
To build reliable multimodal capability in a business, keep three points in mind. First, treat the evaluation set as a long-term asset that covers the real business distribution rather than demo samples. Second, put harness configuration under version control and run a full regression after any change. Third, adopt a layered architecture: the access layer handles unified authentication and rate limiting, the inference layer hosts the model and tool invocation, the data layer uses object storage to keep raw images and intermediate tiles, asynchronous tasks are handled by a message queue to smooth peaks, and the full chain uses logging and monitoring/alerting to track latency, failure rate, and the proportion of format validation failures. If business elasticity fluctuates significantly, you can use the elastic scaling capability of a container platform to handle peaks, and combine relevant general product capabilities from Baidu AI Cloud to standardize resource and operations management.
8. Conclusion
To judge the real level of a multimodal solution, do not look at a single stunning case; look at the mean and variance under structured evaluation. Visual Primitives and Thinking with Images respectively solve the two types of problems—reference and perception—and mature implementations often need to combine both, while the harness is the key variable that makes capability output stable. Fixing the environment, tightening the protocol, and making evaluation thorough is the reusable engineering path.
