[Paper Review] KTPFormer: Kinematics and Trajectory Prior Knowledge-Enhanced Transformer for 3D Human Pose Estimation
KTPFormer introduces two lightweight, plug-and-play attention modules—Kinematics Prior Attention (KPA) and Trajectory Prior Attention (TPA)—that inject anatomical kinematic structure and joint motion trajectory information into transformer-based 3D human pose estimation. By enhancing self-attention with prior knowledge, KTPFormer achieves state-of-the-art performance with minimal computational overhead across multiple benchmarks.
This paper presents a novel Kinematics and Trajectory Prior Knowledge-Enhanced Transformer (KTPFormer), which overcomes the weakness in existing transformer-based methods for 3D human pose estimation that the derivation of Q, K, V vectors in their self-attention mechanisms are all based on simple linear mapping. We propose two prior attention modules, namely Kinematics Prior Attention (KPA) and Trajectory Prior Attention (TPA) to take advantage of the known anatomical structure of the human body and motion trajectory information, to facilitate effective learning of global dependencies and features in the multi-head self-attention. KPA models kinematic relationships in the human body by constructing a topology of kinematics, while TPA builds a trajectory topology to learn the information of joint motion trajectory across frames. Yielding Q, K, V vectors with prior knowledge, the two modules enable KTPFormer to model both spatial and temporal correlations simultaneously. Extensive experiments on three benchmarks (Human3.6M, MPI-INF-3DHP and HumanEva) show that KTPFormer achieves superior performance in comparison to state-of-the-art methods. More importantly, our KPA and TPA modules have lightweight plug-and-play designs and can be integrated into various transformer-based networks (i.e., diffusion-based) to improve the performance with only a very small increase in the computational overhead. The code is available at: https://github.com/JihuaPeng/KTPFormer.
Motivation & Objective
- Address the limitation of existing transformer-based 3D pose estimation methods that rely solely on linear projections for query, key, and value computation, leading to attention collapse.
- Leverage known anatomical kinematic relationships and temporal motion trajectories as inductive biases to improve modeling of spatial and temporal dependencies.
- Design a generic, lightweight module that can be seamlessly integrated into various transformer-based 3D pose estimators without architectural modification.
- Demonstrate that prior knowledge injection enhances attention distribution and improves 3D pose estimation accuracy with negligible computational cost.
Proposed method
- Propose Kinematics Prior Attention (KPA), which constructs a learnable kinematic topology combining a fixed anatomical joint connectivity graph (spatial local topology) with a learnable fully connected global topology to model joint relationships.
- Design Trajectory Prior Attention (TPA), which forms a joint motion trajectory topology by combining fixed temporal connections between consecutive frames with a learnable global temporal topology to model motion patterns across frames.
- Integrate KPA and TPA as plug-in modules before the multi-head self-attention (MHSA) layers in a vanilla transformer, preserving the original architecture while enriching attention computation with prior knowledge.
- Use the resulting kinematic and trajectory-aware Q, K, V vectors to improve both spatial and temporal modeling in the MHSA mechanism.
- Apply the KTPFormer framework to multiple backbone models (e.g., PoseFormer, MixSTE, StridedTransformer) to validate generalization and adaptability.
- Train and evaluate on three benchmarks: Human3.6M, MPI-INF-3DHP, and HumanEva, using 2D ground-truth poses as input.
Experimental results
Research questions
- RQ1Can incorporating anatomical kinematic structure into the self-attention mechanism improve spatial modeling in 3D human pose estimation?
- RQ2Can modeling joint motion trajectories across frames enhance temporal modeling in transformer-based 3D pose estimation?
- RQ3To what extent do prior knowledge-enhanced attention modules reduce attention collapse and improve attention distribution?
- RQ4How effective is the proposed KPA and TPA as a plug-and-play module across diverse transformer-based 3D pose estimators?
- RQ5What is the trade-off between performance gain and computational cost when integrating KPA and TPA into existing models?
Key findings
- KTPFormer achieves state-of-the-art performance on Human3.6M, MPI-INF-3DHP, and HumanEva benchmarks, with consistent improvements across all datasets.
- On the Human3.6M dataset, KPA and TPA reduce MPJPE by 2.5mm (from 31.3 to 28.8) for PoseFormer, 1.1mm (from 28.5 to 27.4) for StridedTransformer, 1.8mm (from 30.9 to 29.1) for MHFormer, 2.6mm (from 21.6 to 19.0) for MixSTE, and 0.6mm (from 25.7 to 25.1) for STCFormer.
- The addition of KPA and TPA increases parameters by only 0.02M to 0.06M and FLOPs by 0.363M to 3.019M, demonstrating minimal computational overhead.
- Qualitative analysis shows that KPA leads to more balanced spatial attention, reducing attention collapse and improving focus on anatomically connected joints like the right arm and torso.
- TPA enhances temporal attention along diagonals, capturing both sequential and periodic motion patterns, especially beneficial in high-frame-rate videos with small motion variations.
- The plug-and-play nature of KPA and TPA enables effective integration into diverse transformer-based models, including diffusion-based architectures, with consistent performance gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.