TL;DR
Video Large Language Models (Video-LLMs) choke on long videos because every frame explodes into hundreds of visual tokens, yet simply dropping frames risks missing the exact moment you are looking for. QUOTE (Query-Anchored Unbalanced Optimal Transport) is a parameter-free compression module that squeezes dense video frames into a tiny token budget before they ever reach the LLM. By using the text query to anchor—and unbalanced optimal transport to selectively merge—visual tokens, QUOTE outperforms existing compressors while cutting time-to-first-token by 1.35× and peak GPU memory by 11%.
What Problem Does This Paper Address?
Imagine trying to find the exact 5-second clip where a man puts on his mask in a 2-minute car ride. This is video temporal grounding: localizing the start and end timestamps in an untrimmed video that match a natural-language query.
Video-LLMs are great at this, but they have a severe appetite for tokens. For example, LLaVA-NeXT-Video turns a single frame into 144 visual tokens. Sample 32 frames, and you already have 4,608 tokens—blowing past the model's 4,096-token context window before you even type your question.
If you just sample fewer frames, you lose temporal granularity and risk blinking right past brief events. The alternative is visual-token compression, but existing approaches hit a wall under tight budgets:
- Query-free merging (like ToMe) groups visually similar tokens without ever reading the query, which can blur out subtle, query-relevant details.
- Query-guided top-$K$ selection (like GroundVTS) keeps only the highest-scoring tokens and throws the rest away—meaning entire frames or moments can end up with zero tokens.
Methods
QUOTE sits right between the multimodal projector and the LLM during standard projector and LoRA fine-tuning, adding zero trainable parameters. It partitions the video into short clips and compresses each clip independently through four steps:
- Clip-level budget allocation: Every clip is guaranteed at least one output slot so that no part of the video goes completely dark. Remaining slots are distributed via a softmax over clip-level query similarity.
- Query-guided initialization: Within each clip, QUOTE computes the cosine similarity between projected visual tokens and the mean-pooled, $\ell_2$-normalized query embedding $q$. The top-$M$ highest-scoring tokens initialize the $M$ output anchors, and query scores set each source token's prior transport mass.
- Support refinement: Query-selected anchors can bunch up on the same visual patch. QUOTE runs $H$ Lloyd-style (k-means-like) refinement steps over the clip's features so the anchors spread out and represent content beyond the initial top-$M$ picks.
- KL-unbalanced optimal transport (UOT) merging: Using log-domain unbalanced Sinkhorn, QUOTE computes a transport plan between all original tokens and the refined anchors, then outputs transport-weighted averages (barycenters). Crucially, because the transport is unbalanced (with a KL penalty $\rho$ relaxing marginal constraints), poorly matched, off-query tokens can shed mass rather than being forced to dilute the query-relevant anchors.
Datasets
The authors evaluate QUOTE on three standard video temporal grounding benchmarks:
- Charades-STA: Indoor activity videos averaging 30.6 seconds with sentence-level timestamps.
- QVHighlights: 150-second vlog and news videos, with one or more disjoint moments annotated per query.
- ActivityNet Captions: Untrimmed videos averaging ~2 minutes paired with event descriptions.
Experiments span three Video-LLM backbones: LLaVA-NeXT-Video (all three benchmarks), plus LLaVA-OneVision and Qwen2.5-VL (on Charades-STA).
Key Insights and Ideas
- Denser sampling + heavy compression beats sparse uncompressed frames: On QVHighlights, compressing 128 frames down to 576 tokens (3.13% retention) beats an uncompressed 16-frame baseline (2,304 tokens) by 15.05 R1-avg points—using one-quarter as many tokens.
- Both query guidance and unbalanced marginals are essential under tight budgets: On Charades-STA at 288 tokens (6.25% retention), removing query conditioning drops R1-avg by 5.02 points, while forcing balanced optimal transport (no mass shedding) drops it by 5.06 points.
- Refining anchors matters when slots are scarce: Skipping support refinement ($H=0$) on QVHighlights at 288 tokens yields 45.10 R1-avg (below ToMe's 47.71), whereas $H=5$ refinement steps lift it to 49.29.
Key Results
- QVHighlights (LLaVA-NeXT-Video, 128 frames $\rightarrow$ 576 tokens): Outperforms ToMe by +3.93 test R1-avg (54.96 vs. 51.03) and +3.30 test mAP at the same budget.
- Charades-STA (LLaVA-NeXT-Video, 32 frames $\rightarrow$ 288 tokens): Achieves 44.18 R1-avg, beating ToMe (38.34) by +5.84 points and OTT-Vid by +14.01 points.
- Cross-backbone generality: On Qwen2.5-VL (6.25% retention), QUOTE reaches 51.81 R1-avg vs. 28.75 for an adapted single-stage GroundVTS. On LLaVA-OneVision (392 tokens), it beats ToMe by +1.31 R1-avg.
- Inference efficiency (Charades-STA, 32 frames $\rightarrow$ 288 tokens on an A100): Cuts LLM prefill from 370 ms to 49 ms (~7.5×), reduces peak GPU memory by 11% (19.26 GiB $\rightarrow$ 17.12 GiB), and delivers a 1.35× speedup in time-to-first-token (1,160 ms $\rightarrow$ 857 ms), with QUOTE's batched solver adding just 17 ms of overhead.
Limitations and Future Work
- Generous budgets: When token budgets are plentiful (e.g., 2,304 tokens on QVHighlights validation or ActivityNet Captions), query-free merging (ToMe) can slightly edge out QUOTE (by ~1.5 points), as query-seeded anchors may over-concentrate on high-scoring patches rather than uniform context.
- Vision encoder bottleneck: Because QUOTE compresses tokens after the vision encoder and projector (which take 785 ms on 32 frames), end-to-end time-to-first-token speedups are bounded by those earlier stages.
Summary updated