PAS: A Training-Free Stabilizer for Temporal Encoding in Video LLMs
Bowen Sun, Yujun Cai, Ming-Hsuan Yang, Hang Wu, Yiwei Wang
TL;DR
Video LLMs exhibit temporal instability when RoPE-based encodings extend to time via M-RoPE, causing attention to swing with small frame-rate changes. The authors propose Phase Aggregated Smoothing (PAS), a training-free inference plug-in that assigns small opposed phase shifts across attention heads and aggregates their outputs, effectively smoothing the time-domain modulation $m(\Delta)$ while preserving per-head spectra. They prove that smoother $m(\Delta)$ yields Lipschitz-stable logits, that multi-phase averaging attenuates high-frequency ripples, and that per-head spectra remain invariant under Nyquist sampling, so PAS changes sampling/aggregation rather than encoding. Empirically, PAS yields consistent gains across nine benchmarks with negligible overhead, especially under sparse temporal sampling, and provides practical defaults (e.g., two head groups with offsets [0, 0.5]). Overall, PAS offers a simple, robust, drop-in enhancement for phase-robust temporal encoding in Video LLMs with broad applicability to low-FPS regimes and frame-merged inputs.
Abstract
Video LLMs suffer from temporal inconsistency: small shifts in frame timing can flip attention and suppress relevant frames. We trace this instability to the common extension of Rotary Position Embeddings to video through multimodal RoPE. The induced inverse Fourier time kernel exhibits frame-scale ripples that multiply adjacent frames by different factors, which perturbs attention that should otherwise be governed by the raw query key inner product. We present Phase Aggregated Smoothing (PAS), a simple, training-free mechanism that applies small opposed phase offsets across heads and then aggregates their outputs. PAS preserves the per-head spectrum magnitude, while the aggregation effectively smooths the temporal kernel and reduces phase sensitivity without changing the positional encoding structure. Our analysis shows that the RoPE rotated logit can be approximated as a content dot product scaled by a time kernel; smoothing this kernel yields Lipschitz stability of attention to small temporal shifts; multi phase averaging attenuates high frequency ripples while preserving per-head spectra under Nyquist-valid sampling. Experiments on multiple video understanding benchmarks under matched token budgets show consistent improvements with negligible computational overhead. PAS provides a plug and play upgrade for robust temporal encoding in Video LLMs.
