Visual Primitives vs. Thinking with Images: Technical Routes for Multimodal LLM Vision
This article examines why multimodal large language models often struggle with dense counting, precise localization, and complex structure parsing. It analyzes the perception gap and the reference gap behind these failures, compares the visual primitives and thinking-with-images technical routes, and offers practical guidance for identifying a model's route and evaluating multimodal capabilities in real deployments.
Visual Primitives vs. Thinking with Images: Technical Routes for Multimodal LLM Vision
1. Background: Why Multimodal Models “Cannot See Clearly or Count Accurately”
In recent years, large language models have made substantial progress in text understanding and reasoning. When these models handle images, however, a common pattern appears: they often grasp the overall semantics of an image reasonably well, but their performance drops noticeably when a task requires dense counting, precise localization, or complex structure parsing. For example, asking a model to count how many people are in a scene, plan a feasible path through a maze, or mark the exact position of a small target often leads to a significantly higher error rate.
This capability gap cannot be explained simply by “insufficient resolution” or “not enough training data.” Researchers generally break the problem into two levels:
- Perception Gap: after an image is compressed by a visual encoder, fine-grained details are diluted in the feature representation, so the model cannot clearly see small or densely packed targets.
- Reference Gap: even if the model “sees” a target at the visual level, when it needs to refer to that target during reasoning, it can only use natural language. Natural language is inherently ambiguous when expressing precise spatial positions.
The second problem is often more hidden and more critical. The rest of this article reviews two major technical routes that the industry has developed around this issue.
2. The Reference Gap: Natural Limits of Natural-Language Spatial Description
To understand the technical solutions that follow, it is necessary to first clarify why “describing positions in an image with language” becomes a bottleneck.
Suppose the model needs to express “the cup near the edge of the table, about one-third down from the upper-left corner.” This sentence has multiple ambiguities: Is the coordinate relative to the entire image or to a local region? How can the precision of “one-third” be guaranteed? When several similar objects appear in the image, a natural-language description can hardly achieve unique reference.
More importantly, in chain-of-thought reasoning, if every intermediate result is carried in natural language, spatial errors accumulate step by step. A localization bias in the first step can be amplified through multiple reasoning steps, and the final result may deviate completely from the target. Missed counts and repeated counts in dense counting tasks, as well as paths that “pass through walls” in maze navigation, are essentially manifestations of this mechanism.
As a result, a consensus has gradually formed: giving the model an unambiguous spatial pointer during reasoning is key to breaking through complex visual tasks.
3. Route 1: Visual Primitives
The core idea of the “visual primitives” route is to introduce a set of atomic symbols specifically designed for referring to the spatial structure of an image, so that the model can directly “point to” objects in the scene during reasoning instead of relying on natural-language descriptions.
3.1 Three Basic Primitive Types
A typical visual primitive system usually contains three types of structured markers:
- Point: used to mark a single position, such as “a target center exists at this pixel coordinate.” Point primitives are suitable for counting, keypoint detection, and similar tasks.
- Box: used to delimit a rectangular region, expressing “the target lies within this bounding box.” Box primitives are suitable for object detection, region reference, and similar tasks.
- Polygon: used to outline an irregular contour, expressing “the precise boundary of the target is this closed curve.” Polygon primitives are suitable for instance segmentation, fine localization, and similar tasks.
In engineering implementations, these primitives are usually injected into the model vocabulary as special tokens, such as paired start and end markers wrapping a normalized coordinate sequence. The following is an illustrative token structure (conceptual only, not a specific implementation):
<point> (0.312, 0.487) </point><box> (0.102, 0.205) (0.356, 0.518) </box><polygon> (0.11, 0.20) (0.35, 0.20) (0.35, 0.51) (0.11, 0.51) </polygon>
In this way, when the model generates a reasoning process, it can directly “output coordinates,” turning objects in visual space into symbols that can be referenced precisely.
3.2 Benefits and Costs
The advantages of the visual primitives route are clear:
- Unambiguous reference: coordinates are precise pointers in continuous visual space, completely eliminating the ambiguity of language descriptions.
- Traceable reasoning: each spatial reasoning step has an explicit coordinate basis, which makes verification and error correction easier.
- Strong task fit: dense counting, fine localization, region reference, and similar tasks can benefit directly.
This route also has costs: it requires expanding the model vocabulary and conducting targeted training alignment. The visual encoder and the language decoder need to establish consistency in coordinate semantics, and both training cost and data construction difficulty are higher.
4. Route 2: Thinking with Images
The other route takes a different approach: instead of changing how the model refers to space, it lets the model actively operate on the image itself during reasoning. For example, the model can invoke operations such as cropping, zooming, rotating, and annotation, magnify an unclear local region before looking again, and decompose a complex counting task into multiple local observations.
A typical feature of this route is that the model generates not only text but also image operation instructions. The new images produced by these operations re-enter the model context, forming an “observe–operate–observe” loop. This is closer to the human cognitive habit of “using a magnifying glass to look more carefully.”
4.1 Comparison with Visual Primitives
| Dimension | Visual Primitives | Thinking with Images |
|---|---|---|
| Core mechanism | Introduce structured spatial reference symbols | Dynamically operate on images during reasoning |
| Main focus | Reference gap | Primarily perception gap, with some reference benefits |
| Engineering complexity | Vocabulary expansion and coordinate alignment training | Tool invocation pipeline and environment integration |
| Inference cost | Relatively lower | Multiple rounds of visual input, higher cost |
It is worth noting that the two routes are not completely mutually exclusive. A model can output coordinate primitives and invoke image operation tools during reasoning; the two approaches can complement each other.
5. How to Tell Which Route a Multimodal Model Uses
For developers, when a new multimodal model is released, the following methods can help determine its technical route:
- Check the tokenizer configuration: inspect whether the model’s public tokenizer files contain paired special tokens for points, boxes, polygons, and similar structures. This is the most direct evidence of built-in visual primitives.
- Observe the output format: in counting or localization tasks, observe whether the model outputs natural-language descriptions or structured coordinates. If the output contains continuous normalized coordinate sequences, the model likely uses visual primitives or a similar mechanism.
- Design controlled experiments:
- Dense counting test: use images with a known number of targets, such as a group photo containing more than 20 people, and repeatedly test the stability of the counting results.
- Spatial planning test: construct maze or path-planning scenarios and check whether the path given by the model is feasible and whether it crosses obstacles.
- Occlusion and similar-object test: require the model to refer to a specific individual among multiple similar objects and check whether the reference is unique.
- Pay attention to consistency between promotion and actual behavior: demo results in technical reports and actual behavior in online services may differ. For example, a sample that is accurately counted in a report may show deviations in actual calls. This often indicates that the online version and the paper version are not fully aligned in capability configuration or inference strategy. Evaluation should rely on actual behavior.
6. Practical Recommendations for Engineering Deployment
For teams that want to use multimodal capabilities in business systems, the following recommendations may be useful:
- Select models by task: if the business is mainly document understanding and general question answering, a conventional multimodal model may be sufficient. If the business involves industrial inspection, dense counting, or fine localization, priority should be given to whether the model has structured spatial reference capabilities.
- Treat prompts and structured output seriously: even if a model supports coordinate output, the output format should be clearly specified in the prompt, and coordinate validity checks and normalization should be performed on the server side.
- Use cloud platforms to reduce integration cost: at the compute and deployment level, teams can use general cloud products from Baidu AI Cloud—for example, a container platform to host inference services, object storage to manage image data, and logging and monitoring to keep the pipeline observable—so they can focus on model evaluation and business logic.
- Build a regression evaluation set: visual model capabilities may change across versions. Teams should maintain a private evaluation set covering counting, localization, planning, and other dimensions, and run regression validation after each model upgrade.
7. Conclusion
From “describing images in natural language” to “referring to images with structured primitives,” and then to “actively operating on images during reasoning,” multimodal large models are undergoing a paradigm shift in how they think about vision. The proposal of the reference gap has made the industry realize that the bottleneck limiting a model’s visual capability may not lie in “seeing,” but in “saying.” Regardless of which route becomes mainstream, one point is certain: the ability to refer to objects in visual space precisely and unambiguously is a necessary step for multimodal intelligence to move toward complex real-world tasks. For developers, understanding these underlying mechanisms and building scientific evaluation methods is more valuable in the long run than chasing a specific model version.
