Abstract
Human Pose Estimation (HPE) has traditionally been dominated by complex, task-specific architectures designed to handle the high-resolution requirements of keypoint localization. In this paper, we present ViTPose, a framework that demonstrates the surprising effectiveness of "plain" Vision Transformers (ViT) for this task. By utilizing a non-hierarchical ViT backbone with a minimalist decoder, ViTPose achieves state-of-the-art results on the MS COCO benchmark. Our findings suggest that the inherent representational power and scalability of Transformers can replace the need for elaborate, domain-specific engineering in pose estimation.
Introduction
Human Pose Estimation (HPE) involves localizing anatomical keypoints—such as elbows, knees, and eyes—on a person within an image. Historically, the field has relied on Convolutional Neural Networks (CNNs) or hybrid architectures that use Transformers to refine features extracted by a CNN. These specialized designs often incorporate multi-resolution branches or complex feature fusion modules to maintain spatial detail.
ViTPose challenges this paradigm by asking a fundamental question: How well can a "plain," non-hierarchical Vision Transformer perform on its own? By removing the complex architectural tweaks common in the field, ViTPose establishes a simple yet powerful baseline that scales effectively and dominates existing benchmarks.
The ViTPose Framework
The architecture of ViTPose is intentionally minimalist, consisting of two primary components:
1. Plain ViT Backbone
Unlike "hierarchical" models (such as Swin Transformers) that reduce spatial resolution in stages, ViTPose employs a plain, non-hierarchical Vision Transformer. The model maintains a constant, relatively high-resolution feature map throughout the encoder. The authors evaluated a range of backbone sizes, from the standard ViT-Base (ViT-B) to the massive ViTAE-G, which contains 1 billion parameters.
2. Lightweight Decoder
To prove that the backbone does the heavy lifting, the researchers used extremely simple decoders. They proposed two versions:
- Classic Decoder: Utilizes two deconvolution layers to upsample the feature maps.
- Simple Decoder: Uses bilinear upsampling followed by a single convolution layer.
Key Innovations and Training Strategies
To maximize the performance of the plain ViT architecture, several training strategies were employed:
- Masked Image Modeling (MIM) Pre-training: The models are initialized using weights from Masked Autoencoders (MAE). This pre-training phase allows the Transformer to learn robust spatial representations from unlabeled data before being fine-tuned for the specific task of pose estimation.
- Knowledge Token Distillation: To enhance the performance of smaller "student" models (like ViT-B), the authors introduced a knowledge token. A large "teacher" model (like ViT-L or ViT-H) learns to encode pose-specific information into this token, which is then used to guide the training of the smaller model, providing a consistent boost in accuracy with negligible overhead.
- Multi-dataset Training: The simplicity of the decoder allows ViTPose to be trained on multiple datasets simultaneously. By adding separate, lightweight decoder heads for different keypoint definitions, the model can leverage diverse data sources to improve generalization.
Experimental Results
ViTPose was evaluated on several major benchmarks, including MS COCO, AI Challenger, MPII, and OCHuman.
State-of-the-Art Performance
The largest variant, ViTPose-G (1B parameters), achieved a record-breaking 80.9 AP on the MS COCO test-dev set. Even the smaller ViTPose-B model outperformed established CNN-based methods like HRNet on the COCO validation set, demonstrating that the Transformer's capacity can overcome the lack of inductive biases inherent in CNNs.
Robustness to Occlusion
On the OCHuman dataset, which focuses on heavily occluded figures, ViTPose-G achieved over 92 AP. This suggests that the global attention mechanism of the Transformer is highly effective at inferring the positions of hidden keypoints by considering the context of the entire body.
Efficiency and Scalability
ViTPose demonstrates a superior Pareto front regarding the trade-off between speed and accuracy. Because Transformers are highly parallelizable, ViTPose-B can process over 900 frames per second on an A100 GPU. Furthermore, the model exhibits excellent scalability; increasing the parameter count from 100M to 1B leads to consistent performance gains without requiring any changes to the underlying architecture.
Discussion and Future Work
The success of ViTPose suggests that for dense prediction tasks like pose estimation, model capacity and effective pre-training may be more critical than elaborate, task-specific structural designs. The simplicity of the framework opens several avenues for future research:
- Advanced Decoders: While ViTPose used simple decoders to prove a point, integrating structures like Feature Pyramid Networks (FPNs) could potentially push performance even further.
- Prompt-based Tuning: Techniques from Natural Language Processing, such as prompt tuning, could be applied to make the model more adaptable to new tasks or different species (e.g., animal pose estimation).
- Generalization: The "plain ViT" philosophy could be extended to other dense prediction tasks, such as semantic segmentation or object detection, to see if the same simplicity-driven gains hold true.
In conclusion, ViTPose provides a strong, scalable, and surprisingly simple baseline that shifts the focus of human pose estimation from complex architectural engineering to the effective scaling of Vision Transformers.
Summary updated