Visual Primitives and Placeholder Design in Experimental Multimodal Models

    This article explains the design of visual primitives and placeholder tokens in an experimental multimodal model. It covers why natural language struggles with precise object reference, how point, box, polygon, and reference tokens provide structured pointers, why explicit tokens may not always appear in model output, and how numbered placeholders manage interleaved images. It closes with practical guidance for developers on evaluation, prompt design, output parsing, data consistency, and context cost.

    1. Background: Seeing Is Not the Same as Pointing

    Multimodal large models are often described as being able to “describe what they see.” In tasks such as dense counting, locating objects in complex scenes, and understanding interleaved image-text content, the real bottleneck is usually not insufficient image resolution, nor a visual encoder that cannot see at all. The bottleneck is that models still tend to describe images in natural language during reasoning. Natural language is good at expressing meaning, but it is poor at unambiguous reference within a continuous visual space. Descriptions such as “the second small object on the left” or “the red area slightly to the right of the top” can cause serious referential ambiguity when objects are dense, heavily occluded, or numerous within the same category. Related research calls this the “referential gap.” The model has acquired some visual perception, but its reasoning chain lacks a stable, parseable, and aligned pointer that states which object it means.

    Visual primitives are a structured solution to this problem. Rather than requiring the model to describe objects in long sentences, they introduce pointers in discrete or continuous space, such as points, boxes, polygons, and reference tags. These convert vague natural language references into verifiable structured symbols. For developers, understanding this design is more useful than focusing only on parameter count, because it directly affects prompt design, output parsing, evaluation methods, and post-processing pipelines.

    2. Core Idea: Replacing Vague Descriptions with Structured Pointers

    A visual primitive is an unambiguous pointer that identifies an object precisely in visual space. Common forms include:

    • Points: represent object centers, key points, or local regions;
    • Boxes: represent rectangular regions, suited to detection-style localization;
    • Polygons: represent irregular contours or complex regions;
    • Reference tags: link entities in the text to visual regions.

    In a reasoning chain, visual primitives help in three ways. First, they reduce ambiguity in natural language, so a phrase like “this object” can resolve to specific coordinates or a region. Second, they are easy to parse and verify. Post-processing code can extract coordinates, check whether they fall outside the image, and replay results visually. Third, they support training data alignment. Points, boxes, and polygons in annotations can be converted into a unified structured sequence, which reduces noise caused by differences in annotation style.

    From the tokenizer’s perspective, paired boundary tokens are central to putting visual primitives into practice. Public configurations contain special symbols such as <|polygon|>, <|/polygon|>, <|point|>, <|/point|>, <|box|>, <|/box|>, <|ref|>, and <|/ref|>. They usually appear in pairs, marking the start and end of each primitive. Special tokens are not split into ordinary subword pieces, so their boundaries stay clear and a parser can identify them reliably. The paired structure also supports nesting and validation, and it keeps coordinate text from being confused with natural language.

    An illustrative configuration looks like this:

    1. special_tokens = [
    2. "<|polygon|>", "<|/polygon|>",
    3. "<|point|>", "<|/point|>",
    4. "<|box|>", "<|/box|>",
    5. "<|ref|>", "<|/ref|>",
    6. ]

    In an actual sequence, the pattern can be abstracted as:

    1. <|ref|>Object A<|/ref|> is located at <|box|>(x1,y1,x2,y2)<|/box|>
    2. Key point <|point|>(x,y)<|/point|>

    These special tokens differ from ordinary parentheses in text. They are registered as independent symbols in the vocabulary, so both the model and the parser can treat them as structural markers rather than part of the natural language.

    3. From Vocabulary to Reasoning: Why Explicit Primitives Do Not Always Appear

    An engineering detail deserves attention. Although the tokenizer configuration includes visual primitive tokens, the reasoning chain or output text shown in practice does not always contain explicit <|point|>...<|/point|> structures. This does not necessarily mean the design has failed. Several causes are possible.

    First, training and display may differ. The model may have learned explicit primitive formats during training, but after later instruction tuning it may prefer natural language with embedded coordinates. For example, it might write “The object in the upper left is located near (0.12, 0.34).” In this case, the explicit primitive has effectively been internalized as a coordinate description, and the structural markers are weakened at the display layer.

    Second, the inference service may post-process the output. For readability, safety filtering, or format normalization, the display layer may remove special tokens and keep only coordinates and natural language. The “reasoning” that developers see is therefore not necessarily the model’s complete internal representation.

    Third, the model may use a mixed strategy. Simple tasks may be answered directly in natural language, while complex localization tasks trigger structured primitives. Whether explicit primitives appear depends on the prompt, the task type, and the sampling strategy.

    For these reasons, checking whether a multimodal model really uses visual primitives should not rely only on whether special tokens appear in the displayed text. Evaluation should also consider whether the output can be parsed, how accurate the coordinates are, how stable dense counting is, and whether visual replays match the output.

    4. Coordinate Output: An Engineering View of Implicit Primitives

    When explicit special tokens do not always appear but the output often contains coordinates, “natural language plus coordinates” can be treated as an implicit visual primitive. For example:

    1. The image contains three objects: Object A is at (0.21, 0.35), Object B is at (0.54, 0.62), and Object C is at (0.78, 0.41).

    This form has no paired boundary tokens, but it still provides parseable spatial pointers. In an engineering system, a regular expression or a lightweight parser can extract the coordinates, map them back to the original image coordinate space, and then support highlighting, cropping, review, and follow-up reasoning. The key is to agree on several conventions in advance: the coordinate normalization method, the coordinate origin, whether bounding boxes include width and height, and floating-point precision.

    Implicit primitives are natural, easy to read, and convenient to prompt. Their drawback is that the format drifts easily. The model may mix percentages, pixel values, relative coordinates, or different bracket styles. Production systems should constrain the format through output schemas, few-shot examples, and post-processing validation. For example, the system can require JSON or a fixed markup structure and then parse it strictly on the server.

    5. Interleaved Image-Text Placeholders: Context Management for Multiple Images and Regions

    Besides visual primitives, the tokenizer may also include numbered placeholders, such as symbols like place_holder_mm_span_xxxx. These usually mark where visual segments are inserted into the text sequence during interleaved image-text input. A single text position may correspond to a full image, a region within an image, a cropped block, or one segment among several images.

    The engineering purpose of placeholders is to align continuous visual features with discrete text tokens. The model needs to know where visual information should be injected, and it also needs to tell multiple visual segments apart. Numbered placeholders can support multiple images, multiple regions, and interleaved layouts. However, the placeholder limit does not necessarily equal the image limit. One image may be split into several spans, and several text positions may reference the same visual segment. The number that can actually be used is also limited by context length, positional encoding, attention cost, and the inference framework.

    An illustrative text structure looks like this:

    1. The top-left region of the first image is {mm_span_0001}, and the bottom-right region is {mm_span_0002}.
    2. The second image as a whole is {mm_span_0003}.
    3. Compare the differences between {mm_span_0001} and {mm_span_0003}.

    Developers should check whether the order of placeholders matches the order in which visual features are injected, whether placeholder numbers can be reused, whether placeholders remain valid across conversation turns, and whether placeholders become misaligned in long contexts.

    6. Practical Guidance for Developers

    First, evaluation should cover the referential gap. In addition to standard image-text question answering, test dense counting, localization among objects of the same type, references to occluded regions, multi-image comparison, and interleaved image-text references. Metrics should not rely only on answer text similarity. They should also include coordinate hit rate, region IoU, parse success rate, and the cost of manual review.

    Second, prompt design should encourage structured output. A prompt can ask the model to list the objects first and then give their coordinates, or it can require fixed fields. For models that support explicit special tokens, few-shot examples can show how to use paired boundary tokens. For models that do not output explicit tokens, define a coordinate format and apply post-processing.

    Third, the deployment pipeline should include parsing and validation. Implement coordinate normalization, bounds checking, special token escaping, placeholder mapping, and visual replay. For high-risk use cases, keep a manual review step so that output that looks precise but is actually misaligned does not go unnoticed.

    Fourth, training and fine-tuning data should use a consistent format. If you want the model to produce visual primitives reliably, use paired tokens or one coordinate format throughout the supervised data, and avoid mixing several representations for the same task. Otherwise, the model tends to waver between natural language, coordinates, and special tokens.

    Fifth, watch context cost. Multi-image and multi-region placeholders substantially increase sequence length and attention overhead. Real systems should filter images, crop regions, control resolution, and reuse caches instead of injecting every visual segment at once.

    7. Risks and Limits

    Visual primitives are not a universal solution. Special tokens may leak into natural language output. Coordinates may drift when normalization is inconsistent. Placeholders may mismatch their visual features. Display-layer filtering may also lead developers to misread the model’s internal representation. Engineers should treat visual primitives as parseable intermediate representations, not as absolute ground truth. Only visual replay, parse validation, and task-level evaluation together can show whether they actually improve referential accuracy.

    Overall, experimental multimodal models that add points, boxes, polygons, reference tags, and image-text placeholders to their vocabularies point to an important trend. Competition in multimodal capability is shifting from whether a model can recognize content to whether it can refer to objects precisely, produce verifiable output, and be deployed reliably. For developers, understanding the design logic behind these special tokens and placeholders will be more useful over the long term than tracking any single release.