Visual Primitives in Multimodal LLMs: A Technical Evaluation of Reference-Gap Solutions

    Multimodal large language models still struggle with precise visual grounding. This article examines two technical routes—Visual Primitives and Thinking with Images—explains the perception and reference gaps they address, and provides a practical methodology for verifying a model's true visual capabilities through static tokenizer checks and dynamic inference testing.

    Visual Primitives in Multimodal LLMs: A Technical Evaluation

    Background: Two Gaps in Multimodal Understanding

    Large language models are evolving rapidly in the multimodal direction, yet “models can’t truly see images” remains a core bottleneck for real-world deployment. Industry research typically breaks this problem into two levels:

    The first is the Perception Gap. When a vision encoder compresses an image into feature vectors, fine-grained information is lost during encoding and alignment, leaving the model unable to “see clearly.” Tasks such as dense crowd counting, small-object detection, and fine texture recognition often produce noticeably inaccurate results.

    The second is the Reference Gap. This is subtler and more easily overlooked: even when the visual features contain sufficient information, the language model tends to “describe” image content in natural language during reasoning. Natural language, however, is an ambiguous, discrete symbol system. When a task requires precisely locating an object, point, or region in a continuous visual space, the ambiguity of language descriptions breaks the reasoning chain. Typical scenarios include dense counting, complex object localization, and maze path planning.

    Understanding these two gaps is a prerequisite for evaluating any multimodal vision technology route.

    What Are “Visual Primitives”?

    To address the Reference Gap, the industry has proposed an approach known as “Visual Primitives.” The core idea: instead of forcing the model to refer to visual objects in natural language, introduce a set of special structured tokens into the model’s vocabulary that act as unambiguous pointers into the continuous visual space.

    Common visual primitive tokens fall into three categories:

    • Point: refers to an exact coordinate position in an image;
    • Box: delimits a rectangular region, typically used for object localization and counting;
    • Polygon: describes the contour of irregularly shaped objects.

    At the implementation level, these primitives are usually registered as special tokens in the tokenizer configuration. Developers can inspect the tokenizer configuration file shipped with a model release, searching for tokens such as <|point|>, <|box|>, and <|polygon|> along with their paired closing markers, to determine whether the model retains visual primitive capability. This is a low-cost, highly actionable verification step:

    1. import json
    2. with open("tokenizer.json", "r", encoding="utf-8") as f:
    3. tok = json.load(f)
    4. # Search added_tokens for visual primitive related markers
    5. targets = ["point", "box", "polygon"]
    6. hits = [t["content"] for t in tok.get("added_tokens", [])
    7. if any(k in t["content"] for k in targets)]
    8. print(hits)

    It’s important to emphasize: the mere presence of these tokens in the tokenizer only indicates that the model was exposed to the corresponding data formats during training or post-training. It does not prove the capability is active at inference time. To confirm actual behavior, cross-validate against real inference outputs: only when the model emits structured coordinate sequences—rather than pure natural language descriptions—in counting or localization tasks can you consider visual primitives genuinely in effect.

    The Alternative Route: “Thinking with Images”

    Running in parallel with visual primitives is the classic route summarized as “Thinking with Images.” Its core idea is to let the model actively generate, crop, scale, or annotate intermediate images during reasoning, treating visual operations as part of the chain of thought rather than compressing everything into text-based reasoning.

    The key differences between the two routes can be summarized as follows:

    Dimension Visual Primitives Thinking with Images
    Referencing method Structured special tokens Natural language + intermediate image operations
    Training cost Requires constructing primitive-annotated data Requires constructing tool-call / image-operation trajectories
    Interpretability Coordinate sequences can be directly visualized and verified Intermediate images are intuitive but the pipeline is longer
    Typical use cases Dense counting, precise localization Complex visual reasoning, multi-step operations

    From an engineering standpoint, visual primitives offer stable, structured output that is easy to post-process programmatically, making them suitable for automated pipelines. Thinking with Images offers stronger generalization and is relatively lenient about training data formats. In practice, some model families switch routes between versions, which usually reflects a team’s rebalancing of data-construction difficulty, inference cost, and target-scenario priorities. The most reliable way to determine which route a specific version adopts remains a two-step approach: static tokenizer inspection plus dynamic behavioral verification.

    How to Rigorously Verify a Model’s Real Visual Capability

    For developers, evaluating a multimodal model should not rely solely on examples in the official paper, since paper examples are often cherry-picked. A reproducible verification process is recommended:

    1. Static inspection: Review the tokenizer and configuration files to confirm special tokens, image tiling strategy, resolution limits, and other baseline information.
    2. Benchmark reproduction: Re-run public cases from the paper (such as crowd counting or maze navigation) in your actual calling environment and check whether results match. In practice, discrepancies frequently appear—for example, a paper reports 25 objects while the live API outputs 27. Possible causes include version mismatch between the paper and the deployed model, sampling temperature differences, and divergent image preprocessing pipelines.
    3. Adversarial small-sample testing: Build a small set of samples with known ground-truth answers, covering edge cases such as counting, localization, occlusion, and low contrast, then quantify accuracy and failure modes.
    4. Output structure analysis: Observe whether the model outputs natural language descriptions or coordinate sequences, and infer its internal referencing mechanism accordingly.

    On the deployment side, if you plan to bring multimodal capabilities into production, you can leverage general-purpose cloud infrastructure to build your evaluation and serving stack—for example, object storage to manage test image sets, container platforms to host inference services, and logging and monitoring services to track output drift—forming a sustainable model-quality observation loop.

    Engineering Recommendations

    A few practical takeaways:

    • Match the route to the task: For dense counting and precise bounding tasks, prioritize solutions with structured output capability; for open-ended visual QA and multi-step reasoning, prioritize Thinking with Images–style solutions.
    • Don’t trust a single metric: Paper numbers, demo pages, and real API behavior can all diverge. Your own test set should be the source of truth.
    • Mind toolchain maturity: CLI tooling, SDK configuration, documentation completeness, and upgrade notes often affect integration efficiency more than raw model capability. When documentation conflicts with actual behavior, check tool versions first and consult the latest upgrade notes.
    • Keep routes swappable: Architecturally, abstract the vision model as a replaceable component and avoid tight coupling to any single technical route, so you can migrate smoothly as industry solutions evolve.

    Conclusion

    Visual Primitives and Thinking with Images are not mutually exclusive routes; they are two answers to the same core question: how to let a language model refer to the visual world precisely. For developers, what matters more than chasing any specific model version is mastering the evaluation methodology of “static configuration inspection + dynamic behavioral verification,” and choosing a technical route that fits your own business scenarios. That is how you keep your systems stable and evolvable in an environment where multimodal technology iterates quickly.