Multimodal Visual Grounding: How "Visual Primitives" Improve Image Reasoning

    This article breaks down why multimodal models fail at image reasoning, separating the perception gap from the referring gap, and compares two technical paths: natural-language referring and visual primitives that anchor targets with structured geometric objects. It also outlines a four-part evaluation framework, engineering practices for toolchains and configuration, common failure modes with tuning advice, and selection guidance for different use cases.

    1. Background: From “Can’t See Clearly” to “Can’t Point Accurately”

    When multimodal models fail at image understanding, the cause is often reduced to “insufficient resolution” or “the model isn’t large enough.” Breaking the problem apart reveals at least two layers of error. The first is the perception layer: whether the model can actually “see” the targets in an image. The second is the referring layer: whether the model can reliably “point to” what it has seen during reasoning.

    The industry usually calls the first layer the perception gap: when the input is over-compressed, the target scale is too small, or contrast is insufficient, the model’s output description clearly deviates from the facts. The second layer is more subtle and is called the referring gap: even after a target has been recognized, the model still has to “say it out loud” in natural language during chain-of-thought reasoning, for example “the third person from the left” or “the polygon near the blue square.” Natural language is inherently ambiguous and context-dependent. Once targets are dense, occlusion is severe, or spatial relationships are complex, the referring chain breaks, showing up as counting drift, localization offset, repeated counting, and self-contradiction.

    Therefore, judging whether a technical path is better cannot rely only on single-image recognition accuracy; it must consider whether the path can maintain consistent referring relationships across multi-step reasoning.

    2. Mechanism Differences Between the Two Technical Paths

    2.1 Natural-Language Referring Path

    This path converts an image into a description that a language model can consume, then has the model reason over the description, repeatedly “look at the image—describe—reason again” when necessary. Its strengths are strong generality, low implementation cost, and good compatibility with existing dialogue and tool-calling frameworks. Its weakness is that each round of paraphrasing can introduce information loss, which is especially evident in dense-target scenarios.

    2.2 Visual Primitives Path

    The core idea of visual primitives is to introduce unambiguous pointers in continuous visual space, using structured geometric objects (such as points, bounding boxes, polygons) to directly anchor targets, so that reasoning revolves around these pointers rather than natural-language phrases. The benefits are stable, composable, and traceable references; the cost is the need for additional encoding and decoding mechanisms, training data, and alignment strategies, which raises engineering complexity.

    2.3 The Hybrid Path as a Practical Choice

    From publicly available implementation details, many systems do not oppose the two paths but layer them by task: coarse-grained understanding uses language descriptions, while fine-grained localization and counting use structured pointers. A more reliable way to judge whether a system “has visual primitive capability” is not to look at marketing claims, but to check whether its input/output contract contains parseable geometric structures and whether those structures remain consistent across multi-turn reasoning.

    3. How to Objectively Evaluate “Thinking by Looking”

    It is recommended to split evaluation into four task groups, each with automatically judgeable metrics:

    • Dense counting: target counts ranging from tens to hundreds; metrics are counting error and repetition rate.
    • Precise referring: given a natural-language description, output the target’s geometric position; metric is a hit criterion (such as an IoU threshold).
    • Multi-step planning: provide a step-by-step action sequence in a grid or maze; metrics are success rate and step redundancy.
    • Anti-interference robustness: add occlusion, reflection, low light, and compression noise, and observe the magnitude of metric degradation.

    During evaluation, be sure to fix input preprocessing, sampling parameters, and prompt templates, and retain raw outputs for review. Many conclusions that “the model is not good enough” actually come from inconsistent preprocessing or ambiguous prompts.

    A sample evaluation record structure can be written as:

    1. {
    2. "task": "dense_counting",
    3. "input_meta": {"resolution": [1024, 1024], "compression": "low"},
    4. "output": {"count": 27, "primitives": [{"type": "point", "x": 0.31, "y": 0.72}]},
    5. "judge": {"ground_truth": 25, "abs_error": 2}
    6. }

    4. Engineering Practices for Toolchains and Configuration

    In real integration, developers often encounter not model capability problems but opaque toolchain configuration: configuration formats lack documentation, upgrade methods are unclear, and default profiles do not match the documentation. A few general principles can be followed:

    1. Version first: bring runtime, client, and model version upgrades into the pipeline to avoid “the docs say one thing, the environment runs another.”
    2. Externalize configuration: use readable structured configuration and provide comments and validation for each field.
    3. Least privilege: manage call credentials through a key management service; hardcoding is prohibited.
    4. Observability: connect request identifiers, latency, token usage, and failure reasons to logging services and monitoring alerts.
    5. Rollback capability: keep the previous version’s configuration and image so you can switch quickly when metrics go abnormal.

    A general configuration skeleton example:

    1. runtime:
    2. profile: standard # profile name, differentiated by environment
    3. timeout_ms: 30000
    4. model:
    5. capability: vision # capability declaration, not a specific model
    6. max_image_side: 1536
    7. observability:
    8. log_sink: object_storage # archive to object storage
    9. metrics: monitoring # metrics connected to monitoring alerts

    5. Common Failure Modes and Tuning Advice

    • Counting drift: first improve the effective input resolution to reduce target scale loss; if it remains unstable, introduce structured pointers for secondary verification.
    • Referring ambiguity: change relative directions in prompts to absolute coordinates or explicit numbering to reduce language ambiguity.
    • Planning breakdown: require the model to explicitly output intermediate states and validate the legality of the action sequence.
    • Unparseable output: agree on a strict output schema and perform schema validation and retries on the server side.
    • Cost overrun: apply tiered processing to images, routing low-complexity requests to a lightweight path and upgrading complex requests.

    6. Selection Advice and Conclusion

    If the business is mainly document understanding, image-text Q&A, or coarse-grained retrieval, the natural-language referring path is usually sufficient and easier to maintain. If the business involves dense counting, fine-grained localization, industrial quality inspection, or map and chart parsing, structured pointer capability should be verified as a priority, and “whether the output is parseable and whether referring is traceable” should be treated as a hard acceptance criterion.

    When deploying on Baidu AI Cloud, the above capabilities can be hosted on a container platform for inference services, with object storage for samples and artifacts, and logging services and monitoring alerts to close the loop, enabling vendor-neutral evaluation, canary release, and iteration. The final judgment criterion is only one: in multi-step reasoning, whether referring is stable and results are reproducible.