[Paper Review] Shifted Chunk Transformer for Spatio-Temporal Representational Learning
This paper proposes the Shifted Chunk Transformer (SCT), a memory- and computation-efficient Transformer architecture for spatio-temporal representation learning. By employing locality-sensitive hashing (LSH) in image chunk self-attention and introducing shifted multi-head attention to model inter-frame motion, SCT achieves state-of-the-art accuracy on Kinetics-400, Kinetics-600, UCF101, and HMDB51 with fewer parameters and FLOPs than prior methods.
Spatio-temporal representational learning has been widely adopted in various fields such as action recognition, video object segmentation, and action anticipation. Previous spatio-temporal representational learning approaches primarily employ ConvNets or sequential models,e.g., LSTM, to learn the intra-frame and inter-frame features. Recently, Transformer models have successfully dominated the study of natural language processing (NLP), image classification, etc. However, the pure-Transformer based spatio-temporal learning can be prohibitively costly on memory and computation to extract fine-grained features from a tiny patch. To tackle the training difficulty and enhance the spatio-temporal learning, we construct a shifted chunk Transformer with pure self-attention blocks. Leveraging the recent efficient Transformer design in NLP, this shifted chunk Transformer can learn hierarchical spatio-temporal features from a local tiny patch to a global video clip. Our shifted self-attention can also effectively model complicated inter-frame variances. Furthermore, we build a clip encoder based on Transformer to model long-term temporal dependencies. We conduct thorough ablation studies to validate each component and hyper-parameters in our shifted chunk Transformer, and it outperforms previous state-of-the-art approaches on Kinetics-400, Kinetics-600, UCF101, and HMDB51.
Motivation & Objective
- To address the high computational cost and memory demand of pure-Transformer models in video understanding tasks.
- To improve modeling of fine-grained intra-frame features and complex inter-frame motion variances in video sequences.
- To design an efficient, hierarchical Transformer architecture that maintains high accuracy while reducing FLOPs and model size.
- To enable effective long-range temporal modeling through a pure-Transformer clip encoder with minimal computational overhead.
Proposed method
- The framework uses image chunk self-attention with locality-sensitive hashing (LSH) to reduce attention computation cost and enable fine-grained local feature learning from small patches.
- A shifted multi-head self-attention module explicitly models motion by attending to spatially shifted patches across adjacent frames, capturing inter-frame variances.
- A hierarchical design processes features from local image chunks to global video clips, enabling multi-scale representation learning.
- A pure-Transformer clip encoder is introduced to model long-term temporal dependencies across frames with low additional computational cost.
- The model is pre-trained on ImageNet-21K and fine-tuned on action recognition benchmarks using standard RGB inputs.
- Hyperparameters and components are validated through extensive ablation studies on Kinetics-400, Kinetics-600, UCF101, and HMDB51.
Experimental results
Research questions
- RQ1Can a pure-Transformer architecture achieve state-of-the-art performance in video action recognition while maintaining low computational cost?
- RQ2How effectively can locality-sensitive hashing (LSH) reduce attention computation in video Transformers without sacrificing feature quality?
- RQ3To what extent does shifted self-attention improve modeling of motion and inter-frame relationships in video sequences?
- RQ4Can a clip-level attention module based on pure Transformers effectively model long-range temporal dependencies with minimal overhead?
Key findings
- The Shifted Chunk Transformer (SCT-L) achieves 84.6% top-1 accuracy on HMDB51 and 98.7% on UCF101 when pre-trained on Kinetics-400, outperforming previous SOTA methods.
- SCT-L achieves 83.0% top-1 accuracy on Kinetics-400 and 84.3% on Kinetics-600, surpassing ViViT-L and TimeSformer by 1.7% and 1.3% respectively.
- SCT-S achieves 98.0% top-1 accuracy on UCF101 using only ImageNet pretraining, demonstrating strong generalization with minimal pretraining data.
- The model uses only 0.343 TFLOPs and 60M parameters for SCT-L, significantly fewer than ViViT-L (399.2 TFLOPs), while achieving higher accuracy.
- Ablation studies confirm that both LSH-based chunk attention and shifted self-attention are essential for performance, with ablation of either reducing accuracy by over 2%.
- The runtime of SCT-M is 0.072s per inference on a single V100 GPU, showing high inference efficiency despite strong performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.