VideoSearch-R1: Agentic Video Retrieval & Reasoning
- The paper introduces a novel agentic framework that jointly optimizes inter-video retrieval and intra-video temporal grounding using soft query refinement.
- VideoSearch-R1 refines queries in a continuous latent space, enabling iterative correction and improved localization of relevant video segments.
- The system leverages reinforcement learning with Group Relative Policy Optimization to align retrieval, verification, and temporal grounding for state-of-the-art performance.
VideoSearch-R1 is an agentic framework for iterative video retrieval and reasoning through multi-turn interaction with a video search engine. It is designed for settings in which a system must retrieve relevant videos from large-scale corpora and then perform fine-grained, query-conditioned tasks within the retrieved content, such as temporal grounding. The framework addresses two limitations identified in prior work: retrieval is often treated as a preprocessing step with no mechanism to refine failed initial search, and recent agentic video-understanding systems typically assume that the query-relevant video is already given. VideoSearch-R1 responds by jointly optimizing inter-video retrieval and intra-video temporal grounding, using Soft Query Refinement (SQR) to refine search query tokens in a continuous latent space rather than rewriting queries in the discrete text space (Lee et al., 1 Jul 2026).
1. Problem setting and system scope
VideoSearch-R1 is framed around Video Corpus Moment Retrieval (VCMR), where the objective is not only to identify the correct video in a corpus but also to localize the relevant temporal segment within that video. In the formulation reported for the method, the system iteratively retrieves videos from large-scale corpora, refines search queries, and performs precise query-conditioned temporal grounding within the retrieved content (Lee et al., 1 Jul 2026).
The motivating diagnosis is explicit. Existing approaches typically treat retrieval as a preprocessing step, and consequently, when the initial retrieval fails, there is no mechanism to refine the search. At the same time, recent agentic frameworks have advanced video understanding but typically assume that the query-relevant video is already given, focusing exclusively on intra-video reasoning tasks. VideoSearch-R1 reorganizes this pipeline into a coupled loop in which retrieval failure is not terminal but triggers a learned refinement step (Lee et al., 1 Jul 2026).
This places the framework in a lineage of interactive retrieval systems, but with a different optimization target. Earlier interactive VCMR work modeled known-item search as a Markov Decision Process over a graph of clips and learned navigation with user feedback and actor-critic reinforcement learning (Ma et al., 2023). VideoSearch-R1 instead refines the query representation itself in latent space, then re-invokes a pre-trained cross-modal dense retriever, coupling retrieval, verification, and temporal grounding in a single agentic loop (Lee et al., 1 Jul 2026).
2. Iterative architecture and inference loop
At inference time, VideoSearch-R1 operates in a loop of at most retrieval turns. At turn , the input is the original text query . The system invokes a pre-trained cross-modal dense retriever , specifically Qwen3-VL-Embedding-2B, to obtain the top-1 video
The retrieved video is then passed to a vision-LLM, Qwen3-VL-2B-Instruct, which compares against and produces a reasoning trace together with a binary match indication (Lee et al., 1 Jul 2026).
If , the system proceeds to temporal grounding and predicts start and end timestamps 0. If the retrieved video is judged to be a mismatch, the model generates 1 soft tokens 2, appends them to the original query embedding, forms 3, and repeats the retrieval step. The loop terminates either when a match is confirmed or after 4 turns (Lee et al., 1 Jul 2026).
The architecture therefore decomposes each turn into three operational stages: retrieval, verification-and-reasoning, and either temporal grounding or latent query refinement. This suggests a tighter dependency between inter-video and intra-video reasoning than in cascaded systems where retrieval and grounding are optimized separately. A related contrast is visible in systems such as ForeSea, which also use a staged design—tracking/filtering, multimodal embedding and indexing, then retrieval plus VideoLLM inference—but are organized around multimodal surveillance queries rather than iterative latent query refinement (Park et al., 24 Mar 2026).
3. Soft Query Refinement in latent space
The central mechanism of VideoSearch-R1 is Soft Query Refinement. Rather than rewriting the query in discrete text space, SQR adds a small continuous update to the original query representation. Let
5
be the embedding sequence of the original query of length 6. At a mismatch turn 7, the model autoregressively produces 8 soft embeddings
9
by letting the hidden state 0 project to the next embedding 1. The refined query embedding is
2
This construction preserves the original query while appending a learned continuous correction (Lee et al., 1 Jul 2026).
During Supervised Fine-Tuning, these soft tokens are trained with an InfoNCE contrastive loss that encourages the refined query to be close to the ground-truth video embedding 3 and far from negative videos 4:
5
The one-turn SFT objective is
6
where 7 and 8 (Lee et al., 1 Jul 2026).
A direct empirical comparison is reported between SQR and hard query refinement. On ActivityNet-FIG, “VideoSearch-R1 + HQR” attains VR R@1 of 9 with 0 generated tokens, whereas “VideoSearch-R1 + SQR” attains VR R@1 of 1 with 2 generated tokens. The analysis in the paper states that SQR outperforms hard text-level rewriting despite generating 3 fewer tokens (Lee et al., 1 Jul 2026).
4. Reinforcement learning with Group Relative Policy Optimization
After SFT, VideoSearch-R1 is further optimized with reinforcement learning using Group Relative Policy Optimization (GRPO). The aim is to align retrieval/refinement behavior and temporal grounding through task-level reward signals derived from retrieval and downstream tasks. Four reward signals per sample 4 are defined: a format reward, a verification reward, a retrieval reward, and a temporal grounding reward (Lee et al., 1 Jul 2026).
The rewards are specified as follows. The format reward is
5
if the model output strictly follows the > …, <answer>…</answer>, <start>…</start>, <end>…</end> template, else 6. The verification reward is
7
if 8 is correct, else 9. The retrieval reward is
0
The temporal grounding reward is
1
if 2, else 3. The total reward is
4
Advantages are normalized within each mini-batch:
5
GRPO then updates the policy 6 with a clipped surrogate objective and a KL penalty:
7
Here 8, 9 is the PPO clip, and 0 is a small weight (Lee et al., 1 Jul 2026).
In comparative terms, this RL formulation differs from prior interactive VCMR work that used advantage actor-critic over a graph neighborhood of candidate moments, with rewards defined by shortest-path distance to the target moment (Ma et al., 2023). It also differs from TimeSearch-R, which interleaves text reasoning and tool-based temporal search and augments GRPO with Completeness Self-Verification to supervise the adequacy of searched frames (Pan et al., 7 Nov 2025). VideoSearch-R1’s distinctive feature is that the RL loop optimizes latent query refinement itself, rather than only navigation policy or temporal search policy (Lee et al., 1 Jul 2026).
5. Experimental configuration and benchmark results
The reported evaluation covers three VCMR benchmarks: ActivityNet-FIG, DiDeMo-FIG, and Charades-FIG. ActivityNet-FIG contains 1 K videos with 2 train, 3 val, and 4 test, and average duration 5 s. DiDeMo-FIG contains 6 K videos with 7 train, 8 val, and 9 test, and average duration 0 s. Charades-FIG contains 1 K videos with 2 train, 3 val, and 4 test, and average duration 5 s. Metrics are Video Retrieval Recall@K for 6, end-to-end IoU/R@1 thresholds 7, and verification accuracy (Lee et al., 1 Jul 2026).
Implementation details are similarly specific. The search engine is Qwen3-VL-Embedding-2B, the agent model uses a Qwen3-VL-2B-Instruct backbone, the number of soft tokens is 8, and the visual token budget is 9 tokens using 0 FPS up to 1 frames. SFT is run for 2 K steps on 3 K samples per dataset with learning rate 4. RL with GRPO uses learning rate 5, KL 6, rollout 7, and max gradient norm 8. Inference uses 9 turns (Lee et al., 1 Jul 2026).
The main reported results on IoU/R@1 at threshold 0, verification accuracy, and VR R@1 are as follows:
| Dataset | Method | VCMR(.5/R@1) | VER | VR R@1 |
|---|---|---|---|---|
| Charades-FIG | Qwen3-VL-2B ZS | 7.2 | 30.0 | 21.6 |
| Charades-FIG | Qwen3-VL-2B FT | 10.4 | 74.7 | 21.6 |
| Charades-FIG | VideoSearch-R1 | 13.4 | 75.7 | 24.6 |
| DiDeMo-FIG | Qwen3-VL-2B FT | 22.1 | 73.1 | 54.8 |
| DiDeMo-FIG | VideoSearch-R1 | 30.2 | 74.6 | 59.0 |
| ActivityNet-FIG | Qwen3-VL-2B FT | 19.2 | 83.1 | 55.1 |
| ActivityNet-FIG | VideoSearch-R1 | 22.3 | 83.3 | 61.1 |
These results are reported as state-of-the-art performance across the three datasets (Lee et al., 1 Jul 2026).
The ablations are equally central to interpreting the model. On DiDeMo-FIG, Stage1 (SFT only) yields 1/R@1 of 2 and VR R@1 of 3, while adding Stage2 (GRPO) raises these to 4/R@1 of 5 and VR R@1 of 6. Reward ablation on the same dataset shows that using only 7 drops 8/R@1 to 9; adding 0 keeps 1/R@1 at 2 but raises VER to 3; adding 4 raises 5/R@1630.2%%%%9798%%%%\approx 55%%%%99100%%%%\approx 6001N=8t$02. Another example, “woman brushing hair,” shows that as $t$03 grows, the rank of the ground-truth video improves from no soft tokens to $t$04 (Lee et al., 1 Jul 2026).
Within the broader literature of video search, VideoSearch-R1 occupies a specific position. Interactive Video Corpus Moment Retrieval using Reinforcement Learning addressed known-item VCMR by planning navigation paths from user feedback over a clip graph, and showed that targets hidden deep in static ranks could be surfaced in a handful of feedback-driven steps (Ma et al., 2023). TimeSearch-R reformulated temporal search as interleaved text-video thinking with tool calls and GRPO-CSV, focusing on adaptive frame search inside long videos rather than retrieval refinement across a corpus (Pan et al., 7 Nov 2025). ForeSea, in turn, paired a tracking frontend, a multimodal embedding index, and a VideoLLM backend for surveillance QA with image-and-text queries and temporal grounding (Park et al., 24 Mar 2026). VideoSearch-R1 differs from each of these by treating failed corpus-level retrieval as a first-class reasoning event and by refining the query in latent space rather than navigating only the result graph, only the timeline, or only a multimodal index (Lee et al., 1 Jul 2026).
A plausible implication is that VideoSearch-R1 narrows the historical separation between search and reasoning in video systems. Earlier pipelines frequently placed retrieval, reranking, and downstream reasoning in disjoint modules; VideoSearch-R1 instead treats retrieval failure as an input to learned reasoning and uses that reasoning to modify the representation queried against the retriever. The reported gains over fine-tuned baselines, the reward ablations, and the SQR-versus-HQR comparison all point in that direction, while the hard cap of 05 turns shows that the method remains intentionally lightweight rather than open-ended (Lee et al., 1 Jul 2026).