TL;DR
TSPO (Temporal Sampling Policy Optimization) is a novel reinforcement learning framework that trains a lightweight agent to intelligently select the most query-relevant frames from long-form videos. By modeling frame selection and language generation as a joint decision-making process, TSPO bypasses the traditional challenges of non-differentiable sampling and achieves state-of-the-art video understanding performance that transfers seamlessly across different frozen Video-MLLMs.
What Problem Does This Paper Address?
While Multimodal Large Language Models (MLLMs) excel at short video tasks, processing long-duration videos (from minutes to hours) introduces severe bottlenecks due to LLM context window limits and massive computational costs. To cope, current systems rely on sparse frame sampling.
However, standard sampling techniques fall short:
- Uniform sampling treats all frames equally, frequently dropping critical, query-relevant moments.
- Training-free keyframe search methods rely on fixed visual heuristics that are completely blind to the user's specific textual query and add heavy computational overhead during inference.
Ideally, we would train a machine learning agent to pick the best frames for a given question. But doing so faces two fundamental roadblocks: frame selection is a discrete operation (making it non-differentiable and impossible to train via standard backpropagation), and general video datasets lack precise, frame-level annotations indicating exactly where the answer lies.
Methods
To solve these challenges, the authors introduce Temporal Sampling Policy Optimization (TSPO), which reframes frame selection as a reinforcement learning problem.
The architecture consists of two main components:
- Event-aware Temporal Agent: A lightweight selector (only 3.5M learnable parameters) built on top of a frozen CLIP visual encoder. It uses local window attention to capture intra-event dependencies and computes a cross-modal similarity score between the video frames and the text query. During training, it employs a Gumbel-Softmax operator to probabilistically sample discrete frame combinations, allowing exploration of different frame sets.
- TSPO Reinforcement Learning Paradigm: Inspired by DeepSeek-R1, TSPO uses Group Relative Policy Optimization (GRPO). Instead of using a costly critic model, the framework samples a group of $G$ keyframe combinations for a single query. These frames are fed into a frozen downstream Video-MLLM to generate answers.
The temporal agent is then optimized end-to-end using two rule-based reward mechanisms based on the Video-MLLM's outputs:
- Answering Accuracy Reward ($R_A$): A binary reward (1 or 0) based on whether the MLLM correctly answers a multiple-choice question.
- Temporal Locating Reward ($R_T$): Quantifies localization precision by calculating the ratio of sampled frames that fall within the ground-truth target video segment.
Datasets
The authors constructed a specialized training dataset called TSPO-10K, containing 10,000 high-quality long video samples split into two distinct styles:
- Comprehensive Temporal Data: Sourced from LLaVA-Video-178K, this data filters out questions that are too easy (solvable with just 4 uniform frames) or too hard (unsolvable with 64 frames), leaving complex temporal questions that strictly require intelligent keyframe selection.
- Video Needle-in-a-Haystack Data: Target short video segments are augmented with detailed event descriptions generated by Qwen2.5-VL, converted into multiple-choice questions, and then randomly spliced into long, irrelevant "distractor" videos (spanning 10 to 60 minutes) to provide explicit localization targets.
For evaluation, the authors tested TSPO across four major long-video benchmarks: LongVideoBench, MLVU, Video-MME, and LVBench.
Key Insights and Ideas
- Joint Decision-Making Formulation: Instead of treating frame selection as an isolated preprocessing step, TSPO integrates it directly into the Video-MLLM's probabilistic chain rule. Frame selection is optimized purely based on whether it helps the language model generate the correct final answer.
- "One-Model-for-All" Transferability: Because the temporal agent learns a generalized capability to align textual queries with visual events, a sampler trained using one specific MLLM (e.g., LLaVA-Video-7B) can be directly plugged into entirely different architectures (like Qwen2-VL or Qwen2.5-VL) without any extra training, yielding immediate performance boosts.
- Efficiency via Freezing: By keeping the heavy Video-MLLM parameters entirely frozen and only training the 3.5M parameter temporal agent, the framework avoids the massive computational costs typically associated with end-to-end multimodal RL.
Key Results
TSPO achieved state-of-the-art results across all evaluated long-video benchmarks:
- LLaVA-Video-7B Performance: Adding TSPO yielded absolute accuracy gains of +5.0% on LongVideoBench, +6.0% on MLVU, and +5.1% on LVBench compared to uniform sampling.
- Cross-Architecture Generalization: When transferring the LLaVA-trained agent to Qwen2.5-VL-7B, it boosted performance by +5.2% on LongVideoBench and a massive +9.2% on MLVU without retraining.
- Inference Efficiency: TSPO proved highly efficient, saving 90% of keyframe extraction time compared to training-free methods like Chain-of-Shot (CoS), while simultaneously improving accuracy.
Limitations and Future Work
The authors note that while TSPO significantly improves performance on long videos, its modest gains on benchmarks like Video-MME suggest it is highly optimized for localized keyframe extraction rather than holistic, global video comprehension. Additionally, the framework currently relies on structured multiple-choice formats or clear pseudo-labels to compute rule-based rewards; extending this to completely open-ended, free-form video QA rewards remains an open area for future research.
Summary updated