Multimodal Model Visual Primitives: Solving the Reference Gap in Vision-Language Reasoning
Abstract: Multimodal large models often perform well on general image captioning yet degrade sharply on dense counting, small-object localization, occlusion reasoning, and chart reading. This article argues that the bottleneck is shifting from perception to reference: how a model points to objects during chain-of-thought. It distinguishes the Perception Gap from the Reference Gap, explains the core properties of visual primitives as unambiguous pointers in continuous visual space, and outlines engineering practices for configuration, structured output, cloud integration, evaluation design, and common pitfalls. The goal is to help teams locate the real constraint before investing in more resolution or larger models.
1. The Starting Point: The Bottleneck Is Shifting From Seeing to Pointing Accurately
As multimodal large models move into production, teams repeatedly observe a counterintuitive pattern. The model handles general image description and scene summarization fluently, but output quality drops sharply on tasks that require precise spatial relationships: dense counting, small-object localization, reasoning about complex occlusion, and reading values from charts.
These failures are often attributed to insufficient resolution or an undersized model. The more fundamental cause, however, lies in how the model represents information internally.
A shared view is emerging across the industry: once the visual encoder has extracted image features thoroughly enough, the factor limiting upper-level reasoning is no longer whether pixel information enters the model, but how the model refers to objects in the image during chain-of-thought. If the referring mechanism itself is ambiguous, every subsequent reasoning step is built on a wrong anchor.
2. Two Gaps: Separating the Perception Gap From the Reference Gap
2.1 Perception Gap
The Perception Gap is the information loss that occurs before visual input reaches the language model, caused by sampling, compression, tiling, and resolution normalization. Common engineering mitigations include raising input resolution, adopting dynamic tiling, and adding a high-resolution visual branch. These optimizations address one question: did the information get in?
2.2 Reference Gap
The Reference Gap is a deeper problem. Even when information enters the model intact, if the model can only describe a target in natural language, for example “the cup slightly above and to the right of the frame,” that phrase does not map to a unique coordinate in continuous visual space. Natural language is inherently suited to fuzzy semantics, whereas localization and counting require deterministic reference. As targets grow in number, look similar, and sit close together, language-based description degrades quickly into referential drift, duplicate counting, and mismatched identities.
A schematic comparison illustrates the difference:
Natural-language reference: "the third person from the left in the second row wearing dark clothes" -> depends on ordinal, position, and attribute constraints; failure at any one breaks itVisual primitive reference: P(0.412, 0.736, w, h) -> a unique pointer in continuous space, directly usable in computation
2.3 Why the Referring Mechanism Sets the Reasoning Ceiling
The reliability of chain-of-thought depends on whether each intermediate conclusion can be reused stably. If an intermediate conclusion is a piece of natural language, re-parsing it in the next step accumulates ambiguity. If it is an addressable structured pointer, it can be read, compared, sorted, and used in arithmetic repeatedly. This is the value of upgrading from descriptive thinking to pointer-based thinking.
3. The Core Idea of Visual Primitives
A visual primitive can be understood as an unambiguous pointer that the model generates in continuous visual space. It has three key properties:
- Uniqueness: each primitive corresponds to exactly one spatial region and does not rely on linguistic modifiers.
- Composability: primitives can participate in operations such as counting, sorting, comparison, and path association.
- Traceability: a primitive can be mapped back to original image coordinates, which supports verification and human review.
With this shift, the model’s process changes from describing an image to operating on it. In dense counting, the model no longer relies on vague quantifiers such as “many” or “several”; it enumerates primitives and takes the cardinality. In complex localization, it outputs a primitive directly instead of a directional phrase. In multi-hop question answering, primitives pass between steps as intermediate variables, substantially reducing error accumulation.
4. Engineering Practice: From Toolchain Configuration to Invocation Patterns
4.1 Neutral Guidance on Environment Setup and Configuration
Around configuration for intelligent coding tools or an official command-line client, the most common friction point in practice is not model capability but inconsistent configuration entry points. Three team-level conventions help:
- Version first: run dependency updates before using any client, so that a lagging version does not fail to recognize a new model identifier.
- Single source of configuration: keep the model identifier, context length, and vision toggle in one unified configuration file, and avoid hard-coding them in multiple places.
- Explicit startup parameters: select an interactive or scripted entry point through an explicit run-mode parameter so that automated pipelines stay reproducible.
A schematic configuration structure follows (field names are generic examples, not a specific product interface):
{"model": "<vision-capable-model-id>","profile": "web","multimodal": {"enabled": true,"max_image_side": 1536,"tiling": "dynamic"}}
4.2 Prompting and Structured Output on the Invocation Side
For visual primitives to take effect, the invocation side must constrain the output structure so the model does not fall back to natural-language description:
Task: localize and count all targets of the same class in the image.Requirements:1) Output one primitive pointer p_i = [x, y, w, h] per target, with coordinates normalized to 0~1;2) Do not output directional or ordinal words;3) Finally output count = len(p_i) and provide a confidence score.
4.3 Combining With General Cloud Capabilities
At scale, visual primitives are rarely an isolated capability and typically work alongside general cloud product categories: object storage holds original images and tiles; a message queue smooths bursts for batch inference; a container platform hosts inference services and elastic scaling; logging and monitoring with alerting track metrics such as referential failure rate and out-of-bounds coordinate rate. This combination relies on no proprietary interface, so migration cost stays manageable.
5. Evaluation Design: Proving That Primitives Actually Help
Evaluation must separate language ability from referring ability. A three-layer metric set is recommended:
- Pointer layer: coordinate error, duplicate rate, miss rate, out-of-bounds rate.
- Operation layer: counting accuracy, sorting accuracy, comparison accuracy.
- End-to-end layer: task success rate and human review cost.
The key principle is a controlled experiment: keep the same model and the same image input, switch only between the natural-language referring paradigm and the primitive referring paradigm, and observe the metric delta. A significant delta indicates the bottleneck is indeed in the referring stage. A weak delta suggests investigating the perception layer first, specifically resolution and tiling strategy.
6. Common Pitfalls and Practical Recommendations
- Pitfall 1: attributing every localization failure to resolution. Run the referring-paradigm controlled experiment before deciding where to invest.
- Pitfall 2: asking the model to output description and coordinates at the same time. Mixed output reintroduces ambiguity; staged execution is recommended.
- Pitfall 3: ignoring coordinate normalization and post-validation. Without out-of-bounds and deduplication checks, downstream statistics amplify the error.
- Pitfall 4: running batch evaluation before configuration is unified. Version and configuration drift make conclusions irreproducible.
The recommended path is to first fix configuration and versions, then establish a pointer-layer metric baseline, then introduce the primitive paradigm for comparison, and only afterward extend to end-to-end business metrics. Following this order lets teams separate bottleneck attribution clearly without adding compute, and place optimization effort where it actually constrains results.
