DistilPose: Tokenized Pose Regression with Heatmap Distillation

Suhang Ye, Yingyi Zhang, Jie Hu, Liujuan Cao, Shengchuan Zhang, Lei Shen, Jun Wang, Shouhong Ding, Rongrong Ji

Introduction

Human Pose Estimation (HPE) has traditionally been divided into two primary methodologies: heatmap-based and regression-based approaches. Heatmap-based methods represent joint locations as spatial probability maps, preserving rich contextual information and uncertainty, which leads to high accuracy. However, this comes at a significant computational cost. Conversely, regression-based methods directly predict joint coordinates $(x, y)$. While these models are lightweight and efficient—ideal for real-time and mobile applications—they typically suffer from lower accuracy due to the loss of spatial distribution data.

DistilPose addresses this performance gap by introducing a novel framework that allows a regression-based student model to inherit the "spatial wisdom" of a heatmap-based teacher. By utilizing a Token-distilling Encoder and a Simulated Heatmap mechanism, DistilPose achieves state-of-the-art accuracy with a fraction of the parameters and computational overhead.

Methodology

The core innovation of DistilPose lies in bridging the gap between the discrete grid of a heatmap and the continuous vector of a coordinate through two primary components.

Token-distilling Encoder (TDE)

Standard regression models often use global average pooling to reduce feature maps to a single vector, a process that discards vital spatial relationships. DistilPose replaces this with a Transformer-based Token-distilling Encoder. The TDE treats image patches as "visual tokens" and joints as "keypoint tokens." This architecture allows the student to learn the dependencies between specific body parts and image regions, aligning its internal representations more closely with the teacher's feature space.

Simulated Heatmaps (SH)

To facilitate direct knowledge distillation from the teacher's heatmaps, DistilPose introduces Simulated Heatmaps. Instead of predicting only $(x, y)$ coordinates, the student model is trained to predict the standard deviation ($\sigma$) of the joint's distribution. Using these parameters, the model "renders" a simulated Gaussian heatmap.

This approach enables a pixel-to-pixel loss calculation ($L_{SH}$) between the student’s simulated output and the teacher’s actual heatmap. By predicting separate standard deviations for the x and y axes ($\sigma_x, \sigma_y$), the model can represent the elongated, non-circular distributions often found in real-world joint orientations. Crucially, this simulation machinery is only used during training; during inference, the model remains a fast, pure regression head.

Confidence Distillation

Beyond spatial location, the student model also learns to predict a confidence score ($s_k$) for each joint. This allows the model to quantify its own uncertainty, a feature typically reserved for heatmap-based methods, which is essential for filtering unreliable predictions in real-world applications.

Experimental Evaluation

The authors evaluated DistilPose on the MSCOCO dataset, the industry standard for human pose estimation. The training utilized the MSCOCO train2017 set (57k images), while evaluation was conducted on the val2017 and test-dev2017 sets. The performance was measured using the mean Average Precision (mAP) across 17 keypoints.

Results and Discussion

DistilPose demonstrates a remarkable efficiency-to-accuracy ratio, outperforming existing regression methods like RLE and PRTR across the board.

  • DistilPose-S (Small): Utilizing only 5.36M parameters, this model achieved 71.6% mAP on the COCO validation set. Compared to its teacher (TokenPose-L), it is 4.9x faster and reduces GFLOPs by over 7x, with a negligible accuracy loss of only 0.9 points.
  • DistilPose-L (Large): This variant achieved 74.4% mAP, establishing a new state-of-the-art for regression-based pose estimation.

The results indicate that the Simulated Heatmap mechanism effectively transfers the teacher's spatial knowledge without the inference-time burden of actual heatmap generation.

Limitations and Future Work

Despite its success, DistilPose is subject to certain constraints. Its performance is intrinsically linked to the quality of the teacher model; a less capable teacher results in a lower performance ceiling for the student. Additionally, as a top-down method, it relies on an external person detector, making it susceptible to errors in initial person localization. Future research may explore applying this heatmap-to-regression distillation framework to other domains, such as facial landmark detection or object localization, where the trade-off between speed and spatial awareness is critical.

Conclusion

DistilPose successfully reconciles the efficiency of regression with the accuracy of heatmaps. By transforming the distillation process into a "grid-to-grid" comparison through simulated heatmaps and leveraging Transformer-based tokenization, it provides a robust solution for high-performance, real-time human pose estimation.

Summary updated

BibTeX
@inproceedings{ye2023distilpose,
  author = {Suhang Ye and Yingyi Zhang and Jie Hu and Liujuan Cao and Shengchuan Zhang and Lei Shen and Jun Wang and Shouhong Ding and Rongrong Ji},
  title = {{DistilPose: Tokenized Pose Regression with Heatmap Distillation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2023},
}
Figure