TL;DR
This paper introduces UniTime, a novel framework that leverages generative Multi-modal Large Language Models (MLLMs) to achieve universal video temporal grounding. UniTime accurately localizes specific moments in videos based on natural language queries, outperforming existing methods across diverse video types and durations, and significantly improving downstream video question answering tasks.
What Problem Does This Paper Address?
Understanding long videos is a significant challenge due to complex temporal dependencies and varying information granularity. Existing methods for video temporal grounding, which aim to pinpoint specific moments in a video corresponding to a text query, often struggle to generalize across different video domains, lengths, and query complexities. This limitation hinders their real-world applicability where video data is highly heterogeneous. The paper addresses this by proposing a universal model that can handle diverse videos and queries, moving beyond dataset-specific limitations.
Methods
UniTime's core innovation lies in its ability to perform temporal grounding at multiple granularities using MLLMs. Key techniques include:
- Timestamp-Interleaved Sequence Construction: To enable precise temporal localization, UniTime interleaves timestamp tokens with visual tokens from the video. This allows the MLLM to directly associate visual content with specific time points.
- Adaptive Frame Scaling: To handle videos of vastly different durations (from short clips to hours-long content), UniTime dynamically adjusts the token budget per frame. Shorter videos receive higher spatial resolution, while longer videos are processed with lower resolution to manage computational constraints and limited MLLM context windows.
- Multi-stage Inference (Coarse-to-Fine): For long videos, UniTime employs a hierarchical approach. It first performs coarse-grained segment retrieval to identify potentially relevant parts of the video, followed by fine-grained localization within those segments to pinpoint the exact moment. This iterative process refines grounding precision.
- Video-centric Training: To improve training efficiency, the model processes multiple query-answer pairs from a single video in one pass, reducing redundant video encoding and I/O bottlenecks.
Datasets
The paper utilizes a combination of datasets for pre-training and evaluation:
- Pre-training Datasets (Part I): NaQ, DiDeMo, QuerYD, HiRest, COIN, Momentor, YouCook2, Ego4D-NLQ, TACOS.
- Benchmark Datasets (Part II): Ego4D-NLQ, TACOS, Charades-STA, ANet-Captions, QVHighlights, QaEgo4D, CG-Bench, MLVU, LongVideoBench.
Key Insights and Ideas
- MLLMs as a Foundation for Universal Grounding: The paper demonstrates that by carefully integrating temporal information, MLLMs can be effectively adapted for universal temporal grounding, surpassing traditional methods.
- Timestamp Tokens are Key: Explicitly interleaving timestamp tokens, rather than relying on implicit positional encodings, significantly improves the MLLM's ability to understand and localize temporal events. This is attributed to the MLLM's strong retrieval capabilities.
- Adaptive Scaling is Crucial for Long Videos: Fixed processing strategies are impractical for videos of varying lengths. UniTime's adaptive frame scaling is essential for balancing computational resources and maintaining performance across diverse video durations.
- Coarse-to-Fine is Necessary for Long Videos: Directly grounding in long videos is challenging due to information sparsity and computational demands. A multi-stage approach effectively breaks down the problem into manageable steps.
Key Results
UniTime demonstrates state-of-the-art performance on temporal grounding benchmarks, achieving significant improvements over existing methods in both zero-shot and dataset-specific fine-tuned settings. For instance, UniTime-Full (trained universally) outperforms prior methods by up to 9.10% on TaCoS and 6.39% on Ego4D-NLQ. When used as a preliminary retriever for VideoQA tasks, UniTime significantly boosts accuracy, achieving 56.47% on Long VideoBench, compared to a baseline of 54.82% with uniform frame sampling. The model also shows strong robustness to temporal biases and query decomposition.
Limitations and Future Work
The authors acknowledge several limitations:
- Task Specificity: UniTime is currently focused on temporal grounding. Expanding its capabilities to more temporally complex tasks like dense video captioning would require more diverse temporal annotations.
- Fixed Segment Length: The current coarse-to-fine strategy uses a fixed segment length, which could be improved by dynamically adapting segment lengths based on video content density for greater efficiency.
Future work could explore these areas to further enhance the model's temporal reasoning and application scope.
Summary updated