Multimodal Visual Primitives and Thinking with Images: A Technical Analysis

    This article examines two mainstream approaches to visual reasoning in multimodal models: structured visual primitives and thinking with images. It explains the perception gap and reference gap that limit stable target referencing, dense counting, and precise localization, compares the engineering trade-offs of both routes, and outlines practical guidance on toolchain configuration, layered evaluation, and production deployment.

    1. Introduction: From Seeing Images to Reasoning Over Them

    As multimodal large models evolve quickly, plain image recognition is no longer enough for complex tasks. What developers really care about is whether a model can reference a target stably within a continuous visual space, and whether it stays logically consistent during dense counting, fine-grained localization, and path planning. Recent discussion about whether a certain class of experimental multimodal models uses “visual primitives” has pushed this underlying question to the foreground. Setting aside specific product attributes, this article analyzes two mainstream technical routes and their engineering implications from a general technical perspective.

    2. Root Causes: The Perception Gap and the Reference Gap

    2.1 Perception Gap

    The perception gap is the distance between the image information a model receives and what it can actually resolve. When input resolution, compression strategy, or tiling is poorly chosen, small objects and dense regions lose detail. The model literally cannot see clearly, and downstream reasoning is inevitably off.

    2.2 Reference Gap

    Even after the “cannot see clearly” problem is solved, the model may still “cannot point precisely.” The traditional approach asks the model to describe objects in natural language, for example “the third square from the top left.” Natural language is ambiguous: quantity references are unstable, spatial relations are vague, and conflicts pile up as context grows. In dense counting and complex localization tasks, this ambiguity leads directly to logical breakdown. The essence of the reference gap is the absence of a pointer that is unique and reusable within a continuous visual space.

    3. Comparing the Two Technical Routes

    3.1 The Visual Primitives Route

    Visual primitives are a class of structured visual symbols that mark points, polygons, and rectangular regions with unambiguous pointers. Their core advantages are:

    • Uniqueness: each primitive maps to a definite coordinate or region, avoiding linguistic ambiguity.
    • Composability: points, polygons, and boxes can be stacked into hierarchical descriptions.
    • Traceability: every reference in the reasoning chain maps back to an image location, which makes verification easy.

    In a schematic vocabulary structure, you typically see paired start and end markers wrapping geometric objects, for example a dedicated marker that opens and closes a polygon, a point set, or a bounding box. This design lets the model operate directly on geometric entities while “thinking” instead of generating vague descriptions.

    3.2 The Thinking with Images Route

    This route has the model repeatedly crop, zoom, and annotate image regions during reasoning, using intermediate results as visual drafts. It is closer to how humans look and sketch at the same time, and the implementation barrier is relatively low, but it demands more in terms of tool-call stability and context management.

    3.3 Key Considerations for Choosing a Route

    The two routes are not mutually exclusive. A common engineering compromise is to enable structured primitives when high-precision localization and counting are required, and to allow free cropping and annotation in exploratory tasks. The deciding criterion is how much the task depends on reference stability.

    4. Common Pitfalls in Toolchains and Configuration

    In day-to-day use of multimodal coding tools or agents, inconsistent configuration is a frequent problem. Typical symptoms include official documentation examples that do not match the actual configuration format, unclear precedence between command-line arguments and configuration files, and old configurations breaking after an upgrade. The following practices are recommended:

    1. Confirm the tool version first, then read the documentation for that version, and avoid copying across versions.
    2. Prefer supported configuration entry points and reduce hand-written configuration files.
    3. Manage parameters such as model identifier, temperature, and maximum output length centrally, so gradual rollout and rollback are easy.
    4. Pin dependency versions in container platforms or CI environments to prevent “works locally, fails in production.”

    Schematic configuration logic is shown below (structure only, not a specific interface):

    1. {
    2. "model": "vision-reasoning-experimental",
    3. "profile": "web",
    4. "options": {
    5. "temperature": 0.2,
    6. "max_output_tokens": 4096
    7. }
    8. }

    5. Evaluation: Do Not Look Only at Demo Cases

    Success cases in demos are usually curated. A more reliable approach is to build a layered evaluation set:

    • Perception layer: small object recognition, low contrast, occlusion scenarios.
    • Reference layer: dense counting, multi-target localization, spatial relation question answering.
    • Reasoning layer: mazes or path planning, multi-step constraint satisfaction.
    • Consistency layer: variance of results across repeated runs on the same input.

    During evaluation, record the distribution of failure types rather than accuracy alone. If failures concentrate on counting and localization, they usually point to the reference gap; if failures concentrate on detail recognition, the cause is more likely perception.

    6. Recommendations for Production Implementation

    1. Define task boundaries: split “describing an image” and “operating on image regions” into separate capability modules.
    2. Design verifiable intermediate representations: prefer structured geometric output so it can be validated programmatically.
    3. Build a fallback mechanism: when structured output parsing fails, degrade to a robust crop-and-describe flow.
    4. Ensure observability: use logging services and monitoring alerts to track call chains, latency, and failure rates.
    5. Close the data loop: feed production failure samples back into the evaluation set to continuously refine prompts and flows.

    7. Conclusion

    Visual primitives and thinking with images address reference stability and operational flexibility in multimodal reasoning respectively. For developers, the key is not to chase one particular approach, but to understand the boundary between the perception gap and the reference gap, combine capabilities according to task requirements, and rely on rigorous evaluation and an observability system to safeguard production quality. With the general capabilities offered by cloud platforms such as Baidu AI Cloud, developers can focus more on the visual reasoning logic itself and build explainable, verifiable multimodal applications.