Multimodal Visual Primitives vs. Thinking with Images: How Vision-Language Models Perceive and Reason
This article breaks down why multimodal models often fail at dense counting, precise localization, and path planning, and separates two root causes: the perception gap caused by limited visual token budgets, and the reference gap caused by ambiguous natural-language pointing. It compares structured visual primitives (points, polygons, boxes as special tokens) with the Thinking with Images tool-calling approach, offers a reproducible checklist for verifying whether a model truly supports structured visual output, and lists common Agent tool-chain configuration pitfalls plus practical engineering recommendations.
1. Where the Problem Starts: Multimodal Models “See but Can’t Explain”
As multimodal capabilities become widespread, a recurring pattern appears: models answer general questions fluently but frequently fail on dense counting, fine-grained localization, and path planning. Two typical symptoms mentioned in the original discussion are that dense targets that are easy to count in official technical documentation get over-counted through a web image-upload entry point, and that a maze navigation plan demonstrated in the documentation almost completely fails on the web entry point. This is not simply a case of the model “getting dumber”; it exposes problems at two levels in the multimodal pipeline.
The first level is the Perception Gap: the input image is compressed into a limited number of visual tokens, so there is a hard trade-off among resolution, detail density, and token budget. Small objects and adjacent objects are easily smoothed away during encoding.
The second level is the Reference Gap: even if the model “sees” a region clearly, as long as it can only refer to objects in natural language (“the third person from the left”, “the block near the edge”), ambiguity keeps entering the reasoning chain. Once a reference drifts, the subsequent logical steps continue to build on the wrong object, eventually showing up as over-counting, localization offsets, and self-contradictory paths.
Separating these two levels is the prerequisite for understanding every technical approach that follows: the former is addressed by input-side information fidelity, while the latter is addressed by intermediate representations and reasoning protocols.
2. The Essential Difference Between the Two Technical Approaches
1. The Structured Visual Primitives Approach
The core claim of this approach is to introduce a set of unambiguous pointers into the continuous visual space, anchoring objects directly with structured visual symbols rather than “approximating” an object with a natural-language description. The common primitive set can be abstracted into three categories:
- Point: used to anchor a position or mark a key point;
- Polygon: used to express irregular contours and region boundaries;
- Box: used to express bounding boxes and coarse-grained localization.
These symbols need to enter the vocabulary as special tokens, forming paired “start/end” structures, so the model can output spatial structures during generation just as it outputs text. The schematic form of vocabulary entries is as follows (structure only, not any specific implementation):
<POINT> ... </POINT><POLYGON> ... </POLYGON><BOX> ... </BOX>
The engineering implication is that spatial reference is “externalized” into parseable, verifiable structured output that downstream systems can use directly for cropping, zooming, and re-encoding, turning a single fuzzy visual judgment into multiple rounds of verifiable, precise operations.
2. The Thinking with Images Approach
This approach does not rely on adding new visual symbols. Instead, it has the model repeatedly invoke image operation tools during reasoning: crop, zoom, annotate, and re-input. It reframes the problem of “can’t see clearly” as “not looking closely enough”, advancing through multiple rounds of alternating vision and text.
The trade-offs between the two approaches are clear:
| Dimension | Structured Visual Primitives | Thinking with Images (Tool Calling) |
|---|---|---|
| Reference precision | High; the symbols themselves are unambiguous | Depends on cropping and annotation quality |
| Context cost | Lower; symbol sequences are short | Higher; multiple image round trips |
| Reproducibility | Strong; output can be structurally verified | Depends on the tool chain and parameters |
| Integration complexity | Requires model-side support for special tokens | Requires Agent-side tools and orchestration |
One notable judgment is that once the capability is packaged into an Agent, what actually takes effect is often the tool-chain approach, because Agents are naturally good at orchestrating the “operate-observe-operate again” loop. Whether the model side has built-in structured visual symbols needs to be verified through the aligned vocabulary and output protocol, and cannot be concluded from demonstration results alone.
3. How to Verify Whether a Model Truly Has Structured Visual Capability
Without internal documentation, you can replace guesswork with a reproducible troubleshooting process:
- Check the vocabulary: Look for paired spatial structure symbols in the tokenizer configuration. If they exist, the model side has a channel for outputting structured spatial references.
- Inspect the output protocol: Have the model complete a localization task and observe whether it outputs a natural-language description or a parseable structured fragment.
- Run stress tests: Pick three task types—dense counting, adjacent-target differentiation, and fine path planning—prepare both low-ambiguity and high-ambiguity sample sets for each, and compare output stability.
- Control variables: Run the same sample set through a “pure chat entry point” and an “Agent entry point with tools” separately; differences often come from the orchestration layer rather than the model layer.
- Record failure modes: Distinguish “detail lost during encoding” from “reference drift during reasoning”. The former requires higher input fidelity; the latter requires structured references or multiple rounds of zooming.
A schematic evaluation record structure:
{"task": "dense_counting","entry": "agent_with_tools","ambiguity": "high","output_form": "structured","failure_stage": "reference_drift"}
4. Common Pitfalls in Agent Tool-Chain Configuration
The most engineering-valuable part of the original discussion is the frustration during configuration: the configuration method given in the documentation did not match what actually worked, the user’s edits to the config file had no effect, and it turned out that the command-line tool had to be upgraded first and then started with a specified profile. Such problems are very common when integrating multimodal Agents and can be summarized into three practical recommendations:
- Version first: Multimodal capabilities iterate quickly, and tool chains are often tightly coupled with model capabilities. Confirm the client version before integration to avoid “the configuration is correct but the capability does not exist”.
- Layered configuration: Split model selection, vision tool switches, and image preprocessing parameters into different layers, so a single config file does not hide what actually takes effect.
- Entry-point distinction: The capability boundaries of the web chat entry point and the Agent entry point are usually different, so evaluation conclusions must state the entry point; otherwise they are not comparable.
A neutral configuration example:
model: vision-capable-modelprofile: webtools:crop: truezoom: trueannotate: truepreprocess:max_side: 1536keep_aspect_ratio: true
5. Engineering Implementation Recommendations
To integrate multimodal recognition capabilities into your own business, proceed in the order of “fidelity first, then reference, then orchestration”:
- Input fidelity: Prioritize resolution and long-side size; when necessary, split the image and encode in parallel to reduce the loss of small objects.
- Structured output: Constrain the output to a parseable structure in prompts and post-processing, making it easy to verify programmatically and crop again.
- Multi-round verification: For counting and localization tasks, introduce an “output-crop-recheck” loop and use consistency as a confidence signal.
- Observability: Use logging services and monitoring alerts to record the input size, number of rounds, and failure stage of each vision call, forming a data loop for continuous optimization.
- Elastic capacity: Image inference resource consumption fluctuates widely; a container platform combined with elastic scaling and object storage for raw assets is a fairly general architectural choice. On Baidu AI Cloud, such capabilities are typically implemented through a combination of general product categories such as a container platform, object storage, logging service, and monitoring alerts.
6. Conclusion
Structured visual primitives and Thinking with Images are not mutually exclusive: the former compresses reference ambiguity, while the latter compensates for detail observation. Mature solutions often stack the two—the model side provides unambiguous spatial symbols, and the Agent side handles cropping, zooming, and multi-round verification. When evaluating such capabilities, treat the four items “vocabulary evidence, output protocol, entry-point differences, and failure stage” as the basic evidence chain, rather than relying on a single-point demonstration.
