Visual Primitives in Multimodal Models: Structured Intermediate Representations for Visual Understanding
This article examines the emerging visual-primitive approach in experimental multimodal models, where visual content is represented through structured symbols such as points, boxes, polygons, and references rather than only continuous visual features. It explains the design motivation, tokenizer-level special markers, why these primitives are rarely exposed in ordinary outputs, engineering value, implementation pipeline, evaluation dimensions, cloud integration patterns, and key risks.
Visual Primitives in Multimodal Models: Structured Intermediate Representations for Visual Understanding
Recently, an experimental multimodal model has entered the developer community as an open-source project, triggering a new round of discussion about multimodal modeling approaches. Unlike the common “image encoder + text generator” stitching pattern of the past, this type of model begins to decompose visual content into more basic “visual primitives,” such as points, boxes, polygons, and reference relationships. This article does not focus on a specific product. Instead, it analyzes the design motivation, potential advantages, engineering implementation challenges, and the reasons why these primitives are often not explicitly visible in practical use from a general technical perspective.
1. Visual Primitives: A Structured Intermediate Layer for Multimodal Understanding
Traditional multimodal models usually convert images into visual features, align them with text features, and finally generate natural language descriptions. This approach performs well in tasks such as image-text question answering and image summarization, but it has three problems. First, after visual information is compressed into continuous vectors, interpretability is relatively weak. Second, the model has difficulty stably expressing structured information such as “where an object is located in the image” and “which boundaries make up a certain region.” Third, in scenarios that require precise editing, localization, or verification, generating text alone is often insufficient.
The core idea of visual primitives is to add a structured intermediate representation between visual features and natural language. It abstracts key content in an image into symbolic objects that are recognizable, composable, and parseable. For example:
- Points: used to represent key points, points of interest, and anchors;
- Boxes: used to represent rectangular regions, object boundaries, and candidate regions;
- Polygons: used to represent irregular regions, contours, and segmentation boundaries;
- References: used to establish associations between text descriptions and visual objects.
This design allows the model to do more than “look at an image and talk about it.” Internally, it can maintain a semantic expression that is closer to visual structure. For tasks such as document understanding, chart parsing, interface recognition, remote sensing image analysis, and industrial quality inspection, a structured intermediate layer can significantly improve controllability and verifiability.
2. Design Clues Revealed by Special Tokens
From publicly available vocabulary configurations, a set of special tokens can be observed, for example:
<|polygon|>and<|/polygon|><|point|>and<|/point|><|box|>and<|/box|><|ref|>and<|/ref|>
These tokens usually appear in pairs, similar to the start and end boundaries of structured tags. They are configured as special symbols rather than ordinary text fragments, indicating that the model has already reserved independent representation space for visual primitives at the tokenization level.
This design brings at least four benefits.
First, boundaries are clear. Special tokens can explicitly mark the beginning and end of a visual object, preventing an ordinary tokenizer from mixing coordinates, names, and descriptions together.
Second, ambiguity is reduced. For example, a number may be either a coordinate or an ordinary text identifier. By wrapping it with special tokens, the model can more stably distinguish structured content from natural language content.
Third, constrained decoding is easier. During generation, the system can build a state machine or grammar constraints based on these tokens to reduce format errors.
Fourth, future extension is supported. Experimental models often reserve symbol space required for future tasks. Even if the current default output does not directly expose these primitives, it does not affect subsequent capability evolution.
3. Why Visual Primitives Are Rarely Explicitly Visible in Practical Use
A common question is: if these special tokens exist in the vocabulary, why is the output usually natural language rather than explicitly containing polygons, points, or boxes? This is not contradictory. The main reasons are as follows.
First, user interfaces are usually oriented toward natural language tasks. Most users care about “what is in this image,” “which region does this text correspond to,” or “what is the trend in this chart,” rather than how the model internally represents visual objects. Therefore, productized interfaces often encapsulate internal structures.
Second, the model may have learned to use visual primitives implicitly. During training, visual primitives can exist as supervisory signals or intermediate representations, but at the inference output stage, the model can convert them into natural language descriptions instead of emitting structural symbols verbatim.
Third, a post-processing layer may perform format conversion. Even if the model internally generates structured content, the service side may parse it into coordinates, region identifiers, or ordinary text before returning it to the caller. This improves compatibility and avoids requiring the user side to parse complex tokens.
Finally, experimental models often retain multiple output modes. The default mode prioritizes ease of use, while advanced modes may expose structured output. For ordinary developers, the result is a stable and concise natural language output; for researchers or advanced users, more low-level structural information may be obtained through specific prompts, parameters, or parsing tools.
4. Engineering Value of the Visual-Primitive Approach
From an engineering perspective, the value of the visual-primitive approach is not only that it is “more structured,” but that it brings multimodal systems closer to a state that is debuggable, evaluable, and composable.
First, it improves interpretability. When the model outputs “a certain object is located in a certain polygon region,” developers can trace the source of an error: is it a visual encoding issue, a region generation issue, or a language description issue?
Second, it supports fine-grained editing. In scenarios such as image editing, interface modification, and document annotation, structured regions are more controllable than redrawing an entire image.
Third, it makes it easier to combine with business rules. For example, an enterprise system can verify whether a box falls within an allowed region, whether a polygon meets an area threshold, or whether a reference points to a valid object.
Fourth, it helps build evaluation sets. Traditional image-text tasks often rely on manual scoring, while structured output can introduce more objective metrics such as region overlap, boundary consistency, and reference accuracy.
5. Typical Implementation Pipeline
A practical multimodal structured understanding pipeline usually includes the following stages.
Input preprocessing
Resize, crop, tile, or normalize the resolution of images. For high-resolution documents, remote sensing images, or long images, a slicing strategy needs to be designed to avoid loss of detail.Visual encoding
Use a visual encoder to extract image features. Different tasks have different requirements for resolution and receptive fields. Document tasks pay more attention to text clarity, while industrial quality inspection pays more attention to tiny defects.Modality alignment
Map visual features into a representation space that the language model can process. The key here is to enable stable correspondence between visual objects and text semantics.Prompting and task constraints
Use prompts or task templates to tell the model whether it needs to output descriptions, localization, classification, or structured results. If a stable structure is required, schema constraints or post-processing validation should be used together.Structured parsing
Parse the model output. If the output contains special tokens, it can be converted into internal objects. If the output is natural language, entities and relationships can be extracted through rules or a lightweight model.Result validation and fallback
Validate cases such as out-of-bounds coordinates, format errors, and invalid references, and set fallback strategies, such as regenerating, downgrading to a plain text description, or returning the result for manual review.
An illustrative pseudocode example is as follows:
image = load_image(input_path)visual_features = encode_image(image)prompt = build_prompt(task="structured_understanding")raw_output = generate(prompt, visual_features)result = parse_output(raw_output)if not validate(result):result = fallback_to_text_description(raw_output)return result
6. Evaluation Dimensions Should Not Only Ask Whether the Answer “Looks Right”
For visual-primitive-related capabilities, evaluation should not rely only on natural language fluency. Structural correctness should also be considered.
Common metrics include:
- Region localization accuracy: the degree of overlap between predicted regions and ground-truth regions;
- Boundary consistency: whether the boundaries of polygons or boxes fit the target;
- Reference accuracy: whether text descriptions correspond to visual objects;
- Format validity rate: whether the output satisfies the predefined structure;
- Task completion rate: whether the task can be executed in real business scenarios;
- Robustness: whether the system remains stable with blurry, occluded, or low-quality images;
- Latency and cost: whether structured output significantly increases inference overhead.
If only evaluating whether a description is natural, it is easy to overlook errors in precise locations and structural relationships. Therefore, the visual-primitive approach is better combined with a quantifiable evaluation system.
7. Integration with Cloud Engineering Systems
In real production environments, multimodal models rarely exist alone. They usually need to work with general cloud capabilities. For example:
- Use object storage to store original images, sliced results, and output files;
- Use container platforms to host inference services for elastic scaling;
- Use message queues to process batch image parsing tasks;
- Use logging services to record requests, parsing failure reasons, and model output summaries;
- Use monitoring and alerting to track latency, error rates, resource utilization, and the proportion of abnormal inputs.
This combination can help experimental multimodal capabilities move from “demonstrable” to “operable.” Especially in scenarios such as batch document parsing, content moderation assistance, and industrial image triage, the engineering pipeline often determines the final result more than a single model capability.
8. Risks and Limitations
Although the visual-primitive approach is attractive, it remains a technical direction that requires careful evaluation.
First, “experimental” means that interfaces and output formats may be unstable. Production systems should not strongly depend on special tokens without a compatibility layer.
Second, coordinate and boundary generation places high demands on training data quality. If annotations are inconsistent, the model may learn incorrect priors.
Third, structured output increases parsing complexity. Once a format error occurs, the entire task may fail, so robust validation and fallback mechanisms are required.
Fourth, high-resolution images create memory and latency pressure. Practical deployment requires balancing accuracy, throughput, and cost.
Fifth, compliance and privacy must be taken seriously when image data is involved. For sensitive scenarios, data masking, access control, and audit mechanisms should be established.
9. Conclusion
By introducing visual primitives, experimental multimodal models are essentially exploring a more structured, more interpretable, and more composable path for multimodal understanding. Through symbols such as points, boxes, polygons, and references, the model can transform visual content from continuous features into computable objects, providing a foundation for fine-grained localization, relationship understanding, and business validation.
The fact that these primitives are not explicitly visible in practical use does not mean the approach is ineffective. Rather, it indicates that there is usually an encapsulation layer between the model’s internal representation and the external interface. For developers, the real question is not whether a particular special token appears directly in the output, but whether the system can stably complete visual understanding, structural parsing, result validation, and engineering integration. Only when model capabilities, evaluation systems, and engineering pipelines mature together can the visual-primitive approach move from an experimental feature to a reliable production capability.
