Generative Frame Sampler for Long Video Understanding

Linli Yao, Haoning Wu, Kun Ouyang, Yuanxing Zhang, Caiming Xiong, Bei Chen, Xu Sun, Junnan Li · DOI

Introduction

Processing hours-long videos with Large Multimodal Models (LMMs) presents a significant computational challenge. At standard frame rates, the sheer volume of visual data exceeds the memory and compute limits of even the most advanced models. Current solutions typically rely on Uniform Sampling, which risks missing transient but critical events, or CLIP-based Sampling, which lacks temporal context and struggles with complex multi-hop reasoning.

Qualitative comparison of sampling strategies: GenS correctly identifies frames relevant to temporal queries where Uniform and CLIP-based methods fail.

The Generative Frame Sampler (GenS)

To bridge this gap, the authors introduce Generative Frame Sampler (GenS), a lightweight module designed to intelligently retrieve question-relevant frames. Built upon the 3.9B parameter Aria model, GenS treats frame selection as a natural language generation task. Key innovations include:

  • Textual Frame Indexing: Instead of complex visual overlays, GenS uses simple textual markers (e.g., [N]) prepended to frames, allowing the model to uniquely identify temporal positions.
  • Generative Retrieval: The model outputs a structured JSON format containing continuous frame spans and fine-grained relevance scores (e.g., 1-5 scale).
  • Coarse-to-Fine Hybrid Sampling: For extreme video lengths, a two-stage pipeline is used: a lightweight CLIP filter narrows the pool to 256 frames, which GenS then refines into the final selection for the VideoQA assistant.

Data and Evaluation

A primary hurdle in training such a system is the lack of dense frame-level annotations. The authors addressed this by creating GenS-Video-150K, a synthetic dataset of 150,000 video-instruction pairs with dense annotations generated via a GPT-4o pipeline. Evaluation was conducted across major long-form benchmarks, including LongVideoBench (LVB), MLVU, and HourVideo (averaging ~45 minutes per video).

Performance and Key Insights

GenS demonstrates substantial performance gains across both open-source and proprietary models, proving that intelligent data filtering is often more effective than simply scaling context windows.

VideoQA accuracy for Aria and GPT-4o assistants. GenS consistently outperforms uniform sampling and other baselines as the number of input frames increases.
  • State-of-the-Art Results: Integrating GenS with LLaVA-Video-72B resulted in a +4.3 point increase on LongVideoBench.
  • Surpassing Proprietary Models: The Aria model combined with GenS achieved 39.2% on the HourVideo benchmark, outperforming Gemini-1.5-Pro by 1.9 points.
  • Boosting GPT-4o: On vision-centric subsets of LVB, GenS improved GPT-4o's accuracy by a massive 13.6 points when limited to 40 input frames.

The research also highlights that textual indexing is sufficient for temporal tracking and that relevance-based ordering of frames often yields better results than strict chronological ordering in the final reasoning stage.

Conclusion

GenS offers a practical, plug-and-play solution for long video understanding. While it introduces a small computational overhead for the retrieval step, the efficiency gains in the final reasoning model and the significant boost in accuracy make it a compelling alternative to brute-force context scaling. Future work will explore multi-round retrieval and integration into autonomous video agents.

Summary updated

BibTeX
@inproceedings{yao2025generative,
  author = {Linli Yao and Haoning Wu and Kun Ouyang and Yuanxing Zhang and Caiming Xiong and Bei Chen and Xu Sun and Junnan Li},
  title = {{Generative Frame Sampler for Long Video Understanding}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure