Multimodal Model Visual Primitives: Why Precise Visual Reasoning Needs Structured Pointers
This article breaks down why multimodal models often fail at counting, localization, and path planning despite fluent image captioning, tracing the issue to a perception gap and a reference gap. It explains the core idea of visual primitives—points, polygons, and boxes with paired start/end markers—and contrasts two technical routes: built-in primitives versus thinking with images through tool calls. It also shows how to verify which route a system uses by inspecting its vocabulary, why the agent harness determines real-world capability, and how to build a reproducible evaluation loop. Practical guidance covers fixing perception first, then reference, then tools, then operations.
1. The Starting Point: “Seeing” and “Describing Accurately” Are Two Different Problems
In multimodal LLM engineering, a pattern keeps recurring: a model handles single-image captioning and style questions smoothly, but its output quality drops sharply on tasks that demand precise spatial reasoning, such as dense counting, fine-grained localization, and path planning. Recent discussion around an open-source multimodal experimental release centered on exactly this: the same model weights could complete complex maze navigation under the evaluation scripts in the paper, yet produced counting errors and planning failures through a general chat entry point.
This “same model, different behavior” gap usually does not mean the model’s capability vanished. It means a critical stage is missing from the inference pipeline. Understanding this requires splitting the problem into two layers.
The first layer is the Perception Gap: once an input image is split into discrete visual tokens, the loss of resolution and receptive field compresses small or dense targets out of the representation itself. The second layer is the Reference Gap: even if the model “sees” a target, as long as it must rely on natural language to repeatedly refer to “the third person on the left” or “the block near the exit” inside its chain of thought, the reference itself introduces ambiguity and drift, and errors accumulate across multi-step reasoning.
The conclusion: solving perception is only the entry ticket. What truly caps complex visual reasoning is the medium of thought itself.
2. The Core Idea of Visual Primitives: Unambiguous Pointers Instead of Natural-Language Reference
The technical claim behind “visual primitives” can be summarized in one sentence: introduce structured symbols in continuous visual space that the model can reference directly, serving as unambiguous pointers for describing targets.
Formally, such primitives typically contain only three basic geometric objects:
- Point: expresses a precise coordinate location;
- Polygon: expresses a region with an arbitrary contour;
- Box: expresses a target region with a bounding extent.
Each type appears as a pair of start and end markers, forming a closed structure. An illustrative marker design is shown below (it expresses the structural idea only and is not any specific product interface):
<point> x, y <end-point><polygon> x1,y1 x2,y2 ... xn,yn <end-polygon><box> x_min,y_min x_max,y_max <end-box>
This design yields three direct benefits:
- Addressability: the model outputs coordinate structures rather than adjectives, so the reference relationship is unique;
- Verifiability: structured output can be parsed by programs, and whether coordinates fall inside the target region can be checked automatically, which makes it easy to construct reward signals;
- Composability: points, boxes, and polygons can be nested and combined into hierarchical reasoning such as “frame a region first, then place points inside it.”
It is worth stressing that visual primitives are not a new modality. They migrate visual output from “natural-language description” to “structured spatial reference,” letting the chain of thought switch to a different representational system when precision is required.
3. Two Diverging Technical Routes: Built-in Primitives vs. Thinking with Images
On whether a model is genuinely equipped with visual primitives, the industry actually has two non-equivalent technical routes.
Route 1: Built-in visual primitives. The visual encoder and the language model are trained jointly, primitive markers enter the vocabulary as first-class citizens, and the model can naturally emit coordinate structures at inference time. Its advantage is end-to-end consistency; its drawback is high training cost and long iteration cycles.
Route 2: Thinking with images. The model does not generate coordinate primitives directly. Instead, it calls tools to crop, resize, annotate, and re-feed the image, outsourcing “looking precisely” to external operators. Its advantage is low modification cost and strong interpretability; its drawback is a longer pipeline, with errors coming from tool selection and call timing.
The most reliable evidence for judging which route a system actually takes comes from the vocabulary file in the model repository: if it explicitly contains paired geometric marker tokens, structured visual expression has entered the model’s generatable space; if the vocabulary has no such markers, the system more likely relies on an external image-processing toolchain for precise localization. This method is more trustworthy than reading marketing material, and it suggests to evaluators: inspect the vocabulary and inference configuration first, then the effect demos.
4. The Agent Toolchain: The Harness Is the Real Boundary of Capability
The above disagreement also reveals a frequently overlooked fact: model capability is not product capability. An agent runtime framework (harness) sits in between, handling prompt assembly, tool registration, image preprocessing, context trimming, and multi-turn state management. The same model can behave very differently under different harnesses, usually for four reasons:
- whether image input is automatically downsampled, causing dense targets to be lost;
- whether visual markers are correctly escaped by the template, or handled as plain text;
- whether tool descriptions are clear enough for the model to correctly choose crop and zoom operations;
- how the context budget is allocated, and whether long chains of thought get truncated.
What is more noteworthy in engineering is the consistency of configuration and distribution. When official docs, sample configs, and the actual released version fall out of sync, users easily burn large amounts of time on versions, config file formats, and startup parameters. A workable mitigation is to pin the environment down:
# 1. Pin runtime and dependency versions to avoid "docs say one thing, the run does another"# Use the general package manager command to upgrade the agent runtime framework to the latest stable release# 2. Switch inference modes via named profiles instead of hand-editing config files# 3. Explicitly declare the model identifier and image preprocessing strategy in the config{"profile": "vision","model": "<your-model-id>","image": { "max_side": 1536, "keep_aspect_ratio": true },"tools": ["crop", "zoom", "annotate"]}
Here max_side and keep_aspect_ratio are general tunable items used to control resolution and distortion; their concrete values must be determined empirically per task density, and there is no universally optimal value.
5. A Reproducible Evaluation Method: Turning Demos into Measurable Metrics
When facing “the demo works but the entry point fails,” evaluators are advised to build a minimal closed loop of their own rather than rely on single screenshots.
- Layer the tasks: split capability into four categories—counting, localization, region relations, and path planning—and construct samples for each;
- Structure the output: require the model to answer with point, box, and polygon structures so programs can judge them;
- Quantify metrics: use absolute error and accuracy for counting, center-point distance and intersection-over-union for localization, and path passability and step count for planning;
- Compare pipelines: test three configurations separately—“plain chat entry,” “agent entry with tool calls,” and “image downsampling disabled”—to locate the source of the gap;
- Check stability: sample the same input multiple times and observe the consistency of structured output; poor consistency usually means reference is still being done in natural language.
The value of this method is that it turns “whether the system is equipped with visual primitives” from a matter of position-taking into a measurable engineering problem.
6. Implementation Advice and Cloud Practice Essentials
To build similar precise visual reasoning capability in your own business, the following practice order can be followed:
- Fix perception first: raise effective resolution, and adopt a slice–infer–merge strategy for large images and dense scenes;
- Then fix reference: introduce structured spatial markers into the prompt and output protocol, making coordinates a parseable first-class output;
- Then add tools: provide the model with deterministic operators such as crop, zoom, and annotate, leaving fuzzy judgment to the model and precise computation to programs;
- Finally, address operations: use object storage to hold image samples, a message queue to decouple inference tasks, a container platform to elastically scale inference services, and logging plus monitoring/alerting to track latency, failure rate, and the proportion of output parse failures.
In related practice at Baidu AI Cloud, the above general capabilities are typically composed in a modular way on the cloud, and teams can select flexibly according to their own data scale and compliance requirements rather than being locked to a single implementation.
7. Conclusion
The debate around the new multimodal model release is, on the surface, about “whether it has visual primitives.” In substance, it comes down to three things: whether the model has structured spatial expression capability, whether the agent framework correctly passes visual information, and whether the evaluation is measurable enough. For developers, rather than chasing version codenames, it is better to focus on three places: verifiable evidence in the vocabulary and configuration, the image-processing pipeline of the harness, and a self-built evaluation loop. With all three in place, the capability boundary becomes clear, and selection and optimization finally rest on a reliable basis.
