UniHPE: Towards Unified Human Pose Estimation via Contrastive Learning

Zhongyu Jiang, Wenhao Chai, Lei Li, Zhuoran Zhou, Cheng-Yen Yang, Jenq-Neng HwangarXiv 2023 · DOI

Introduction

Human Pose Estimation (HPE) has traditionally been divided into two distinct methodologies: lifting-based methods, which predict 3D poses from 2D keypoints, and image-based methods, which regress 3D poses directly from RGB pixels. While lifting-based methods are robust, they depend heavily on the quality of initial 2D detectors. Conversely, image-based methods leverage rich visual context but often struggle to generalize due to a lack of diverse, large-scale datasets with paired 3D ground truth.

UniHPE bridges this gap by introducing a unified framework that aligns image, 2D pose, and 3D pose embeddings in a shared feature space. This alignment allows a single model to perform multiple pose tasks with state-of-the-art accuracy by leveraging the strengths of all three modalities.

The Shared Feature Space

The core objective of UniHPE is to create a "universal language" for human poses. By mapping different inputs—whether they are RGB images, 2D coordinates, or 3D coordinates—into a shared bottleneck feature space, the model learns that these representations describe the same underlying physical state.

Shared Feature Space manifold aligning different modalities

In this shared space, embeddings of the same pose from different modalities are mathematically constrained to be close to one another, while distinct poses are pushed apart. This cross-modality synergy allows the model to use 3D information to better understand 2D images and vice versa.

Methodology

UniHPE utilizes an encoder-decoder architecture designed for multi-modal alignment and generation.

Encoder-Decoder Architecture

  • Encoders: The model employs specialized encoders for each modality: HRNet for images and Transformers for 2D and 3D poses. These map inputs into the shared feature space.
  • Decoders: To generate final poses, the authors use diffusion-based decoders following the score-matching paradigm. These are conditioned on the shared embeddings and a "modality token" to specify the target output format.

Singular Value Contrastive Learning ($L_{triplet}$)

The primary innovation of UniHPE is the Singular Value Contrastive Loss. While standard contrastive learning (like CLIP) aligns two modalities at a time, UniHPE aligns Image, 2D, and 3D modalities simultaneously. By stacking the embeddings into a matrix and maximizing its largest singular value via Singular Value Decomposition (SVD), the model enforces a high linear correlation between all three representations at once.

Mechanism of Singular Value Contrastive Learning for multi-modal alignment

This holistic constraint prevents embeddings from drifting apart during training and ensures that the "image of a person sitting" is mathematically consistent with its corresponding 2D and 3D coordinate representations.

Key Results and Insights

UniHPE was evaluated on major benchmarks, including Human3.6M, MPI-INF-3DHP, and 3DPW (3D Pose in the Wild). The results demonstrate the power of unified training:

  • State-of-the-Art Performance: On Human3.6M, the model achieved a Mean Per Joint Position Error (MPJPE) of 50.5mm. On the challenging 3DPW dataset, it reached a PA-MPJPE of 51.6mm, showing excellent generalization to real-world scenarios.
  • Cross-Modality Synergy: Unified training significantly boosts individual task performance. For instance, the UniHPE image encoder (w32) outperformed a larger standalone HRNet (w48) on 2D pose tasks, proving that 3D structural information helps the model interpret 2D visual data.
  • Efficiency: The SVD-based loss implementation is computationally efficient, adding only approximately 13.5% to training time per batch compared to simple pairwise alignment.

Conclusion and Future Work

UniHPE demonstrates that aligning multiple modalities in a shared feature space is a highly effective strategy for human pose estimation. While the current framework is designed for single-target scenarios and can be sensitive to heavy occlusion, it sets a new standard for generalist pose models. Future directions include incorporating the SMPL model for realistic 3D mesh generation and extending the framework to multi-person or action recognition tasks.

Summary updated

BibTeX
@misc{jiang2023unihpe,
  author = {Zhongyu Jiang and Wenhao Chai and Lei Li and Zhuoran Zhou and Cheng-Yen Yang and Jenq-Neng Hwang},
  title = {{UniHPE: Towards Unified Human Pose Estimation via Contrastive Learning}},
  year = {2023},
  eprint = {2311.16477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.16477},
}
Figure