TL;DR
Divid is a novel Video Large Language Model (Video LLM) architecture that explicitly separates spatial and temporal processing inside the LLM decoder to better understand long-form videos. By using a low-resolution temporal branch to guide the selection of high-resolution spatial keyframes, it achieves state-of-the-art temporal grounding while slashing computational costs by 63%. Alongside the model, the authors introduce TempGCap, a massive new dataset of 559K timestamp-grounded video-text pairs designed to train these temporally-aware models.
The Challenge of Long-Form Video Grounding
Video LLMs are becoming incredibly capable, but they still struggle with long-form videos—especially when tasked with pinpointing exactly when a specific event occurs (temporal grounding).
The standard approach relies on brute force: encoding all video frames into a massive, flat sequence of visual tokens and feeding them directly into the LLM. For long videos, this blows up the context window and incurs massive computational costs. Recent "Slow-Fast" architectures attempt to fix this by separating temporal and spatial features during the encoding phase. However, they still dump all these tokens together once inside the LLM. This entanglement often confuses the model, leading to temporal hallucinations. Furthermore, these models usually pick their high-resolution "spatial" frames using uniform sampling (e.g., one frame every 5 seconds). This query-agnostic approach is completely blind to what the user is actually asking about and risks missing the crucial action entirely.
The Divid Framework
To solve these inefficiencies, the authors propose Divid, a dual-branch framework that disentangles space and time directly inside the LLM decoder.
The architecture relies on four core components:
- Temporal Perception Branch: This branch processes a dense sequence of frames at a very low spatial resolution. Its primary job is to cheaply understand the global timeline and motion dynamics of the video without getting bogged down in visual details.
- Query-Aware Keyframe Selection: Instead of blindly sampling frames, Divid uses the cross-modal attention map generated by the temporal branch to identify which frames the text query actually cares about. It then selects the Top-K most relevant frames to process at high resolution.
- Spatial Perception Branch: This branch processes only that sparse, intelligently selected set of high-resolution keyframes to extract fine-grained visual details.
- Spatio-Temporal Soft-Router: To bring it all together, the authors designed a lightweight, token-level gating mechanism. For every single word in the text query, the router dynamically decides how much information to pull from the temporal branch versus the spatial branch.
Datasets and Evaluation
To train Divid, the authors introduced TempGCap, a new, large-scale instruction-tuning dataset containing 559K timestamp-grounded video-text pairs (spanning roughly 8,800 hours). It was built by reannotating untrimmed videos, recovering contexts from trimmed clips, and synthesizing pseudo-untrimmed videos with distractor clips, offering much higher temporal precision than existing datasets.
The model was rigorously evaluated on Charades-STA for Temporal Grounding, as well as CG-Bench, NExT-GQA, and ReXTime for Grounded Video Question Answering.
Key Insights
- Inside-LLM Disentanglement Works Better: Keeping spatial and temporal tokens in separate attention streams inside the LLM prevents the model from confusing "where" things are with "when" they happen.
- Smart Sampling Beats Token Pruning: Using the LLM's own temporal attention to pick keyframes is far more effective than pre-LLM frame sampling or global token pruning. It ensures heavy compute is spent only on frames relevant to the user's prompt.
- The Soft-Router Learns Semantic Grammar: When visualizing the routing weights, the authors found a fascinating emergent behavior. The router naturally prioritizes the temporal branch for time-based words (like "then", "when", "start") and prioritizes the spatial branch for concrete nouns and visual actions (like "lady", "dog", "holding").
Key Results
Divid demonstrates that intelligent routing and sampling can yield massive performance gains over brute-force scaling.
- Massive Efficiency Gains: Divid requires only 10.5 TFLOPs, a 63% reduction compared to a full-resolution baseline (28.2 TFLOPs), while actually improving accuracy.
- Punching Above its Weight: The 7-Billion parameter version of Divid achieved a 51.3 mIoU on the Charades-STA benchmark, outperforming the massive 72-Billion parameter Qwen2.5-VL (50.9 mIoU).
- State-of-the-Art VideoQA: On the challenging CG-Bench dataset, Divid-7B set a new open-source state-of-the-art (5.74 mIoU) and even outperformed commercial frontier models like GPT-4o (5.62 mIoU) and Gemini-1.5-Pro (3.95 mIoU) in grounding accuracy.
Limitations and Future Work
The authors note a few limitations. First, because the temporal branch guides the spatial selection, it can inherit biases from the pretrained LLM's attention mechanisms. Second, the model struggles with complex queries where the "cue" and the "answer" do not overlap in time (e.g., "What did the man do before he dropped the weights?"). Future work will focus on debiasing strategies for temporal attention and expanding the TempGCap dataset to include more cross-interval temporal queries to improve complex causal reasoning.
Summary updated