TL;DR
Video Large Language Models (Video LLMs) are surprisingly fragile; minor shifts in frame timing or frame rates can drastically flip attention maps and cause models to miss key events. This paper introduces Phase Aggregated Smoothing (PAS), a training-free, plug-and-play inference mechanism that applies small, opposing phase shifts across attention heads to smooth out temporal encoding artifacts. PAS significantly stabilizes temporal attention and boosts video understanding performance with zero training and negligible computational overhead.
What Problem Does This Paper Address?
When language models were extended to handle video, researchers brought along text-based positional encodings like Rotary Position Embeddings (RoPE), adapting them into Multimodal RoPE (M-RoPE) to index time, height, and width.
However, this text-to-video translation introduces a hidden flaw: temporal instability. In Video LLMs, small changes in frame rate or minor sampling offsets can cause the model's accuracy to fluctuate wildly. The authors trace this fragility to a fundamental mathematical quirk of RoPE. In the time domain, RoPE's inverse Fourier kernel is inherently "rippled" at the frame scale. Instead of attention being purely driven by content similarity, RoPE acts as an unintended modulation factor—randomly amplifying or suppressing attention based entirely on incidental frame timing. If a crucial key frame happens to land in a low-gain "trough" of this ripple, the model down-weights it entirely.
Methods
To solve this, the authors propose Phase Aggregated Smoothing (PAS), a completely training-free, inference-time intervention.
Instead of allowing all attention heads to share the exact same temporal phase, PAS divides the attention heads into groups and applies small, opposed temporal offsets (phase shifts) exclusively to the query matrix ($Q$) of video tokens.
From Fourier theory, shifting a signal in time only rotates its phase; it does not alter its frequency spectrum magnitude. This means each individual attention head perfectly preserves its original positional semantics. However, when the standard multi-head attention mechanism aggregates (averages) the outputs from these phase-diversified heads, it acts as a controlled moving average filter. This dampens the high-frequency temporal ripples, creating a locally smooth attention modulation kernel that provides Lipschitz stability against small temporal shifts.
Datasets
The authors evaluated PAS across nine diverse video understanding benchmarks, categorizing them by their temporal sampling properties:
- Action Recognition (Phase-Sensitive): 20BN-Jester (focusing on directional and ordering cues), Something-Something V2 (object manipulation), Kinetics-700 (diverse motions), and Breakfast Actions (long activities, specifically used to test sub-Nyquist/undersampled conditions).
- General Video-LLM Suites: MVBench (motion analysis), TempCompass (temporal dependency), PerceptionTest (multimodal reasoning), EgoSchema (long-horizon understanding), and MMBench-Video (multi-shot comprehension).
Key Insights and Ideas
- The RoPE Ripple Effect: RoPE was originally designed for discrete text tokens. When applied to continuous time in videos, its finite set of frequencies creates an oscillatory waveform that introduces arbitrary gain swings across adjacent frames.
- Harnessing Multi-Head Redundancy: Rather than altering the model architecture or kicking off an expensive retraining cycle, PAS cleverly exploits the existing multi-head structure to perform a temporal moving average directly inside the attention layer.
- Spectrum Preservation: As long as the video sampling rate satisfies the Nyquist condition, shifting the time axis per head changes how the temporal modulation is sampled and aggregated, not what information is encoded.
Key Results
- Consistent Performance Gains: Built on top of a Qwen2.5-VL-7B-Instruct backbone, PAS consistently outperformed the baseline across almost all benchmarks. For example, on the phase-sensitive 20BN-Jester dataset, classification accuracy jumped from 16.0% to 18.3%.
- Zero Compute Overhead: Because PAS only modifies a fraction of the query matrix dimensions per token, its computational footprint is practically invisible. Inference throughput on an NVIDIA A100 GPU remained statistically identical (~77.2k tokens/s for the baseline vs. ~76.8k tokens/s with PAS).
- Hyperparameter Insensitivity: Sweeping the temporal offset magnitude ($\Delta$) revealed a wide performance plateau between 0.3 and 0.8. A simple default of $\Delta = 0.5$ worked robustly across entirely different datasets, removing the need for dataset-specific tuning.
- The Sparse Sampling Advantage: Aligning with the authors' theoretical framework, PAS provided the most substantial benefits when videos were sparsely sampled (low frame rates), where the underlying RoPE ripples are typically the most destructive.
Limitations and Future Work
- Sub-Nyquist Constraints: On severely undersampled videos (such as the Breakfast Actions dataset), the Nyquist condition is violated, leading to aliasing. In these scenarios, the theoretical guarantee of spectrum preservation breaks down, and PAS yields more muted improvements.
- Scope of Positional Encoding: PAS specifically targets absolute temporal encodings derived from M-RoPE. How this smoothing mechanism interacts with relative positional encodings or non-Transformer temporal architectures remains an open question for future research.
Summary updated