Introduction
Skeleton-based action recognition (SAR) identifies human activities by analyzing joint and bone keypoints over time. While Transformer-based models have achieved state-of-the-art accuracy, they often suffer from excessive computational weight. Most current designs use separate branches for spatial and temporal modeling, leading to redundant parameters and high latency. UniSTFormer addresses this by unifying these features into a single, efficient attention mechanism.
Methods: Unified Spatial-Temporal Attention
The architecture of UniSTFormer eliminates the need for redundant temporal modeling blocks by integrating spatial and temporal feature extraction into a single pipeline.
Key innovations include:
- Unified Attention: A single block handles both spatial and temporal features. Joint-wise attention is applied per frame, while temporal correlations are preserved through shared weights and channel refinement across 10 stacked blocks.
- Multi-Scale Pooling Attention: To capture both fine-grained and global motion, the model employs parallel pooling pathways: Global Average Pooling for context and Adaptive Local Pooling (4x4) for localized joint dynamics.
- Lightweight Channel Refinement: Inspired by Squeeze-and-Excitation networks, this step rescales features to emphasize discriminative channels.
- Separable Convolutions: Depthwise separable convolutions are used at the entry point to minimize parameter overhead significantly compared to standard convolutions.
Datasets and Evaluation
UniSTFormer was evaluated on three benchmark datasets:
- NTU RGB+D 60: A large-scale dataset with 60 action classes and over 56,000 samples.
- NTU RGB+D 120: An extension containing 120 classes and over 114,000 samples.
- NW-UCLA: A multi-view dataset captured from Kinect cameras.
Key Results and Efficiency
UniSTFormer demonstrates a significant improvement in the efficiency-accuracy frontier. It achieves competitive performance with a fraction of the resources required by other state-of-the-art (SOTA) models.
- Ultra-Lightweight: Only 0.5M parameters, a reduction of over 58% compared to typical transformer-based SOTA models (1.2M–2.7M).
- Low Computation: Requires only 1.1 GFLOPs, over 60% less than models like SkeMixFormer (4.8 GFLOPs).
- High Speed: An inference time of 11.2ms makes it approximately 7.5x faster than FreqMixFormerV2.
- Competitive Accuracy: It achieves 91.0% accuracy on NTU-60 X-Sub, remaining within a small margin of much heavier GCN-based models while being significantly more deployable.
Conclusion
UniSTFormer proves that temporal modeling can be handled implicitly and efficiently within a unified transformer block. By prioritizing multi-scale spatial sensitivity over architectural complexity, it offers a high-performance solution suitable for real-time applications and edge devices. Future work will focus on closing the minor accuracy gap and testing on complex "in-the-wild" datasets.
Summary updated