Why Multimodal Image Recognition Needs Visual Primitives

    This article explains why natural language is a poor spatial pointer in multimodal image recognition and how visual primitives—points and bounding boxes—anchor reasoning to image coordinates. It covers the failure modes of language-based reference, a four-stage workflow from preprocessing to grounded conclusions, prompt design practices, evaluation metrics, and common pitfalls, offering developers a practical path to reduce hallucinations and improve reliability in dense-object scenarios.

    1. Where the Problem Starts: Recognition Often Fails at Reference, Not Perception

    In multimodal large model image recognition, a long-underestimated bottleneck is not pixel resolution or parameter count, but information loss during reference. The model usually receives a natural language description relayed by a third party. It must reconstruct the target entity in a continuous visual space from that text alone, and then reason over it. If the relay itself is vague, no amount of downstream reasoning can compensate.

    Consider chess notation as an analogy. A beginner might say “cannon in the center, move the horse,” but the listener cannot tell which cannon, which side’s horse, or whether “right” means red’s right or black’s right. This is why standardized Chinese notation was introduced, rewriting ambiguous instructions into reproducible, coordinate-based commands such as “Cannon 2 to 5” and “Horse 8 to 7.” Image recognition works the same way: the model is like a player who can only replay a game from a relayed description, and if the relay is inadequate, the replay will fail.

    This leads to the core argument of this article: natural language is good at expressing intent and relationships, but poor at serving as a unique pointer in a continuous 2D space. Forcing it to carry spatial reference causes entity loss, reference drift, and further amplifies hallucinations.

    2. Why Natural Language Is Unsuited to Spatial Pointing

    First, the mapping between vocabulary and coordinates is many-to-many. Phrases like “the thing on the left” or “the upper region” point to different pixel ranges under different resolutions, crops, and scales, so they lack stability.

    Second, language omits information by nature. Human communication relies on shared context to fill in what is left unsaid, but no such sharing exists between the model and the relaying party, so omission means loss.

    Third, counting and sequential operations are hard to express in language. When counting dense small targets, language provides no persistent state marker for “already counted” versus “not yet counted,” making double counting and missed counts nearly unavoidable.

    Fourth, long reasoning chains accumulate reference errors. In multi-step reasoning, every vague reference gets amplified, ultimately producing hallucinated outputs that look plausible but point to the wrong object.

    3. Visual Primitives: Anchoring Linguistic Reasoning to Coordinates

    Visual primitives are spatial markers built from points and bounding boxes. They are unique and reproducible within the image coordinate system, acting as unambiguous pointers in visual space. The design motivation comes from human cognition: when counting a dense group of targets, people naturally point at them one by one, using deictic gestures to reduce cognitive load and maintain logical coherence.

    Transferring this “point to think” coordination to the model side means interleaving visual primitives into the chain of thought, so abstract linguistic reasoning alternates with concrete coordinates. A schematic structured output can be expressed as:

    1. {
    2. "thought": "Locate the suspicious region first, then confirm one by one",
    3. "visual_primitives": [
    4. {"type": "bbox", "xyxy": [312, 208, 356, 251], "label": "candidate_1"},
    5. {"type": "point", "xy": [334, 229], "label": "candidate_1_center"}
    6. ],
    7. "next_action": "count"
    8. }

    There are three key constraints: coordinates must share the same reference frame as the actual dimensions of the input image; markers need stable identifiers so they can be referenced across steps; and linguistic conclusions must trace back to specific markers, forming an auditable chain.

    4. Method Framework: A Four-Stage Pipeline from Detection to Reasoning

    1. Image preprocessing and coordinate alignment. Unify scaling, padding, and normalization, and define the origin explicitly to avoid systematic coordinate offsets later.

    2. Coarse localization. Use low-precision bounding boxes to enclose candidate regions, favoring recall and leaving precision to the next stage.

    3. Fine localization and state maintenance. Refine to instance level with point markers, and maintain a “processed” state bit for each instance. This is the key to stability in dense counting scenarios.

    4. Linguistic summarization. Output natural language conclusions only after coordinate evidence is complete, with each conclusion citing the markers that support it.

    For engineering implementation, the following pseudocode constrains the generation process:

    1. def grounded_reason(image, question):
    2. ctx = align(image) # Unify the coordinate system
    3. boxes = coarse_locate(ctx, question)
    4. marks = {}
    5. for b in boxes:
    6. p = refine_to_point(ctx, b)
    7. if not visited(marks, p):
    8. marks[key(p)] = {"point": p, "visited": True}
    9. return summarize(question, marks) # Conclusions must reference marks

    5. Prompt and Interaction Design

    At the prompt level, explicitly require coordinates first and conclusions second, and specify the coordinate format and value ranges. For counting questions, enforce one-by-one point marking and require a declared counting state. For comparison questions, require two separate sets of markers before making a judgment. For coreference resolution questions, require restating the candidate entities and their markers before selecting one. If batch processing is needed on the enterprise side, images and intermediate markers can be stored separately in object storage and logging services, asynchronous inference can be decoupled with a message queue, inference services can scale elastically on a container platform, and monitoring and alerting can track latency and failure rates. These are general capability categories and do not involve specific implementation details.

    6. Evaluation and Common Pitfalls

    Evaluation should cover four types of metrics: reference accuracy (whether markers land on the correct entity), counting error (absolute and relative), cross-scale stability (whether conclusions stay consistent after scaling and cropping), and chain auditability (whether conclusions can be traced back to markers). Common pitfalls include treating visual primitives as the detection task itself while ignoring their role as reasoning anchors; inconsistent coordinate reference frames causing overall offsets; an explosion of markers causing context bloat, which calls for merging and deduplication strategies; and outputting conclusions without markers, which degrades the method into ordinary description.

    7. Conclusion

    The next leap in image recognition likely will not come from a larger model, but from a more precise reference protocol. Pinning linguistic reasoning to coordinates with points and bounding boxes, so that every reasoning step is traceable and reproducible, is a pragmatic path to suppressing hallucinations and improving stability in dense scenarios. For developers, the implementation focus is not complex: unify the coordinate system, enforce coordinates first, maintain state markers, and keep conclusions auditable. These four practices are enough to significantly improve the reliability of multimodal image recognition.