Why Multimodal Image Recognition Needs Visual Primitives
This article explains why natural language alone struggles to resolve references in continuous visual space, and how visual primitives such as points and bounding boxes can be embedded into the reasoning chain. It covers the structural limitations behind misidentification, a four-step Thinking with Visual Primitives loop, engineering practices for deployment, and the boundaries and common pitfalls of the approach.
1. The Starting Problem: Why Image Recognition Can “See” but Not “Say”
When a multimodal model enters image recognition mode, the common failure is not that it “did not see” the scene, but that it “saw the scene and pointed at the wrong thing.” A user asks whether the cup on the left is empty, and the model may lock onto a container on the right. A user says “hand me the file next to the third person,” and the model may waver between several candidate entities. On the surface this looks like a recognition accuracy problem. In substance it is a reference resolution problem: a language-side expression cannot stably point to a unique target in continuous visual space.
A useful analogy comes from reviewing a chess game. A beginner says “cannon in the center, horse jumps out,” which sounds like enough to describe the opening. Follow-up questions immediately expose the ambiguity: which cannon? Which file does “center” refer to? Is the horse red or black, and which way does it jump? To eliminate this kind of dispute, Chinese chess notation uses structured forms such as “Cannon 2 to 5” and “Horse 8 to 7,” converting vague speech into coordinate instructions that identify a unique position.
A model in image recognition mode is in a similar position to a player who can only review a game through a third party’s narration. If the narration is full of “the piece on the left moved a bit,” then no matter how strong the player is, the position cannot be reconstructed. This is not a capability problem but a description protocol that does not fit the task. The industry has gradually reached a consensus: because of its inherent ambiguity, natural language is not sufficient to serve as an unambiguous pointer in continuous visual space. Relying on it anyway causes the model to lose the visual entity that the intent points to, and further amplifies hallucination.
2. Root Causes: Three Structural Deficiencies of Natural Language in Visual Space
First, missing spatial quantification. Language is good at expressing categories and relations but poor at expressing precise coordinates. “Nearby,” “beside,” and “slightly to the left” are all relative quantities without a unified scale, so the model can only guess thresholds from its training distribution.
Second, broken reference chains. In multi-turn dialogue, “it,” “this one,” and “that block just now” form chained references, and each link depends on the visual anchoring of the previous one. Once the first link drifts, subsequent reasoning continues along the wrong anchor, and error accumulates.
Third, indivisibility in dense scenes. Faced with rows of shelves, crowds of targets, or dense small objects, language cannot assign an independent identifier to each instance. The model can only produce an aggregate description, so counting and per-item operations become unstable.
3. The Approach: Thinking with Visual Primitives
A direction widely discussed in the industry is to embed “points” and “bounding boxes” as visual primitives into the thinking process, so that the reasoning chain explicitly carries spatial markers at key steps. The framework can be summarized as a four-step loop:
- Perceptual encoding: split the image into an addressable grid of visual tokens, so that any position can be referenced by coordinate.
- Primitive generation: output point coordinates or bounding boxes on demand as a unique handle for an entity.
- Interleaved reasoning: alternate language steps and spatial markers within the chain of thought, with language handling relations and intent, and primitives handling localization and binding.
- Read-back verification: map primitives back to image regions for a second confirmation, and fall back to relocation if they do not match.
A schematic reasoning trace looks like this (pseudocode that expresses structure only and does not correspond to any specific interface):
thought_1: user intent = find the "leftmost empty cup"primitive_1: point(x=0.18, y=0.62)thought_2: the point falls inside the cup body, check the liquid surface regionprimitive_2: box(x1=0.12, y1=0.45, x2=0.26, y2=0.78)thought_3: liquid surface mask is empty -> judged as an empty cupanswer: yes, the leftmost empty cup is at {primitive_2}
The key point is that coordinates are intermediate conclusions written out explicitly, not implicit guesses. This makes the reasoning process auditable, traceable, and correctable.
4. Cognitive Motivation: The Synergy of Pointing to Think
When humans count a dense group of targets, they naturally reach out and point while counting. The role of this indicative gesture is to reduce cognitive load and maintain logical coherence. On the model side, visual primitives play exactly the role of a “computable gesture”: they anchor abstract verbal thinking to concrete spatial coordinates, so that every judgment has a landing point. This brings three engineering benefits:
- Verifiability: every conclusion comes with coordinate evidence, which is convenient for automated checks and human review.
- Recoverability: when an error occurs, the system can fall back to the previous primitive and relocate, instead of re-running the whole reasoning.
- Composability: counting, sorting, spatial relations, and local attribute judgments share the same handle system.
5. Engineering Implementation
On top of the general technical capabilities of Baidu AI Cloud, the approach can be split into an operable pipeline: object storage holds images and intermediate artifacts, a container platform handles elastic scaling of inference services, a message queue decouples the localization, verification, and generation stages, and logging plus monitoring and alerting track primitive hit rate, fallback rate, and coordinate drift.
[image input] -> preprocessing/slicing -> visual encoding-> primitive generation (point/box) -> interleaved reasoning -> read-back verification-> pass: structured output (answer + coordinate evidence)-> fail: relocation (with a maximum retry limit) -> back to primitive generation
In practice, four points deserve attention. First, limit the number of relocations to avoid infinite fallback. Second, normalize coordinates and record the image dimensions to prevent misalignment across resolutions. Third, introduce instance IDs and a primitive binding table for dense scenes. Fourth, have the output layer provide both a natural language conclusion and machine-readable coordinates, balancing experience and integration.
6. Boundaries and Common Pitfalls
Visual primitives are not a cure-all. They markedly improve reference and localization tasks, but remain limited for fine-grained semantics (material, intent inference), occlusion reasoning, and cross-image consistency. In addition, primitive generation itself can be wrong, so read-back verification and confidence thresholds cannot be omitted. Another pitfall is treating primitives as a “longer prompt”: if the reasoning chain lacks interleaving and verification, the coordinates are merely decorative and exert no constraining effect.
7. Conclusion
The next stage of competition in image recognition mode is not about “saying more” but about “pointing accurately.” Promoting visual primitives such as points and boxes to first-class citizens in the chain of thought is essentially adding an unambiguous addressing protocol to multimodal reasoning: language handles intent and relations, coordinates handle entities and binding, and the two advance in an interleaved way while verifying each other. For developers, this is an observable, rollback-capable, and integrable engineering path, and one of the most direct levers for suppressing visual hallucination.
