Transformers with Joint Tokens and Local-Global Attention for Efficient Human Pose Estimation
Kaleab A. Kinfu, René Vidal
TL;DR
The paper tackles the persistent trade-off among accuracy, efficiency, and robustness in 2D human pose estimation by introducing two Vision Transformer-based models, EViTPose and UniTransPose, and a unified skeletal representation for cross-dataset training. EViTPose achieves efficiency through learnable joint-token–driven patch selection, reducing computations by $30\%$ to $44\%$ with minimal accuracy loss ($0\%$ to $3.5\%$) across six benchmarks, while UniTransPose employs a multi-scale encoder with Joint Aware Global-Local (JAGL) attention and a sub-pixel CNN decoder to boost accuracy and speed, including noteworthy improvements of $0.9\%$ to $43.8\%$ across datasets. The unified skeletal representation enables training on multiple datasets with differing joint annotations, enhancing generalization and robustness to pose variations, occlusions, and lighting conditions. Collectively, the methods deliver state-of-the-art accuracy-efficiency-robustness trade-offs and offer flexible decoding options (heat-map and regression) to suit diverse application needs.
Abstract
Convolutional Neural Networks (CNNs) and Vision Transformers (ViTs) have led to significant progress in 2D body pose estimation. However, achieving a good balance between accuracy, efficiency, and robustness remains a challenge. For instance, CNNs are computationally efficient but struggle with long-range dependencies, while ViTs excel in capturing such dependencies but suffer from quadratic computational complexity. This paper proposes two ViT-based models for accurate, efficient, and robust 2D pose estimation. The first one, EViTPose, operates in a computationally efficient manner without sacrificing accuracy by utilizing learnable joint tokens to select and process a subset of the most important body patches, enabling us to control the trade-off between accuracy and efficiency by changing the number of patches to be processed. The second one, UniTransPose, while not allowing for the same level of direct control over the trade-off, efficiently handles multiple scales by combining (1) an efficient multi-scale transformer encoder that uses both local and global attention with (2) an efficient sub-pixel CNN decoder for better speed and accuracy. Moreover, by incorporating all joints from different benchmarks into a unified skeletal representation, we train robust methods that learn from multiple datasets simultaneously and perform well across a range of scenarios -- including pose variations, lighting conditions, and occlusions. Experiments on six benchmarks demonstrate that the proposed methods significantly outperform state-of-the-art methods while improving computational efficiency. EViTPose exhibits a significant decrease in computational complexity (30% to 44% less in GFLOPs) with a minimal drop of accuracy (0% to 3.5% less), and UniTransPose achieves accuracy improvements ranging from 0.9% to 43.8% across these benchmarks.
