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?
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), andPointToBoxMask(converts points into masks/boxes). - Three auxiliary utilities:
SplitImageIntoPatches(slices crowded scenes so tiny objects become legible),SuperResolution(enhances blurry patches), andMergeBoxMask(stitches patch predictions back together and deduplicates overlaps).
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:
- 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.
- 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).
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
MergeBoxMaskto 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,
PointToBoxMaskinitially grabs the whole person (areamode, 5.01% IoU). Seeing the mistake, the agent re-invokes the tool inconfidencemode, 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