MEGA Hub

VisualRouter: Query-Grounded Visual Sampling for Long Video Understanding

Authors

Do you know Haiyue Zhang?You can claim authorship or link another user.Do you know Yi Bin?You can claim authorship or link another user.Do you know Xun Jiang?You can claim authorship or link another user.Do you know Zeyu Ma?You can claim authorship or link another user.Do you know Duo Peng?You can claim authorship or link another user.Do you know Guoqing Wang?You can claim authorship or link another user.Do you know Yang Yang?You can claim authorship or link another user.Do you know Heng Tao Shen?You can claim authorship or link another user.

Abstract

Large vision-language models (LVLMs) have achieved significant progress in video understanding, yet understanding long videos remains challenging due to the large number of visual tokens and limited context windows. Visual sampling provides a practical solution by selecting an informative subset of frames. However, existing methods typically either rely on relevance-aware sampling, leading to redundant frame selection and insufficient temporal coverage, or adopt a fixed sampling strategy regardless of query type. In this paper, we propose VisualRouter, a training-free and plug-and-play framework for query-grounded visual sampling. VisualRouter first classifies each query as either global or local and then applies the corresponding sampling strategy. For global queries, it employs a relevance-coverage hybrid strategy that preserves temporal coverage while retaining query-relevant visual evidence. For local queries, it adopts an event-aware frame selection strategy that performs event partitioning, segment-level frame allocation, and intra-event frame selection, jointly balancing relevance, coverage, and diversity with a limited number of input frames. Experiments show that VisualRouter consistently improves multiple LVLMs over uniform sampling, achieving gains of 5.2%, 7.7%, and 11.6% on Video-MME, LongVideoBench, and MLVU with Qwen2.5-VL-7B, and outperforming existing training-free visual sampling methods under the same setting.

Community

00