BiHRNet: A Binary high-resolution network for Human Pose Estimation

Zhicheng Zhang, Xueyao Sun, Yonghao Dang, Jianqin YinarXiv 2023 · DOI

Abstract

BiHRNet is a novel binary neural network (BNN) designed for high-resolution human pose estimation (HPE) on resource-constrained edge devices. By combining a high-resolution architecture with specialized information-retention modules and a hybrid distillation loss, it achieves state-of-the-art performance for 1-bit networks, even outperforming several popular lightweight full-precision models.

Introduction

Human Pose Estimation (HPE)—the task of localizing joints like elbows and knees in images—is computationally expensive. While state-of-the-art models like HRNet provide excellent accuracy, they are often too "heavy" for mobile phones or IoT devices due to their reliance on 32-bit floating-point operations.

Binary Neural Networks (BNNs) offer a solution by compressing weights and activations to just 1 bit (±1), theoretically offering up to 58x faster execution and 32x memory savings on CPUs. However, BNNs usually suffer from a massive "accuracy gap" in fine-grained tasks like HPE. Because HPE relies on precise pixel-level heatmaps, the information loss caused by binarization often makes it difficult for the network to distinguish subtle local features. BiHRNet aims to close this gap.

Methodology

The authors introduce BiHRNet, which binarizes the popular HRNet backbone while introducing several "binarization-friendly" innovations. The training process utilizes a Teacher-Student framework where a full-precision HRNet (Teacher) provides "soft labels" to the binary BiHRNet (Student).

BiHRNet Teacher-Student Framework

Information Reconstruction (IR) Bottleneck

BNNs lose the most information in the initial stages of a network. The IR Bottleneck adds a Squeeze-and-Excitation (SE) block to the first stage to dynamically reweight channels, helping the network "reconstruct" and retain critical features before they are passed deeper.

Comparison of standard binary bottleneck vs. IR Bottleneck

Multi-Scale (MS) Block and Strategic Pruning

To improve the network's receptive field without increasing computational cost, standard blocks are replaced with MS-Blocks. These use parallel branches with different effective kernel sizes and a channel shuffle operation to ensure better feature mixing. Furthermore, the authors prune redundant high-resolution branches in the later stages of the network to further reduce parameters without sacrificing the core high-resolution benefits.

Hybrid Knowledge Distillation and Loss Functions

The model combines KL Divergence (to match the teacher's output distribution) with Adaptive Wing (AWing) Loss. Unlike standard Mean Squared Error (MSE), AWing loss prioritizes the pixels containing keypoints, which is crucial for BNNs that struggle with fine-grained localization.

Experiments and Results

The model was evaluated on two industry-standard benchmarks: the MPII Human Pose Dataset and COCO 2017.

  • State-of-the-Art Binary Performance: On the MPII dataset, BiHRNet achieved a 87.9 PCKh, outperforming all previous binary pose estimation networks.
  • Beating Full-Precision Models: On COCO, BiHRNet achieved 70.8 mAP (at 384x288 resolution). Remarkably, this binary model outperformed several full-precision lightweight models, including versions of MobileNetV2 and ShuffleNetV2.
  • Efficiency: BiHRNet-W32 (Binary) uses roughly 8% of the computational cost (measured in OPs) of the original real-valued HRNet while retaining most of the accuracy.

Conclusion

BiHRNet demonstrates that high-resolution architectures can be effectively binarized for complex tasks like human pose estimation. Key insights include the importance of the receptive field in BNNs and the critical role of information retention in the early stages of the network. While a small accuracy gap remains compared to full-precision counterparts, BiHRNet sets a new benchmark for efficient, high-performance pose estimation on edge devices.

Summary updated

BibTeX
@misc{zhang2023bihrnet,
  author = {Zhicheng Zhang and Xueyao Sun and Yonghao Dang and Jianqin Yin},
  title = {{BiHRNet: A Binary high-resolution network for Human Pose Estimation}},
  year = {2023},
  eprint = {2311.10296},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.10296},
}
Figure