Video transformers need to know when each frame happened, and they increasingly get that information from real timestamps: frames sampled at uneven rates, dropped frames, variable-frame-rate phone video, sensor streams with clock drift. Rotary position embeddings, the standard way to give attention a sense of position, rotate slices of each token's feature vector by angles proportional to its time coordinate. The fastest-rotating slices react most violently to small timing errors. We propose to borrow an idea from superconducting-qubit engineering. There, a qubit is made robust by operating it where its frequency does not change to first order when the noisy control parameter wobbles. We ask the same of the attention score: it should be insensitive to timing jitter at the scale of that jitter, while still telling apart events at the scale that matters.
The concrete outcome is a rule for choosing the temporal rotation frequencies from two measured quantities, the timing-noise scale of the input and the longest context the model must cover. We also introduce jittered versions of existing long-video benchmarks that expose the failure. The claim is testable: a model's accuracy drop under timestamp jitter should be predicted by a simple sensitivity score computed from its frequency spectrum. Choosing the band by that score should remove most of the drop without costing clean accuracy.
Core Claim
In rotary encoding, the attention logit between a query at time $m$ and a key at time $n$ depends only on the offset $\Delta = m - n$. It can be written as
$$s(\Delta) = \sum_i a_i \cos(\theta_i \Delta + \phi_i),$$
where $\theta_i$ is the fixed rotation frequency of channel pair $i$, and $a_i$ and $\phi_i$ are the amplitude and phase set by the query and key content in that pair. If the offset is corrupted by zero-mean jitter of size $\sigma$, the logit moves by roughly $s'(\Delta)\,\delta$. Averaged over offsets, its variance is approximately
$$\mathrm{Var}[\delta s] \approx \frac{\sigma^2}{2}\sum_i a_i^2 \theta_i^2 .$$
This follows because the squared sines average to one half when content phases are not aligned. It is the direct analogue of the qubit relation $\delta\omega \approx (\partial\omega/\partial\lambda)\,\delta\lambda$. Channels with $\theta_i \sigma \gtrsim 1$ contribute essentially noise under jitter. Channels with $\theta_i T_{\max} > 2\pi$, where $T_{\max}$ is the longest temporal context, wrap around. Distant frames then look identical in those channels, which is the "hash collision" failure identified by VideoRoPE. The temporal axis should therefore be band-limited on both sides, roughly $2\pi/T_{\max} \lesssim \theta \lesssim \kappa/\sigma$, with a tolerance $\kappa$ that we fit once.
VideoRoPE already fixes the lower edge by moving time to low frequencies. Nobody has tied the upper edge to the actual timing noise of the input, measured the resulting robustness, or shown that one scalar computed from the spectrum predicts degradation. That is the new part.
Where the Two Directions Meet
The flux-noise literature supplies the design lens, not the application. It offers three kinds of protection. The first is a true stationary point, as in fluxonium operated at half-integer flux (Fluxonium) or spin qubits biased at a minimum of the $g$-factor (Compromise-free scaling of qubit speed and coherence). The second is a globally flattened dispersion, as in capacitively shunted flux qubits where a large capacitor suppresses the flux slope everywhere (Decoherence of a tunable capacitively shunted flux qubit). The third is dynamical averaging, as in Floquet "freezing points" in Frozonium. For attention, a point-like sweet spot is useless: the model must stay sensitive to position somewhere, and the useful offsets are not known in advance. The flattening strategy maps cleanly onto capping $\theta_{\max}$, so that is the one we adopt. The same field also names the central trade-off: a qubit must couple strongly to its control to be fast, but that coupling admits noise. The attention analogue is resolving event order versus ignoring timing noise.
The most concrete methodological borrowing comes from Pulse Design of Baseband Flux Control. That paper maps leakage in a two-qubit gate to the Fourier magnitude of the flux trajectory's derivative. It then designs the trajectory as an equiripple Chebyshev filter, averaging 23.3% lower infidelity than Slepian pulses. Our sensitivity score is likewise a statement about the derivative's spectrum, and we test an equiripple-style frequency placement inside the allowed band. The same paper also constrains us. Its Chebyshev pulses lose to Slepian pulses below $5\times10^{-6}$ infidelity because of interference the design objective ignored. We take this as a warning that a first-order criterion can fail in the regime where second-order effects dominate. We therefore report where the first-order score stops predicting accuracy rather than assuming it always does.
On the positional-encoding side, VideoRoPE is both motivation and main competitor. It shows that frequency allocation across height, width, and time matters. It also shows that high-frequency temporal channels cause collisions with periodic distractors, and it introduces an adjustable temporal spacing factor. Absolute sinusoidal schemes such as PredFormer and Sparse Video Tubes serve as a contrast class: they are known not to extrapolate beyond the trained grid, and our analysis says nothing new about them. Partitioned three-axis rotation as in LaVin-DiT is the substrate we modify. LongVideoBench and TOMATO motivate the work: both show that models fail disproportionately at ordering multiple events, which is exactly where timing noise should hurt most.
Research Program
The first component is a diagnostic. For a trained model, we estimate the per-channel amplitudes $a_i$ from query–key statistics on held-out video. This gives the sensitivity score $\sum_i a_i^2\theta_i^2$ per temporal head. We check whether the score predicts measured logit variance under injected jitter, which validates the first-order approximation.
The second component is a benchmark perturbation suite. It applies the same corruptions to V-NIAH, V-NIAH-D, LongVideoBench, MLVU and VideoHallucer: Gaussian timestamp jitter at several $\sigma$, random frame drops with timestamps kept honest, and variable-frame-rate resampling. Positions are always computed from timestamps, as a timestamp-aware model would do.
The third component is the encoding itself: a two-edged band rule for temporal frequencies. The lower edge is set from $T_{\max}$ and the upper edge from a measured or expected $\sigma$. Frequencies are placed inside the band either log-uniformly or by an equiripple criterion that minimizes worst-case jitter sensitivity subject to a minimum resolution at a target event scale $L$. Spatial axes receive the analogous treatment, with sub-patch coordinate noise arising from resizing and cropping. Spatial results are secondary.
Baselines
The naive reference point is standard M-RoPE with timestamp-derived temporal positions, trained with the same recipe. It shows how large the jitter problem is in the first place.
The strongest existing method is VideoRoPE, with its low-frequency temporal allocation, diagonal layout, and adjustable spacing. It is the only method in the file that deliberately shapes the temporal spectrum. The reported numbers we must reproduce before claiming anything are three. VideoRoPE reports a 12.4% gain over M-RoPE on V-NIAH-D. At 64k context it gains 2.9 points on LongVideoBench and 4.5 points on MLVU over the baseline (VideoRoPE). We will train both it and our variant on the same LLaVA-Video-178k subset VideoRoPE used, with the same backbone, context lengths, and token budget. Each gets an equal small sweep over its spacing factor. Beating it means two things. On clean inputs we must stay within noise of VideoRoPE, meaning no loss on V-NIAH-D or LongVideoBench. Under jitter of one to a few frame intervals, we must retain a clearly larger fraction of clean accuracy, with the gap growing with $\sigma$ as the theory predicts. Absolute reference numbers on LongVideoBench are 66.7% for GPT-4o and 64.4% for Gemini-1.5-Pro. These are context only, not comparable baselines. For our jittered variants there is no reported result found on Lacuna.
Three ablations isolate the key ingredient. Upper-cutoff-only and lower-cutoff-only variants separate jitter protection from collision protection. A variant with the same band but randomly placed frequencies tests whether equiripple placement matters beyond the band itself. A "do the band wrong" control places the cutoff one decade above $1/\sigma$; if it does not degrade, the mechanism is wrong.
Why not just…?
Why not just use VideoRoPE's low-frequency temporal allocation, which already avoids fast temporal channels? It moves time into the lower part of a fixed base-10000 spectrum. It fixes the collision edge and was evaluated against periodic distractors, not against timing noise. Whether its highest remaining temporal frequencies still exceed $1/\sigma$ for realistic jitter is an empirical question. If VideoRoPE turns out to be as robust as our band rule on the jittered suite, the contribution shrinks to the diagnostic and the benchmark, and we will say so. The upper-cutoff ablation settles it directly.
Why not just train with timestamp-jitter augmentation and let the model learn to ignore fragile channels? This is the most serious threat. A model can shrink $a_i$ on high-frequency channels by itself, which achieves the same flattening through content rather than design. We treat augmentation as a full competitor, alone and combined with the band rule, at equal training compute. Our expectation is that augmentation matches the band rule only for offsets and noise levels seen in training. Separately, discarding channels by learning wastes capacity that a band rule reallocates, which matters given the known spatial–temporal channel budget tension. Two experiments test this. The first trains at one jitter level and tests at others and at longer contexts. The second measures how much temporal capacity the augmented model effectively leaves unused, via its fitted $a_i$.
Why not just use frame indices instead of timestamps, so timing noise never enters? With dropped frames or variable frame rates, the index itself is wrong about elapsed time. The noise does not disappear; it becomes a systematic miscount that grows with sequence length. We include an index-position arm in the frame-drop and variable-rate conditions. We expect it to fail on the ordering questions in LongVideoBench's relational level and in TOMATO, where elapsed time matters.
Decisive Checks
The first check is predictive. Across all trained variants and jitter levels, the drop in V-NIAH-D and LongVideoBench accuracy should rank-correlate with the spectrum-derived sensitivity score. If it does not, the qubit-style first-order account is not what governs attention robustness.
The second check is the band-edge sweep. Moving the upper cutoff through $\kappa/\sigma$ should produce a knee in jittered accuracy near the predicted location, and clean accuracy should stay flat until the cutoff starts cutting into the event-scale band set by $L$. That is the attention analogue of the speed–coherence trade-off.
The third check follows the warning from the Chebyshev pulse work. At very low jitter, where first-order effects vanish, we check whether equiripple placement ever underperforms simple log-uniform placement. We report that regime honestly rather than claiming uniform superiority.
References
- VideoRoPE: What Makes for Good Video Rotary Position Embedding?
- Fluxonium: An Alternative Qubit Platform for High-Fidelity Operations
- Compromise-free scaling of qubit speed and coherence
- Decoherence of a tunable capacitively shunted flux qubit
- Frozonium: Freezing anharmonicity in Floquet superconducting circuits
- Pulse Design of Baseband Flux Control for Adiabatic Controlled-Phase Gates in Superconducting Circuits
- PredFormer: Transformers Are Effective Spatial-Temporal Predictive Learners
- Rethinking Video ViTs: Sparse Video Tubes for Joint Image and Video Learning
- LaVin-DiT: Large Vision Diffusion Transformer
- LongVideoBench: A Benchmark for Long-context Interleaved Video-Language Understanding
- TOMATO: Assessing Visual Temporal Reasoning Capabilities in Multimodal Foundation Models