Bridging the Visual Referential Gap in Multimodal Agents: Structured Visual Primitives vs. Thinking with Images
The recent leap in multimodal agent capabilities comes less from seeing more clearly and more from how reliably visual information is expressed to the reasoning module. This article abstracts two mainstream technical routes from a widely discussed model release: translating images into structured visual primitives (points, boxes, polygons) and re-sampling image regions on demand during reasoning. It explains the perception gap and the referential gap, compares the two routes in terms of applicability and failure modes, addresses readability and maintainability issues in structured agent configuration, and offers engineering advice on evaluation reproduction, data preparation, cost control, and observability. Readers will gain a practical framework for deciding when to introduce structured visual pointers, when to keep natural language descriptions, and how to evaluate multimodal capability with verifiable metrics rather than subjective impressions.
1. Where the Debate Started: A Release That Split the Community
Discussions triggered by a model update rarely focus on benchmark scores alone. They usually center on one question: what mechanism actually processes the image? That question is legitimate, because differences in multimodal capability rarely show up in general question answering. They show up in tasks where a single mistake invalidates the whole result: dense counting, precise localization, chart reading, and maze or path planning.
Once the product and model names are stripped away, what deserves study is the tradeoff between two technical routes:
- Route A: Visual primitives. Transcribe targets in an image into a structured symbol sequence (points, bounding boxes, polygons) and let downstream reasoning operate in that symbol space.
- Route B: Images as context. Keep the original image (or image patches) as reasoning context and let the model take another look repeatedly across multiple reasoning turns, commonly described as “thinking with images.”
The two routes are not mutually exclusive, but they differ sharply in engineering implementation, context budget, and failure modes.
2. Two Gaps: Why Seeing Clearly Does Not Mean Answering Correctly
2.1 The Perception Gap
The perception gap refers to information loss caused by input resolution, tiling strategy, and encoding. Typical symptoms: small objects compressed into a few pixels, long images scaled down until details are unusable, and chart ticks and legends merging into each other. Common mitigations include dynamic resolution, image tiling, zooming into key regions on demand, and running object detection first before local cropping.
2.2 The Referential Gap
Even when perception is solved, the model can still answer incorrectly, because it translates visual information into natural language before reasoning. Natural language is ambiguous when describing spatial relations:
- Expressions such as “the one on the left,” “slightly above the middle,” or “the second item in the third row” are easily misaligned in dense scenes.
- Counting tasks require repeated self-reference over the same set of objects, and every regenerated language description can drift.
- Multi-step planning requires stable reference to the same entity; once the linguistic reference changes, the chain breaks.
This is where visual primitives add value: they provide unambiguous pointers that can be verified and referred back to in continuous visual space, turning “which one do I mean” into “which identifier am I referencing.”
3. Route Comparison: Where Structured Pointers and Thinking with Images Each Fit
| Dimension | Visual Primitives Route | Thinking with Images Route |
|---|---|---|
| Context cost | Short symbol sequences, controllable cost | Image patches re-enter context repeatedly, high cost |
| Verifiability | Strong; pointers can be replayed against the original image | Moderate; depends on attention and re-sampling quality |
| Dense counting | Clear advantage | Prone to double counting or missed counts |
| Open-domain description | Requires reliable target extraction first | More natural, broader semantic coverage |
| Error propagation | Errors in the extraction stage become fixed | Can self-correct each turn, but may also oscillate |
The conclusion is not that one route replaces the other. When a task can be clearly defined as localization and counting, structured pointers are more stable. When the task is open-ended understanding and explanation, thinking with images is more flexible. Mature systems often mix both: first obtain candidate primitives through detection or segmentation, then let the reasoning module switch between symbols and images.
4. Configuration and Tooling: Readability of Structured Configuration
Another frequent pain point in the community is that agent configuration is not intuitive: the examples in the official documentation do not match the configuration file actually loaded locally, and three entry points coexist (command-line arguments, configuration files, and environment variables), so following the documentation appears to have no effect.
This is a typical engineering problem. Recommended troubleshooting order:
- Confirm the version: check whether the local runtime lags behind the version described in the documentation, and upgrade before reproducing if necessary.
- Confirm entry-point precedence: most frameworks load in the order default configuration < user configuration < environment variables < command-line arguments, with later sources overriding earlier ones.
- Confirm field placement: the model identifier often lives in a nested structure and has no effect when written at the top level.
- Print the effective configuration: output the final merged result at startup instead of guessing.
Illustrative configuration (pseudocode, structure levels only):
profile: webmodel:name: "<your-model-id>"capabilities: [text, image]runtime:max_image_blocks: 6image_detail: high
Recommendation: writing a snapshot of the effective configuration into logs is the most effective way to eliminate drift between documentation and implementation.
5. Evaluation Reproduction: Why Web Experience and Paper Results Diverge
The original discussion noted that the same class of tasks behaves differently across entry points (for example, counting deviations and path-planning failures). This is normal for multimodal systems, and the cause is usually not lost capability but different reasoning-chain configurations:
- Different sampling and decoding parameters (temperature, top-p, maximum generation length).
- Different image preprocessing (resolution limits, number of tiles, compression quality).
- Different system prompts and tool sets (whether cropping, zooming, or detection tools are available).
- Different context budgets (image patches truncated or downsampled).
The minimal reproducible setup fixes four things: input images, preprocessing parameters, prompt templates, and decoding parameters, and outputs intermediate artifacts (tile images, candidate boxes, final answer) to form a traceable chain.
6. Engineering Recommendations
- Layer the tasks: separate extraction from reasoning, using dedicated visual capability for extraction and a multimodal large model for reasoning.
- Prefer pointers: for counting, localization, and form-filling tasks, require structured coordinates instead of natural language directions.
- Control the budget: set caps and downsampling policies for image patches to avoid context expansion and runaway cost.
- Validate results: apply schema validation and out-of-bounds checks to structured output, and fall back to retry on invalid coordinates.
- Build observability: log the image summary, primitive count, and latency for each call; set thresholds for failure rate and average number of turns in monitoring alerts.
- Add elasticity and storage: keep raw assets in object storage, deploy inference services in containers, and use a message queue to smooth out batch evaluation workloads.
7. Implementing This on Baidu AI Cloud
On Baidu AI Cloud, the approach maps to a combination of general capabilities: object storage hosts images and tile artifacts, a container platform runs inference services and the toolchain, a message queue decouples batch evaluation tasks, and logging plus monitoring and alerting form a traceable evaluation loop. On the model side, a general platform entry such as Qianfan manages multimodal capability calls centrally, avoiding tight coupling between business logic and a specific runtime.
8. Conclusion
The competitive focus of multimodal agents is shifting from resolution and parameter count to reference and verifiability. Understanding the boundary between the perception gap and the referential gap is what enables the right tradeoff between structured visual primitives and thinking with images. Unifying versions, configuration, preprocessing, and decoding parameters is the prerequisite for turning paper results into stable production behavior.
