Weaver: End-to-End Agentic System Training for Video Interleaved Reasoning

Yudi Shi, Shangzhe Di, Qirui Chen, Qinian Wang, Jiayin Cai, Xiaolong Jiang, Yao Hu, Weidi Xie

TL;DR

Weaver is an end-to-end trainable multimodal agentic system that empowers video large language models to dynamically invoke specialized perception tools (like tracking and temporal grounding) during reasoning. By interleaving text generation with tool execution and optimizing the policy via reinforcement learning, Weaver constructs accurate, perception-in-the-loop reasoning trajectories that significantly mitigate hallucinations and boost performance on complex long-video understanding tasks.

What Problem Does This Paper Address?

As Multimodal Large Language Models (MLLMs) scale up, their ability to reason over video has become a key benchmark for artificial general intelligence. However, current video Chain-of-Thought (CoT) approaches are primarily text-centric. They typically process a fixed, uniformly sampled set of frames and generate intermediate reasoning steps purely in text.

The authors identify three critical limitations with this paradigm:

  1. Hallucination: As textual rationales lengthen, the model drifts from the actual video signal, fabricating objects or actions.
  2. Frozen Perception: Models cannot adaptively look back at the video to acquire more information based on intermediate reasoning needs.
  3. Representational Mismatch: Text cannot faithfully capture structured visual signals like segmentation masks, optical flow, or spatial tracks.

To solve these issues, we need a shift from text-only rationales to an agentic, perception-in-the-loop paradigm where reasoning and visual tool use are deeply interleaved.

Comparison of Direct Output, Text-based CoT, and Weaver's Multimodal Agentic Reasoning.

Methods

Weaver addresses these challenges by combining a core generative vision-language model (Qwen2.5-VL) with a curated library of six specialized perception tools: Temporal Grounding, Frame Selection, Temporal Count, Trim, Spatial Tracking, and Spatial Grounding.

The system operates via a multi-turn conversational exchange. At each step, the model can output a structured <tool_call> tag. The system executes the requested tool, extracts the targeted visual evidence (e.g., a specific cropped clip or a highlighted bounding box), encodes it, and appends it back into the interleaved history context for the next reasoning turn.

Overview of the Weaver agentic system showing multi-turn interleaved reasoning.

To train this system without relying on prohibitively expensive manual trajectory annotations, the authors implement a two-stage training strategy:

  1. Cold-start Supervised Fine-Tuning (SFT): The model is trained on structured data to master basic tool syntax, argument formatting, and interleaved reasoning patterns.
  2. Tool-Augmented Reinforcement Learning (RL): The policy is optimized using a variant of Group Relative Policy Optimization (GRPO). Crucially, the reward function is outcome-based, combining answer correctness ($R_{corr}$), format adherence ($R_{format}$), and a novel tool-success reward ($R_{tool}$), which triggers only if the model successfully uses a tool and arrives at the correct answer. This allows the agent to autonomously discover optimal tool-use and composition strategies using trajectory-free data.

Datasets

The authors introduced two high-quality datasets derived by filtering and rewriting existing video datasets (Video-R1-170K and LongVideo-Reason-51K) using Gemini-2.5-Pro:

  • Weaver-SFT-10K: 10,000 samples containing explicit, tool-augmented multimodal reasoning trajectories for bootstrapping the model.
  • Weaver-RL-12K: 12,000 trajectory-free question-answer pairs used to fuel the reinforcement learning exploration phase.

For evaluation, Weaver was tested across a wide array of challenging benchmarks: LVReason, VideoMME, LVBench, MLVU, VideoMMMU, VSIBench, and MVBench.

Key Insights and Ideas

  • Perception Anchoring Prevents Drift: Injecting actual visual features returned by tools directly into the LLM's context window acts as a factual anchor. This effectively stops the compounding errors and hallucinations common in long text-only CoT chains.
  • Temporal Tools are the Bottleneck: Profiling tool usage revealed that temporal tools (temporal grounding and frame selection) dominate across datasets. This underscores that pinpointing when an event happens is the foundational challenge in long video understanding.
  • RL Unlocks Tool Composition: Rather than relying on rigid, hardcoded tool pipelines, the model learns to dynamically chain tools together (e.g., using temporal grounding to find a clip, frame selection to pick a keyframe, and spatial grounding to count objects) purely driven by the outcome-based RL reward.

Key Results

Weaver demonstrated consistent performance gains across all evaluated benchmarks, particularly on long videos:

  • Base Model Superiority: Weaver outperformed its base model, Qwen2.5-VL-7B, by 6.7% on LVReason, 2.4% on LVBench, and 2.6% on MLVU.
  • Outperforming Text-Centric CoT: It beat state-of-the-art text-centric video reasoning models like Video-R1 (by 4.0% on LVReason) and VideoRFT.
  • Beating Training-Free Agents: Weaver consistently outperformed zero-shot agentic frameworks (like VideoAgent or ViperGPT), proving that end-to-end training is essential for seamless tool integration.
A visualization of Weaver successfully combining frame selection, spatial grounding, and temporal grounding to answer a complex biology quiz question.

Limitations and Future Work

While highly effective, the paper notes a few inherent limitations:

  • Frozen Tool Dependency: The specialized perception tools are kept frozen during training to preserve their capabilities. Consequently, Weaver's ultimate performance is bounded by the accuracy and limitations of these underlying expert models.
  • Inference Overhead: Multi-turn interleaved reasoning inherently increases inference latency and computational cost due to the sequential nature of tool invocation and context expansion.

Future directions include exploring tighter end-to-end co-training of the tools alongside the policy model and optimizing inference efficiency.

Summary updated

BibTeX
@inproceedings{shi2026weaver,
  author = {Yudi Shi and Shangzhe Di and Qirui Chen and Qinian Wang and Jiayin Cai and Xiaolong Jiang and Yao Hu and Weidi Xie},
  title = {{Weaver: End-to-End Agentic System Training for Video Interleaved Reasoning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=dT6uE0TzzU},
}
Figure