Online Knowledge Distillation for Efficient Pose Estimation

Zheng Li, Jingwen Ye, Mingli Song, Ying Huang, Zhigeng Pan

Abstract

Human pose estimation is a critical yet computationally expensive task, particularly for deployment on resource-constrained devices. While Knowledge Distillation (KD) is a common strategy to compress large models into efficient ones, traditional "offline" KD requires a pre-trained teacher and often utilizes sub-optimal loss functions. This paper introduces Online Knowledge Distillation for Human Pose (OKDHP), a framework that trains a lightweight student model in a single stage without a pre-trained teacher. By employing a multi-branch architecture and a Feature Aggregation Unit (FAU), OKDHP generates high-quality "online" teacher signals. Our method achieves state-of-the-art accuracy on standard benchmarks with zero additional inference cost.

Introduction

Localizing anatomical keypoints—human pose estimation—is foundational for applications ranging from action recognition to augmented reality. State-of-the-art performance is typically achieved by deep architectures like Stacked Hourglass networks, which are often too heavy for real-time mobile use.

Knowledge Distillation (KD) has emerged as a solution, where a large "teacher" model guides the training of a smaller "student." However, standard KD involves a two-stage process: training a massive teacher first, then distilling its knowledge. This is computationally inefficient. Furthermore, most distillation methods use Mean Squared Error (MSE) on heatmaps, which fails to capture the complex spatial dependencies between joints.

The OKDHP Framework

OKDHP addresses these challenges by moving distillation into a single, "online" training stage. Instead of a separate teacher, the model consists of multiple parallel branches that share initial backbone layers.

Comparison of traditional two-stage distillation (FPD) and the proposed one-stage OKDHP framework.

As shown in the figure above, OKDHP eliminates the need for a pre-trained teacher. It can be configured in two ways:

  • Balanced: All branches share the same depth.
  • Unbalanced: Branches have varying depths (e.g., 2-stack, 4-stack, and 6-stack), allowing a shallower target branch to learn from deeper auxiliary branches during training.

Architecture and Feature Aggregation

The core of the OKDHP architecture is the Feature Aggregation Unit (FAU). During training, each branch produces its own set of predicted heatmaps. The FAU takes the features from these branches and applies multi-scale transformations (3x3, 5x5, and 7x7 convolutions) to fuse them into a single, high-quality "ensemble" heatmap. This ensemble serves as the dynamic teacher signal for all branches.

The multi-branch architecture of OKDHP, illustrating the flow from shared layers to individual branches and the FAU.

To effectively transfer knowledge, OKDHP utilizes pixel-wise Kullback-Leibler (KL) divergence. By treating heatmaps as probability distributions rather than simple regression targets, the model better captures the structural logic and spatial uncertainty of human anatomy.

Experimental Results

The researchers evaluated OKDHP on the MPII Human Pose and COCO Keypoint datasets.

Performance Gains

On the MPII dataset, a 4-stack Hourglass network trained via OKDHP achieved a 90.0 [email protected] score, surpassing both the baseline (89.2) and the leading offline distillation method, FPD (89.7). The "Unbalanced" configuration further pushed performance to 90.2, matching the accuracy of much deeper models.

Efficiency and Generalization

A key advantage of OKDHP is that the auxiliary branches and the FAU are discarded after training. The resulting model has zero inference overhead compared to a standard baseline. Furthermore, the method proved effective across various backbones, including ResNet-18, MobileNet-V2, and ShuffleNet-V2, demonstrating its broad applicability.

Conclusion

OKDHP provides a highly efficient path to high-performance pose estimation on mobile devices. By generating teacher signals on-the-fly and using structurally-aware loss functions, it outperforms traditional two-stage distillation methods. While the model still faces challenges in scenarios with severe occlusion or low contrast, it represents a significant step forward in making deep pose estimation practical for real-world, resource-constrained environments.

Summary updated

BibTeX
@inproceedings{li2021online,
  author = {Zheng Li and Jingwen Ye and Mingli Song and Ying Huang and Zhigeng Pan},
  title = {{Online Knowledge Distillation for Efficient Pose Estimation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  doi = {10.1109/iccv48922.2021.01153},
}
Figure