Abstract
This paper introduces PoseFormer, the first purely transformer-based approach for 3D human pose estimation in videos. By decoupling the task into separate spatial and temporal transformer modules, PoseFormer effectively captures both intra-frame joint relationships and inter-frame motion dynamics. This architecture avoids the computational explosion of naive transformers while achieving state-of-the-art performance on benchmarks like Human3.6M and MPI-INF-3DHP without relying on convolutional layers.
Introduction
3D Human Pose Estimation (HPE) is a fundamental task in computer vision, aiming to predict 3D joint coordinates from 2D images or video. Most modern systems employ a "2D-to-3D lifting" pipeline, where 2D joints are first detected and then mapped to 3D space. A major challenge in this process is the temporal dimension; human motion is coherent over time, yet 2D projections often contain depth ambiguities.
While Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) have been used to model temporal sequences, they suffer from limited receptive fields and difficulties in capturing long-term global dependencies, respectively. Transformers offer a promising alternative due to their global attention mechanism, but applying them directly to 3D HPE is computationally prohibitive because of the high dimensionality of joint-frame tokens.
The PoseFormer Architecture
PoseFormer addresses these challenges through a "convolution-free" architecture that decouples spatial and temporal modeling. The system consists of three primary components:
- Spatial Transformer Module: This module operates on individual frames, treating each 2D joint as a distinct token. Through self-attention, it learns the structural dependencies of the human body, effectively "understanding" the anatomical relationships between joints.
- Temporal Transformer Module: This module processes the high-dimensional features generated by the spatial module across a sequence of frames (e.g., up to 81 frames). It models global motion patterns, which are crucial for resolving depth ambiguities in 2D projections.
- Regression Head: A final stage uses a weighted mean and a Multi-Layer Perceptron (MLP) to output the 3D coordinates for the center frame of the input sequence.
By separating spatial and temporal attention, PoseFormer maintains computational efficiency while leveraging the global reach of the transformer architecture.
Experimental Results
The model was evaluated on several gold-standard benchmarks:
- Human3.6M: PoseFormer achieved a Mean Per Joint Position Error (MPJPE) of 44.3mm, setting a new state-of-the-art and significantly outperforming previous temporal CNN-based methods.
- MPI-INF-3DHP: The model demonstrated strong generalization across indoor and outdoor scenes.
- HumanEva: Performance remained robust even with limited training data.
Notably, PoseFormer showed its greatest improvements on difficult, non-linear actions where joints are frequently occluded. Despite its complexity, the model is highly efficient, running at 269 to 320 FPS on a single NVIDIA 2080 Ti GPU.
Insights from Attention Maps
A key finding of this work is that the transformer modules naturally learn human anatomy. Visualization of the spatial attention maps reveals that different attention heads focus on specific functional groups of joints, such as linking extremities or focusing on the relationship between the torso and limbs.
Furthermore, the temporal module can attend to frames at the extreme ends of a long sequence to inform the pose of the middle frame, providing a global context that CNN-based methods lack.
Conclusion and Future Work
PoseFormer demonstrates that pure transformer architectures are highly effective for 3D HPE. While the model currently depends on the quality of 2D joint detectors, it sets a strong foundation for future research. Potential directions include end-to-end training from raw pixels and extending the architecture to multi-person scenarios in complex, "in-the-wild" environments.
Summary updated