Visual Primitives and Thinking with Images in Multimodal Visual Reasoning

    This article examines why multimodal models can recognize objects yet struggle with dense counting and precise localization. It compares two approaches—explicit visual primitives and thinking with images—covering their mechanisms, training requirements, engineering trade-offs, evaluation methods, and practical guidance for selecting and deploying them.

    Visual Primitives and Thinking with Images in Multimodal Visual Reasoning: Route Differences and Engineering Practices

    1. Background: Why Multimodal Models Can “See” but Still Miscount

    Over the past year, multimodal models have become highly capable at image captioning and simple visual question answering. However, they still frequently fail at tasks such as dense counting—“How many people are in the image?”—and complex object localization—“Find the object in the upper-left corner and draw it.”

    A common pattern is that a model can recognize that there are people in an image but miscount them. It may also identify a general region while failing to provide accurate coordinates. Although these issues appear to be limitations in visual perception, the underlying bottleneck is often the reasoning process.

    Two technical approaches have emerged around this problem:

    1. Visual primitives, which introduce explicit pointers into the model’s reasoning process.
    2. Thinking with images, which allows the model to mark and manipulate the image directly during inference.

    Both approaches can improve visual reasoning, but they differ substantially in their underlying logic, training costs, and engineering requirements.

    2. The Perception Gap and the Reference Gap

    Visual reasoning typically faces two distinct challenges.

    2.1 The Perception Gap

    The perception gap refers to information lost when a model converts pixels into semantic representations. Even when a vision encoder extracts sufficiently rich features, the model may still fail to preserve fine-grained details during subsequent reasoning.

    A typical symptom is that recognition of individual objects becomes less reliable as image resolution increases or objects become more densely packed. The causes are complex and may involve the vision encoder’s receptive-field design and the distribution of training data.

    In engineering practice, the perception gap is often mitigated with higher-resolution inputs and stronger vision encoders.

    2.2 The Reference Gap

    The reference gap is more subtle and often more difficult to resolve. During reasoning, a model may continue to describe image regions using natural language, such as “the person on the left” or “the small square slightly below the center.”

    Natural language references are inherently ambiguous and context-dependent. Using a phrase such as “on the left” to refer to a specific position in an image inevitably introduces uncertainty. For dense counting and complex localization, this ambiguity can compound throughout the reasoning chain and eventually cause the result to break down.

    For example, when counting people in a crowd, a model might refer to “the first person on the left” and “the second person on the right.” However, it cannot always guarantee that the same location will not be mentioned twice or that another location will not be skipped. The final count may therefore be incorrect.

    At its core, the reference gap reflects the absence of an unambiguous pointer that can anchor a natural-language description to a precise location in continuous visual space.

    3. Visual Primitives: Adding Unambiguous Pointers to Reasoning

    3.1 Core Idea

    Visual primitives allow a model to refer to image objects using structured pointers rather than relying exclusively on ambiguous natural-language descriptions.

    These pointers are usually represented by special tokens corresponding to geometric structures such as points, bounding boxes, or polygons. Each token maps internally to positional information in continuous visual space. As a result, “the person on the left” can be represented as a set of coordinates that can be precisely calculated.

    The main benefit is that reference resolution is moved from the natural-language layer to the visual-space layer. The model can use these pointers for counting, comparison, and ordering without repeatedly describing locations in words, significantly reducing ambiguity.

    3.2 Implementation: Special Tokens and Structured Outputs

    From an engineering perspective, visual primitives typically depend on two types of infrastructure:

    • Tokenizer extensions: The tokenizer is expanded with dedicated special tokens for geometric structures such as points, boxes, and polygons. For example, separate markers may indicate the beginning and end of a polygon, a point coordinate, or a rectangular bounding box. These markers are treated as recognizable syntax units during training.
    • Coordinate encoding: Each special token is associated with numerical values representing the position of the corresponding geometric structure in continuous visual space. When generating these tokens, the model must also produce the relevant coordinate values, mapping semantic references to precise locations.

    3.3 Benefits and Costs

    Visual primitives provide stronger control for tasks such as dense counting and complex localization. Because the pointers are explicit, the reasoning trace can be checked and validated structurally. For example, the number of pointers can be compared with a claimed count, and their coordinates can be inspected to assess localization accuracy.

    The trade-off is a higher demand for training data and annotation. The model must learn both how to generate the special tokens and how to align language reasoning with pointer operations. Training therefore requires specialized geometric annotations and alignment strategies, increasing overall cost.

    Visual primitives may also provide limited benefits for general image captioning and open-ended question answering, creating a potential risk of specialization toward certain visual reasoning tasks.

    4. Thinking with Images: Directly Manipulating Images During Reasoning

    4.1 Core Idea

    Thinking with images follows a different path. Instead of requiring the model to generate explicit internal pointers, it allows the model to operate directly on the image during inference.

    For example, the model may draw candidate regions or mark key points on the image, then continue reasoning based on the annotated result. This approach more closely resembles the human process of examining an image while thinking through a problem.

    In practice, thinking with images often relies on multi-turn visual input. The model first generates an intermediate result, such as boxes around several candidate objects. The annotated image is then fed back into the model, which performs the next reasoning step using the new visual input.

    This alternates between reasoning and visual processing, using multiple interaction rounds to address more complex tasks.

    4.2 Differences from Visual Primitives

    The two approaches differ at three main levels:

    • Representation: Visual primitives depend on special tokens at the tokenizer level and represent an internal syntax capability. Thinking with images depends on visible annotations in the image and represents an external operation within the inference workflow.
    • Training: Visual primitives require the model to learn special-token generation and coordinate alignment during training. Thinking with images is more dependent on inference orchestration and can place fewer constraints on training.
    • Engineering: Visual primitives require coordinated changes to the tokenizer, training pipeline, and inference code. Thinking with images relies more heavily on the inference framework’s ability to support multiple rounds of visual input.

    One important observation is that when a model adopts the thinking-with-images approach, it may not retain the special tokens required by visual primitives in its tokenizer. In engineering terms, the two approaches can therefore be partly mutually exclusive. Once thinking with images becomes the primary solution, special tokenizer-level markers may no longer be necessary.

    This also explains why inspecting a tokenizer can provide a relatively quick indication of whether a model is equipped with visual primitives.

    5. Engineering Lessons Behind Route Selection

    5.1 The Value of the Inference Harness Is Often Underestimated

    Regardless of which approach is selected, the inference harness plays a critical role. Performance on complex multimodal tasks depends heavily on how the inference process is organized, including:

    • How multiple rounds of visual input are structured
    • How intermediate results are passed back to the model
    • How tool calls are integrated with visual reasoning

    A well-designed harness can amplify a model’s capabilities. Conversely, a poorly designed one can substantially reduce performance.

    In practice, configuring the inference harness can be more difficult than configuring the model itself. Some experimental models require specific configuration patterns to operate correctly. If developers launch them only with default settings, they may incorrectly conclude that the model lacks capability when the real problem is an incomplete or unsuitable configuration.

    This issue is particularly common in multimodal systems because their reasoning pipelines are longer and contain more interacting components.

    5.2 Capability Boundaries Must Be Validated Empirically

    The capabilities described in technical documentation may differ from actual product behavior. For example, documentation may show strong results for visual primitives on a particular dataset, while real-world performance may vary because of input resolution, inference configuration, or task distribution.

    Dense counting is a typical example. A model may produce exact counts in documented demonstrations but perform less reliably in practice because of image compression, occlusion, or other differences in real inputs.

    Developers should therefore evaluate models in their own business scenarios rather than relying solely on documentation. Before integrating a multimodal model, it is useful to prepare at least three test categories:

    • Dense counting
    • Complex localization
    • Open-ended image description

    These categories help assess the model across different dimensions of visual reasoning.

    5.3 Selection Guidelines

    Teams evaluating multimodal visual reasoning capabilities can consider the following factors:

    • Task type: If the primary requirements are dense counting and precise coordinate output, explicit pointers may be more suitable. If the workload focuses on open-ended descriptions and multi-turn image interaction, thinking with images may offer greater flexibility.
    • Training resources: Visual primitives require additional geometric data and alignment effort. Teams with limited resources may prefer to optimize the inference framework instead.
    • Engineering complexity: Thinking with images requires strong orchestration of multi-turn visual input, while visual primitives require more extensive changes to the tokenizer and inference code.
    • Verifiability: Structured pointer outputs are easier to validate automatically and are well suited to accuracy-sensitive scenarios. Intermediate results from thinking with images can also be reviewed visually, but automated validation is generally more difficult.

    6. Conclusion

    Visual primitives and thinking with images are not necessarily mutually exclusive choices in terms of application goals. They are two approaches designed for different task distributions and engineering conditions.

    Visual primitives move reference resolution into visual space and use structured pointers to reduce ambiguity. Thinking with images externalizes reasoning as image operations and uses multiple interaction rounds to approach complex tasks.

    Both approaches point to the same broader conclusion: the bottleneck in multimodal models is often not whether they can see, but whether they can reason clearly about what they see.

    For developers, the model itself is only one part of the solution. The quality of inference orchestration, configuration usability, and the ability to validate capability boundaries are equally important. When evaluating a multimodal solution, it is useful to distinguish among three layers:

    1. What the documentation claims
    2. How the system is actually configured
    3. How it performs in real tests

    Treating these as separate dimensions helps prevent decisions based on incomplete or misleading information.

    In production engineering, general-purpose cloud capabilities can also accelerate deployment. Object storage can manage image assets, container platforms can orchestrate inference services, logging services can trace the reasoning pipeline, and monitoring and alerting systems can track service health. Using these capabilities allows teams to focus on multimodal applications without rebuilding basic infrastructure from scratch.