Train the Agent, Not the Expert: Learning to Harness Heterogeneous Experts for Multi-Turn Visual Reasoning

Yaowu Fan, Tao Han, Dazhao Du, Jinhua Ma, Jia Wan

TL;DR

Instead of modifying and retraining massive vision-language models to perform pixel-perfect detection or counting, VisHarness teaches an agent how to orchestrate a toolkit of existing, specialized vision models. By decoupling high-level reasoning from low-level visual execution—and using a clever memory-pruning trick to keep multi-turn reinforcement learning affordable—it matches or beats specialized models across diverse tasks using a tiny fraction of the training data.

What Problem Does This Paper Address?

Computer vision currently suffers from a frustrating divide. On one side, we have specialist models (like Segment Anything or Grounding DINO) that excel at pixel-precise masks, bounding boxes, or dense crowd counting, yet stumble when handed complex, implicit instructions. On the other side, Multimodal Large Language Models (MLLMs) are brilliant at high-level reasoning and language comprehension, but notoriously clumsy at fine-grained spatial localization—especially when an image contains hundreds of tiny, overlapping objects.

Traditionally, researchers bridge this gap by grafting task-specific decoders onto MLLMs and fine-tuning them on massive datasets. That requires heavy architectural surgery and risks degrading the model's general intelligence. What if, instead of forcing a generalist brain to become a pixel-level specialist, we simply taught it to act like a project manager directing existing specialists?

Figure 1: From expert training to expert harness- ing. (a): Traditional vision methods train a separate specialist for each sub-task. (b): VisHarness learns a harnessing policy over a set of heterogeneous ex- perts and thus can solve complex visual tasks through multi-turn interaction.

Methods

The authors introduce VisHarness (built on Qwen3-VL-8B), a trainable agent that interacts with a live environment of six frozen tools over multiple turns:

  • Three core visual models: PhraseToBoxMask (fast open-vocabulary detection/segmentation for simple nouns), PhraseToPoint (locates object centers from complex relational descriptions), and PointToBoxMask (converts points into masks/boxes).
  • Three auxiliary utilities: SplitImageIntoPatches (slices crowded scenes so tiny objects become legible), SuperResolution (enhances blurry patches), and MergeBoxMask (stitches patch predictions back together and deduplicates overlaps).
Figure 3: The heterogeneous visual expert suite consists of six visual experts, including three fundamental visual models for executing specific vision tasks and three auxiliary visual tools for extending the capabilities of these models. Each visual expert plays a distinct role, while different experts can complement each other to jointly solve complex visual tasks that are difficult for any single expert to accomplish.

While supervised fine-tuning (SFT) gives the agent a cold start on tool syntax, the real magic happens during on-policy reinforcement learning using Group Relative Policy Optimization (GRPO)—a standard RL algorithm that optimizes policies by comparing groups of sampled trajectories.

However, multi-turn visual tool use hits a severe bottleneck during RL: every tool call returns annotated images, causing visual tokens to pile up uncontrollably in the context window. To solve this, the authors introduce Dynamic Visual Memory Archiving:

  1. Prune old visuals, keep text: At each turn, the agent sees only the visual output from the most recent tool call. Older visual feedback is swapped out for compact text placeholders, keeping the full textual reasoning history intact.
  2. Turn-level MDP decomposition: Because archiving alters the prompt history at every turn (meaning Turn 3 isn't just a strict prefix extension of Turn 2), standard trajectory-level RL breaks consistency between rollout and training. The authors decompose each multi-turn trajectory into independent single-turn samples—each paired with the exact memory state seen at that step—while still rewarding them using the final trajectory-level outcome (IoU for masks, or relative count error for points).
Figure 2: Overview of VisHarness. VisHarness solves various complex fundamental vision tasks through multi-turn interactions with heterogeneous visual experts. At each turn, it selects an action based on the current memory. When a visual expert is invoked, the environment parses the expert name and arguments, and a controller dispatches the request to the least-loaded worker for that expert. After receiving the visualized and textual feedback, VisHarness dynamically archives outdated visual memory, incorporates the latest feedback into its memory, and proceeds to the next turn.

Datasets

No new benchmarks are introduced. Instead, VisHarness is evaluated across four existing benchmarks covering distinct vision challenges:

  • gRefCOCO: Generalized referring expression segmentation (single, multiple, or absent targets).
  • ReasonSeg: Implicit reasoning segmentation (inferring targets from indirect queries).
  • REC-8K: Referring-expression counting and localization in dense scenes.
  • Dense200: Dense small-object detection—completely held out from all SFT and RL training to test zero-shot task generalization.

Key Insights and Ideas

  • Zero-shot tool use fails; policy learning is essential: Simply handing tools to an untrained Qwen3-VL-8B yields dismal results (e.g., 3.6 average score on ReasonSeg) because the base model frequently forgets to call MergeBoxMask to submit final answers or picks suboptimal tools.
  • Extreme data efficiency: Because the frozen experts already know how to segment and detect, the agent only needs to learn when and how to call them. On gRefCOCO, VisHarness rivals specialist models trained on 100% of the dataset while using just 0.76% of the training data.
  • Emergent visual self-correction: Looking at visual feedback allows VisHarness to catch tool failures mid-flight. For example, when converting center points of a "pink tie" and "pink phone" into masks, PointToBoxMask initially grabs the whole person (area mode, 5.01% IoU). Seeing the mistake, the agent re-invokes the tool in confidence mode, jumping to 95.17% IoU.
  • Memory archiving is practically free: Replacing old images with text placeholders slashes visual tokens per trajectory by ~73–76% and cuts inference GPU KV-cache memory by up to 53.9%, with virtually zero drop in task accuracy.

Key Results

  • ReasonSeg: Achieves a state-of-the-art average score of 70.2, beating specialized MLLM SELF1E-8B (67.1) and SAM3-Agent (57.0).
  • Dense200 (Unseen): Hits 67.5 mean F1 (and 68.7 with SFT-only), outperforming specialized detectors like Rex-Omni (58.3) and SenseNova-Vision (66.8) without ever training on detection box data.
  • gRefCOCO: Reaches 63.97 average IoU using 0.76% of the training data, nearly matching fully-trained specialists ReLA (64.37) and GSVA (65.58), while setting the best scores on TestB.
  • REC-8K: Achieves a test MAE of 8.91 and localization F1 of 0.59, beating its own underlying point-localization expert, Molmo2-4B (10.04 MAE, 0.51 F1).

Limitations and Future Work

While the paper does not include a standalone limitations section, the authors explicitly highlight an objective-mismatch limitation in their experiments: on Dense200, adding RL actually lowers detection performance compared to SFT-only (from 68.7 down to 67.5 mean F1). Because the RL stage included no bounding-box supervision—relying only on mask IoU and point-based count errors—the reward signal evaluated object counts without rewarding bounding-box tightness. Designing richer, localization-aware rewards or expanding the expert suite are natural next steps implied by this finding.

Summary updated

Abstract

Recent advances in computer vision have produced powerful specialized models for detection, segmentation, counting, and other visual tasks. However, these models are typically optimized for isolated tasks, limiting their ability to support general-purpose visual intelligence, particularly when complex language understanding and dense small-object perception are required. We propose VisHarness, a trainable visual agent that decouples high-level perception, reasoning, and decision-making from low-level task execution. Rather than training a task-specific model, we train VisHarness to harness a set of carefully designed heterogeneous visual experts. This paradigm preserves the agent's general intelligence while leveraging the precision of specialized visual experts for specific tasks. With only lightweight training, VisHarness learns a generalizable policy for harnessing visual experts, enabling it to solve fundamental vision tasks in diverse complex scenarios through multi-turn interactions with these experts. To enable efficient on-policy reinforcement learning in a live environment, we introduce dynamic visual memory archiving to reduce the visual-token overhead that rapidly accumulates during multi-turn interactions with visual experts. Experiments on four representative benchmarks spanning reasoning segmentation, generalized referring expression segmentation, dense small-object detection, and referring expression counting show that VisHarness substantially outperforms existing general-purpose models and is competitive with or superior to task-specific models. Our code, model weights, and training data are publicly available at https://github.com/fyw1999/VisHarness.
BibTeX
@inproceedings{fan2026train,
  author = {Yaowu Fan and Tao Han and Dazhao Du and Jinhua Ma and Jia Wan},
  title = {{Train the Agent, Not the Expert: Learning to Harness Heterogeneous Experts for Multi-Turn Visual Reasoning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=zXok9tzCGw},
}
Figure