Distribution-Aware Coordinate Representation for Human Pose Estimation

Feng Zhang, Xiatian Zhu, Hanbin Dai, Mao Ye, Ce Zhu

Introduction

In modern human pose estimation, the standard approach involves representing joint locations as 2D Gaussian heatmaps. While effective, the transition between continuous image coordinates and discrete heatmap grids introduces significant errors. Specifically, quantization during encoding (converting ground truth to heatmaps) and heuristic decoding (recovering coordinates from predicted heatmaps) limit the precision of even the most advanced neural network architectures.

This paper introduces DARK (Distribution-Aware coordinate Representation of Keypoints), a model-agnostic plug-in designed to resolve these systemic biases. By rethinking the coordinate-to-heatmap transformation through principled mathematical frameworks, DARK achieves substantial performance gains without requiring changes to the underlying model architecture.

The DARK Framework

The DARK method addresses the limitations of standard pipelines by focusing on two critical stages: encoding and decoding.

Overview of the human pose estimation pipeline with DARK integration, showing data preprocessing, model training, and testing phases.

Unbiased Coordinate Encoding

Standard encoding typically rounds ground-truth coordinates to the nearest integer pixel, introducing a quantization bias before training begins. DARK employs unbiased coordinate encoding, generating heatmaps where the Gaussian kernel is centered at the exact sub-pixel float location. This provides a more accurate supervision signal, allowing the model to learn finer spatial details.

Distribution-Aware Decoding

At inference, models predict a heatmap, and the goal is to recover the precise $(x, y)$ coordinate. Traditional methods often rely on a "0.25-pixel shift" heuristic—moving the peak location slightly toward the second-highest neighbor. DARK replaces this with Distribution-Aware Decoding, which assumes the underlying heatmap follows a Gaussian distribution.

The DARK decoding process: (a) Distribution Modulation via Gaussian blur, (b) Taylor-expansion-based re-localization, and (c) final resolution recovery.

As shown in the figure above, the decoding process involves:

  1. Distribution Modulation: Applying a Gaussian blur to the predicted heatmap to smooth out noise and ensure it better fits a Gaussian profile.
  2. Taylor Expansion: Using a Taylor expansion (up to the quadratic term) to analytically solve for the true maximum of the distribution. By calculating the first and second derivatives (the Hessian matrix) at the maximum pixel, the model can pinpoint the sub-pixel peak with high mathematical rigor.

Experimental Results

The authors evaluated DARK on the COCO and MPII Human Pose benchmarks using various architectures, including HRNet, Stacked Hourglass, and SimpleBaseline.

  • Accuracy Gains: On the COCO validation set, DARK improved the Average Precision (AP) of HRNet-W32 from 66.9% to 70.7% at a $128 \times 96$ resolution—a massive 3.8% jump from post-processing alone.
  • Efficiency: DARK is particularly effective at low resolutions. It allows models running on smaller input images to match the performance of standard models using much larger, computationally expensive inputs.
  • Generality: Because it is a pre- and post-processing plug-in, DARK is model-agnostic and consistently improved results across every architecture tested.

Conclusion

DARK demonstrates that the "plumbing" of coordinate representation is just as vital as the neural network architecture itself. By replacing hand-crafted heuristics with principled Taylor expansions and unbiased encoding, DARK provides a simple yet powerful way to enhance the accuracy and efficiency of human pose estimation systems. The method helped the authors secure 2nd place in the ICCV 2019 COCO Keypoints Challenge, proving its efficacy in competitive, real-world scenarios.

Summary updated

BibTeX
@inproceedings{zhang2020distribution,
  author = {Feng Zhang and Xiatian Zhu and Hanbin Dai and Mao Ye and Ce Zhu},
  title = {{Distribution-Aware Coordinate Representation for Human Pose Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.00712},
}
Figure