Multimodal Agents and the Visual Reference Gap: Why Models See Clearly but Still Count Wrong
This article breaks down the visual reference gap in multimodal agents, separating it from the closely related perception gap. It explains how natural language references drift during long reasoning chains, how structured visual primitives such as points, boxes, and polygons with stable IDs keep targets consistent, and why the agent harness determines whether those capabilities can be used at all. It closes with practical guidance on diagnosing which gap you are facing, structuring model output, fixing evaluation protocols, building reproducible pipelines, and shifting validation earlier, plus a note on keeping documentation aligned with released tooling.
1. The Problem: “The Model Can’t See” Is Only the Surface Symptom
A recent multimodal experiment drew attention not because it added a few points to general leaderboards, but because it pushed a long-ignored engineering problem back into the spotlight: when a model has to count, locate, and plan paths across an image full of similar targets, its output tends to oscillate between “looks reasonable” and “actually wrong.” More concerning, the examples in the same technical document can lead to completely different conclusions in a real interactive environment — targets the document counts cleanly get over-counted by two in the web interface, and a path the document marks as passable fails outright on the interactive side.
This shows a clear gap between evaluation results and product experience, and that gap is rarely caused by a single factor. Explaining it requires separating two things: “seeing” and “referring accurately.”
2. Two Gaps: Perception Gap and Reference Gap
2.1 Perception Gap
The perception gap is information loss on the input side. Once an image is tiled, compressed, and downsampled, information about small targets, dense textures, and low-contrast regions is weakened, so the model never gets enough evidence at the pixel level. Common mitigations include raising input resolution, using multi-scale tiling, and re-upscaling key regions. The signature of this problem: zoom in on the image or crop the target out and ask about it separately, and accuracy rebounds noticeably.
2.2 Reference Gap
The reference gap is the more hidden layer. Suppose the model has “seen” every target clearly, yet during reasoning it can still only refer to those targets in natural language: “the second one on the left,” “the one near the edge,” “that point just now.” Natural language is inherently vague, context-dependent, and anaphoric, while counting and localization require stable, unique, reusable identifiers. The longer the reasoning chain, the worse the reference drift — which surfaces as repeated counting, missed counts, and targets getting swapped.
The following pseudocode contrasts the two referencing styles:
# Natural language reference: every step can introduce ambiguitythought = "First find the person in the top-left corner, then look at the person to his right, then go back to that person just now"# Reference drift -> duplicate counts, misaligned targets# Structured reference: lock onto targets with stable handlestargets = detect_primitives(image) # returns geometric objects with unique idsa = targets.by_id(17) # polygon/point/box, unique and reusablethought = f"Using {a.id} as the anchor, count objects of the same class whose center distance is below the threshold"
The key difference: a structured handle keeps “the same object” the same identity throughout the reasoning, turning the process from “describing the image” into “operating on variables.”
3. How Structured Visual Primitives Work
A visual primitive can be understood as an unambiguous pointer constructed in continuous visual space. Common forms are polygons, keypoints, and bounding boxes. Their value shows up in four ways.
- Uniqueness: each primitive carries a stable identifier, avoiding anaphora confusion.
- Composability: boxes for coarse localization, points for center alignment, polygons for fitting contours — usable in layers.
- Verifiability: primitive coordinates can be projected back onto the original image for programmatic checks, instead of relying on language to prove itself.
- Low-ambiguity input: the model emits structured data that downstream systems consume directly, reducing error amplification from natural language parsing.
From an implementation standpoint, such schemes usually introduce paired structured tokens in the vocabulary to wrap geometric data — for example, start and end tokens that delimit a point, a box, or a polygon. Whether those tokens exist is a direct observation point for judging whether a multimodal approach follows the “structured reference” route or the “pure language description” route.
4. Why Agent Frameworks Amplify the Difference
It is worth stressing that the same model behaves differently across hosting environments, often because the agent harness constrains model capability in different ways. The harness determines: at what granularity images are fed in, whether the model may proactively crop and zoom, how tool call results are written back into context, and whether intermediate artifacts across turns are retained.
If the harness only supports “whole-image input + text output,” a model with structured referencing ability has no way to use it. Only if the harness supports passing geometric primitives as tool call arguments and return values can the capability be reliably triggered. So when discussing multimodal capability, model and harness must be evaluated as a whole — which is also the main source of inconsistent behavior for the same technical material across different entry points.
5. Engineering Practice Recommendations
- Locate the gap level first. Zoom into a region of the original image and ask the same question again. If results improve markedly, the problem leans toward perception; if not, it leans toward reference.
- Make output structured. Require the model to give conclusions as points, boxes, or polygons with unique identifiers, then let the program handle deduplication and count validation.
- Fix the evaluation protocol. Specify input resolution, tiling strategy, maximum number of turns, and the allowed tool set; otherwise results across environments are not comparable.
- Build a reproducible pipeline. Put input data in object storage, decouple tasks with a message queue, pin the runtime with a container platform, and track every turn’s intermediate results with logging and monitoring/alerting, so regressions are easy to localize.
- Shift validation earlier. For counting tasks, verify primitive counts and deduplication results programmatically; for navigation tasks, backstop with collision detection and reachability checks.
6. A Note on Toolchain Configuration
One point of friction from the original discussion is representative: the configuration given in official material did not match the actual command-line behavior, users following the documentation could not get it to work, and it turned out that upgrading the client and using a specific launch flag was required to enter the corresponding mode. This suggests two things for teams: documentation and release artifacts must be version-checked against each other, and configuration options should be provided in an explicit, verifiable format; and developer-facing toolchains should ship a minimal working example and a version self-check by default, rather than hiding critical parameters in third-party-facing notes.
7. Conclusion
The next stage of competition for multimodal agents is not about “whether it can recognize,” but about “whether recognition results can be reliably referenced and verified.” Structuring the reference problem, fixing the evaluation protocol, and making the runtime observable is the path to making dense counting, complex localization, and long-horizon planning tasks genuinely usable.
