Visual Primitives vs. "Thinking with Images": Two Paths to Better Multimodal Grounding
Multimodal models often fail at counting, localization, and spatial reasoning not because they cannot see, but because natural language is an ambiguous pointer in continuous visual space. This article compares two technical routes—visual primitives (structured tokens like points, boxes, and polygons in the vocabulary) and "thinking with images" (tool-driven iterative visual reasoning)—covering their design trade-offs, the role of the agent framework, evaluation consistency, and practical selection guidance.
Visual Primitives vs. “Thinking with Images”: Two Paths to Better Multimodal Grounding
1. Background: From “Can’t See Clearly” to “Can’t Point Accurately”
Failures of multimodal models on image understanding tasks are not always caused by insufficient image resolution or a weak visual encoder. In many scenarios, the model has already “seen” the target but cannot stably refer to the same object during reasoning and expression. In dense crowd counting, defect localization on parts, document layout analysis, and spatial relation judgment in complex scenes, natural language descriptions tend to produce vague references such as “the one on the left,” “slightly above the middle,” or “the person next to it.” When targets are numerous, visually similar, and spatially entangled, this referential ambiguity is quickly amplified, eventually showing up as counting errors, localization drift, or failed path planning.
This problem can be decomposed into two layers. The first is the perception gap: the model extracts insufficient information from the image. The second is the reference gap: the model still relies primarily on natural language to describe the image while reasoning, and natural language is not an unambiguous pointer in continuous visual space. The visual primitives route introduces structured visual references at the vocabulary and decoding level, letting the model use points, boxes, and polygons as “pointers” to describe targets. The “thinking with images” route emphasizes invoking visual tools during inference—repeated observation and local verification—using external actions to compensate for the limits of one-shot perception. The two are not simple substitutes; they operate at the representation layer and the strategy layer, respectively.
2. Visual Primitives: Writing “Pointers” into the Vocabulary
Visual primitives can be understood as unambiguous control symbols for precisely describing objects in continuous visual space. Common forms include points, bounding boxes, and polygons. They are not ordinary natural language tokens but structured tokens with explicit syntax and coordinate semantics. For example, paired control symbols can be added to the vocabulary to mark the start and end of a point, a box, or a polygon, combined with coordinate values or normalized coordinate sequences to form a parseable visual reference expression.
An illustrative vocabulary extension looks like this:
SPECIAL_VISUAL_TOKENS = {"<point>": "BEGIN_POINT","</point>": "END_POINT","<box>": "BEGIN_BOX","</box>": "END_BOX","<polygon>": "BEGIN_POLYGON","</polygon>": "END_POLYGON"}
The key to this design is not the token names themselves, but three things. First, the vocabulary and embedding layer must support the new control symbols. Second, the training data must convert visual annotations into hybrid sequences of “natural language + structured pointers.” Third, the decoding stage must constrain pointer syntax and coordinate ranges to avoid generating illegal boxes or polygons. The advantages of visual primitives are clear: they turn “which object” from vague language into a parseable structure, which benefits dense counting, object localization, relation extraction, and verifiable outputs. But the engineering cost is not trivial: vocabulary expansion affects model initialization and fine-tuning; the coordinate normalization scheme must strictly match image preprocessing; and the ordering and relationships among multiple objects require additional modeling. If the training distribution diverges significantly from production inputs, structured tokens can degenerate into pseudo-references that “look like boxes but don’t actually align.”
Therefore, judging whether a multimodal system is truly equipped with visual primitives should not rely on release notes or demo effects alone. You should check whether structured visual control symbols exist in the vocabulary, whether outputs can be stably parsed, whether coordinate precision scales with resolution, whether references remain unique in dense scenes, and whether the training objective explicitly includes visual grounding supervision.
3. Thinking with Images: Using Tool Actions to Fill in Visual Evidence
Unlike vocabulary-level structured reference, the “thinking with images” route is closer to “operating on the image during reasoning.” The model does not need to compress all visual information into a text description in one pass. Instead, within an agent framework, it can invoke tools for cropping, zooming, re-examining local regions, annotation, and count verification, converging on an answer through multi-step observation. This route inherits the classic tool-calling paradigm: the model plans, the tools gather evidence, and the framework handles orchestration and state management.
Its strengths are generality and composability. In open scenes, the model can first locate a rough region, then crop and zoom in, then recognize or count within the local view. For spatial planning tasks, it can repeatedly check path nodes against obstacles. It does not require adding visual primitives at the vocabulary level, nor does it require all visual annotations to be converted into structured tokens, making it easier to reuse within existing agent systems. But the risks are equally clear: tool calls add latency and error accumulation; a wrongly selected crop region corrupts all subsequent observations; and multi-step trajectories increase the complexity of evaluation and debugging. If the framework configuration is opaque and capability toggles are inconsistent, the “model capability” users perceive may only be the portion exposed by the framework.
From an engineering perspective, choosing the image-thinking route does not mean visual primitives have no value; it means part of the “precise reference” problem is shifted to tool trajectories and external post-processing. If the framework can reliably record each observation, crop coordinates, and intermediate conclusions, the image-thinking route actually offers better auditability. If the framework only exposes the final answer, troubleshooting becomes very difficult.
4. The Agent Framework Is Part of Capability Delivery
Between a research description and a usable system sits an agent framework. The framework handles model selection, capability toggles, tool registration, context management, permissions, and logging. Whether users perceive that a capability is “equipped” often depends on whether the framework correctly exposes the configuration, not just on the model itself. A typical phenomenon: the release notes describe a certain vision processing scheme, but the actual behavior of the interactive entry point does not fully match the description; or a capability already exists but cannot be enabled because the configuration entry is unclear or the upgrade path is undocumented.
An illustrative configuration should place capabilities, evaluation, and observability at the same level:
profile:name: vision_agentcapabilities:image_input: truestructured_visual_tokens: autoiterative_visual_tools: trueevaluation:record_preprocess: truerecord_model_version: truerecord_tool_trace: truerecord_postprocess: true
The key is not any particular field name, but that the configuration abstraction must answer four questions: which vision capabilities are currently enabled; what preprocessing the input image undergoes; which tools are invoked during inference; and what parsing and validation the final output goes through. If configuration documentation targets only external integrators while ignoring the upgrade path for regular users, a split emerges where “the docs say one thing, the actual entry point does another.” For technical teams, configuration consistency should be part of the release checklist: the same capability should produce comparable behavior across different entry points, and at minimum a clear version number, capability matrix, and regression examples should be provided.
5. Evaluation Gaps: Why the Same Capability Behaves Differently Across Entry Points
The most easily overlooked aspect of multimodal evaluation is end-to-end consistency. Results in research descriptions are typically built on fixed preprocessing, fixed prompt templates, fixed decoding strategies, and fixed post-processing. Interactive entry points may introduce different image compression, resolution scaling, context truncation, tool-calling policies, and answer formatting. In counting tasks, overlapping boxes, occlusion, and small-object scaling all change results. In spatial navigation tasks, slight differences in coordinate systems, path representations, or obstacle thresholds can cause planning failure. Counting deviations and maze-navigation failures remind us of one thing: a demo result from one entry point cannot be directly equated with model capability, nor can a research description be directly equated with production behavior.
Reproducible evaluation should record at least: original image dimensions and scaling method, model version and capability toggles, prompt templates, tool call traces, coordinate normalization parameters, randomness settings, and post-processing rules. For dense counting, evaluate both total count error and per-instance localization consistency. For spatial planning, evaluate path reachability, collision rate, and step interpretability. Only by recording “model capability” and “framework behavior” separately can you determine whether a problem originates at the representation layer, the strategy layer, or the engineering layer.
6. Selection Guidance: Structured Reference and Tool-Based Reasoning Can Be Mixed
In real projects, the two routes should not be treated as opposites. If the business requires high-precision structured output—defect boxes, layout regions, polygon segmentation, dense object counting—visual primitives or an equivalent structured reference mechanism are more valuable. If the scenario is open-ended, target forms vary widely, and multi-step observation with external verification is needed, the image-thinking route is more flexible. A more realistic approach is hybrid: use tool-based reasoning to locate candidate regions first, then output precise coordinates with structured pointers; or constrain key objects with structured tokens and then verify counts and relationships via tool trajectories.
At the deployment level, in general-purpose cloud environments such as Baidu AI Cloud, you can use object storage to host evaluation images and annotation data, a container platform to run agent services, and logging and monitoring services to record tool call traces and anomaly rates. These general-purpose capabilities help turn the question “is the model equipped with visual primitives” from subjective debate into observable metrics: vocabulary control-symbol hit rate, structured output parse success rate, coordinate error distribution, cross-entry-point consistency, and tool trace completeness.
7. Conclusion
Visual primitives solve a representation problem—how to describe visual objects with unambiguous pointers. Thinking with images solves a strategy problem—how to fill in visual evidence through multi-step observation. The former places higher demands on vocabulary design, training data, and decoding constraints; the latter places higher demands on the agent framework, tool quality, and the evaluation system. Judging whether an experimental multimodal release truly has a capability should not rely on release descriptions or a single demo, but on a combined assessment of vocabulary design, output parseability, framework configuration consistency, end-to-end evaluation, and regression testing. For developers, the safest path is to build a capability matrix and observable evaluation, verify the model, framework, and business post-processing in layers, and then decide whether to adopt structured reference, tool-based reasoning, or a hybrid of both.
