Wavelet-based Frame Selection by Detecting Semantic Boundary for Long Video Understanding
Organizations: Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, Xiamen University · College of Computer and Data Science, Fuzhou University
Abstract
Frame selection is crucial due to high frame redundancy and limited context windows when applying Large Vision-Language Models (LVLMs) to long videos. Current methods typically select frames with high relevance to a given query, resulting in a disjointed set of frames that disregard the narrative structure of video. In this paper, we introduce Wavelet-based Frame Selection by Detecting Semantic Boundary (WFS-SB), a training-free framework that presents a new perspective: effective video understanding hinges not only on high relevance but, more importantly, on capturing semantic shifts - pivotal moments of narrative change that are essential to comprehending the holistic storyline of video. However, direct detection of abrupt changes in the query-frame similarity signal is often unreliable due to high-frequency noise arising from model uncertainty and transient visual variations. To address this, we leverage the wavelet transform, which provides an ideal solution through its multi-resolution analysis in both time and frequency domains. By applying this transform, we decompose the noisy signal into multiple scales and extract a clean semantic change signal from the coarsest scale. We identify the local extrema of this signal as semantic boundaries, which segment the video into coherent clips. Building on this, WFS-SB comprises a two-stage strategy: first, adaptively allocating a frame budget to each clip based on a composite importance score; and second, within each clip, employing the Maximal Marginal Relevance approach to select a diverse yet relevant set of frames. Extensive experiments show that WFS-SB significantly boosts LVLM performance, e.g., improving accuracy by 5.5% on VideoMME, 9.5% on MLVU, and 6.2% on LongVideoBench, consistently outperforming state-of-the-art methods. Our code is available at https://github.com/MAC-AutoML/WFS-SB.
Figures & tables
| Model | Method | Size | Frame | VideoMME [ 8 ] | MLVU [ 47 ] | LongVideoBench [ 37 ] | ||||||
| Base | +Method | Base | +Method | Base | +Method | |||||||
| LLaVA-OV [ 10 ] | Frame-Voyager ∗‡ [ 40 ] | 7B | 8 | 53.3 | 57.5 | +4.2 | 58.5 | 65.6 | +7.1 | - | - | - |
| KFC ∗ [ 6 ] | 7B | 8 | 53.3 | 55.4 | +2.1 | 58.5 | 66.2 | +7.7 | 54.5 | 55.6 | +1.1 | |
| BOLT ∗ [ 18 ] | 7B | 8 | 53.8 | 56.1 | +2.3 | 58.9 | 63.4 | +4.5 | 54.2 | 55.6 | +1.4 | |
| AKS † [ 32 ] | 7B | 8 | 54.1 | 58.2 | +4.1 | 58.6 | 62.9 | +4.3 | 54.2 | 58.4 | +4.2 | |
| FrameOracle ∗‡ [ 11 ] | 7B | 8 | 53.8 | 57.5 | +3.7 | 58.4 | 62.9 | +4.5 | 54.3 | 56.0 | +1.7 | |
| Model Scale | Baseline | +WFS-SB | |
| Qwen2.5-VL-3B | 54.1/57.8 | 58.4/60.0 | +4.3 / +2.2 |
| Qwen2.5-VL-7B | 57.7/61.2 | 61.9/64.4 | +4.2 / +3.2 |
| Qwen2.5-VL-32B | 60.2/62.9 | 63.0/66.1 | +2.8 / +3.2 |
| Qwen2.5-VL-72B | 63.3/66.2 | 66.1/68.9 | +2.8 / +2.7 |
| VLM Scorer | VideoMME | MLVU | LVB |
| Uniform | 57.7 | 56.2 | 57.0 |
| BLIP-ITM [ 12 ] | 62.8 | 67.7 | 63.2 |
| CLIP-VIT-B [ 25 ] | 61.7 | 66.5 | 60.6 |
| SigLIP-so400m [ 41 ] | 61.9 | 66.4 | 61.9 |
| BLIP-2-ITM (Ours) [ 13 ] | 61.9 | 67.9 | 62.5 |
| Configuration | VideoMME | MLVU |
| Uniform Sampling | 57.7 | 56.2 |
| WFS-SB (Our full method) | 61.9 | 67.9 |
| w/o DWT (use raw local minima) | 60.8 | 64.6 |
| w/o DWT (use raw gradient) | 61.2 | 66.8 |
| w/o Adaptive B.A. (Average B.A.) | 61.6 | 67.4 |
| w/o MMR (topK selection) | 60.9 | 66.7 |
| Wavelet | Db4 | Db4 | Db8 | Haar | Sym4 | Bior3.3 |
| 3 | 4 | 3 | 3 | 3 | 3 | |
| VideoMME | 61.9 | 60.4 | 61.9 | 61.3 | 61.9 | 61.9 |
| MLVU | 67.9 | 68.3 | 66.4 | 68.1 | 67.6 | 68.2 |
| VideoMME | MLVU | ||
| 0.4, 0.2, 0.3, 0.1 | 0.5 | 61.9 | 67.9 |
| 0.0, 0.3, 0.3, 0.2 | 0.5 | 61.6 | 64.8 |
| 0.5, 0.0, 0.3, 0.2 | 0.5 | 61.8 | 66.8 |
| 0.5, 0.3, 0.0, 0.2 | 0.5 | 62.0 | 66.8 |
| 0.5, 0.2, 0.3, 0.0 | 0.5 | 62.1 | 67.4 |
| 0.4, 0.2, 0.3, 0.1 | 0.3 | 61.2 | 67.5 |
| Component | Time (s) | Complexity |
| ITM Signal Extraction | 19.4 | |
| DWT and Boundary Detection | 0 | |
| Budget Allocation | 0 | |
| MMR Selection | 0.7 | |
| LVLM Inference | 4.4 | - |
| VideoMME | MLVU | ||
| 0.5 | 0.05 | 61.9 | 67.9 |
| 0.0 | 0.05 | 62.6 | 67.2 |
| 1.0 | 0.05 | 61.5 | 68.4 |
| 0.5 | 0.00 | 61.8 | 67.6 |
| 0.5 | 0.1 | 62.0 | 67.9 |
| Model | Method | Size | Frame | VideoMME [ 8 ] | MLVU [ 47 ] | LongVideoBench [ 37 ] | ||||||
| Base | +Method | Base | +Method | Base | +Method | |||||||
| Qwen2-VL-7B [ 35 ] | KFC [ 6 ] | 7B | 8 | 55 | 56.7 | +1.7 | 59.6 | 65.9 | +6.3 | 53.4 | 54.6 | +1.2 |
| Q-Frame [ 45 ] | 7B | 8 (4+8+32) ∗ | 53.7 | 58.3 | +4.6 | 56.9 | 65.4 | +8.5 | 53.5 | 58.4 | +4.9 | |
| WFS-SB | 7B | 8 | 52.0 | 56.4 | +4.4 | 55.0 | 63.4 | +8.4 | 51.7 | 56.5 | +3.8 | |
| Sampling Rate | 8 F. | 16 F. | 32 F. | ITM Time (s) |
| Uniform Sampling | 53.2 | 57.7 | 61.2 | - |
| 1 fps | 59.3 | 61.9 | 64.4 | 19.4 |
| 1-0.75-0.5 fps | 58.9 | 62.0 | 64.5 | 10.5 |
| 1-0.5-0.25 fps | 59.4 | 61.9 | 64.6 | 5.8 |
| VLM Scorer | VideoMME | MLVU | LVB |
| Uniform | 60.6 | 60.9 | 57.2 |
| BLIP-ITM [ 12 ] | 63.2 | 69.5 | 61.8 |
| CLIP-VIT-B [ 25 ] | 63.6 | 67.3 | 62.2 |
| SigLIP-so400m [ 41 ] | 62.4 | 68.9 | 61.5 |
| BLIP-2-ITM (Ours) [ 13 ] | 64.3 | 71.0 | 62.4 |
| VideoMME | MLVU | |
| 1.2 | 61.9 | 67.9 |
| - | 61.5 | 67.2 |
| 1.0 | 61.7 | 67.5 |
| 1.5 | 61.9 | 68.1 |