TL;DR
MSJoE (MLLM-Sampler Joint Evolution) is a novel framework that jointly trains a Multimodal Large Language Model (MLLM) and a lightweight frame sampler using reinforcement learning. By allowing the MLLM to generate its own visual search queries and adapt to sparse keyframes, MSJoE achieves state-of-the-art long-video understanding while drastically reducing computational overhead.
What Problem Does This Paper Address?
As video inputs to Multimodal Large Language Models (MLLMs) grow longer, computational costs skyrocket. Visual context length scales linearly with video duration, but the attention mechanisms within transformers scale quadratically.
To cope, standard approaches use dense uniform sampling, which evenly spaces out frames across the video. However, this strategy frequently misses brief, critical events (the "needle in a haystack" problem). While some recent works use clip-based similarity to sample keyframes heuristically, they suffer from two major flaws:
- Insufficiency: Raw questions (e.g., "Why did she change her diet?") often lack explicit visual descriptions, making direct text-to-video retrieval unreliable.
- Lack of Collaboration: Existing methods freeze the MLLM while training the sampler. Because standard MLLMs are pre-trained on uniformly sampled videos, they struggle to reason effectively over the highly sparse, non-uniform keyframes provided by an isolated sampler.
Methods
MSJoE solves these challenges through a four-step inference pipeline and an end-to-end joint training strategy:
- MLLM-guided Query Generation: The MLLM takes the user's question and a low-resolution, ultra-sparse "preview" of the video to reason out several descriptive visual queries (e.g., decomposing "dietary habits" into queries like "an image of a toothbrush" or "a blood test").
- Similarity Matrix Computation: These queries are matched against densely sampled video frames (at 1 FPS) using a frozen CLIP model, generating a query-frame similarity matrix.
- Learnable Key-Frame Sampling: A lightweight 1D U-Net sampler (containing only ~2 million parameters) processes this matrix to predict sampling weights and select a small budget of high-resolution keyframes ($K=32$ or $64$).
- Answer Generation: The MLLM receives only these selected keyframes to generate the final answer.
Joint Optimization via Reinforcement Learning
The core innovation is the Joint Evolution phase. The MLLM is optimized using the Group Relative Policy Optimization (GRPO) algorithm, while the sampler is optimized via REINFORCE. They are guided by a combined reward function based on answer accuracy, formatting, and query informativeness (punishing vague queries that match all frames equally).
To prevent early-stage training noise, the authors introduce a difficulty-aware pre-training reward for the sampler, prioritizing harder questions where uniform sampling fails.
Datasets
To facilitate training, the authors collected a new dataset, LongVideoQA-ALL, containing 2.8k videos and 7.1k question-answer pairs designed for multi-hop reasoning over long durations.
For evaluation, the framework was tested on four standard long-form video benchmarks:
- VideoMME (Average duration: 17 mins)
- LongVideoBench (Average duration: 12 mins)
- MLVU (Average duration: 12 mins)
- LVBench (Hour-long videos)
Key Insights and Ideas
- Questions are poor search queries: Directly matching a question to video frames performs poorly because questions are interrogative, not descriptive. Decomposing questions into concrete visual concepts is essential.
- Co-adaptation is a must: An MLLM cannot effectively interpret sparse, disconnected keyframes unless it is explicitly trained alongside the sampler that chooses them. Joint evolution allows the MLLM to understand why specific frames were selected based on its own generated queries.
- Diversity over raw scores: Instead of naively picking the highest-scoring frames (top-$k$), the U-Net sampler learns to preserve temporal diversity, ensuring the model captures a coherent narrative rather than redundant duplicates of the same high-scoring scene.
Key Results
MSJoE was evaluated using Qwen2.5-VL-7B-Instruct as the base MLLM.
- Significant Accuracy Gains: MSJoE achieved an average 8.0% accuracy gain over the base MLLM across all benchmarks when using a 64-frame budget.
- Outperforming Baselines: It outperformed the strongest training-based baseline (TSPO) by 1.1% on average, and significantly beat heuristic sampling methods like BOLT and Q-Frame.
- High Efficiency: As shown in the ablation studies, MSJoE achieved equal or better performance using significantly fewer frames than uniform sampling, demonstrating a superior balance between computational cost and accuracy.
Limitations and Future Work
The authors do not include a dedicated limitations section in the main text. However, potential areas for improvement include:
- Dependency on the Initial Preview: The query generation step relies on an initial ultra-sparse preview. If the preview misses a highly localized event entirely, the MLLM might not generate the correct queries to find it.
- Frozen Embedding Space: The framework relies on a frozen CLIP model for similarity mapping; fine-tuning the visual-textual alignment specifically for video dynamics could yield further improvements.
Summary updated