Visual Primitives and the Reference Gap in Multimodal LLMs: Evaluating Image Understanding Through Technical Approaches
This article explores two competing approaches to image understanding in multimodal large language models: "Thinking with Images" and visual primitives. It explains the perception gap and the reference gap, shows how tokenizer analysis can reveal a model's technical approach, warns about discrepancies between paper benchmarks and real-world performance, and offers practical guidance for evaluating and deploying structured visual output in production systems.
Visual Primitives and the Reference Gap in Multimodal LLMs: Evaluating Image Understanding Through Technical Approaches
1. Background: Two Approaches to Image Understanding
Multimodal large language models have made rapid progress on image understanding tasks, yet the question of how a model actually “sees” an image remains a topic of active debate in the technical community. Broadly speaking, two main technical approaches exist today.
The first is the “Thinking with Images” approach. Its core idea is to let the model actively manipulate the image during reasoning—cropping, zooming, drawing auxiliary lines, annotating regions—so that visual information serves as an intermediate medium of reasoning rather than being encoded once and discarded. Through tool calls or internal mechanisms, the model repeatedly revisits local details of the image to accomplish counting, localization, and spatial reasoning tasks.
The second is the “visual primitives” approach. This school of thought argues that the key problem is not that the model cannot see the image clearly, but that it cannot precisely “say” what it sees. To address this, researchers introduce a set of special structured tokens into the vocabulary—tokens representing concepts such as “point,” “polygon,” and “bounding box”—allowing the model to refer to target objects in continuous visual space with programming-language-like precision, instead of relying on natural language descriptions.
Recently, an experimental multimodal model released by a major vendor sparked community discussion: developers analyzing its tokenizer configuration files discovered paired special tokens for “polygon,” “point,” and “box,” evidence suggesting the model likely adopts the visual primitives approach rather than the pure image-thinking approach previously assumed. This finding is instructive—reverse-engineering a model’s technical implementation by analyzing its open tokenizer configuration has become a common community practice for understanding model architecture.
2. Two Core Concepts: The Perception Gap and the Reference Gap
To appreciate the value of visual primitives, it is necessary to distinguish two fundamental obstacles facing multimodal models.
2.1 The Perception Gap
The perception gap refers to the problem of the model not being able to “see” the image clearly. Typical causes include:
- Insufficient visual encoding resolution: Once an image is compressed into a fixed number of visual tokens, small objects and densely arranged targets suffer information collapse in the feature space.
- Inductive bias of the visual encoder: Visual encoders trained with contrastive objectives excel at extracting semantic features but are inherently insensitive to tasks like precise counting and pixel-level localization.
- Attention dilution: When an image contains many similar objects, the discriminability between visual features degrades, causing systematic errors on dense counting tasks.
With the adoption of high-resolution visual encoding, dynamic slicing, and native-resolution inputs, the perception gap is gradually being closed. However, researchers have found that even when the model “sees clearly,” performance on complex tasks remains unsatisfactory—which leads to the second problem.
2.2 The Reference Gap
The reference gap refers to the fact that the model still uses natural language to describe and refer to objects in the image during reasoning, and natural language is inherently vague and ambiguous. For example:
- In dense counting tasks, the model needs to “point at” each person one by one, but natural language cannot precisely express “the fifth person from the left in the third row.” As the reasoning chain grows longer, references become confused, leading to double counting or omissions.
- In object localization tasks, describing a target as “the red square slightly left of center near the top” is verbose and prone to distortion as the description propagates through the reasoning chain.
- In complex reasoning that requires backtracking, natural language references lack uniqueness, and the logic easily breaks down.
Visual primitives are designed precisely to solve the reference gap. By introducing structured tokens such as <point>, <polygon>, and <box> (described here neutrally; naming differs across vendors), the model can output unambiguous visual pointers within its chain of thought—each pointer precisely anchoring a point, region, or contour in the image. As a result:
- The reasoning process shifts from “linguistic description” to “structured reference,” giving references uniqueness and verifiability.
- Intermediate states in dense tasks can be programmatically validated—for example, counting the emitted point tokens directly yields the counting result.
- Outputs are inherently structured, making them directly consumable by downstream systems without natural language parsing.
3. Inferring Technical Implementation from the Tokenizer: A Practical Analysis Method
The community’s discovery of visual primitive traces through tokenizer configuration is a technique worth learning. For open-source models that release weights or configuration files, the following methods can help infer the technical approach:
- Inspect the special token list: If the vocabulary contains special tokens related to coordinates, boxes, points, or regions, it usually means the model was explicitly taught structured visual output during training.
- Examine the embedding initialization of special tokens: Newly added, well-trained tokens typically show significantly different embedding norms compared to unused placeholder tokens.
- Analyze training data formats: If fine-tuning data or inference examples are released, check whether outputs contain structured content such as coordinate sequences or geometric descriptions.
- Compare tokenizers across versions: Special tokens added in version iterations often hint at the direction of capability evolution.
It is important to emphasize that the presence of certain tokens in the vocabulary does not mean the model truly possesses the corresponding capability. A token may exist but be undertrained, or it may merely be a reserved placeholder. Configuration file analysis can only provide clues; final conclusions must be validated on real tasks.
4. Beware of the Gap Between “Paper Metrics” and Real-World Experience
Another phenomenon worth reflecting on in this discussion is the noticeable discrepancy between cases shown in the official paper and the actual web experience—a team photo of 25 people presented in the paper was counted as 27 in the real product, and a maze path-planning task claimed to be solvable in the paper failed entirely on the web. Such gaps are not uncommon in the multimodal field, and their causes typically include:
- Benchmark contamination and cherry-picking: Papers often showcase filtered success cases, while real input distributions are far more complex than the examples.
- Differences in inference configuration: Paper experiments may use stricter sampling temperature control, best-of-N sampling, or longer chain-of-thought budgets, while online products trim these for cost and latency reasons.
- Differences in system prompts and post-processing: Safety filters, format constraints, and tool-scheduling policies in the online version can all alter model behavior.
- Instability of capabilities: Multimodal models are highly sensitive to image preprocessing details (scaling ratio, slicing strategy, compression quality); the same image processed through different pipelines may yield completely different results.
The takeaway for developers is: when evaluating multimodal capabilities, never rely solely on official marketing materials—you must build an evaluation set on your own real business data. Recommended practices include:
- Construct at least several hundred annotated samples targeting your scenarios (e.g., dense counting, region localization, spatial reasoning).
- Sample each sample multiple times and analyze the success-rate distribution rather than a single result, to assess stability.
- Distinguish “perception errors” (didn’t see it) from “reasoning errors” (saw it but reasoned incorrectly), and attribute failures accordingly.
- Track the format compliance rate of structured outputs—this often affects user experience more than point accuracy in engineering integrations.
5. Practical Recommendations: Making Good Use of Structured Visual Output in Production
For teams looking to deploy multimodal capabilities in real business scenarios, visual-primitive-style structured output has clear engineering value. The following recommendations may help:
1. Prefer models that support structured visual output. If your business involves counting, localization, or detection tasks, a model that directly outputs coordinates and regions eliminates substantial post-processing work, and results can be programmatically verified.
2. Build a “reference verification” mechanism. For each visual pointer (point, box, polygon) the model outputs, you can re-render it on the image for manual spot-checking, or apply rule-based validation (e.g., whether a point falls within the expected region, whether boxes overlap abnormally), decoupling the model’s “confidence” from its “correctness.”
3. Trade chain-of-thought budget for accuracy. Complex visual reasoning tasks are sensitive to reasoning length. Where cost permits, appropriately raising the reasoning token limit and enabling multi-path sampling with voting can significantly improve accuracy on dense tasks.
4. Reduce trial-and-error costs with cloud platforms. During model selection and evaluation, you can leverage model services and compute resources provided by cloud vendors such as Baidu AI Cloud to quickly compare models of different technical approaches on your own data, without building your own inference cluster. General cloud capabilities like log services and monitoring/alerting can also be used to continuously observe format compliance rates, latency, and failure attribution for online inference.
5. Maintain technical skepticism toward marketing claims. Whether paper metrics or official demos, treat them as “upper-bound demonstrations” rather than “capability commitments.” Genuine technical evaluation should always be grounded in your own data, controlled experiments, and statistical significance.
6. Conclusion
The debate between visual primitives and image thinking is fundamentally two answers to the same question: how to align the model’s internal reasoning with visual space. The former eliminates referential ambiguity with structured tokens; the latter enhances perceptual precision with tool-based image manipulation. The two are not mutually exclusive, and future models will likely fuse both. For developers, more important than picking a side is mastering sound evaluation methodology: infer technical implementation from public clues like tokenizers, cut through marketing filters with self-built evaluation sets, and build a reliable engineering loop with structured output and programmatic verification. Only in this way can you make rational, robust technical decisions amid the rapid iteration of multimodal technology.
