Multimodal Agent Reference Gap: Why Visual Primitives Beat Natural Language Pointers
This article explains why multimodal agents often fail at precise spatial reasoning even when their perception is adequate, and introduces the Reference Gap as the hidden bottleneck between seeing and reasoning. It compares two engineering approaches—thinking with images and structured visual primitives such as points, boxes, and polygons—and outlines a practical path from evaluation baselines and output protocols to tooling, deployment, and a verification loop. Readers will learn how to measure the gap, design unambiguous structured outputs, and decide when visual primitives are required.
1. Where the Problem Starts: Models Can See but Cannot Describe Precisely
A recurring pattern shows up when multimodal agents move into production. A model may perform well on single-image captioning and general question answering, yet quality drops sharply in scenarios that demand precise spatial reasoning: dense counting, fine-grained localization, and path planning. Typical symptoms include systematic bias in count estimates, drifting bounding boxes, and multi-step plans that lose their way midway.
These failures are often blamed on insufficient resolution or a weak visual encoder. From a technical pipeline perspective, however, the real bottleneck usually sits in the representation stage—after perception and before reasoning. As soon as the model has to restate image content to itself in natural language, referential relationships start to distort.
2. Two Gaps: Perception Gap and Reference Gap
2.1 Perception Gap
The Perception Gap refers to information that is already lost or not effectively used before visual input reaches the language model backbone. Common causes include over-compressed images, tiling strategies that break global context, and high-resolution detail pooled away during encoding. Typical mitigations are improving input fidelity, introducing multi-scale tiling, and preserving original coordinate information.
2.2 Reference Gap
The Reference Gap is more subtle and more critical. Even when perception is complete, the model still tends to describe objects in natural language while “thinking”—for example, “that slightly bluish small square in the upper-left corner.” The ambiguity of natural language becomes a hard constraint here: adjectives cannot uniquely identify a pixel region, and pronouns can point to multiple candidates in multi-object scenes. The longer the reasoning chain, the more referential drift accumulates, eventually surfacing as a logic breakdown.
The engineering rule is straightforward: if a task must output verifiable coordinates, counts, or topological relationships, any approach that relies on natural language as an intermediary will be unstable.
3. Visual Primitives: Turning References into Unambiguous Pointers
The core idea behind visual primitives is to introduce a set of structured markers into continuous visual space, serving as unambiguous pointers to image regions. Common primitive sets in the industry cover three basic geometric objects:
- Point: anchors, keypoints, and path nodes;
- Box: object bounding and region cropping;
- Polygon: irregular contours and segmentation boundaries.
These primitives are embedded in the sequence as paired opening and closing markers, so the model can directly “write out” geometric objects during reasoning instead of describing them in text first and then trying to reconstruct them. A schematic sequence structure looks like this:
Task: Count the circular markers in the imageReasoning: Locate candidates first <|point|>x1,y1<|/point|> <|point|>x2,y2<|/point|> ...Exclude overlapping items <|box|>x1,y1,x2,y2<|/box|>Conclusion: N in total
The value comes from three properties. First, referential uniqueness: coordinates are identity. Second, verifiability: geometric outputs can be checked directly by a program. Third, composability: points, boxes, and polygons can be nested to express hierarchy and topological relationships.
4. Choosing Between Two Technical Routes
Two parallel routes have emerged around the question of how to make models use images effectively.
The first is thinking with images, which treats the image as a mutable workspace during reasoning. The model repeatedly inspects the scene by cropping, zooming, annotating, and re-inputting, externalizing visual operations as tool calls. Its strengths are broad applicability, low dependence on native model capability, and easy integration with existing coding tools or agent frameworks. The cost is latency and context growth from multiple interaction rounds.
The second is the visual primitives route, which internalizes structured geometric markers as a native expressive capability of the model and removes intermediary steps. It places higher demands on training data and marker-system consistency, but gives clearer bounds on tasks such as dense counting and precise segmentation.
From an engineering standpoint, the two are not mutually exclusive. A pragmatic choice is to use thinking with images as the outer control flow, deciding when to look at the image and which region to inspect, while using visual primitives as the inner representation for precise localization. A simple test decides whether a task truly needs primitives: must the output be verified by a program? If yes, prioritize the structural quality of the representation layer.
5. Implementation: From Evaluation to Integration
5.1 Establish a Perception Baseline
Start by measuring “seeing clearly” and “describing clearly” separately on controlled datasets: one set examines resolution and detail recall, the other examines counting and localization error. The gap between the two sets of results is an approximate measure of the Reference Gap.
5.2 Design a Structured Output Protocol
Specify the syntax of geometric markers, the coordinate system origin, units, and precision in the prompt or tool definitions, and require the model to output structure before the conclusion:
{"primitives": [{"type": "point", "x": 0.412, "y": 0.733},{"type": "box", "xyxy": [0.1, 0.2, 0.35, 0.48]}],"answer": {"count": 12}}
5.3 Tooling and Runtime Environment
Wrap cropping, annotation, and coordinate conversion as callable tools that the agent triggers on demand. Manage configuration, model identifiers, and runtime parameters through configuration files or environment variables rather than scattering critical settings across shell history. When upgrading the runtime, prefer a package manager to reduce environment drift.
5.4 Common Building Blocks for Cloud Deployment
Production deployments typically involve a few general capabilities: object storage for images and intermediate artifacts, container platforms for inference and tool services, message queues to decouple long-running tasks, and logging plus monitoring and alerting to trace reference-failure samples. Baidu AI Cloud offers corresponding capabilities in these general categories, which can be combined as needed without binding to proprietary interfaces.
5.5 Close the Evaluation Loop
Project geometric outputs back onto the image for a verifiability check: do counts match human annotations, do boxes cover the targets, and are paths connected? Failed samples flow back automatically as material for training and prompt optimization, closing the loop.
6. Common Pitfalls
- Attributing every localization failure to resolution while ignoring representation-layer design;
- Making the model “think” in natural language first and then convert to coordinates, which introduces unnecessary referential noise;
- Inconsistent marker syntax, or mismatched coordinate systems between training and inference;
- Measuring only end-to-end accuracy without splitting perception and reference metrics, which leaves optimization direction unfocused.
7. Conclusion
The next stage of competition among multimodal agents will not be about whether a model can recognize an image, but about whether it can point to a specific location in that image stably and verifiably during reasoning. Freeing references from natural language, carrying spatial semantics with structured visual primitives, and combining them with a thinking-with-images control flow and a solid evaluation loop is currently the most engineering-efficient path.
