TL;DR
Linear attention reduces the computational complexity of Transformers from quadratic to linear, but typically suffers severe accuracy drops in video classification because its attention distributions are overly diffuse. This paper introduces Feature Fixation (which reweights Query and Key features by cooperatively aggregating Query-Key-Value representations) and Neighborhood Association (which incorporates spatio-temporal shifts from adjacent tokens) to sharpen linear attention. The resulting linear video Transformer achieves state-of-the-art performance among linear variants—matching or outperforming several full-Softmax quadratic models at a fraction of the compute.
What Problem Does This Paper Address?
Applying standard Vision Transformers to video is computationally brutal. Because a video is tokenized across both time and space ($N = T \times S$ tokens), standard Softmax self-attention scales quadratically with sequence length ($O(N^2)$). For long or high-resolution clips, this causes extreme memory consumption and high latency.
Kernel-based linear attention decomposes the attention matrix into $\rho(Q)\rho(K)^T$, allowing matrix associative properties to compute key-value products first and drop complexity to $O(N)$. However, linear attention historically exhibits a noticeable accuracy drop compared to Softmax. The authors identify the root cause: a lack of attention concentration. Without the exponential peakiness of Softmax, linear attention maps become flat and diffuse, inadvertently amplifying background noise and failing to focus on discriminative, action-critical features.
Methods
The authors build on a factorized spatio-temporal ViT architecture (based on XViT) with ReLU-based linear attention and introduce two core modules:
[Tokens] ──> Shift K & V (Neighborhood Association)
│
├──> Concatenate [Q, K, V] ──> φ(·) ──> Sigmoid ──> Fixation Ratio (γ)
│ │
└──> Reweight: Q̂ = γ ⊙ Q, K̂ = γ ⊙ K ───────────────────────┘
│
└──> Linear Attention: Y = Q̂(K̂ᵀV)
- Feature Fixation (Cooperative Saliency Reweighting):
- Non-essential feature channels are suppressed while salient features are preserved using channel-wise scaling ratios $\gamma \in (0, 1)$.
- Rather than computing fixation weights on $Q$ and $K$ independently, the model projects tokens into a shared cooperation space by concatenating $Q$, $K$, and $V$. A single shared ratio vector $\gamma = \sigma(\phi([Q, K, V]))$ scales both $Q$ and $K$.
- Neighborhood Association:
- Because video features are continuous across space and time, local consensus helps distinguish noise from real signal.
- Before attention is calculated, the Key and Value representations are mixed with spatially and temporally adjacent tokens using parameter-free feature shifting.
- For spatial shift, the authors use a "criss-cross" neighborhood (mixing along the horizontal and vertical cross) rather than a full square grid, preventing feature dilution across large receptive fields.
Datasets
The authors evaluate their approach on three standard video action recognition benchmarks (all models pretrained on ImageNet-21k):
- Something-Something V2 (SSv2): ~169k training / ~24.7k validation videos across 174 motion-centric classes.
- Kinetics-400 (K400): ~240k training / ~20k validation videos across 400 human action classes.
- Kinetics-600 (K600): ~370k training / ~28k validation videos across 600 classes.
Note: No new benchmark datasets were introduced.
Key Insights and Ideas
- Why cooperative fixation matters: Treating $Q$, $K$, and $V$ as alternative latent representations of the same token draws inspiration from Gaussian pyramids and contrastive learning: salient structures persist across different representations. Aggregating all three representations yields a significantly more robust indicator of feature importance than evaluating $Q$ or $K$ alone (+1.05% Top-1 improvement on SSv2).
- Criss-cross spatial shifts avoid dilution: In 2D space, expanding a square window increases token count quadratically, leaving too few channels per token during shift operations. Constraining the shift to orthogonal axes ($4\xi$ tokens) scales receptive fields without diluting features.
- Selective utility: Adding feature fixation to other linear architectures (Performer, cosFormer, Linear Transformer) consistently boosted their Top-1 accuracy by 2–4%. Conversely, applying it to Softmax-based XViT yielded no improvement—confirming that the module specifically resolves linear attention’s diffuse distribution issue.
Key Results
- SSv2: Achieves 65.5% Top-1, outperforming the previous best linear model (Oformer at 63.8%) with nearly half the parameters (52.2M vs. 102.0M). It surpasses quadratic models such as TimeSformer (62.5%) and ViViT-L (65.4%) while using over 6× fewer GFLOPs (257.8 vs. 1703.0 and 3992.0).
- Kinetics-400 & 600: Scores 78.0% on K400 and 84.1% on K600, outperforming all evaluated linear Transformers and trailing the best quadratic model (XViT) by only 0.4% on K600.
- Throughput & Memory: Under high load ($64\text{ frames} \times 448 \times 448\text{ resolution}$), standard Softmax and Orthoformer crash with Out-Of-Memory (OOM) errors on an 80GB A100 GPU, whereas this model processes 2.81 videos/second.
Limitations and Future Work
- Extreme Scale Bottlenecks: Although memory growth is linear, extremely large inputs (e.g., $96\text{ frames} \times 448 \times 448$) still trigger GPU OOM errors due to the baseline footprint of token activations throughout the network.
- Softmax Incompatibility: The technique is tailored to linear attention and offers no benefit to quadratic Softmax networks.
- Future Directions: The authors suggest combining their linear attention pipeline with token sparsification and model pruning to scale to even longer, unconstrained video sequences.
Summary updated