Learning Structure-Guided Diffusion Model for 2D Human Pose Estimation

Zhongwei Qiu, Qiansheng Yang, Jian Wang, Xiyu Wang, Chang Xu, Dongmei Fu, Kun Yao, Junyu Han, Errui Ding, Jingdong WangarXiv 2023 · DOI

Introduction

Traditional 2D human pose estimation (HPE) has long relied on a discriminative paradigm, where neural networks are trained to directly regress keypoint coordinates or predict heatmaps from image features. While effective, these methods often struggle with occlusions, motion blur, and crowded scenes where the visual evidence for a joint is ambiguous.

DiffusionPose introduces a paradigm shift by framing HPE as a generative denoising process. Instead of a single-pass prediction, the model treats pose estimation as the task of iteratively refining a noisy heatmap into a precise localization of human joints. By leveraging the probabilistic nature of diffusion models and incorporating explicit structural constraints of the human body, DiffusionPose achieves state-of-the-art results on major benchmarks like COCO and CrowdPose.

Methodology

The core of DiffusionPose is the application of Diffusion Models to the heatmap space. The process is divided into two main phases: the forward diffusion process and the reverse denoising process.

Diffusion Formulation

During training, the model simulates a forward diffusion process where Gaussian noise is incrementally added to ground-truth keypoint heatmaps ($y_0$) until they reach a state of pure noise ($y_T$). The model is then trained to learn the reverse transition, $p_\theta(y_{t-1}|y_t, x^c)$, effectively learning to "clean" the noise guided by image-based conditions ($x^c$).

Structure-Guided Diffusion Decoder (SGDD)

The architecture centers around the Structure-Guided Diffusion Decoder (SGDD), a U-Net-style component designed to process noisy heatmaps. Unlike standard diffusion models that might start from pure noise, DiffusionPose utilizes a "warm start" by initializing the process with a coarse heatmap derived from image features. This significantly reduces the number of iterations required during inference.

Overview of the DiffusionPose framework, illustrating the forward and reverse diffusion processes alongside the Structure-Guided Diffusion Decoder (SGDD).

Spatial-Channel Cross-Attention (SC-CA)

To ensure the denoising process respects human anatomy, the model employs a Spatial-Channel Cross-Attention (SC-CA) module. This module extracts features from the input image and applies masking based on current keypoint and skeletal estimates. By analyzing the relationships between different joints and the overall skeletal structure, the SC-CA module provides the decoder with a "structural roadmap," ensuring that even if an ankle is occluded, its position is inferred correctly based on its connection to the knee and hip.

Experimental Evaluation

The model was rigorously tested on three major datasets: COCO, CrowdPose, and the AI Challenge dataset.

  • COCO: DiffusionPose achieved a significant improvement of 1.6 mAP over the widely used HRNet-W48 baseline.
  • CrowdPose: In complex, overlapping scenes, the model saw a 1.2 mAP boost, highlighting the robustness provided by structural guidance.
  • AI Challenge: The model demonstrated strong generalization in "in-the-wild" scenarios with a 1.2 mAP improvement.

Results and Discussion

A key insight from the results is the model's ability to produce highly localized and "clean" heatmaps compared to traditional discriminative models. As shown in qualitative comparisons, while standard models like HRNet may produce diffuse or multi-modal heatmaps in the presence of noise or occlusion, DiffusionPose iteratively collapses the probability distribution toward the true joint location.

Qualitative comparison of keypoint heatmaps between HRNet and DiffusionPose across various challenging scenarios.

Efficiency and Trade-offs

While diffusion models are often criticized for their computational intensity due to their iterative nature, DiffusionPose mitigates this through its progressive denoising strategy. The model achieves near-peak performance in as few as 2 to 4 refinement steps. This allows for a flexible trade-off: users can opt for a single-step "fast" mode for higher frame rates or multi-step refinement for maximum precision in difficult cases.

Conclusion

DiffusionPose demonstrates that treating human pose estimation as a generative task is not only viable but superior in handling the inherent uncertainties of real-world imagery. By combining the iterative refinement of diffusion models with explicit structural priors, the framework sets a new standard for robust and accurate 2D pose estimation. Future work will likely focus on optimizing the iterative process for real-time applications on edge devices and exploring direct raw-image conditioning.

Summary updated

BibTeX
@misc{qiu2023learning,
  author = {Zhongwei Qiu and Qiansheng Yang and Jian Wang and Xiyu Wang and Chang Xu and Dongmei Fu and Kun Yao and Junyu Han and Errui Ding and Jingdong Wang},
  title = {{Learning Structure-Guided Diffusion Model for 2D Human Pose Estimation}},
  year = {2023},
  eprint = {2306.17074},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.17074},
}
Figure