Visual Primitives and Thinking with Images: Understanding Multimodal Model Capabilities

    This article examines two core bottlenecks in multimodal image understanding—the perception gap and the reference gap—and explains how visual primitives (points, boxes, and polygons) and the "Thinking with Images" approach address them. It also covers the engineering gaps between research papers and production systems, practical agent configuration, and reliable methods for validating multimodal capabilities through probe-based evaluation.

    1. Two Core Bottlenecks: From “Can’t See Clearly” to “Can’t Say Precisely”

    Failures in image understanding by multimodal large models are often attributed to insufficient perception in the visual encoder. In real-world engineering, however, the more subtle bottleneck frequently lies in reasoning and expression after perception. Research has summarized this as two gaps:

    1. Perception Gap: The model cannot extract sufficient fine-grained information from an image. Typical symptoms include missed small objects, confused attributes, and hallucinated details.
    2. Reference Gap: The model has already “seen” the target but is still forced to describe it in natural language during reasoning, e.g., “the person in a red shirt on the upper left” or “the third player in the second row.” Such natural-language references are prone to reference drift in dense counting, multi-object association, and complex spatial reasoning, which can cause the logic to collapse.

    A concrete example is people counting: when an image contains twenty or more similar, overlapping people, a model that relies on language-based processes such as “I counted the first row… then the second row…” tends to oscillate between double counting and omission. Even if visual encoding itself is fine, the reasoning chain collapses due to unstable references. This is the hallmark of the reference gap.

    2. Visual Primitives: Unambiguous Pointers in Continuous Visual Space

    To address the reference gap, one representative technical approach is to introduce structured “visual primitives” into the model’s reasoning and expression space. Common forms include:

    • Point: Uses normalized coordinates (x, y) to precisely reference a single target or key location.
    • Box: Uses (x1, y1, x2, y2) to delineate the bounding region of a target.
    • Polygon: Uses an ordered vertex sequence to fit irregular shapes, suitable for segmentation masks or non-rectangular targets.

    The essential value of these primitives is that they are unambiguous pointers in continuous visual space. When the model needs to reference an object in its chain of thought, it can directly output a coordinate pointer instead of relying on easily misinterpreted natural language. This brings several benefits:

    1. Reference stability: Coordinate pointers map one-to-one to pixel positions, avoiding the problem where “the person on the left” points to different objects in different reasoning steps.
    2. Reliable dense counting: Counting becomes a deduplication count over a labeled target set rather than enumeration in natural language.
    3. Localization-action closed loop: Boxes and polygons can directly feed downstream operations such as cropping, highlighting, tracking, and UI automation, forming a complete perception-reasoning-action pipeline.

    At the tokenizer level, this design typically manifests as several special tokens, for example markers delimiting coordinate segments corresponding to point, box, and polygon primitives. An illustrative tokenizer fragment:

    1. {
    2. "added_tokens": [
    3. {"id": 151665, "content": "<|point|>", "special": true},
    4. {"id": 151666, "content": "<|/point|>", "special": true},
    5. {"id": 151667, "content": "<|box|>", "special": true},
    6. {"id": 151668, "content": "<|/box|>", "special": true},
    7. {"id": 151669, "content": "<|polygon|>", "special": true},
    8. {"id": 151670, "content": "<|/polygon|>", "special": true}
    9. ]
    10. }

    The presence of such tokens is a strong signal that the model reserves channels for structured spatial output at the architecture level. However, note that special tokens appearing in the vocabulary do not necessarily mean that the corresponding decoding strategy is actually enabled during inference. You must also verify whether the training objectives, post-processing logic, and sampling constraints are aligned. A reliable engineering verification method is to build small probe tasks (e.g., “mark each person’s head in this image with a point”) and observe whether the output follows the primitive format, rather than inferring solely from the vocabulary.

    3. The “Thinking with Images” Approach: Another Classic Solution

    A parallel line of development to visual primitives is Thinking with Images: letting the model actively invoke visual tools during reasoning to zoom, crop, rotate, partially repaint, or compare multiple images. It converts the parts it “cannot see clearly” into new visual inputs and then continues reasoning based on these enhanced observations.

    The positioning of the two approaches differs as follows:

    Dimension Visual Primitives Thinking with Images
    Problem addressed Reference gap (“can’t say precisely”) Perception gap (“can’t see clearly”)
    Core mechanism Embeds structured coordinate pointers in the output space Invokes image transformation tools in the reasoning loop
    Typical tasks Dense counting, precise reference, object association Small-text recognition, fine-grained attribute judgment, cross-region comparison
    Engineering cost Requires coordination across vocabulary, training objectives, and post-processing Requires toolchain, multi-turn scheduling, and image processing infrastructure

    From a technical evolution perspective, the two routes are not mutually exclusive: Thinking with Images acquires sufficiently clear visual evidence, while visual primitives provide unambiguous references to that evidence during reasoning. A mature multimodal agent can possess both capabilities—first using tools to zoom into a key region, then using polygons or point sets to lock onto and count the targets.

    4. From Paper to Product: Engineering Gaps in Capability Delivery

    The capabilities reported in research papers often differ from what production services actually deliver. This is especially pronounced in multimodal settings. Common causes include:

    1. Different inference configurations: Paper evaluations usually use full reasoning configurations with specific decoding parameters, while online services trim chain-of-thought length and limit tool-call rounds for latency and cost.
    2. Different interaction entry points: Web chat entry points, API entry points, and agent entry points may be bound to different system prompts, tool sets, and sampling strategies, causing the same model to behave inconsistently across entry points.
    3. Benchmark overfitting: Maze navigation, crowd counting, and similar cases in papers are often purpose-built; generalization to real-world images may be less robust.
    4. Missing post-processing: Even if the model outputs coordinate primitives, if the service does not correctly parse and map them back onto the original image, users still perceive only natural-language results.

    Therefore, when evaluating whether a multimodal model truly “possesses” a capability, it is advisable to:

    • Directly verify input/output formats and accuracy with controlled probe tasks rather than marketing materials;
    • Distinguish “model capability” from “product pipeline capability,” which includes tool invocation, coordinate parsing, rendering, and highlighting;
    • Run consistency tests separately across different entry points (chat, API, agent).

    5. Engineering Practice for Agent Configuration

    Multimodal capabilities are typically exposed as agents, and how the agent framework is configured directly determines capability availability. Common practical problems include: documentation examples not matching the actual CLI version, cryptic configuration field names, and default configurations that do not enable the target model. The following is a general set of configuration recommendations:

    1. Unified configuration source: Consolidate model selection, tool switches, and system prompts into a single declarative configuration (e.g., JSON/YAML) instead of scattering them across CLI arguments, environment variables, and config files.
    2. Explicit version management: After upgrading a framework, update through the package manager (e.g., the generic form npm update -g <agent-cli>) and verify that the version matches the documentation.
    3. Entry-point alignment: Ensure that different launch modes such as --profile web read the same model and tool configuration, preventing “one product, two behaviors.”
    4. Capability liveness probing: At startup, run a minimal probe against configured capabilities (e.g., a request that asks for point coordinates) to expose vocabulary/post-processing mismatches early.

    An illustrative configuration structure:

    1. {
    2. "model": {
    3. "name": "vision-reasoning-model",
    4. "temperature": 0.2,
    5. "max_tokens": 4096
    6. },
    7. "tools": {
    8. "image_zoom": true,
    9. "image_crop": true,
    10. "coordinate_output": {
    11. "enable_primitives": true,
    12. "formats": ["point", "box", "polygon"]
    13. }
    14. },
    15. "agent": {
    16. "max_tool_rounds": 8,
    17. "system_prompt_file": "prompts/vision_agent.txt"
    18. }
    19. }
    1. Fallback strategy: When structured output parsing fails, fall back to natural-language results and log the error, so the entire pipeline does not fail due to a few individual format errors.

    6. Conclusion

    The next improvement in multimodal models is not just about “seeing more clearly” but about “referring more precisely.” Visual primitives—points, boxes, and polygons—eliminate the ambiguity of natural-language references in reasoning space through structured pointers, providing a more reliable foundation for dense counting and precise localization. Thinking with Images compensates for perception deficits through tool-based image manipulation. Combining the two, along with a clearly configured, behaviorally consistent agent framework, is what truly turns capabilities reported in papers into stable, usable product experiences. For developers, rather than debating whether a model “has” some advertised capability, the better approach is to build reproducible probe evaluations and pipeline consistency checks—that is the reliable way to assess the boundaries of multimodal capability.