Bridging the Visual Reference Gap in Multimodal Agents
This article explains the Reference Gap in multimodal agents, where a model can see an image but still fails at precise tasks because it relies on ambiguous natural-language descriptions. It compares two technical approaches—structured visual primitives (points, boxes, polygons) and "thinking with images"—and shows how they can be combined. It also covers fixing client configuration and version mismatches, why benchmark scores differ from web experiences, and practical guidance for building reproducible, observable, and cost-controlled agent pipelines.
1. Background: From “Can’t See Clearly” to “Can’t Describe Precisely”
In the engineering practice of multimodal agents, a common puzzle is that a model has clearly “seen” an image yet still reaches the wrong conclusion when a precise operation is required. For example, when counting the people in the same group photo, different entry points or different versions may return inconsistent results. In maze-style tasks, the path a model describes may turn out to be completely unworkable when actually executed. These phenomena show that what limits the ceiling of complex visual tasks is often not resolution or parameter count, but the way the model refers to visual objects internally.
The industry usually calls the first layer of obstacles the “Perception Gap”: image information is compressed or lost during encoding, scaling, and tiling, making fine details unusable. The second layer is more subtle and is called the “Reference Gap”: even when the model sees the target clearly, it can still only describe “the second person on the left” or “the block near the door” in natural language within its reasoning chain. Natural language is inherently ambiguous and context-dependent, so once targets are densely packed or spatial relationships become complex, the reference drifts and the reasoning chain collapses.
2. Abstract Comparison of Two Mainstream Technical Approaches
2.1 The Visual Primitives Approach
The core idea is to map objects in continuous visual space to unambiguous “pointers,” such as three kinds of structured markers: points, bounding boxes, and polygons. The model directly outputs or references these markers while reasoning, instead of generating a natural-language description. The benefits are that references are unique, traceable, and verifiable, and dense counting and precise localization no longer depend on the stability of language.
To judge whether a system adopts this approach, you can usually look at whether the corresponding special marker symbols (open/close markers for points, boxes, and polygons) exist in a public structured configuration file. The presence of such markers is a strong signal of the approach being chosen.
2.2 The “Thinking with Images” Approach
Another more classic approach is to have the model repeatedly “look at the image” during reasoning: crop, zoom, annotate, and observe again, inserting intermediate results into the reasoning chain as visual evidence. It is simple to implement and highly general, and it is friendly to open-ended visual question answering, but it is less stable than structured pointers when absolutely precise counting and coordinate output are required.
The two approaches are not mutually exclusive. A more common engineering combination is to use structured primitives for “localization and counting” and “thinking with images” for “relationship understanding and planning.”
3. Tooling and Configuration: Converging Uncertainty
Many complaints about “inconsistent model capabilities” ultimately trace back to inconsistent client configuration and versions. It is recommended to lock down the following before deployment:
- Version alignment: upgrade the agent command-line tool to the latest stable version, then launch through a unified runtime configuration file (profile) to avoid different parameters across people.
- Explicit model identification: write the model identifier being called explicitly in the configuration rather than relying on default values.
- Parameter traceability: record key parameters such as temperature, maximum output length, and image input limits in version control to ensure experiments are reproducible.
Illustrative configuration (pseudocode, structure only):
{"profile": "web","model": "<your-model-id>","vision": {"max_image_side": 1536,"allow_structured_pointer": true},"agent": {"temperature": 0.0,"max_steps": 12}}
It is worth emphasizing that official documentation is aimed at integrators rather than end users, and configuration options often exist as structured files, so command-line help information may not be complete. Teams should treat a “reproducible configuration” as part of the deliverable.
4. Evaluation Reproduction: Why Paper Metrics Differ from the Web Experience
The gap between high scores in papers and the web experience usually comes from four types of differences:
- Different inference budgets: official evaluations use fixed prompt templates, voting, or multi-sample strategies, while the web is interactive single-pass generation.
- Different image preprocessing: differences in scaling strategy, number of tiles, and encoding resolution directly change detail visibility.
- Different tool availability: the evaluation environment allows tool calls such as cropping and zooming, while a pure chat entry point does not.
- Different system prompts: benchmark-oriented prompts strongly constrain the output format, while interactive entry points are more relaxed.
Therefore, any capability judgment should be built on the “three-same” principle of same configuration, same input, and same budget; otherwise the conclusion is not transferable.
5. Engineering Recommendations
- Task layering: assign “localization/counting” to structured output, assign “planning/explanation” to language reasoning, and finally perform a consistency check (whether counts and coordinates are self-consistent).
- Verifiable output: require the model to produce parseable structured results, and perform legality checks and fallback retries on the program side.
- Controllable cost: image-related inference is expensive, so it is recommended to set upper limits on input resolution, number of steps, and retries, combined with caching and asynchronous queues to smooth peaks.
- Observability: write intermediate steps, tool calls, and final structured results uniformly into a logging service, and use monitoring and alerting to locate quality regressions.
- Elastic capacity: training or batch inference can rely on container platforms and object storage to organize data and artifacts, avoiding single-machine bottlenecks.
6. Conclusion
The focus of competition in visual capabilities is shifting from “seeing clearly” to “referring precisely.” Structured visual primitives and thinking with images each have their applicable boundaries, and the real engineering gains come from combining the two, locking down configuration, and designing verifiable output. On platforms such as Baidu AI Cloud, developers can build a reproducible, observable, and cost-controlled evaluation and deployment pipeline for multimodal agents based on general capabilities like container platforms, object storage, logging services, and monitoring and alerting, turning the debate over “whether the model is good enough” into an engineering question of “whether the configuration and budget are consistent.”
