Technical Highlights of an Open-Source Experimental Multimodal Model

    This article analyzes the technical highlights of an open-source experimental multimodal model that uses a "visual primitives" approach to address the perception gap and reference gap behind weak performance on dense counting, small-object localization, and occlusion. It covers special tokens for points, boxes, polygons, and references, the implicit use of primitives in inference output, the placeholder-based splitting mechanism for interleaved image-text inputs, and practical guidance on prompting, coordinate normalization, layered evaluation, and cost control.

    1. Background: Why Multimodal Models Still “Misread” and “Misstate”

    Over the past year, the capability boundaries of multimodal large models have been pushed steadily higher. Yet on tasks such as dense counting, small-object localization, and complex occlusion, their performance still lags well behind human intuition. The industry has gradually converged on a shared view: these failures are not caused simply by “insufficient image resolution,” but by two layers of problems stacking on top of each other.

    The first layer is the Perception Gap. When a model encodes an image into visual tokens, it loses a great deal of fine-grained information, especially the boundaries of small objects and of adjacent objects. The second layer is the Reference Gap. Even when the model “sees” a target, it can still only describe the target’s position in natural language during subsequent reasoning, for example “the third small square in the upper-left corner.” Such expressions are inherently ambiguous, and once the number of targets grows, the reference chain breaks down quickly.

    An open-source experimental multimodal model (the first experimental multimodal version in a large model series) chose the “visual primitives” technical route to mitigate both layers at once, and this is also its most noteworthy highlight.

    2. Highlight One: Turning “Position” into a Native Vocabulary of the Model

    The publicly available configuration files show that the model’s vocabulary adds a group of special tokens that appear in pairs, used to wrap polygons, points, bounding boxes, and reference markers. They are marked as indivisible, independent symbols that do not participate in normalization, which indicates that the design treats them as “structural symbols” rather than ordinary text.

    Illustration (structure only, not a real interface):

    1. <point> [x, y] </point>
    2. <polygon> [[x1,y1],[x2,y2], ...] </polygon>
    3. <box> [x1, y1, x2, y2] </box>
    4. <ref> target identifier </ref>

    The engineering value of this approach lies in three points:

    1. Unambiguous pointers. Coordinates are wrapped in a fixed structure, so the model no longer needs to “go around” with language to describe a position; the reference chain moves from natural language space into visual space.
    2. Parseable and verifiable. Downstream programs can use a deterministic parser to extract coordinates and re-project them for visualization, which makes automated evaluation and error attribution easier.
    3. Cleaner training signal. Structural symbols and ordinary text are distinguished in loss computation, reducing the interference of format noise with language modeling.

    3. Highlight Two: Explicit Primitives Become Implicit at Inference Time

    A rather intriguing phenomenon is that explicit wrapped special tokens are almost never seen in actual dialogue and chain-of-thought output; instead, there are large amounts of coordinate numbers written out directly.

    A reasonable explanation is that behavioral convergence occurred in the later stage of training: during supervised fine-tuning and preference alignment, the model learned to “treat primitives as internal scaffolding” and to output only human-readable coordinate descriptions externally. This has two consequences.

    • Benefit: the output is more natural and more compatible, and ordinary prompts and post-processing pipelines need no modification.
    • Cost: parseability drops, and evaluation scripts must handle both “bare coordinates” and “wrapped coordinates.”

    So the engineering recommendation is to add a layer of fault-tolerant parsing:

    1. import re
    2. PAIR = re.compile(r"<(?P<tag>point|box|polygon)>\s*(?P<body>\[.*?\])\s*</(?P=tag)>", re.S)
    3. BARE = re.compile(r"\[?\s*(-?\d+(?:\.\d+)?)\s*,\s*(-?\d+(?:\.\d+)?)\s*\]?")
    4. def extract_points(text):
    5. pts = []
    6. for m in PAIR.finditer(text):
    7. if m.group("tag") == "point":
    8. pts.append(tuple(map(float, BARE.search(m.group("body")).groups())))
    9. if not pts:
    10. pts = [tuple(map(float, m.groups())) for m in BARE.finditer(text)]
    11. return pts

    4. Highlight Three: Placeholder-Based Splitting for Interleaved Image and Text

    The vocabulary also contains a batch of special tokens shaped like “placeholder + sequence number,” with sequence numbers increasing from 0001 up to several hundred. Their role is to mark the insertion positions of visual segments in interleaved image-text input, so that the same piece of text can carry multiple segments of visual content without breaking the token boundaries of the text itself.

    It is worth noting that the multi-image limit claimed in the official documentation is not equivalent to the number of placeholders. An explanation closer to the implementation is that placeholders are counted by “visual segment (span)” rather than by “number of images”: one image may be split into multiple segments during preprocessing (for example, chunked by resolution or cropped by region), so the total number of segments can be significantly larger than the number of images.

    From this we can derive a practical rule: when troubleshooting multi-image tasks, first check whether the segment budget has been exhausted, rather than suspecting that the number of images exceeds the limit. Common adjustable items include lowering single-image resolution, reducing the number of chunks, and merging redundant images.

    5. Implementation Advice: How to Use This Kind of Model Well

    1. Explicitly constrain the output format in the prompt. Requiring the model to give coordinates in a fixed structure can significantly improve the parseability rate.
    2. Make sure coordinate normalization is aligned. Different implementations may use pixel coordinates or per-mille coordinates, and mixing them causes systematic offsets; it is recommended to unify to the 0–1 range.
    3. Split evaluation into two layers. The perception layer looks at localization error (such as center-point distance and intersection over union), while the reasoning layer looks at whether counting and relation judgments depend on correct localization.
    4. Feed failure samples back. Turn outputs that fail to parse into a regression set and monitor format drift.
    5. Handle cost control with general-purpose capabilities. Batch inference can rely on elastic scaling on a container platform, input data can be placed in object storage, and tracing and metrics observability can be delegated to logging services and monitoring alerts, avoiding coupling business logic to a single inference endpoint.

    6. Conclusion

    The key breakthrough of this kind of experimental multimodal model does not lie in a larger visual encoder, but in elevating “position” to a first-class citizen of the model and using training to internalize explicit primitives into natural coordinate expressions. For developers, the real payoff is an engineering loop that is parseable, evaluable, and regression-testable; meanwhile, the two details of placeholders and segment budgets, and coordinate normalization, are often the dividing line between success and failure in multi-image tasks.