Multimodal Agents: Visual Primitives and Image-Based Reasoning Explained
This article breaks down why multimodal agents often fail at perception and reference, then compares two technical approaches: treating images as iterative external context and introducing structured visual primitives such as points, boxes, and polygons. It also covers practical agent runtime concerns, reproducible evaluation practices, and a deployment checklist for turning experimental multimodal capabilities into reliable production behavior.
1. Why Multimodal Agents Struggle to See and Explain
Recent technical discussions have brought a question back to the center: how images actually enter the reasoning process in experimental multimodal models. Recognition errors are often blamed on insufficient resolution or model size, but the deeper causes usually sit in two overlooked areas.
The first is the perception gap. After resizing, tiling, and encoding, information about small objects, dense objects, and low-contrast regions can be compressed or lost. Key pixels are already missing before the model “sees” anything.
The second is the reference gap. Even when the model can see the scene clearly, describing target locations only in natural language, such as “the block slightly left of center in the upper-left area,” makes ambiguity grow quickly in dense counting, precise localization, and path planning tasks. The reasoning chain can break down as a result.
Together, these two gaps lead to one conclusion: the ceiling of multimodal capability depends not only on the visual encoder, but also on the form in which visual information enters the reasoning process.
2. Two Technical Approaches
1. Thinking with images
This approach treats the image as external context that can be called repeatedly. During reasoning, the model performs tool-based operations such as cropping, zooming, annotating, and re-reading to obtain new visual evidence. The key idea is to turn “looking” into an iterative sequence of actions rather than a one-time input.
Illustrative pseudocode:
image = load(input_path)plan = propose_subtasks(question, image)for step in plan:region = crop(image, step.bbox) # select a region based on the current hypothesisregion = upscale(region, factor) # recover perceptual detailevidence = describe(region) # re-read local evidenceplan = revise(plan, evidence) # adjust later stepsanswer = aggregate(plan, evidence)
The strength is adaptability to open-ended questions and tasks that require a coarse pass followed by closer inspection. The cost is more calls and longer context, which makes latency and cost more sensitive and raises the stability requirements of the execution framework.
2. Visual primitives
This approach introduces structured spatial reference units on the input side, such as points, bounding boxes, and polygons. The model refers to these structures directly during reasoning instead of paraphrasing a natural-language description. Reference moves from the language layer down to the spatial layer, giving dense counting and precise localization an unambiguous basis.
Illustrative structured input:
{"primitives": [{"type": "point", "id": "p1", "x": 0.412, "y": 0.233},{"type": "box", "id": "b1", "x1": 0.10, "y1": 0.20, "x2": 0.35, "y2": 0.48},{"type": "polygon", "id": "g1", "points": [[0.2,0.2],[0.4,0.25],[0.35,0.5]]}]}
The strength is that the reasoning process is auditable, coordinates are traceable, and counting and localization tasks are more stable. The cost is the need for a reliable primitive generation and alignment mechanism, plus higher consistency requirements for training and evaluation.
The two approaches are not mutually exclusive. A common engineering pattern is layered composition: structured primitives handle localization and counting, while iterative reading handles open-ended reasoning and verification.
3. The Engineering Reality of Agent Execution Frameworks
Shipping multimodal capability requires an agent execution framework to handle tool calls, context management, and permission control. Three problems show up often in practice.
The first is inconsistent configuration entry points. Some frameworks use configuration files, while others use command-line arguments or environment variables. Official documentation and third-party tutorials often disagree, which leads to situations where following the docs does not start the system. A practical suggestion is to fix a minimal working configuration template inside the team and keep it under version control, with the model identifier, input path, output directory, log level, and concurrency limit written explicitly.
The second is version drift. Frameworks iterate quickly, and old commands breaking in new versions is normal. A maintainable script should include version checks and self-checks:
# Structure only; this does not represent any specific toolcheck_versionapply_profile "vision"run_task --input ./data --output ./out --log-level info
The third is the split between “official usage” and “third-party usage.” Parameter descriptions aimed at integrators are often more complete, while entry points aimed at end users are simpler. Teams should be clear about which scenario they belong to and choose the configuration path accordingly, avoiding mixed usage that becomes hard to reproduce.
4. Evaluation Consistency: The Variable That Is Easier to Miss Than Model Capability
A typical phenomenon in the original discussion is that the same type of task produces inconsistent results across different entry points, such as counting deviations or failed path planning. These differences may not come from the model itself, but more often from input preprocessing and the evaluation protocol.
A reproducible evaluation setup can be built along four dimensions:
- Input consistency: unify resolution, cropping strategy, color space, and compression quality, and record the parameters of every preprocessing step.
- Reference consistency: when structured primitives are used, fix the coordinate system (normalized or pixel coordinates) and precision so that different modules do not each use their own.
- Process consistency: fix the tool call order and maximum number of steps, and set an explicit seed or disable sampling randomness.
- Metric consistency: use absolute error and hit rate for counting, IoU thresholds for localization, and step count and success rate for planning, and report them separately so a single average does not hide weak spots.
An example of a minimal evaluation record:
{"task_id": "count_dense_001","preprocess": {"resize": 1024, "normalize": true},"primitives": {"coord": "normalized", "precision": 4},"runtime": {"max_steps": 8, "seed": 0},"metrics": {"count_mae": 1.2, "hit_rate": 0.86, "iou_at_0.5": 0.71}}
5. Deployment Checklist
- Fix perception on the input side: for dense and small-object scenarios, use tiled reading and local upscaling instead of one global compression pass.
- Structure reference on the reference side: treat points, boxes, and polygons as first-class citizens in the reasoning context to reduce ambiguity from natural-language paraphrasing.
- Keep the process auditable: record the input, output, and rationale of every tool call so failures can be traced to a specific step.
- Use general-purpose platform capabilities: object storage can hold images and intermediate artifacts, message queues can decouple long-running tasks, container platforms can host inference and tool services, and logging plus monitoring with alerts can track latency and failure rates.
- Set cost boundaries: limit the maximum number of steps and the context length, and cache or reuse expensive steps.
6. Conclusion
The focus of competition among multimodal agents is shifting from “whether it can recognize” to “how it can recognize stably and reason explainably.” Combining structured spatial reference with iterative image reading, together with unified configuration management and a reproducible evaluation system, is the reliable path from experimental capability to production capability.
