Visual Primitives in Multimodal Models: From Explicit Markers to Coordinate-Based Reasoning

    This article examines how visual primitives work in multimodal large models and why explicit special tokens often disappear from chain-of-thought outputs. It explains the perception gap versus the reference gap, the formal structure of point, polygon, box, and reference primitives, and how training pressure pushes models toward natural-language coordinates. It also clarifies the difference between image placeholder reservations and runtime consumption, offers a troubleshooting checklist, and gives engineering recommendations for structured decoding, coordinate normalization, and evaluation.

    1. The Starting Problem: What Comes After a Multimodal Model “Cannot See Clearly”

    The evolution of multimodal large models has long pursued a simple goal: turning image content into symbols that can be reasoned over. Early approaches mostly relied on continuous visual encoders to produce feature vectors, which a language model then aligned to a text space. As image resolution and task complexity increased, the field gradually realized that recognition errors do not always come from “insufficient pixel information.” More often, they come from how the model uses natural language to refer to objects in an image during reasoning.

    The source material notes that an open-source experimental multimodal model continues the “visual primitive” technical route. Its tokenizer configuration adds a group of special markers used to wrap polygons, points, bounding boxes, and reference spans. These markers are registered as special symbols in the vocabulary: they do not participate in normal subword splitting, and they are excluded from normalization and case folding. The design intent is clear: to provide unambiguous pointers to objects in visual space.

    1.1 Separating the Perception Gap from the Reference Gap

    The field commonly splits multimodal failures into two layers. The first is the perception gap: the model has not obtained enough visual detail, such as small objects, densely packed arrangements, or objects with similar textures. The second is the reference gap: the model does see the content, but in chain-of-thought reasoning it can only use vague expressions like “the cup on the left” or “the red object near the edge.” Once the number of objects grows or spatial relations become complex, the reference starts to drift.

    Reference drift leads to logical collapse. In counting tasks, the model counts the same target repeatedly. In localization tasks, coordinates shift step by step along the reasoning chain. In comparison tasks, the subject and the reference object get swapped. Visual primitives were proposed precisely to give the reasoning chain a stable anchor.

    1.2 A Formal View of Visual Primitives

    A visual primitive can be understood as three kinds of geometric containers plus one reference container:

    1. <point>[[x, y]]</point> # single-point localization, suitable for keypoints and centers
    2. <polygon>[[x1,y1], ...]</polygon> # polygon outline, suitable for irregular regions
    3. <box>[[x1,y1,x2,y2]]</box> # axis-aligned rectangle, suitable for detection boxes
    4. <ref> ... </ref> # reference span, used to refer back to an established visual entity

    The value is that it turns “describing an image” into “writing pointers into an image.” The language model no longer has to generate vague modifiers; it directly outputs parseable coordinate structures, and post-processing maps them back to pixel regions.

    2. An Anomaly in Practice: Explicit Primitives Do Not Appear in the Chain of Thought

    The source observation points out a key contradiction: in actual reasoning output, the special markers above are almost invisible in the chain of thought. Instead, there are large amounts of natural-language descriptions carrying numeric coordinates. This is not the model “losing an ability”; it is more likely the result of how the training strategy evolved.

    2.1 Convergence from Special Markers to Coordinate Expressions

    In multi-stage training, if the supervision data is mainly human-readable reasoning text, the model spontaneously rewrites structured markers into numbers wrapped in natural language. There are three reasons:

    • Corpus distribution pressure: in pretraining and instruction-tuning corpora, coordinate descriptions far outnumber custom markers, so the model favors high-frequency expressions.
    • Decoding stability: if special markers are treated as ordinary text under certain decoding configurations, half-closed structures easily appear, and the training side suppresses their occurrence.
    • Generalization needs: coordinate expressions can be reused across resolutions, while markers depend on strict alignment between the vocabulary and the post-processing pipeline.

    So explicit primitives look more like scaffolding from the early stage of training, later absorbed by implicit coordinate reasoning.

    2.2 How to Verify Whether Primitives Are Still in Effect

    A minimal verification flow can determine whether the model still has structured output capability:

    1. # Illustration: constrained decoding that forces the model to emit structured primitives in localization tasks
    2. schema = {
    3. "type": "object",
    4. "properties": {
    5. "target": {"type": "string"},
    6. "primitive": {"enum": ["point", "box", "polygon"]},
    7. "coords": {"type": "array", "items": {"type": "array", "items": {"type": "number"}}}
    8. },
    9. "required": ["target", "primitive", "coords"]
    10. }
    11. # If coordinates stay stable under constrained decoding with no marker leakage,
    12. # the capability is retained in the coordinate channel

    If coordinate accuracy under constrained decoding is significantly better than under free generation, the bottleneck lies in the form of expression rather than in perception.

    3. The Mismatch Between Image-Text Placeholders and Chunking Configuration

    The source material also mentions a set of placeholder markers shaped like place_holder_mm_span_0001 through 0442, used to anchor where visual segments are inserted in mixed image-text layouts. Observers tried to explain the count limit with “at most six hundred images” or “at most three hundred eighty-four visual markers per image,” but neither closes the account. Three independent dimensions need to be separated here.

    3.1 Do Not Confuse the Three Dimensions

    • Image count limit: the number of images a single request can carry; this is a session-level configuration.
    • Per-image visual marker limit: determined by the image chunking strategy, for example splitting a high-resolution image into sub-blocks that each produce a fixed number of markers.
    • Total placeholder count: the number of placeholder symbols reserved in the vocabulary. This is engineering redundancy and has no necessary relation to actual runtime consumption.

    The reserved vocabulary amount is usually set as “maximum blocks per image multiplied by the number of concurrent interleaved image-text segments,” plus headroom. That is why reserving four hundred or so is not surprising; it does not mean runtime will ever use them all.

    3.2 A Troubleshooting Checklist

    When the placeholder count does not match the documentation, check in this order:

    1. Confirm the image preprocessing resolution and chunking granularity, then compute the number of visual units produced per image.
    2. Confirm whether the relative position of each text segment and image in the interleaved template introduces extra placeholders.
    3. Confirm whether the vocabulary is shared across tasks; detection, segmentation, and document understanding may each reserve their own range.
    4. Use a minimal request for binary-search isolation, gradually increasing image count and resolution while watching the error threshold.

    4. Engineering Recommendations

    To borrow the visual primitive idea in your own system, follow three principles. First, keep the output layer structured-first: force constrained decoding for localization tasks to avoid free-text drift. Second, fix the coordinate normalization strategy: state clearly whether coordinates are relative to side length or absolute pixels, and declare it in the prompt. Third, make the evaluation set cover three hard scenarios: dense counting, occluded localization, and cross-image reference. Track the reference error rate separately instead of looking only at overall accuracy.

    On the deployment side, you can combine object storage for raw images, a message queue to smooth out batch inference peaks, a container platform to host inference services, and logging plus monitoring with alerts to track the coordinate parsing failure rate, forming a closed loop. This way, even if the model uses coordinate expressions implicitly, the engineering pipeline can still parse and trace them reliably.

    5. Summary

    The essence of a visual primitive is a stable pointer for multimodal reasoning. The retreat of explicit markers in actual output does not mean the route has failed; it means the capability has migrated to coordinate-based expression. Understanding the difference between reserved placeholder capacity and runtime consumption eliminates a great deal of ineffective troubleshooting. For developers, getting structured constraints, coordinate conventions, and hard-scenario evaluation solid is more valuable than chasing any specific marker format.