Multimodal Model Analysis: Visual Primitives, Reference Gaps, and Token Budgets
This article examines an experimental open-source multimodal model to explain two common failure modes—the Perception Gap and the Reference Gap—and what its vocabulary reveals about design intent. It covers paired geometric special tokens, why reasoning chains tend to emit coordinate-based natural language instead, how placeholder tokens map to visual segments, and the trade-offs between explicit visual primitives and coordinate text. It closes with practical guidance on layered evaluation, output validation, visual budget planning, cloud architecture decoupling, and versioned regression testing.
1. Background: Two Gaps in Multimodal Models
Across the past two years of multimodal model development, engineering teams have repeatedly run into a counterintuitive pattern: a model handles general question answering and image-text summarization smoothly, but output quality drops off a cliff once the task involves dense counting, small-object localization, or complex spatial reasoning.
The industry usually attributes the first category to a Perception Gap: the vision encoder lacks sufficient resolution and images are over-compressed, so the model effectively “cannot see clearly.” The second category is grouped under a Reference Gap: the model still relies on natural language to describe objects in the image during reasoning, so references are ambiguous and boundaries are unclear, and the logic chain gradually breaks down over long-range inference.
After an experimental open-source multimodal model (a vision experiment branch of a larger model series) was released, community discussion converged on two questions. First, does it follow the “Visual Primitives” technical route? Second, its vocabulary does contain a batch of geometry-related special tokens, yet these tokens are almost never visible in actual reasoning chains. These two points offer a useful entry point into the current split in multimodal technical approaches.
2. Design Intent in the Vocabulary: Geometric Special Tokens
The public vocabulary file contains a set of consecutive special tokens that semantically correspond to opening and closing tags for polygons, points, bounding boxes, and reference relations. Structurally, they are designed as matched pairs:
<|/polygon|> <|polygon|><|/point|> <|point|><|/box|> <|box|><|/ref|> <|ref|>
This paired structure suggests the designers originally wanted geometric objects embedded in the language space as “addressable first-class citizens”: the opening tag declares the type, the interior carries the coordinate sequence, and the closing tag closes the scope. Compared with writing “that red cup in the top-left corner” in natural language, structured tags offer deterministic parsing, programmatic validation, and direct consumption by downstream modules.
In practice, however, the model’s chain of thought does not explicitly emit these tags. Instead, it produces a large amount of natural language description containing numeric coordinates. A reasonable inference is that during subsequent training stages, the explicit tags were “softened” into coordinate-based text. The reason is not mysterious: special tokens appear infrequently in the corpus and produce sparse gradient signals, whereas coordinate text connects naturally with massive image-text alignment data, converging faster and generalizing more stably. This also suggests an engineering rule: the presence of a capability in the vocabulary does not mean it will surface in that form at inference time. Evaluation must look at behavior, not configuration.
3. Placeholder System and Capacity Boundaries
The vocabulary also contains a batch of tokens shaped like place_holder_mm_span_xxxx, numbered in a continuous range. Given how multimodal input is organized, they most likely serve as placeholders for interleaved image-text content: reserving positions for visual segments in the concatenated sequence so that position encoding and attention masks on the text side align correctly.
There is a notable arithmetic tension here. The official documentation states a relatively high upper limit on the number of images, while the total number of placeholder IDs is clearly smaller; at the same time, the per-image visual token budget is typically capped in the hundreds. Taken together, the most likely explanation is that a single image can occupy multiple consecutive placeholders—that is, placeholders are the sharding unit for visual segments rather than a one-to-one mapping to images. The direct takeaway for developers: in interleaved image-text scenarios, calculate the visual budget yourself to avoid triggering truncation in requests with long documents and multiple concurrent images.
Total visual budget ≈ per-image token limit × number of imagesIf placeholders are allocated per shard, verify: total shards ≤ total placeholders
4. Trade-offs Between the Two Technical Routes
Route 1: explicit visual primitives. Points, boxes, and polygons are emitted as structured output. The advantages are parseability, verifiability, and easy integration into tool chains. The costs are complex training data construction and the risk of the model being “formally correct but drifting in coordinates.”
Route 2: coordinate-based natural language. Output is text, so the training and inference pipelines stay simple and existing corpora remain compatible. The cost is the lack of strong constraints, which makes referential ambiguity and inconsistent numeric values more likely.
The more robust engineering approach is to run both tracks in parallel: use coordinate text on the main path for fluency, while extracting coordinates with regex or structured parsing and handing them to rules or geometry modules for consistency checks and fallback correction.
5. Implementation Recommendations
- Layer the evaluation set. Separate perception tasks (counting, fine-grained recognition) from reference tasks (localization, spatial relations) and report them separately, so an aggregate score does not hide weaknesses.
- Make output verifiable. Apply boundary checks, out-of-range clipping, and duplicate box merging to keep plausible-looking hallucinations out of the business layer.
- Design input with the budget in mind. Compress resolution and crop redundant regions during preprocessing to control visual token consumption.
- Decouple the cloud architecture. Use object storage for images, a message queue to smooth traffic spikes, and a container platform to host inference services, with logging and monitoring/alerting to track down long-tail issues.
- Version and regress. After changing the model or prompting strategy, run a fixed regression set and check whether reference metrics degrade.
6. Conclusion
Geometric tokens in the vocabulary but coordinate text in behavior is not a defect—this mismatch between design intent and runtime behavior is a natural result of training objectives and data distribution acting together. What developers actually need to master is identifying the gap type, calculating the visual budget, and bringing model output into a verifiable engineering loop. To validate these ideas quickly in your own business, you can use the relevant general capabilities from Baidu AI Cloud to build evaluation and inference pipelines, understand the capability boundaries of experimental models, and then make a selection decision.
