Swift Sampling: Selecting Temporal Surprises via Taylor Series

Dahye Kim, Bhuvan Sachdeva, Karan Uppal, Naman Gupta, Vineeth N. Balasubramanian, Deepti Ghadiyaram

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.

Figure 2: Each frame is represented on the latent feature trajec- tory, where we apply Taylor expansion over preceding frames to predict the next frame feature. The residual between the prediction and the actual feature measures how much the trajec- tory deviates from a smooth continuation. Frames with large residuals correspond to temporal surprises, e.g., seal suddenly emerging from the ice, which Swift Sampling effectively cap- tures.
  1. 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.
  2. 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.
  3. 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.
Figure 3: Qualitative comparison of frame selection on a sample video from VideoMME dataset, given a budget of 8 frames out of 128. The correct answer (a seal at the breathing hole) requires temporal coverage of multiple events. Uniform sampling is redundant, capturing the polar bear while missing the seal entirely. Cosine Uniqueness [1] favors visual outliers like title cards and underwater shots that are task irrelevant and fail to provide relevant information. By contrast, Swift Sampling captures the temporal surprise of the seal’s appearance thus providing critical evidence for correct reasoning.

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

Abstract

While most frames in long-form video are redundant, the critical information resides in $\textit{temporal surprises}$: moments where the actual visual features deviate from their predicted evolution. Inspired by the human brain’s predictive coding, we introduce $\textbf{Swift Sampling}$, an elegant, training-free frame selection algorithm that automatically identifies high-information moments in a video. Specifically, we model a video as a differentiable trajectory in the visual latent space and compute the velocity and acceleration of its features. Then, we apply Taylor expansion to project the expected path of subsequent frames. Frames that diverge sharply from this predicted manifold are identified as temporally surprising frames and selected for sampling. Unlike prior training-free methods that rely on auxiliary networks or video-specific hyperparameter tuning, Swift Sampling is incredibly lightweight, adding only $\mathbf{0.02\times}$ additional computational cost over baseline making it $30\times$ cheaper overhead than leading baselines. Across three long-video question answering benchmarks and $10$ different downstream tasks, Swift Sampling outperforms uniform sampling and prior query-agnostic baselines. It is especially powerful for long videos with limited frame budgets improving accuracy by up to $\mathbf{+12.5}$ points.
BibTeX
@inproceedings{kim2026swift,
  author = {Dahye Kim and Bhuvan Sachdeva and Karan Uppal and Naman Gupta and Vineeth N. Balasubramanian and Deepti Ghadiyaram},
  title = {{Swift Sampling: Selecting Temporal Surprises via Taylor Series}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ZACohTphcr},
}
Figure