Open-Source Experimental Multimodal Model: Analyzing the Visual Primitives Approach

    The evaluation of multimodal models is shifting from basic image recognition to stable referencing, localization, and reasoning within complex visual spaces. To address the ambiguity of natural language in visual tasks, a recently open-sourced experimental multimodal model introduces a technical route centered on "visual primitives," encoding points, boxes, polygons, and references as special tokens. This article analyzes this approach from the perspectives of tokenizer configuration, actual output phenomena, image-text placeholder mechanisms, and practical engineering evaluation and deployment recommendations.

    The evaluation of multimodal model capabilities is shifting from “whether it can recognize image content” to “whether it can stably refer to, localize, and reason within complex visual spaces.” When a model faces dense counting, tiny object localization, chart relationship parsing, or multi-image comparison, relying solely on natural language descriptions often generates ambiguity: the same phrase “the small square on the left” might point to multiple objects, and “the second number in the third row” might become inaccurate due to perspective changes. To address this pain point, a recently open-sourced experimental multimodal model has introduced a technical route worth noting: a “visual primitives” approach that encodes points, boxes, polygons, and reference relations as special tokens, attempting to embed visual localization capabilities directly into the model’s reasoning process. This article analyzes this approach from the perspectives of tokenizer configuration, actual output phenomena, image-text placeholder mechanisms, and practical engineering evaluation and deployment recommendations.

    1. From Perception Gap to Reference Gap: What Visual Primitives Aim to Solve

    The first threshold for a multimodal model is “being able to see.” Image resolution, cropping strategies, visual encoder capacity, and context length all affect the model’s perception of details, commonly known as the perception gap. However, even if the model “sees clearly,” a second threshold may still emerge: when reasoning, it still uses natural language to describe the image, which inherently carries ambiguity. For example, “the red button in the bottom right corner” in a UI screenshot might correspond to multiple candidate regions; “two adjacent cylinders” in a dense scene is difficult to determine uniquely with text. This uncertainty between visual objects and language references can be called the reference gap.

    The concept of visual primitives is to introduce unambiguous pointers within the continuous visual space: using points to represent centers or key locations, boxes for rectangular regions, polygons for irregular contours, and reference tags to establish associations between objects and descriptions. This way, the model does not have to rely entirely on natural language “workarounds” but can directly carry geometric information within the reasoning chain. For developers, this means the model’s output is not just text but may also contain parsable coordinates and structured tags. For evaluation, localization accuracy, counting consistency, and format legality can be measured at a finer granularity.

    2. Special Tokens in the Tokenizer: Incorporating Geometric Primitives into the Vocabulary

    From the publicly available tokenizer configuration, this experimental model has added paired open and close tokens, such as <|polygon|> and <|/polygon|>, <|point|> and <|/point|>, <|box|> and <|/box|>, as well as <|ref|> and <|/ref|>. These tokens are set as special tokens and do not participate in the regular splitting of ordinary text. Their design intent is straightforward: polygons, points, boxes, and reference relations are difficult to express in a stable format in plain text, whereas special tokens provide the model with clear boundary signals, making geometric primitives learnable and parsable structural units within the sequence.

    This design can be understood through a simplified configuration snippet:

    1. {
    2. "special_tokens": [
    3. "<|polygon|>",
    4. "<|/polygon|>",
    5. "<|point|>",
    6. "<|/point|>",
    7. "<|box|>",
    8. "<|/box|>",
    9. "<|ref|>",
    10. "<|/ref|>"
    11. ]
    12. }

    The value of paired tags lies in structuring. An open tag indicates “a certain type of visual primitive follows,” while a close tag indicates “the primitive ends.” The content in between can carry coordinates, object IDs, or reference identifiers. Compared to letting the model freely generate natural language like “the coordinates are (12,34),” special tokens are more conducive to post-processing and constructing supervised signals during training. Furthermore, ref type tokens might be used to establish a reference relationship between an object and its text description, such as associating “Valve A in the image” with a specific box or polygon. For dense counting and complex localization tasks, this explicit association can reduce reference drift.

    It must be emphasized, however, that the presence of special tokens in the vocabulary only indicates that the model possesses the “interface” to express such structures; it does not automatically mean the model will explicitly use them in every inference. Whether these tokens appear, their frequency, and whether they consistently coordinate with coordinate values still depend on training data, alignment objectives, decoding strategies, and post-processing methods.

    3. The “Disappearance of Explicit Primitives” in Actual Output and Possible Explanations

    A noteworthy observation is that during actual interactions, the model’s displayed chain of thought does not always show explicit visual primitives like <|point|>[[a,b]]<|/point|>. Instead, many object descriptions directly include coordinates, or are expressed in a hybrid form of natural language and coordinates. This does not necessarily mean the visual primitives approach has failed; there could be several reasons.

    First, the training objective may have evolved from “explicit tagging” to “implicit coordinates.” In the early stages, structured supervision was constructed using special tokens. Later, to improve natural language fluency and generalization, the model might have been allowed to output coordinate descriptions directly, internalizing the primitive structure into its representations. Second, the inference interface might have rendered or cleaned the raw output, hiding or converting the special tokens at the display layer. Third, decoding constraints and prompt templates affect token occurrence rates; if the system prompt does not require using the primitive format, the model may lean towards natural language. Fourth, the capability boundaries and training ratios of an experimental model can lead to unstable token usage, especially in simple tasks where the model has no motivation to invoke heavy structures.

    The takeaway for developers is that when auditing multimodal models, you cannot just look at the chain of thought displayed in the UI. You should try to obtain the raw output, log parsing records, and separately track statistics on “whether special tokens appear,” “whether coordinates are parsable,” and “whether coordinates align with image regions.” Decreased interpretability is a risk this route must face: when explicit primitives are replaced by implicit coordinates, manual review difficulty increases, and format stability relies more heavily on evaluation constraints.

    4. Image-Text Placeholders (Spans): Sequence Alignment in Multi-Image Layouts

    Another configuration worth noting is the use of placeholders shaped like place_holder_mm_span_xxxx, with incrementing numbers. These are likely intended for image-text mixed layout scenarios: reserving positions in the text sequence to indicate where image features or image patch features will be injected. The purpose of placeholders is not “to be shown to the user,” but to help the model achieve alignment between text and visual content at the sequence level.

    A common misunderstanding here is that the number of placeholders does not necessarily equal the number of images. A single high-resolution image might be split into multiple regions, and a multi-image comparison text might generate multiple spans for each image. Different tasks, resolution strategies, and context budgets will all affect the span count. Therefore, seeing incrementing placeholder numbers does not simply imply “how many images are supported”; it should be judged comprehensively alongside cropping strategies, visual encoder output length, and the context window.

    In engineering, parsing these placeholders requires caution. It is recommended to implement an independent parsing layer responsible for identifying placeholders, mapping them to images or regions, checking for missing or duplicate items, and handling degradation during out-of-bounds scenarios. The pseudo-code is as follows:

    1. def parse_mm_spans(text, image_regions):
    2. spans = []
    3. for token in tokenize_placeholders(text):
    4. idx = int(token.suffix)
    5. if idx not in image_regions:
    6. raise ValueError("span out of bounds or missing mapping")
    7. spans.append((idx, image_regions[idx]))
    8. return spans

    If the mapping between placeholders and image regions is incorrect, the model might “look at the wrong place” yet still generate fluent text. Such issues are more insidious than explicit errors. Therefore, logs should retain the placeholder sequence, image cropping information, and final output coordinates for traceability.

    5. Key Highlights of This Approach

    Overall, the open-source value of this experimental model is reflected in four main points. First, incorporating visual primitives into the special token system provides a unified structured expression for points, boxes, polygons, and reference relations, facilitating training and parsing. Second, it attempts to alleviate the reference gap using coordinate-based outputs, enabling finer-grained supervision possibilities for dense counting, complex localization, and multi-image comparison tasks. Third, the image-text placeholder span mechanism provides a sequence alignment method for multi-image layouts and region-level visual injection, aiding the engineering side in building auditable input-output pipelines. Fourth, the experimental open-source nature itself lowers the barrier for reproduction and evaluation, allowing developers to validate questions like “do explicit primitives improve localization consistency” and “are implicit coordinates stable enough” on a unified task matrix.

    At the same time, boundaries must be recognized: the existence of special tokens does not equate to guaranteed model usage; the disappearance of explicit primitives might decrease interpretability; trade-offs exist between span budgets and multi-image inputs; and the stability of experimental models in complex scenarios still requires empirical testing. One cannot equate vocabulary design directly with product capability, nor substitute systematic evaluation with a single demo.

    6. Evaluation and Deployment Recommendations

    To evaluate this route in actual business scenarios, it is recommended to construct a task matrix: dense counting, UI element localization, chart value reading, multi-image difference comparison, reference resolution, and OCR post-processing. For metrics, in addition to standard accuracy, localization IoU, counting Mean Absolute Error (MAE), coordinate parsing success rate, special token legality rate, format retry rate, and latency should be included. Methodologically, fix decoding parameters and separately test two prompt templates: “requiring explicit primitives” and “natural language coordinates.” Retain raw outputs rather than just viewing rendered results; conduct stress tests on span counts to observe degradation points under multi-image and high-resolution cropping.

    At the deployment level, resources can be planned according to categories such as object storage, container platforms, and logging/monitoring in a general cloud environment. Focus on caching visual encoding results, limiting image size per request, validating the legality of output coordinates, and desensitizing sensitive image logs. For scenarios requiring high interpretability, prioritize structured outputs and establish parsing failure alerts. For scenarios prioritizing throughput, implicit coordinates are acceptable, but spot checks and regression sets must be maintained.

    Overall, the visual primitives route provides a research-worthy direction for multimodal models: partially decoupling “accurate referencing” from the ambiguous descriptions of natural language and transforming it into learnable, parsable geometric structures. Whether it becomes mainstream depends on the balance between training stability, output controllability, and engineering costs. For developers, the most valuable approach is not chasing an experimental label, but understanding the underlying reference gap problem and using reproducible evaluation methods to determine if this route is genuinely effective for their specific tasks.