TL;DR
Imagine watching an hour-long nature documentary about a polar bear walking across endless snow; your brain naturally tunes out the repetitive footsteps and snaps to attention the instant a seal pops out of the ice. Swift Sampling brings this exact biological trick—predictive coding—to Video Large Language Models (VLMs) using basic calculus. By predicting where a video's visual features are headed via a Taylor series and sampling only the moments that break that prediction, it boosts long-video reasoning accuracy by up to 12.5 points while adding practically zero computational overhead.
What Problem Does This Paper Address?
Processing long-form video with modern VLMs hits a massive bottleneck: context limits and compute budgets only allow the model to "see" a tiny fraction of frames (say, 32 frames out of thousands).
Today, the standard approach is uniform sampling—picking frames at even intervals. Unfortunately, long videos are mostly redundant stretches punctuated by brief, critical events. Uniform sampling treats boring frames and pivotal plot twists equally, often blinking right when the action happens. Smarter alternatives exist (like optical flow or measuring frame-to-frame similarity), but they usually require running a separate, heavy vision network over every candidate frame—nearly doubling inference costs—or demand finicky hyperparameter tuning for each video. The authors ask: can we find the genuinely informative frames without extra models or manual tuning?
Methods
Inspired by how the human visual cortex acts as a predictive engine, Swift Sampling looks for temporal surprises.
- Zero-Auxiliary Feature Extraction: Starting with a pool of candidate frames (e.g., 128), the method passes them through only the very first transformer layer ($\ell=0$) of the VLM’s existing vision encoder. It grabs the self-attention key projections and mean-pools them spatially into a single vector per frame. Because it reuses the VLM's own early representations, no external model is needed.
- Taylor Series Extrapolation: Treating this sequence of feature vectors as a smooth trajectory through latent space, the algorithm uses backward finite differences over preceding frames to estimate local kinematics: velocity (1st derivative), acceleration (2nd), and jerk (3rd, using expansion order $N=3$). Using a Taylor expansion, it predicts where the next frame's feature vector ought to land.
- Scoring & Local Maxima Selection: The $L_2$ distance between the predicted feature and the actual observed feature is the Taylor residual—a clean mathematical proxy for surprise. Rather than simply grabbing the global top-$K$ highest residuals (which would dump the entire frame budget into a single chaotic, fast-moving action scene), Swift Sampling selects local maxima across the timeline. This ensures it captures subtle surprises in quiet scenes alongside major transitions.
Datasets
Because Swift Sampling is completely training-free, no training datasets are used. The authors evaluate it across four existing benchmarks (no new datasets are introduced):
- Video-MME, MLVU, and LongVideoBench (LVB): Three long-form Video Question Answering (VQA) benchmarks spanning short clips to videos exceeding 30 minutes.
- TempCompass: Used to evaluate downstream video captioning across temporal dimensions like action, speed, and order.
Key Insights and Ideas
- Early layers make the best predictors: Surprisingly, features from the very first vision encoder layer ($\ell=0$) outperform deeper layers. Early layers capture smooth, low-level scene dynamics that evolve predictably—making sudden surprises stand out starkly—whereas deeper layers abstract away motion into high-level semantics, adding unnecessary compute for marginal or worse accuracy.
- Global pooling beats fine-grained patches: Averaging a frame's entire $14 \times 14$ token grid into one global vector works better than tracking regional patches. Fine grids get distracted by local texture noise and camera jitter, whereas global pooling locks onto true scene-level shifts.
- Uniqueness $\neq$ Informativeness: Baselines that pick the most "visually unique" frames (like Cosine Uniqueness) get tricked into selecting title cards, black screens, and end credits. Because Swift Sampling measures deviation from local momentum, it ignores static outliers and catches actual narrative progressions.
Key Results
Tested on LLaVA-OneVision and LLaVA-Video backbones (selecting 32 frames from 128):
- Negligible Overhead: Swift Sampling adds just 0.02$\times$ FLOPs over vanilla uniform sampling—making its overhead 30$\times$ cheaper than leading training-free baselines like Cosine Uniqueness (1.60$\times$ total cost) or MaxInfo (1.79$\times$).
- Long-Video & Tight-Budget Gains: On LLaVA-OneVision, accuracy jumps by +6.8 points on LVB videos over 20 minutes (47.5% $\rightarrow$ 54.3%) and +4.2 points on MLVU videos over 30 minutes. When squeezing the budget down to just $K=4$ frames on >30-minute MLVU videos, accuracy surges by +12.5 points over uniform sampling.
- Plug-and-Play Synergy: Used as a fast pre-filter for query-aware methods (AKS), it cuts compute from 2.06$\times$ to 1.59$\times$ while boosting Video-MME accuracy by +2.1%. Swapping it into token compression (UniComp) yields up to +2.4 points for free.
Limitations and Future Work
- Query-Agnostic Blind Spots: Because it doesn't read the user's prompt before picking frames, Swift Sampling can waste budget on visually jarring but task-irrelevant moments, like abrupt shot transitions.
- Struggles with Continuity and Counting: On tasks requiring steady temporal coverage or tracking static details—like Counting (-2.2% on Video-MME), Temporal Perception (-3.6%), or Attribute Change (-4.08% on TempCompass)—selective surprise sampling underperforms boring old uniform sampling.
- Future Directions: The authors plan to make the Taylor residual task-sensitive (query-aware) and extend this predictive coding framework to audio and joint spatio-temporal modalities.
Summary updated