Video language models answer questions about long videos by looking at a handful of frames. A one-hour clip holds over 100,000 frames, so systems keep 8 to 128 of them, usually evenly spaced, and hope the answer is among them. When the decisive moment is brief, such as a hand flicking a switch, a foul at a boundary line, or a cup starting to tip, it falls between the samples and is lost. Learned frame selectors help, but they choose from a pool that was already thinned out, and they score whole frames, so a small event in one corner barely moves the frame's score.
We propose to do the selection at the level of small spatiotemporal regions over a dense pass of the video, and to make that affordable with the linear-cost global attention developed for graphs with millions of nodes. A cheap encoder turns every frame, at one to several frames per second, into a grid of patch tokens. These tokens become nodes in a graph whose edges link spatial neighbours and the same location in adjacent frames. A single layer of query-conditioned linear attention runs over the whole graph alongside one layer of local message passing. A selection head then hands a fixed budget of the most relevant regions, with their timestamps, to a frozen video language model, which re-encodes them at high resolution. Graph scalability matters here for a concrete reason. Frame-level selection over 3,600 frames is cheap even with ordinary attention, but region-level selection over roughly 176,000 patch nodes is not. The graph transformer is what makes selecting regions rather than frames possible.
Core Claim
Temporal information loss in video language models has two sources: the candidate pool is sparse in time, and the selection unit is coarse in space. Fixing both requires a selector that sees a dense, patch-level view of the video and mixes evidence across the whole timeline at linear cost. Our claim is that, at a matched token budget for the language model and matched total compute, a one-layer graph transformer that selects regions beats frame selectors and uniform slow-fast sampling. We expect the gain to be largest on questions whose evidence is short or spatially small. We also claim that global mixing, not just dense patch scoring, does part of the work. Many transient events are defined by change or interaction (something starts, stops, or touches something else). A patch scored on its own against the query cannot detect that, but one with temporal edges and global context can.
Relation to Prior Work
Three works motivate the gap. Flexible Frame Selection for Efficient Video Reasoning learns a query-conditioned gatekeeper that fills a budget of slots with frames or discardable control tokens. It trains end to end through a Gumbel-Max straight-through estimator and reaches 62.2% on NExT-QA against 61.6% for 32 uniform frames, with 13.5x fewer downstream FLOPs. Its selection unit is the whole frame, and its pool is pre-sampled, which its own limitations acknowledge. We reuse its differentiable budgeted selection but change both the unit and the pool density. SlowFast-LLaVA and SlowFast-LLaVA-1.5 get temporal density by pooling a fast stream to a 4×4 grid per frame. That pooling destroys exactly the small details we aim to keep, and both streams remain uniform in time. Adaptive Keyframe Sampling frames selection as relevance balanced against coverage. We borrow this by reserving part of the budget for a coarse coverage stream.
Two video graph models come closest in structure, and both constrain the design. Video Graph Transformer builds graphs over detected objects in a few pre-sampled frames with quadratic attention. It depends on the detector and cannot grow in time. We avoid detectors entirely and use patches as nodes. Spatio-Temporal Graph Transformer also treats patches as nodes. Its edges, however, come from a visual-similarity threshold over adjacent frames only, it never consults the question, and it max-pools for efficiency. Its graph lives inside an alignment encoder rather than serving as a selector. Our graph is query-conditioned, has global reach through linear attention, and its output is a selection.
The method comes from the scalable graph transformer line. SGFormer shows that one global linear attention layer in parallel with a local graph convolution is enough, and that it scales to 111 million nodes on one GPU. Deeper attention stacks over-smooth and overfit, which tells us not to stack layers. Recipe for a General, Powerful, Scalable Graph Transformer supplies the decoupling of local message passing from global linear attention, plus a warning: linear attention loses precision on small dense graphs. We address that warning with an ablation that swaps in exact softmax attention on short videos. NodeFormer offers a random-feature alternative with Gumbel-sampled latent edges. DIFFormer offers a diffusion-derived linear variant. We treat both as drop-in replacements for the global layer rather than the core contribution. Hierarchical Graph Transformer with Adaptive Node Sampling samples nodes adaptively on static graphs. Our selection head is the video analogue, with the question supplying the reward signal through the answer loss.
Research Program
The dense pass uses a small image encoder (from facebookresearch/perception_models) at low resolution, producing a 7×7 patch grid per frame. Long videos are sampled at 1 frame per second. Humans reach about 67% on EgoSchema at that rate, against 76.2% with full video (EgoSchema), so 1 fps keeps most of the needed evidence. Short videos such as NExT-QA clips are sampled at 4 frames per second. Each patch is a node. Edges connect the 8 spatial neighbours within a frame and the same and neighbouring grid cells in frames $t-1$ and $t+1$. Text tokens from the question are added as extra nodes visible to the global layer. The node update is
$$H = (1-\alpha)\,\mathrm{GCN}(X, A) + \alpha\,\phi(Q)\big(\phi(K)^\top V\big),$$
where $X$ holds the node features, $A$ is the spatiotemporal adjacency, $Q, K, V$ are projections of the nodes and text tokens, $\phi$ is a positive feature map, and $\alpha$ is a learned mixing weight. The second term costs $O(Nd^2)$ for $N$ nodes and width $d$, so it never materialises an $N\times N$ matrix. A scoring head over $H$ selects $K$ regions through Gumbel top-$K$ with straight-through gradients. A region is a node plus its spatial neighbours, which keeps a fixed crop size. Each selected region is cropped from the original high-resolution frame and re-encoded by the language model's own vision encoder, tagged with its timestamp. These region tokens are placed alongside a small uniform coverage stream of low-resolution frames.
Training mirrors FFS. The language model stays frozen. The selector and a light adapter are trained on the answer loss only, with no frame-level or region-level labels, using the same video instruction data that SlowFast-LLaVA-1.5 uses in its second stage. We will analyse what the selector learns in three ways: where in time and space it fires, whether its picks cluster around motion onsets, and how often it chooses regions from frames that a 64-frame uniform sampler would never see.
Baselines
The naive reference is uniform sampling into the same downstream model at the same token budget, at 32, 64 and 128 frames. On NExT-QA, the 32-frame uniform setting is reported at 61.6% by Flexible Frame Selection. We re-run it on our backbone so all numbers share one model.
The strongest uniform-time competitor is SlowFast-LLaVA-1.5. Its 7B model reports 62.5% on LongVideoBench and 71.5% on MLVU using about 9,000 tokens for 128 frames, and its 1B model reports 56.6% on Video-MME. We use the same language backbone and hold our input to the same roughly 9,000 tokens. Beating it means at least one point higher accuracy on LongVideoBench and MLVU at equal tokens, with total FLOPs, including our dense pass, no more than 1.2x theirs.
The strongest adaptive competitor is FFS, reported at 62.2% on NExT-QA. It is run two ways. The first is its standard frame pool. The second is the same dense 1 to 4 fps pool our method sees, with one token per frame. The second version is the critical one, because it gives FFS our temporal density and isolates the effect of selecting regions. Both are trained on identical data with the same number of tuning trials as ours. For EgoSchema, the file states only that FFS outperforms VideoAgent, so no reported number was found on Lacuna for FFS on EgoSchema, and we will report our own reproduction.
Two ablations isolate the key ingredient. The first is dense independent patch scoring: each patch is scored against the question with the same scoring head, but there is no graph and no global layer. This tests whether the graph does anything. The second removes the temporal edges and keeps the global layer. This tests whether locally detecting change matters. On short videos we also swap the linear global layer for exact softmax attention. This measures the precision loss that GraphGPS warns about.
Why not just…?
Why not just score densely sampled frames against the question with a CLIP-style model and keep the top ones? This is the most serious threat. It is training-free, linear in video length, and fixes the sparse-pool problem by itself. It still selects whole frames by a single embedding, so a small region-scale event barely moves the score. It also cannot detect change. We run it on the same dense pool. If it comes within one point of our method on the transient-event probe described below, the graph and region machinery are not justified, and we would reframe the work as a study of pool density.
Why not just give FFS a denser candidate pool? At frame granularity this is cheap, since 3,600 frame tokens fit easily under ordinary attention. This is exactly why we do not claim scalability helps frame selection. The dense-pool FFS baseline settles whether the gain comes from density or from region-level choice. Our hypothesis predicts the gap concentrates on questions about small objects and hands, and on the SPORTU-style foul and transient categories.
Why not just feed more uniform frames into a long-context model? LongVideoBench shows that GPT-4o gains over 10% going from 16 to 256 frames. Open models often lose accuracy as frames increase, and Video-MME reports a 14.3% drop for Gemini 1.5 Pro from short to long videos. More uniform frames also cost more tokens per unit of evidence. The uniform 128-frame baseline at roughly 14,000 tokens measures this directly against our 9,000-token input.
Why not just use object graphs as in VGT? That design inherits detector failures on small and fast objects, which are precisely our target. It is also quadratic, so it cannot grow in time. It reports 53.68% on NExT-QA (Video Graph Transformer), below even the uniform baseline above, so we cite it rather than rerun it.
Proposed Experiments
The main evaluation covers NExT-QA, broken down by causal, temporal and descriptive questions; EgoSchema; LongVideoBench; Video-MME, by duration; and MLVU. Each is reported as accuracy against total FLOPs and against language-model tokens. SPORTU and UAL-Bench test transient and unusual events. No reported result was found on Lacuna for SlowFast-LLaVA-1.5 or FFS on either benchmark, so all numbers there are ours.
The decisive check is a controlled transient probe. We splice clips shorter than one second, containing small, question-relevant actions, into long videos at random positions, and ask questions only that clip can answer. We vary clip duration and the fraction of the frame the action occupies. The method should hold accuracy as the clip shrinks below the uniform sampling interval, and should keep holding it as the action shrinks spatially. The dense CLIP top-k and dense-pool FFS baselines should degrade as the action shrinks spatially, and the independent-patch ablation should degrade on change-defined events. If the region selector does not beat dense-pool FFS by a clear margin on small-area probes, the central claim fails. Finally, we will check whether the gains on real benchmarks follow the same pattern, concentrating on NExT-QA temporal questions and on LongVideoBench single-moment perception questions.
References
- Flexible Frame Selection for Efficient Video Reasoning
- SlowFast-LLaVA: A strong training-free baseline for video large language models
- SlowFast-LLaVA-1.5: A Family of Token-Efficient Video Large Language Models for Long-Form Video Understanding
- Adaptive Keyframe Sampling for Long Video Understanding
- Video Graph Transformer for Video Question Answering
- Video-Language Alignment via Spatio-Temporal Graph Transformer
- SGFormer: Simplifying and Empowering Transformers for Large-Graph Representations
- Recipe for a General, Powerful, Scalable Graph Transformer
- NodeFormer: A Scalable Graph Structure Learning Transformer for Node Classification
- DIFFormer: Scalable (Graph) Transformers Induced by Energy Constrained Diffusion
- Hierarchical Graph Transformer with Adaptive Node Sampling
- EgoSchema: A Diagnostic Benchmark for Very Long-form Video Language Understanding
- LongVideoBench: A Benchmark for Long-context Interleaved Video-Language Understanding
- Video-MME: The First-Ever Comprehensive Evaluation Benchmark of Multi-modal LLMs in Video Analysis
- UAL-Bench: The First Comprehensive Unusual Activity Localization Benchmark