Introduction: The Computational Tax of High Resolution
In 2D Human Pose Estimation (HPE), the accurate localization of anatomical joints (keypoints) is paramount. Traditionally, achieving high precision has required models to process high-resolution feature maps. However, this comes with a significant "computational tax." For Transformer-based models, computational complexity scales quadratically with the number of image tokens.
Existing state-of-the-art models often treat the entire image with uniform, dense high-resolution intensity. This approach is fundamentally inefficient. While high-resolution data is necessary to distinguish fine details like a wrist from an elbow, it is redundant for background elements like grass or empty space. SHaRPose addresses this by asking: Is it necessary to describe the whole image in a dense, high-resolution manner when keypoints are inherently sparse?
The SHaRPose Framework
SHaRPose introduces a dynamic, two-stage architecture designed to focus computational resources on the most informative regions of an image. To maintain efficiency, the framework utilizes a shared Image Encoder and Keypoint Decoder across both stages.
1. The Coarse Stage
The process begins by partitioning the image into coarse-grained patches. This provides a global structural view at a low computational cost. A specialized Quality Predictor module evaluates the confidence of this initial estimation. For "easy" samples where the coarse prediction is highly reliable, the model can terminate inference early, leading to substantial time savings.
2. Keypoint-Related Patch Recognition
If refinement is necessary, the model leverages its internal global attention maps. By analyzing the correlation between predicted keypoints and coarse patches, it identifies specific regions that require higher resolution.
3. The Fine Stage
In the second stage, only the "important" patches identified previously are subdivided into finer-grained, high-resolution tokens. Background patches remain coarse. This mixed-resolution token set is then processed through the Transformer blocks to produce a high-precision pose estimation.
Key Insights: Sparsity as a Feature
The researchers' "Aha" moment came from visualizing the decoder's response across Transformer layers. They observed that while early layers capture broad context, later layers naturally concentrate on sparse areas surrounding keypoints. SHaRPose formalizes this behavior into a structural design. Instead of pruning tokens (which can lose context), SHaRPose maintains global context through coarse tokens while injecting local detail only where necessary.
Experimental Results
SHaRPose was evaluated on the MS COCO 2017 and MPII Human Pose benchmarks, demonstrating that "less is more" regarding token density.
- Accuracy: On the COCO validation set, SHaRPose-Base achieved 77.4 AP, outperforming ViTPose-Base by +0.5 AP.
- Efficiency: The model reduced GFLOPs by 25% and achieved a 1.4x speedup in frames per second (FPS) compared to ViTPose.
- Scalability: The SHaRPose-Small variant achieved 74.2 AP, a massive +8.6 AP improvement over TokenPose-T, while maintaining high throughput.
- Generalization: It achieved a leading [email protected] score of 91.4 on the MPII dataset.
Conclusion and Future Work
SHaRPose proves that sparse high-resolution representations can outperform dense ones while being significantly more efficient. While the fine stage depends on the coarse stage's ability to identify key regions, the results are compelling. Future research may extend this sparse logic to 3D pose estimation or video-based tracking, where the computational benefits of processing sparse regions would be even more pronounced.
Summary updated