Visual Reasoning in Multimodal Models: From Textual Descriptions to Visual Pointers

    Multimodal models fail at image tasks for two distinct reasons: perceptual bottlenecks and referential bottlenecks. This article explains how to distinguish them, compares two technical approaches—text-mediated reasoning and visual pointer reasoning—walks through a failure case of referential drift in counting tasks, and provides a practical evaluation methodology along with engineering guidance for managing agent runtime configurations and deployments.

    1. Background: Seeing Clearly Doesn’t Mean Reasoning Correctly

    When multimodal models process image tasks, two common failure modes arise from different causes and must be diagnosed separately.

    1. Perceptual bottlenecks

    The model cannot extract sufficient detail from pixels—small text, distant small objects, or low-contrast textures. Increasing input resolution, tiling the image into patches, or scaling up the visual encoder usually alleviates this class of problem.

    2. Referential bottlenecks

    The model can recognize objects in the image, but during reasoning it refers to “that object” in natural language. Natural-language references are often ambiguous—for example, “the few cups on the left” or “the row in the middle of the table.” When a reasoning chain repeatedly cites such descriptions, the referent gradually drifts, showing up as double counting, missed targets, or localization errors.

    These two problems manifest very differently across tasks. Object recognition is dominated by perceptual bottlenecks, while dense counting, multi-object localization, and complex spatial-relation judgments are dominated by referential bottlenecks. Even if a model sees clearly enough, an unstable chain of references will produce logical errors on these tasks.

    2. Comparing Two Technical Approaches

    For the referential bottleneck, the industry currently pursues two main lines of thinking.

    2.1 Text-mediated reasoning

    The core idea is to let the model invoke image operations during reasoning—cropping local regions, zooming into details, drawing annotation boxes on the image—and then continue reasoning in text based on the operation results. The image is the input; text remains the primary carrier of reasoning.

    Its strengths are mature engineering implementation, reuse of existing tool-calling frameworks, and operation results that are easy to inspect manually. Its weaknesses: each operation introduces additional image input and textual description, so the reasoning chain grows longer and cost rises accordingly. And because the model still relies on natural language to refer to regions, referential drift is not fundamentally solved.

    2.2 Visual pointer reasoning

    This approach lets each step of the reasoning chain directly reference a position or region in image space. Regions exist as coordinates or identifiers, appearing alongside text, so reasoning no longer requires re-describing objects in language.

    Its strength is precise reference: every reasoning step maps to a definite image region, which is easy to audit. Its weakness is that the model must learn to produce and interpret such references during training or fine-tuning, making data construction and evaluation criteria more complex.

    2.3 Comparison dimensions

    Dimension Text-mediated reasoning Visual pointer reasoning
    Referential precision Relies on language descriptions; prone to drift Direct region references; unambiguous
    Reasoning chain length Grows with the number of image operations Usually shorter
    Implementation complexity Reuses tool-calling frameworks Requires model capability and data support
    Auditability Operations are visible, but descriptions still need human judgment Each step maps to a region; direct to verify
    Suitable tasks General visual QA, local detail inspection Dense counting, multi-object localization

    When choosing between them, first determine whether the task depends on fine-grained reference. If the task is primarily about holistic understanding, text-mediated reasoning is usually sufficient. If the task heavily involves counting and localization, prioritize evaluating visual-pointer-style solutions.

    3. A Typical Failure Case

    Take the question “How many red cups are in the image?” to illustrate how referential drift causes errors.

    Suppose the image contains 12 red cups, some partially occluded. A reasoning process that relies on natural-language reference might look like this:

    1. There are several red cups on the left side of the image.
    2. There are a few more in the middle row.
    3. Count the occluded one in the bottom-right corner as well.
    4. Total: about 9.

    The problem here is that “the middle row” and “the left side” may overlap, and the ownership of the occluded object is unclear. Each step re-delimits a scope in language, and errors accumulate across steps.

    If instead the reasoning process references region identifiers one by one—with each red cup corresponding to a definite region—counting becomes a step-by-step confirmation of labeled objects, making duplicates and omissions much easier to spot.

    Below is a conceptual illustration of visual pointer reasoning. It demonstrates the reference structure only and does not define any specific interface:

    1. {
    2. "step": 3,
    3. "text": "Mark the target in region r2 as the second red cup",
    4. "refs": [
    5. { "id": "r2", "bbox": [0.12, 0.40, 0.31, 0.62] }
    6. ]
    7. }

    Here bbox denotes a normalized rectangular region, and id remains unique throughout the reasoning process. Subsequent steps reference only the id and never re-describe the object in language.

    4. How to Evaluate a Model’s Visual Reasoning Ability

    Looking only at final-answer accuracy is insufficient when evaluating visual reasoning. The following steps are recommended for building an evaluation pipeline.

    4.1 Build a layered test set

    Group test samples by task type, covering at least the following categories:

    • Attribute recognition: single-attribute judgments such as color, shape, and material.
    • Counting: tallying objects of the same type, distinguishing sparse from dense scenes.
    • Localization: given a description, output the region where the target is located.
    • Relational reasoning: spatial relations such as left/right, front/behind, containment, and occlusion.

    Each category should include samples of varying difficulty with accurate ground-truth labels. Counting samples need the total target count recorded; localization samples need the reference region recorded.

    4.2 Control variables

    The same image should be tested with multiple questioning forms—for example, direct questioning, requesting step-by-step reasoning, and requesting that each object be listed. If results differ substantially across questioning forms, the model’s reasoning stability is inadequate.

    4.3 Inspect intermediate reasoning

    For models with intermediate reasoning output enabled, check whether references in the reasoning chain are consistent. For example, is the same object described as the same entity across different steps? Is anything counted twice during counting?

    4.4 Example evaluation code

    The code below demonstrates the basic structure of a counting evaluation, where call_model is a placeholder for the model-calling function and should be replaced with the actual integrated interface.

    1. from dataclasses import dataclass
    2. from typing import Callable
    3. @dataclass
    4. class CountingCase:
    5. image_path: str
    6. question: str
    7. expected: int
    8. def evaluate_counting(
    9. cases: list[CountingCase],
    10. call_model: Callable[[str, str], str],
    11. ) -> float:
    12. """Return accuracy on the counting task; answers are matched exactly as integer strings."""
    13. if not cases:
    14. raise ValueError("Test set is empty")
    15. correct = 0
    16. for case in cases:
    17. raw = call_model(case.image_path, case.question)
    18. try:
    19. predicted = int(raw.strip())
    20. except ValueError:
    21. # Treat unparseable answers as wrong and keep them in logs for troubleshooting
    22. continue
    23. if predicted == case.expected:
    24. correct += 1
    25. return correct / len(cases)

    In practice, you should also log the raw output for every sample and manually spot-check failures to distinguish perceptual errors from referential errors.

    5. Configuration and Version Management for the Agent Runtime

    Visual reasoning capabilities are typically integrated through an agent runtime framework. The framework’s version and configuration directly affect whether experiment results are reproducible, so they must be brought under engineering management.

    5.1 Version management

    • Record the framework version and model identifier used in every experiment.
    • Before upgrading, read the changelog and watch for changes to default parameters, tool protocols, and output formats.
    • Pin version numbers in production; perform upgrades on a separate branch with regression testing.

    5.2 Configuration sources and precedence

    Common configuration sources include command-line arguments, configuration files, and environment variables. Define a clear precedence—for example, command-line arguments override configuration files, which override default values—and print the final effective configuration at startup. This way, when a problem occurs, you can quickly determine which configuration took effect.

    5.3 Handling sensitive information

    Sensitive information such as API keys and access tokens should be injected through environment variables or a secrets management service, never written into configuration files or code repositories. Configuration files may be committed to version control, but verify that they contain no credentials.

    5.4 Pre-launch checklist

    1. Confirm the framework version matches the documentation.
    2. Confirm the model identifier for the selected configuration profile is correct.
    3. Run a smoke test with a sample whose answer is known.
    4. Confirm the effective configuration printed in the logs matches expectations.

    These steps may seem tedious, but they significantly reduce the class of problems where a misconfiguration goes unnoticed.

    6. Practical Recommendations

    Combining the analysis above, here are the recommended principles for practice.

    1. Define the task’s referential requirements first. If the task only requires holistic understanding, there is no need to pay extra cost for referential capability. If the task involves counting, localization, and item-by-item verification, referential precision should be the primary metric.

    2. Run comparative experiments on small-scale data. Compare different approaches on the same test set, recording accuracy, per-inference latency, and cost. Looking at a single metric alone easily leads to one-sided conclusions.

    3. Establish online monitoring. For counting and localization workloads, sample and review outputs, and track the referential error rate. When the error rate rises with shifts in input distribution, adjust the approach promptly.

    4. Keep rollback-ready configurations. Both model and framework upgrades can change output behavior. Preserve the previous version’s configuration and evaluation results so you can roll back quickly when anomalies appear.

    Improving visual reasoning depends both on the model’s representational capability and on how the reasoning process is organized. Distinguishing perceptual problems from referential problems is the foundation for choosing a technical approach and designing an evaluation plan.