Visual-Native Agent Harness: Making the Image Graph Actually Usable in Multimodal Search
This article explains why multimodal search agents often struggle to hand images from one tool to the next, and how the Visual-Native Agent Harness framework solves the problem with a unified image bank and ID-based references. It also covers On-policy Data Evolution (ODE), a feedback loop that adapts task-generation rules to the model's own behavior, together with experimental results across two model scales and eight benchmarks. Readers will come away with concrete patterns for building practical multimodal agents: giving every image a stable identity, passing short IDs instead of image data, and evolving training data alongside the model rather than treating it as a static resource.
1. Where the Problem Starts: The Graph Can “See” but Can’t “Pass It Along”
Given a photo of a snow mountain, ask where it was taken. A person will usually look for distinctive features, search for a matching location, and then revisit the photo to compare and verify the candidates. A multimodal search agent works in much the same way:
- Look at the image: identify the mountain ridge line in the photo.
- Crop: cut that ridge segment out of the original image.
- Image search: use the local crop to retrieve the place name “Zheduo Mountain.”
- Browse the web: open a relevant page and read the text.
- Zoom in again: enlarge another photo from the results and check the details of the mountain pass to confirm the answer.
In many multimodal search systems, however, the model can see the image it just retrieved but struggles to “hand” that image to the next tool. The difficulty shows up precisely at the final zoom step. After browsing the web, several images have accumulated along the way: the original, the cropped local patch, and the candidate images returned by image search. When the model wants to call the zoom tool, it must specify exactly which image it means, and the slightest mistake leads to mixing them up.
Why Tool Handoffs Break Down
Breaking the task apart, the root causes come down to three points:
- Images lack a stable “identity.” If an image is only displayed temporarily in the search results and there is no shared way to reference it across tools, the model has no way to point to the image it means.
- Intermediate results get confusing. Cropped images, retrieved images, and the original are all mixed together; describing them from memory alone makes it easy for the model to focus on the wrong one.
- Looking and searching don’t switch naturally. After a web search, if the model wants to return to a particular image to keep inspecting it and the workflow doesn’t support fetching images by reference, the agent often has to run the search again, or cram too many images into a single turn. The former adds call overhead; the latter drives up context length and inference cost.
This shows that the root of the problem isn’t entirely that the model “isn’t smart enough,” but that the tool environment lacks a mechanism for letting images flow across tools.
Two Main Threads
The Visual-Native Agent Harness framework, proposed by a research team, is designed specifically around this point. The related work has been accepted at NeurIPS 2026, and it contains two main threads:
- Reliably passing images between different tools.
- Teaching the model to judge “when to keep searching and when to look back at an image.”
2. The Visual-Native Agent Harness: Connecting All Tools Through an Image Bank
The visual-native framework supports nine tools, which fall into roughly three categories:
- Retrieval: web search, paper search, image search.
- Browsing and manipulation: opening a source webpage, zooming into an image, rotating an image.
- Computation: running code via Python to perform calculations.
Its core mechanism is straightforward: gather all images into a single image bank and assign each image a unique ID.
- Both the original image that comes with the problem and new images returned by tools are written into the same image bank.
- Each image has its own ID.
- During this problem-solving session, any later tool can fetch an image by its ID at any time.
Using the Zheduo Mountain example, here is how the IDs flow:
- The original image that comes with the problem is recorded as
<image:0>. - The model crops the ridge line out of the original, producing
<image:1>, and passes it to the image search tool. - Once the clearer photo found by the search is stored in the image bank, it becomes
<image:3>.
Even if the web is searched in between, when a zoom is needed the model can still pass <image:3> accurately to the zoom tool.
Two details here are worth noting.
First, the IDs are strictly increasing. The cropped image and the retrieved image occupy <image:1> and <image:3> respectively, which shows that each write to the image bank gets a new ID.
Second, the zoom tool receives an ID rather than the image itself. It uses that ID to resolve the target image from the image bank. The image becomes an object that tools can reference directly, no longer a one-off temporary attachment.
The Code View: A Minimal Image Bank Implementation
The sample code below shows how this “ID first, reference later” mechanism works in practice:
from dataclasses import dataclass@dataclassclass ToolResult:text: str = ""image_id: str = "" # Provide an ID when returning an image; leave empty for text-only resultsclass ImageBank:"""Unified image bank for a single problem-solving session; the originalproblem image and images returned by tools share the same ID namespace."""def __init__(self):self._store = {} # ID -> image data (or an object-storage reference)self._counter = 0def register(self, image) -> str:"""Store a new image and assign an ID; returns a reference like <image:3>."""image_id = f"<image:{self._counter}>"self._store[image_id] = imageself._counter += 1return image_iddef resolve(self, image_id: str):"""Retrieve an image by ID; raises a clear error for an invalid ID sothe agent can retry or switch to another image."""if image_id not in self._store:raise KeyError(f"Unknown image ID: {image_id}")return self._store[image_id]def zoom(bank: ImageBank, image_id: str, box) -> ToolResult:"""Zoom tool: accepts only an ID and returns a new ID; the original image is unchanged."""image = bank.resolve(image_id)left, top, right, bottom = boxcropped = image.crop((left, top, right, bottom))# Resample the crop to the target size to produce the "zoomed-in" effectenlarged = cropped.resize((1024, 1024))return ToolResult(image_id=bank.register(enlarged))def search_by_image(bank: ImageBank, image_id: str, searcher) -> ToolResult:"""Image search tool: returns text clues and writes the relevant images into the same image bank."""matches = searcher.query(bank.resolve(image_id))# In a real implementation, retrieved images usually need to be downloaded or converted firstnew_id = bank.register(matches[0].image)return ToolResult(text=matches[0].caption, image_id=new_id)
Following this pattern, the whole problem-solving process is a loop of tool calls:
def solve(bank, question, tools, max_steps=20):if question.image is not None:bank.register(question.image) # Register the original problem image, e.g. <image:0>history = []for _ in range(max_steps):action = model.plan(question, history, list(bank)) # The model decides which tool to call nextresult = action.tool(bank, action.args)history.append(result)if action.tool.finalize:return result.textraise RuntimeError("Reached the max number of steps without producing an answer")
From this we can distill three design principles:
- Register on write: both the original problem image and all images returned by tools are registered through a single entry point, with a globally consistent ID scheme.
- Pass by reference: tools exchange short IDs rather than the image data itself, and the model can clearly express “which image to process.”
- Derive without side effects: cropping, zooming, and rotating all produce new images while the original is always preserved. The model can return to
<image:0>at any time to re-examine the original information, comparing back and forth across multiple versions.
From an engineering standpoint, the IDs also make the execution trace trackable. Which image was used at each step and which new image it produced can both be reconstructed from the logs, which helps with debugging and with accumulating training data.
How the IDs are actually stored can be chosen according to deployment scale:
- Prototype stage: in-process memory is enough.
- Tools deployed across processes or nodes: use object storage to hold the images, with the storage key serving as the basis for the ID.
- Concurrent multi-session workloads: assign each problem-solving session its own image bank instance to avoid ID collisions across different tasks.
3. Once Connected: Teaching the Model “When to Search and When to Look”
Once the tools are connected, the model still has to learn two things: when it should keep searching, and when it should look back at an image.
Return to the Zheduo Mountain case: after retrieving the place name “Zheduo Mountain,” the model didn’t answer immediately. Instead, it went on to consult web pages and zoom in on another photo to cross-check, ultimately pinning the location down to the specific mountain pass. This kind of judgment—continuing to verify on top of existing clues and returning to image details when necessary—is essentially a decision-making capability. It’s hard to obtain reliably through prompting alone and needs to be deliberately shaped in the training data.
This also raises a second question: where does the training data come from, and how should it be designed?
4. On-policy Data Evolution: Let the Task-Generation Rules Grow with the Model
From Rollout to On-policy
In this work, when a model receives a problem and then searches and calls tools until it produces an answer, that entire process is called one rollout.
When generating tasks for reinforcement learning, the one performing the rollout is precisely the target model that is about to be trained. This is exactly what “on-policy” means: the data used for training is produced by the model’s own current policy through exploration.
This setup stands in contrast to “off-policy” data, which may be generated by other models or even by human demonstrations and therefore diverges from the actual behavior of the model being trained. On-policy rollouts stay closer to the model’s real problem-solving process and more easily expose the mistakes it actually makes in tool use.
A Recursive Self-Improvement Perspective
From the angle of Recursive Self-Improvement (RSI), it isn’t only the agent itself that needs improving; the method used to generate its tasks is worth improving as well.
If problems are always generated by a fixed set of rules, the data distribution becomes relatively rigid: problem types the model has already mastered keep reappearing, while its genuine weak spots don’t get targeted training.
The ODE Approach
To address this, the team proposed On-policy Data Evolution (ODE):
- A data synthesizer adjusts the task-generation rules based on the agent’s problem-solving records.
- The next round of rollouts then tests whether those adjustments are appropriate, forming a loop of continuous improvement.
There’s an easily overlooked detail here: in reinforcement learning, tasks and trajectories are usually generated separately, and the way tasks are generated doesn’t sense the model’s actual performance. ODE wires “task generation” and “evaluation” into a feedback loop:
- The task generator adjusts its strategy based on model performance.
- The target model runs rollouts with the new tasks.
- The rollout results in turn become the basis for the next round of task generation.
The task-generation method and the agent’s policy are placed in the same loop and co-evolve.
The Task-Generation Workflow
The same framework also provides the means for ODE to generate tasks, in roughly two steps:
- Find an object that can be verified against at least two independent sources, ensuring the problem has an objective, decidable answer.
- Then choose an image related to that object so that the problem-solving process naturally involves both looking at images and searching.
As a result, this data inherently carries the “image addressable” property: every problem image enters the image bank and gets an ID, and the intermediate images the model produces during a rollout are recorded as well, giving the task generator a solid basis for adjustments.
Things to Watch When Putting It Into Practice
When reproducing a similar data loop in engineering practice, it’s worth paying attention to the following:
- Difficulty calibration: problem difficulty should sit slightly above the model’s current level. Problems that are too easy yield no gain; problems that are too hard make it hard to obtain a useful signal.
- Quality filtering: remove problems with blurry images, conflicting sources, or ambiguous answers.
- Leakage prevention: keep synthetic data properly isolated from evaluation data to avoid inflated evaluation scores.
- Cost control: each task-generation loop consumes a large number of rollouts, so combine asynchronous inference with batch sampling to reduce overhead.
- Elastic scheduling: using elastic resource management such as container platforms for inference and training tasks can improve resource utilization.
5. Experimental Results: Two Scales, Eight Benchmarks
Under the same framework, after training on ODE data, the change in average accuracy across eight benchmarks for two model sizes is as follows:
| Model scale | Avg. accuracy before training | Avg. accuracy after training | Absolute gain | Relative gain |
|---|---|---|---|---|
| 8B | 24.9% | 39.0% | 14.1 percentage points | ~57% |
| 30B | 30.6% | 41.5% | 10.9 percentage points | ~36% |
The relative gain is computed from the figures above. Both model sizes show clear improvement, with the 8B model showing the larger relative increase.
A Controlled Experiment on Task Generation
To isolate the effect of the task-generation method, the team also ran a controlled experiment:
- Setup: two groups of 8B models are trained with reinforcement learning using an equal amount of problems; the only difference is whether the task-generation rules are adjusted based on rollouts.
- Result: the group whose task-generation rules were adjusted by rollout outperformed the group that kept fixed rules on all eight benchmarks.
“Leading on all eight benchmarks” shows that the benefit comes from the task-generation mechanism itself, not from simply piling up more problems.
Of course, factors such as model scale, base-model version, and training configuration all affect the final numbers, so when reproducing, the results under actual conditions should be the reference.
6. Engineering Takeaways: Five Points for Building Multimodal Agents
The ideas in this work offer direct lessons for building practical multimodal agents:
- Give every image a stable identity. Any image that will flow around—whether uploaded by the user, generated by a tool, or obtained through retrieval—should be registered through a single entry point and get an ID that can be referenced across tools.
- Have all image operations follow “read an ID, write a new image.” Tools like crop, zoom, and rotate accept an ID and return a new ID, while the original is always preserved, so the model can compare back and forth across versions.
- Pass tool calls with structured parameters. Rather than having the model describe “that image I just found” in natural language, reference the resource with an explicit field. This reduces ambiguity and makes programmatic validation and retries after a failed call easier.
- Have the model itself “run out” the training data. Using on-policy rollouts to collect training data exposes the agent’s weak spots in tool use more accurately.
- Let the task-generation rules keep evolving. Dynamically adjust the composition of problems based on problem-solving trajectories to avoid a rigid data distribution. As shown in the experiment above, with an equal amount of data, the scheme that dynamically adjusts the rules led across all eight benchmarks.
7. Conclusion
The dilemma faced by multimodal search agents—being able to “search it out” but not “put it to use”—is fundamentally a matter of the tool environment lacking a unified image-addressing mechanism. The Visual-Native Agent Harness framework uses an image bank and an ID system to let images reliably relay between different tools.
Building on this, On-policy Data Evolution lets the task-generation method continuously adjust along the agent’s problem-solving trajectory, turning “training data” from a static resource into a process that co-evolves with the model. Combined, the two may be exactly the key step that moves multimodal agents from “being able to call tools” toward “being able to plan and verify.”
