[Paper Review] STAR: Sparse Transformer-based Action Recognition
This paper proposes STAR, a sparse Transformer-based model for skeleton-based action recognition that uses sparse self-attention in the spatial dimension and segmented linear attention in the temporal dimension to achieve high efficiency. It reduces model size by 7–15× and accelerates training/inference by 4–18× compared to GCN-based baselines, while maintaining competitive accuracy on NTU RGB+D datasets without fixed-length padding.
The cognitive system for human action and behavior has evolved into a deep learning regime, and especially the advent of Graph Convolution Networks has transformed the field in recent years. However, previous works have mainly focused on over-parameterized and complex models based on dense graph convolution networks, resulting in low efficiency in training and inference. Meanwhile, the Transformer architecture-based model has not yet been well explored for cognitive application in human action and behavior estimation. This work proposes a novel skeleton-based human action recognition model with sparse attention on the spatial dimension and segmented linear attention on the temporal dimension of data. Our model can also process the variable length of video clips grouped as a single batch. Experiments show that our model can achieve comparable performance while utilizing much less trainable parameters and achieve high speed in training and inference. Experiments show that our model achieves 4~18x speedup and 1/7~1/15 model size compared with the baseline models at competitive accuracy.
Motivation & Objective
- To address the inefficiency of over-parameterized, dense graph convolutional networks (GCNs) in skeleton-based action recognition, which suffer from high computational cost and memory usage.
- To explore the potential of Transformer architectures in cognitive modeling of human action and behavior, particularly for real-time and edge deployment.
- To eliminate the need for fixed-length input padding by enabling processing of variable-length video clips in a single batch.
- To reduce computational complexity in both spatial and temporal modeling through novel attention mechanisms.
- To achieve competitive accuracy with significantly smaller model size and faster inference speed than existing GCN-based models.
Proposed method
- Proposes a sparse self-attention mechanism in the spatial encoder that performs sparse matrix multiplication to capture joint correlations, avoiding redundant computation on zero-entries.
- Introduces segmented linear self-attention in the temporal encoder to reduce quadratic complexity to linear, enabling efficient processing of long or variable-length sequences.
- Applies segmented positional encoding to preserve temporal ordering in variable-length skeleton sequences without padding.
- Uses segmented context attention to perform global summarization across frames, enhancing robustness compared to local receptive fields in GCNs.
- Designs a compact data representation that avoids zero-padding and fixed-length constraints, improving efficiency for real-time and edge applications.
- Employs a dual-encoder architecture with spatial and temporal encoders, each leveraging specialized attention mechanisms tailored to the data structure.
Experimental results
Research questions
- RQ1Can a Transformer-based architecture with sparse and linear attention mechanisms outperform GCN-based models in skeleton-based action recognition while reducing computational cost?
- RQ2How does the use of sparse attention in the spatial dimension affect performance and efficiency compared to full attention or dense GCN convolutions?
- RQ3To what extent can segmented linear attention in the temporal dimension handle variable-length skeleton sequences without padding, and how does it impact inference speed and memory usage?
- RQ4Can a model trained on variable-length inputs achieve competitive accuracy while being significantly smaller and faster than fixed-length GCN baselines?
- RQ5Does the integration of learnable masks in full attention improve performance without increasing computational overhead, and how does it compare to the proposed sparse attention?
Key findings
- STAR achieves 4–18× speedup in training and inference compared to ST-GCN and ST-TR baselines, with inference latency reduced from 254.7ms (full attention) to 105.7ms (sparse attention).
- The model uses only 1/7 to 1/15 of the parameters of baseline models, with 0.42M and 1.26M parameters for STAR-64 and STAR-128, respectively.
- STAR reduces GMACs by a factor of 3–17 compared to ST-GCN and ST-TR, with 15.58 GMACs for STAR-sparse versus 73.33 for STAR-full.
- On NTU RGB+D 60, STAR achieves 83.4% accuracy on X-subject and 84.2% on X-view, outperforming the full-attention variant (80.7% and 81.9%) while being significantly more efficient.
- The ablation study confirms that full attention introduces noise from distant joint correlations, and sparse attention with adjacency-aware masking yields better accuracy and efficiency.
- The model processes variable-length sequences natively, eliminating the need for zero-padding and enabling efficient batch processing of diverse-length clips.
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.