VisualRouter: Query-Grounded Visual Sampling for Long Video Understanding

Haiyue Zhang, Yi Bin, Xun Jiang, Zeyu Ma, Duo Peng, Guoqing Wang, Yang Yang, Heng Tao ShenarXiv 2026

TL;DR

VisualRouter is a training-free, plug-and-play visual sampling framework that dynamically routes video queries into either "global" or "local" processing branches. By tailoring the frame selection strategy to the specific nature of the question, it significantly reduces visual token redundancy and boosts the long-video understanding capabilities of Large Vision-Language Models (LVLMs) without requiring any retraining.

What Problem Does This Paper Address?

Large Vision-Language Models (LVLMs) excel at image and short video tasks, but long videos present a massive computational bottleneck. Densely processing hours or even minutes of video generates an overwhelming number of visual tokens that quickly exceed the limited context windows of existing models.

To cope, researchers use visual sampling to select a small, informative subset of frames (e.g., 16 or 32 frames). However, standard approaches fall into two traps:

  1. Uniform sampling maintains broad temporal coverage but completely ignores the query, often wasting the frame budget on irrelevant segments.
  2. Relevance-aware sampling (selecting frames most similar to the text query) often clusters frames around a single, highly relevant moment, leading to massive visual redundancy and zero coverage of the rest of the video.

Crucially, existing methods apply a single, rigid sampling strategy regardless of the query type. A question about a movie's overall genre (a global query) requires a fundamentally different set of frames than a question about what specific object a person picked up at a exact timestamp (a local query).

Methods

VisualRouter introduces an adaptive, query-grounded framework that splits the sampling task into a routing step followed by specialized selection branches.

Fig. 2. Overview of VisualRouter. Each query is first routed to either the global or local branch. The global branch combines relevance-aware selection with temporal coverage, whereas the local branch performs event partitioning, segment-level frame allocation, and intra-segment frame selection.

1. Query Gating

Before looking at the video, VisualRouter uses the LVLM itself to classify the incoming question as either Global (abstract, narrative, or summary questions lacking explicit visual anchors) or Local (questions tied to concrete objects, actions, or scenes).

2. The Global Branch (Coverage + Relevance)

For global queries, the framework splits the frame budget in half. It allocates 50% of the budget to uniform sampling (ensuring full temporal coverage) and the other 50% to the top relevance-scoring frames (calculated via a pre-trained BLIP-2 image-text matching model). This hybrid approach ensures the model doesn't lose the forest for the trees.

3. The Local Branch (Coverage + Relevance + Diversity)

For local queries, where the evidence is concentrated in specific segments, VisualRouter executes a three-stage pipeline:

  • Event Partitioning: It detects event boundaries by fusing high-level semantic drift (from BLIP-2 features) and low-level visual changes (from DINOv2 features).
  • Segment-Level Frame Allocation: It distributes the total frame budget across the discovered video segments based on both the length of the segment and its peak/mean relevance to the query.
  • Intra-Event Frame Selection: Within each allocated segment, it uses a query-aware $k$-Determinantal Point Process ($k$-DPP). This mathematical framework ensures that the selected frames are both highly relevant to the query and visually distinct from one another, eliminating near-identical adjacent frames.

Datasets

The authors evaluated VisualRouter across three diverse long-video understanding benchmarks:

  • Video-MME: 900 videos spanning 11 seconds to 60 minutes, covering short, medium, and long durations.
  • LongVideoBench (LVB): 1,337 validation QA pairs focusing on long-video temporal reasoning and cross-segment information integration.
  • MLVU: 2,174 QA pairs designed to assess multi-task capabilities like event understanding and action recognition.

Key Insights and Ideas

  • Query Intent Dictates Sampling Strategy: The core "aha moment" is that frame selection shouldn't just be video-dependent; it must be query-dependent. Treating a summary question the same as a localization question wastes precious token slots.
  • Redundancy is the Enemy of Relevance: High relevance scores often result in selecting consecutive frames from the exact same second of video. Incorporating diversity algorithms ($k$-DPP) at the segment level ensures every frame brings new information to the LVLM.
  • Complementary Features for Boundaries: Combining text-aligned semantic features (BLIP-2) with self-supervised visual features (DINOv2) creates a much more robust event partitioner than relying on pixel changes or text matching alone.

Key Results

VisualRouter was tested as a plug-and-play module across multiple state-of-the-art LVLMs, including LLaVA-Video, LLaVA-OneVision, Qwen2.5-VL, Qwen3-VL, and InternVL3.

  • Consistent Performance Boosts: When paired with Qwen2.5-VL-7B, VisualRouter achieved absolute accuracy gains of 5.2% on Video-MME, 7.7% on LongVideoBench, and 11.6% on MLVU compared to standard uniform sampling.
  • Outperforming Existing Samplers: It consistently beat other prominent training-free sampling methods like BOLT, AKS, and WFS-SB across almost all evaluation metrics.
  • Fine-Grained Excellence: As shown in the radar chart below, the method achieved massive improvements in sparse-evidence categories like OCR (+12.95%) and Counting (+7.09%), where finding the exact right frames is critical.
Accuracy comparison across six question categories on Video-MME.

Limitations and Future Work

While VisualRouter is training-free, it does introduce preprocessing overhead. Running every video frame through BLIP-2 and DINOv2 to compute relevance and boundary scores adds computational cost before the video ever reaches the primary LVLM. Future work could explore lighter weight, unified feature extractors to make the preprocessing step faster and more resource-efficient.

Summary updated

BibTeX
@misc{zhang2026visualrouter,
  author = {Haiyue Zhang and Yi Bin and Xun Jiang and Zeyu Ma and Duo Peng and Guoqing Wang and Yang Yang and Heng Tao Shen},
  title = {{VisualRouter: Query-Grounded Visual Sampling for Long Video Understanding}},
  year = {2026},
  eprint = {2607.28463},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.28463},
}
Figure