Wavelet-based Frame Selection by Detecting Semantic Boundary for Long Video Understanding

Wang Chen, Yuhui Zeng, Yongdong Luo, Tianyu Xie, Luojun Lin, Jiayi Ji, Yan Zhang, Xiawu Zheng

TL;DR

Long video understanding in Large Vision-Language Models (LVLMs) is severely bottlenecked by fixed context windows, forcing aggressive frame selection that often destroys narrative flow. This paper introduces WFS-SB, a training-free framework that applies classical wavelet transform techniques to denoise query-relevance signals and detect "chapter boundaries" in videos. By segmenting videos semantically and adaptively allocating frame budgets, it preserves the chronological storyline and significantly boosts LVLM performance across multiple benchmarks.

What Problem Does This Paper Address?

When you feed a long video into a Large Vision-Language Model, you can't just pass every single frame—doing so would overwhelm the model's limited context window and computational budget. Instead, we rely on frame selection algorithms to pick a concise subset of keyframes.

Most current methods select frames based purely on their individual relevance to a user's query. However, this approach completely ignores the video's narrative structure. For example, if a query asks about a multi-step makeup process, a relevance-only approach might just pick multiple scattered frames showing eyes, completely losing the sequential order of steps (e.g., eyeliner $\rightarrow$ eyebrows).

To fix this, we need to capture semantic shifts—the pivotal moments where a video transitions from one sub-activity to another. Unfortunately, directly detecting these shifts in raw query-frame similarity signals is incredibly unreliable because the signals are plagued by high-frequency noise caused by model uncertainty, lighting changes, and camera motion.

A comparison of frame selection strategies showing how relevance-only approaches fail to preserve procedural order compared to the proposed semantic boundary method.

Methods

The authors propose WFS-SB (Wavelet-based Frame Selection by Detecting Semantic Boundary), a training-free, three-stage pipeline inspired by signal processing:

  1. Wavelet-Based Semantic Boundary Identification: The video is first uniformly sampled at 1 frame-per-second, and an Image-Text Matching (ITM) score sequence is computed using a lightweight VLM head (BLIP-2). Treating this sequence as a noisy temporal signal, the authors apply a multi-level Discrete Wavelet Transform (DWT). By isolating the coarsest detail coefficients (which capture slow, macro-level narrative changes) and zeroing out the noisy, fine-scale coefficients, they perform an Inverse DWT to reconstruct a clean "semantic change signal." Local peaks in this signal mark the boundaries of coherent video segments.
  2. Adaptive Budget Allocation: Not all video segments are equally important. The framework calculates a composite importance score for each segment based on its duration, average relevance, peak relevance, and internal variance. Low-scoring segments are filtered out, and the remaining total frame budget ($K$) is distributed across segments using a softmax-weighted allocation.
  3. Diversity-Aware Intra-segment Selection: Within each segment, the most relevant frame is chosen as an anchor. The remaining allocated frames are selected using localized Maximal Marginal Relevance (MMR) to ensure that the chosen frames are both highly relevant and visually diverse, preventing redundancy.
Figure 2. An overview of our proposed WFS-SB framework. The process unfolds in three main stages: (1) Wavelet-based Semantic Boundary Identification: The raw query-frame relevance signal is decomposed using a multi-level Discrete Wavelet Transform. We isolate and reconstruct the coarsest detail coefficients to generate a robust semantic change signal, whose peaks define the boundaries of coherent semantic segments. (2) Adaptive Budget Allocation: A composite importance score is computed for each segment, which guides a softmax- weighted distribution of the total frame budget K = 8. (3) Diversity-Aware Intra-segment Selection: Finally, a localized Maximal Marginal Relevance (MMR) selection is performed within each segment to ensure both relevance and diversity in the final keyframe set.

Datasets

The framework was evaluated on three popular long-video QA benchmarks without using subtitles:

  • VideoMME: 900 videos (avg. 17 minutes) with 2,700 QA pairs.
  • MLVU: 2,174 questions across 7 categories (avg. 11 minutes).
  • LongVideoBench (LVB): A 1,337-pair validation set (avg. 12 minutes).

Key Insights and Ideas

  • Reframing Video as a Signal: Instead of treating frame selection as a discrete optimization or machine learning problem, treating query-relevance scores as a continuous temporal waveform allows the use of classical, robust signal processing tools like wavelets.
  • The Power of Coarse Scales: High-frequency noise (from lighting, minor camera jitters, or VLM uncertainty) dominates the fine scales of a wavelet decomposition. The true narrative shifts live in the coarsest detail coefficients, which capture slow-varying but substantial semantic changes.
  • Structure Beats Pure Relevance: Preserving the chronological and structural integrity of a video (ensuring every "chapter" gets represented) is far more critical for complex reasoning tasks than simply stuffing the context window with the absolute highest-scoring frames.

Key Results

WFS-SB was integrated with four state-of-the-art LVLMs (LLaVA-OneVision, LLaVA-Video, Qwen2.5-VL, and InternVL-3) and consistently outperformed uniform sampling and advanced baselines.

  • Substantial Performance Gains: Under a tight budget of $K=8$ frames using LLaVA-Video-7B, WFS-SB improved accuracy by 5.5% on VideoMME, 9.5% on MLVU, and 6.2% on LongVideoBench.
  • Robustness at Scale: The method shows pronounced gains under constrained frame budgets ($K=8, 16$), proving that boundary-aware selection becomes increasingly critical when frame resources are tight.
  • Low Overhead: The wavelet processing pipeline itself (DWT, budget allocation, MMR) is incredibly lightweight, adding only 0.7 seconds of computational overhead.
Figure 3. Performance comparison across different frame bud- gets K on VideoMME. WFS-SB consistently outperforms uniform sampling across all LVLMs and budget settings.

Limitations and Future Work

The primary bottleneck of the framework is the initial ITM Signal Extraction phase. While the wavelet math takes less than a second, computing the initial frame-to-query matching scores using the BLIP-2 ITM head takes 19.4 seconds on average (accounting for roughly 79% of the total preprocessing time).

The authors note that this presents a clear optimization opportunity for future work. This step could be significantly accelerated through parallel batching, model quantization, or by distilling the BLIP-2 ITM model into a smaller, faster feature extractor.

Summary updated

BibTeX
@inproceedings{chen2026wavelet,
  author = {Wang Chen and Yuhui Zeng and Yongdong Luo and Tianyu Xie and Luojun Lin and Jiayi Ji and Yan Zhang and Xiawu Zheng},
  title = {{Wavelet-based Frame Selection by Detecting Semantic Boundary for Long Video Understanding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=TnXE1vyQyW},
}
Figure