Technical Highlights of an Open-Source Experimental Vision-Language Model

    This article analyzes an open-source experimental vision-language model that uses structured spatial primitives—polygons, points, and bounding boxes—to address the "referential gap" in multimodal reasoning. It explains the paired special-token design, why primitives rarely appear in visible output, and how to build reliable parsing, semantic validation, and fallback layers. It also outlines targeted evaluation sets for dense counting, occluded localization, and multi-turn reference, along with deployment considerations. Readers will learn how to assess and integrate this experimental approach into controlled production workflows.

    1. Background: From “Can’t See Clearly” to “Can’t Describe Precisely”

    In multimodal engineering, poor image recognition is often blamed on the model “not seeing clearly.” Yet after teams improve resolution, tiling strategies, and encoder capability, metrics frequently stall: dense counting misses objects, localization of occluded targets drifts, and multi-object relationship judgments become inconsistent. These symptoms indicate that the bottleneck has shifted from the visual input side to the language reasoning side.

    The industry calls the former the “perception gap”—the model cannot obtain enough visual detail. The latter is the “referential gap”—during chain-of-thought reasoning, the model can only describe targets repeatedly in natural language, such as “the small block second from the left, slightly above center.” The description itself carries ambiguity, and as reasoning steps increase, errors are amplified until logic collapses.

    An open-source experimental multimodal model continues the “visual primitives” approach. It is positioned as the first experimental multimodal version in a series, focusing on whether structured spatial representation can mitigate the referential gap without significantly increasing training cost. The core value of an experimental version lies in validating the approach, not in directly serving production traffic.

    2. Core Mechanism: Turning Spatial Relations into Computable Tokens

    The key idea is to abstract spatial objects in an image into three primitive types: polygons, points, and bounding boxes, and to assign paired start/end markers to them in the vocabulary. The publicly available marker table structure shows the following design (fields: ID, content, single token, left strip, right strip, normalized, special token):

    1. 129271 <|/polygon|> false false false false true
    2. 129272 <|polygon|> false false false false true
    3. 129273 <|/point|> false false false false true
    4. 129274 <|point|> false false false false true
    5. 129275 <|/box|> false false false false true
    6. 129276 <|box|> false false false false true
    7. 129277 <|/ref|> false false false false true
    8. 129278 <|ref|> false false false false true

    Three aspects of this design are noteworthy. First, start and end markers are strictly paired, giving model output naturally parseable boundaries for syntax validation and retry on the program side. Second, all markers are declared as special tokens and are not normalized, preventing text-cleaning pipelines from breaking the structure. Third, the additional reference markers indicate that primitives can describe not only “where” but also “which one is referred to,” which is the key to solving the referential gap.

    A typical structured output form is as follows. Coordinate semantics are defined by the specific implementation; this only illustrates the syntax:

    1. <polygon><|/polygon|> represents a closed region outline
    2. <point><|/point|> represents a center or key point
    3. <box><|/box|> represents a coarse-grained candidate range
    4. <ref><|/ref|> represents a back-reference to a previous primitive

    3. A Counterintuitive Observation: Primitives Rarely Appear Explicitly

    A common concern in practice is that in real calls, the model almost never explicitly emits the primitive markers above. This does not necessarily mean the approach has failed. There are three more common explanations.

    First, there is a mismatch between training and inference objectives. If the post-training stage mainly uses natural-language question-answering data, the model tends to answer in text, and primitives are used only in the internal representation layer. Second, there are decoding constraints and post-processing. Some implementations parse primitives into structured fields on the server side and then render them into natural language, so users see the rendered result. Third, the capability may be “absorbed.” When model scale and data volume are sufficient, spatial capability may manifest implicitly in attention patterns rather than as explicit markers.

    Therefore, when evaluating such models, one should not only check whether special markers appear in the output text, but whether structured task metrics improve.

    4. Engineering Implementation: Parsing, Validation, and Fallback

    To use structured spatial output reliably in production, it is recommended to build three layers of protection.

    The first layer is syntax parsing. Use a state machine rather than regular expressions, matching start/end markers token by token, and immediately declaring failure upon nesting or missing closure.

    1. PAIRS = {"polygon": ("<polygon>", "<|/polygon|>"),
    2. "point": ("<point>", "<|/point|>"),
    3. "box": ("<box>", "<|/box|>")}
    4. def parse_primitives(text):
    5. stack, result = [], []
    6. for tag in re.findall(r"<\|/?[a-z]+\|>", text):
    7. name = tag.strip("<|/|>")
    8. if tag.startswith("<|"):
    9. stack.append(name)
    10. else:
    11. if not stack or stack[-1] != name:
    12. raise ValueError(f"unbalanced tag: {tag}")
    13. stack.pop()
    14. result.append(name)
    15. if stack:
    16. raise ValueError("unclosed primitive")
    17. return result

    The second layer is semantic validation. Check whether coordinates fall within image boundaries, whether polygons self-intersect, whether the number of points meets task constraints, and whether bounding-box areas are abnormal.

    The third layer is a fallback strategy. When structured output parsing fails, fall back to standard visual question answering and log failed samples for subsequent data construction, rather than passing erroneous results directly to the business.

    5. Evaluation Recommendations: Test “Reference” Separately

    Standard image-text question-answering leaderboards can hardly reflect improvements in the referential gap. It is recommended to build three types of test sets: dense counting (same-class targets in the hundreds), occluded localization (targets partially occluded), and multi-turn back-reference (still requiring accurate pointing to the first target after the fifth turn). In addition to accuracy, add two metrics: “mean coordinate offset” and “multi-turn consistency,” which can expose problems earlier.

    On the deployment side, such models are sensitive to GPU memory and batching strategies. They can be combined with container platforms for elastic scaling, object storage can hold evaluation image sets, and logging services with monitoring alerts can track parsing failure rates and time-to-first-token, forming a closed loop.

    6. Conclusion

    The most noteworthy highlight of open-source experimental vision-language models is not a leaderboard score, but the engineering approach of elevating “spatial reference” to a first-class citizen: using paired special markers to carry polygons, points, and bounding boxes, and reference markers to resolve back-references, thereby replacing vague natural-language descriptions with verifiable structured intermediate representations. For development teams, the real benefits come from supporting capabilities—strict parsers, semantic validation, fallback pipelines, and targeted evaluation sets. In cloud environments such as Baidu AI Cloud, these components can be quickly assembled using general-purpose capabilities, enabling the experimental approach to transition smoothly into controlled production practices.