Abstract
The task of 2D human pose estimation is challenging due to the large number of keypoints (~17) and the need for robust architectures that capture both local and global features. Traditional CNN-based backbones often struggle with long-range dependencies. In this paper, we propose BTranspose, a hybrid architecture that integrates Bottleneck Transformers—combining CNN and multi-head self-attention (MHSA) layers—with a Transformer encoder. By pre-training the backbone using the DINO self-supervised learning method, we achieve competitive accuracy on the COCO validation set (76.4 AP) with significantly fewer parameters than existing models. We also analyze the network's attention mechanisms, revealing how different layers specialize in anatomical segmentation and keypoint localization.
Introduction
2D human pose estimation involves identifying the precise coordinates of specific body "keypoints," such as elbows, knees, and ankles. This task is notoriously difficult because it requires a network to understand long-range dependencies. For instance, accurately placing a left ankle often requires context from the entire leg or even the opposite hip.
While traditional Convolutional Neural Networks (CNNs) excel at extracting local features like edges and textures, they struggle to capture global relationships unless they are built very deep. This depth increases computational cost and reduces interpretability. BTranspose aims to address these issues by building a lightweight model (~10M parameters) that maintains high accuracy and real-time inference speeds by effectively blending the local strengths of CNNs with the global reasoning capabilities of Transformers.
Methodology
The BTranspose architecture is designed as a three-stage pipeline that progressively moves from local feature extraction to global reasoning.
Hybrid Backbone
The backbone consists of three primary components:
- Early CNN Blocks: Standard convolutional layers (conv3, BN, Relu, maxpool) extract low-level features from the input image.
- Bottleneck Transformer (BT) Blocks: In the final stages of a ResNet-style architecture, the standard $3 \times 3$ convolutions are replaced with Multi-Head Self-Attention (MHSA) layers. This allows the network to learn mid-level spatial relationships earlier in the pipeline.
- Transformer Encoder: A final "vanilla" Transformer layer acts as a global aggregator, combining mid-level features to make the final keypoint predictions.
Self-Supervised Pre-training
A critical component of BTranspose's success is Self-Supervised Pre-training. Instead of starting with random weights, the backbone is pre-trained on ImageNet using the DINO method. This allows the model to learn robust visual representations from unlabeled data before being fine-tuned on the specific task of pose estimation. This pre-training provides a superior starting point, particularly for lightweight models.
Experiments and Results
The model was evaluated on the COCO (Common Objects in Context) dataset, the primary benchmark for 2D human pose estimation, focusing on the standard 17-keypoint format.
- Accuracy: The best-performing variant, C3A1(4)-Dino, achieved an Average Precision (AP) of 76.4 and an Average Recall (AR) of 79.2 on the COCO validation set.
- Efficiency: BTranspose achieved this competitive accuracy with only 10.1M parameters. In comparison, the Transpose-H model requires 17.5M parameters to reach a similar AP (75.8), representing a reduction of approximately 42% in parameter count.
- Speed: The model maintains an inference speed of 45 FPS, making it suitable for real-time applications.
- Ablation Study: Pre-training with DINO provided a consistent boost of approximately +1.3 AP compared to training from scratch, highlighting the value of self-supervised learning in this domain.
Discussion: The Anatomy of Attention
Qualitative analysis of the model's attention maps provides insights into its internal reasoning. The authors found that attention occurs at multiple scales:
- Mid-level (MHSA layers): These layers tend to learn to segment the general "human shape" and anatomy.
- High-level (Transformer Encoder): These layers focus on pinpointing the specific keypoints.
This hierarchical attention allows the model to be more robust in challenging scenarios. For example, in occluded images (such as a horse rider whose legs are partially hidden), the SSL-trained model shows much higher confidence in "guessing" the hidden keypoint locations based on the visible body structure, demonstrating a logical aggregation of information.
Conclusion
BTranspose demonstrates that a lightweight hybrid architecture can achieve state-of-the-art competitive results in human pose estimation. By combining Bottleneck Transformers with self-supervised pre-training, the model achieves a high degree of efficiency and accuracy.
Future work may involve further exploration of loss functions, such as the "Sinkhorn" loss based on optimal transport theory, which showed promise but requires more hyperparameter tuning. Additionally, further research into mid-level explainability could reveal how different attention heads specialize in specific body regions, leading to even more robust and interpretable models.
Summary updated