Why Multimodal Models Need Visual Primitives

    This article explains why the bottleneck in multimodal models is shifting from visual perception to how objects are referenced during reasoning. It breaks down the perception gap and the reference gap, introduces visual primitives such as points, boxes, and polygons as unambiguous pointers, and compares native primitive output with tool-based "thinking with images" approaches. It also covers agent tool-chain configuration, three-layer evaluation, and a practical checklist for developers working on complex visual tasks.

    1. Where the Problem Starts: The Bottleneck Is Moving from “Seeing” to “Describing Clearly”

    Over the past two years, the core capabilities of multimodal large models have improved quickly. Routine tasks such as image classification, scene description, and simple question answering are no longer the hard part. However, performance remains unstable on tasks like dense counting, fine-grained localization, and complex spatial navigation. The same image can produce different answers in a web interface and in an experimental environment. A planning path that is reproducible in a paper can fail completely when accessed through a different interaction entry point.

    These issues are easy to misread as “unstable model capability,” but a more reasonable explanation is that the bottleneck has moved from the visual encoding side to the way reasoning is expressed.

    2. The Perception Gap and the Reference Gap

    The industry commonly splits multimodal recognition difficulties into two layers.

    The first is the perception gap. Insufficient input resolution, cropping strategy, or encoding granularity causes small or dense targets to be smoothed out at the feature level. This layer is usually mitigated by increasing input resolution, dynamic cropping, and region enhancement.

    The second is the reference gap, which is more hidden. Even when the model has “seen” an object clearly, if it can only describe it in natural language during chain-of-thought reasoning—for example, “the block slightly above the one on the right”—the reference itself is ambiguous. In multi-turn reasoning, reference errors accumulate and eventually show up as counting mistakes, localization drift, or broken path planning.

    In other words, what limits the upper bound of complex visual tasks is often not the amount of image information, but whether the intermediate representations used during reasoning are precise.

    3. The Core Idea of Visual Primitives: Unambiguous Pointers Instead of Natural-Language References

    The technical approach behind visual primitives is to abstract objects in continuous visual space into programmatically referenceable “pointers.” Common forms include points, bounding boxes, and polygons. Their purpose is not to improve recognition accuracy, but to give the reasoning process stable, addressable intermediate variables.

    From an engineering perspective, this brings three direct benefits:

    • Addressable: each object has a unique identifier, so multi-turn reasoning can repeatedly reference the same target without reference drift.
    • Composable: point localization, box cropping, and polygon segmentation can be chained into a processing pipeline.
    • Verifiable: intermediate results exist in a structured form, making programmatic validation and traceback easier.

    An illustrative intermediate representation can be written as follows to show the idea of structuring the reasoning process:

    1. {
    2. "step": 2,
    3. "action": "count",
    4. "targets": [
    5. {"primitive": "point", "x": 0.412, "y": 0.233},
    6. {"primitive": "box", "x1": 0.10, "y1": 0.20, "x2": 0.28, "y2": 0.55},
    7. {"primitive": "polygon", "points": [[0.3,0.4],[0.5,0.42],[0.45,0.6]]}
    8. ],
    9. "note": "coordinates are normalized to [0,1]"
    10. }

    Note that this structure is only a general illustration; field names and coordinate conventions vary across implementations.

    4. Two Technical Approaches: Built-in Primitives vs. Tool-Based Invocation

    There are two practical ways to apply visual primitives.

    One is to make primitives a native output capability of the model, with built-in support in the encoding and decoding stages, so the model directly produces structured pointers during inference. The other is the tool-based “thinking with images” approach, where the model calls external capabilities on demand during reasoning—such as cropping, zooming, annotating, and re-recognizing—treating image operations as tools.

    The trade-off is this: the former offers stronger consistency and a shorter pipeline but demands more from training and data; the latter is more flexible and easier to integrate into existing agent frameworks, but depends on the stability and correct configuration of the tool chain.

    Recent public engineering practice shows that the tool-based approach is more common in agent scenarios, which also demonstrates the value of the tool framework: it determines whether model capabilities can be organized and invoked reliably.

    5. The Overlooked Piece: Agent Tool-Chain Configuration and Discoverability

    A recurring practical problem is the configuration barrier. When command-line arguments, configuration file formats, and runtime mode switching lack unified documentation, developers easily mistake a “configuration error” for “insufficient model capability.”

    Engineering recommendations:

    1. Use a package manager to upgrade the runtime environment consistently and avoid version mismatches.
    2. Put the runtime mode, model identifier, and permission scope in a version-controlled configuration file instead of scattering them across command-line arguments.
    3. Run a minimal self-check before startup to confirm the mode and model identifier are in effect.
    1. # Example: upgrade the runtime environment and list available runtime modes
    2. npm update -g <agent-cli-package>
    3. <agent-cli> --help
    1. Add logging and tracing for tool invocations, recording the input and output of each image operation to help determine whether the issue is perception or reference.

    6. Evaluation and Validation: How to Tell Whether Primitives Actually Work

    Do not look only at the final answer. A three-layer validation is recommended:

    • Result layer: accuracy and error distribution for counting and localization tasks.
    • Process layer: number of intermediate pointers, repeated reference rate, and tool invocation success rate.
    • Consistency layer: variance of answers for the same input across different entry points and temperature settings.

    If process-layer metrics look normal but result-layer metrics fluctuate widely, the problem is likely in reference handling and reasoning organization. If the process layer already shows many invalid invocations, prioritize checking tool-chain configuration and input preprocessing.

    7. A Practical Checklist for Developers

    • Clarify the task type: recognition, counting, localization, and navigation have progressively higher requirements for representation precision.
    • Introduce structured intermediate representations for high-precision tasks instead of long natural-language descriptions.
    • Turn image preprocessing and region enhancement into reusable tools rather than one-off prompts.
    • Replace ad-hoc arguments with managed configuration to reduce non-reproducibility caused by environment differences.
    • Build process observability so that “can’t see clearly” and “can’t describe clearly” can be distinguished and located.

    Overall, the value of visual primitives lies not in any specific implementation, but in moving the intermediate state of multimodal reasoning from vague language to structured expression that is addressable, composable, and verifiable. Whoever makes this layer solid will achieve a more stable upper bound on complex visual tasks.