Technical Highlights of an Open-Source Experimental Multimodal Model

    This article examines how an open-source experimental multimodal model uses visual primitives to improve grounding in vision-language tasks. It explains the perception gap and reference gap behind fine-grained failures, shows how special tokens in the tokenizer reveal the design intent, and discusses why explicit primitive markers often disappear from chain-of-thought output in favor of inline coordinates. It also covers placeholder-based image segmentation, practical guidance for prompting and structured output validation, evaluation design, service packaging, and risk assessment for adopting experimental multimodal capabilities.

    1. Background: Why “Seeing Clearly” Does Not Equal “Answering Correctly”

    Recent practice with multimodal large models has repeatedly exposed a counterintuitive pattern: increasing resolution or swapping in a stronger visual encoder does not necessarily improve performance on fine-grained tasks. The reason is that there are two distinct gaps between information acquisition on the visual side and reasoning on the language side.

    The first is the perception gap. Once an image is compressed into a limited number of visual tokens, information about small objects, densely packed regions, and low-contrast areas is largely lost, so the model physically never receives enough detail.

    The second is the reference gap. Even when information reaches the context, the model can still only describe targets in natural language during chain-of-thought reasoning, for example “the third small square slightly below the upper-left corner.” Natural language is inherently ambiguous and context-dependent. As the number of targets grows or spatial relationships become more complex, references drift, and subsequent reasoning is built on the wrong anchors. This ultimately shows up as missed counts in dense counting, offset localization in complex scenes, and serial errors in multi-object attribute binding.

    An open-source experimental multimodal model has drawn attention for its “visual primitives” approach. Its essence is to address the second gap: giving the model a set of pointers that have a unique meaning in continuous visual space and can be referenced precisely, so that reasoning cites coordinates rather than descriptive text.

    2. Reverse-Engineering the Design from the Vocabulary: What the Special Tokens Reveal

    The fastest way to judge a multimodal model’s visual interaction design is to inspect the special tokens registered in its tokenizer vocabulary. This class of experimental models registers paired boundary markers for three kinds of geometric objects:

    • Polygons and their start/end markers, used to express arbitrary shape contours and approximate segmentation mask boundaries.
    • Points and their start/end markers, used to express centers, keypoints, and anchors.
    • Boxes and their start/end markers, used to express detection boxes and candidate regions.
    • References (ref) and their start/end markers, used to bind natural-language references to geometric objects.

    A schematic representation can be written as follows (illustrating syntax only, not a specific product interface):

    1. <|box|>[x1, y1, x2, y2]<|/box|>
    2. <|point|>[x, y]<|/point|>
    3. <|polygon|>[x1,y1, x2,y2, ...]<|/polygon|>
    4. <|ref|>"red cup"<|box|>[x1,y1,x2,y2]<|/box|><|/ref|>

    This design has three engineering benefits. First, geometric objects become first-class citizens that can be referenced repeatedly without re-describing them. Second, coordinates are continuous values, are not limited by vocabulary granularity, and can theoretically express arbitrary precision. Third, the boundary markers let a parser reliably extract structured results from generated text and feed them directly into downstream business systems.

    3. A Contradiction Worth Digging Into: Why Explicit Primitives Stay Hidden

    In actual use, an intriguing phenomenon appears: explicit primitive markers almost never show up in the model’s chain-of-thought output. Instead, the output contains natural language with coordinates embedded in it, such as “the object near (312, 208).”

    A more reasonable explanation is not that the feature is inactive, but that the representation shifted during the later training stages: the supervised signal and reinforcement stages favor expressions closer to the pretraining corpus distribution, so explicit special tokens are “folded” into equivalent coordinate text. This has two practical consequences:

    1. The capability is retained, but parseability drops. The model is still doing coordinate-based reference semantically, but downstream systems need extra regex or structured parsing to extract coordinates, which is less stable than strict protocol output.
    2. Prompt engineering matters more. If the business requires strictly machine-readable output, constraints must be applied at both the system-prompt and post-processing layers, with a fallback retry when parsing fails.

    The engineering recommendation is to design the “output protocol” as a separate module: define a schema, a validator, a repairer, and a failure fallback strategy, rather than assuming the model will naturally follow the format.

    1. import re
    2. POINT = re.compile(r"\(\s*(\d+)\s*,\s*(\d+)\s*\)")
    3. def extract_points(text):
    4. return [(int(a), int(b)) for a, b in POINT.findall(text)]
    5. def with_fallback(model_call, prompt, retries=2):
    6. for _ in range(retries + 1):
    7. out = model_call(prompt)
    8. pts = extract_points(out)
    9. if pts:
    10. return pts, out
    11. prompt += "\nPlease strictly return all target center points in (x, y) form."
    12. return [], out

    4. Image-Text Interleaving Placeholders: Design Clues Behind the Count Constraint

    The vocabulary also contains a batch of placeholders shaped like place_holder_mm_span_xxxx, with consecutive numbering and a count in the hundreds. Combined with the multi-image input scale claimed in the official documentation, their design semantics are likely not “one placeholder per image,” but rather one image split into several spans by content, with each span occupying one placeholder slot. This splitting is typically related to visual token budget allocation and high-resolution tiling strategies: information-dense images get more slots while simple images use fewer, achieving an adaptive detail budget within a fixed context length.

    The direct implication for users is that context cost in multi-image scenarios does not scale linearly with the number of images, but with the total visual token budget. For cost estimation and rate limiting, use “total image slot consumption” rather than “number of images” as the capacity metric, and build an observable usage view with logging services and monitoring alerts.

    5. Putting Visual Primitives to Work

    1. Task decomposition. Break complex visual question answering into four steps: localize, count, bind attributes, and summarize. Require coordinates before conclusions at every step to significantly reduce reference drift.
    2. Prompt constraints. Specify the coordinate system (absolute pixels or normalized), the origin position, and whether out-of-bounds values are allowed in the system prompt, so the model does not mix two coordinate systems.
    3. Structured output and validation. Validate coordinate ranges, deduplicate, and cluster points (for example, merge multiple points for the same target), and trigger one feedback-driven retry on anomalies.
    4. Evaluation set construction. Build a layered evaluation set covering dense counting, occluded localization, and multi-object attribute binding, and report localization error, counting accuracy, and attribute-binding accuracy separately, so a single aggregate score does not hide weaknesses.
    5. Service packaging. Package the model capability as a standalone inference service, with object storage in front for images, a message queue for peak shaving, and a container platform for elastic scaling, plus logging and monitoring for full-chain tracing.

    6. Selection and Risk Assessment

    For experimental multimodal capabilities, three forms of restraint are advisable. First, distinguish the “paper approach” from the “actual behavior of current weights,” and rely on empirical testing. Second, treat format stability, coordinate consistency, and long-context degradation as mandatory test items. Third, prepare deterministic fallback logic for parse failures, out-of-bounds coordinates, and empty results. If enterprise-side compliance and data-boundary requirements apply, a private deployment chain can be evaluated on top of the general model-serving and data-management capabilities of Baidu AI Cloud, using unified object storage, a container platform, and a monitoring and alerting system to carry the full training and inference workflow.

    Overall, the real contribution of the visual-primitives approach is turning “reference” from a fuzzy language problem into a computable spatial-reference problem. Engineering success depends on whether you can make this implicit protocol explicit, verifiable, and observable.