Efficient Vision Transformer for Human Pose Estimation via Patch Selection

Kaleab Alemayehu Kinfu, René VidalBMVC 2023 · DOI

TL;DR

Vision Transformers (ViTs) are powerful for human pose estimation but computationally expensive for high-resolution images. This paper introduces EViTPose, a method that significantly reduces ViT's computational cost by intelligently selecting only the most informative image patches for processing, achieving substantial speedups with minimal accuracy loss.

What Problem Does This Paper Address?

Human pose estimation (HPE) is a crucial computer vision task with applications ranging from surveillance to augmented reality. While Convolutional Neural Networks (CNNs) have been the workhorse for HPE, Vision Transformers (ViTs) have emerged as a strong contender, offering improved performance by effectively modeling long-range dependencies. However, ViTs suffer from a quadratic increase in computational complexity with the number of input tokens (image patches). This makes them impractical for processing high-resolution images, which are often necessary for accurate HPE, especially for detecting fine details or small body parts. The paper aims to bridge this gap by making ViTs more efficient for HPE without sacrificing too much accuracy.

Methods

The core idea is to reduce the number of patches processed by the ViT. The authors propose three patch selection strategies:

  1. Neighboring Patch Selection: This method uses a pre-trained, lightweight pose estimation network to predict initial joint locations. It then selects patches around these predicted joints and their immediate neighbors. This approach leverages the intuition that information relevant to a joint is likely located nearby.
  2. Skeleton Patch Selection: An extension of the first method, this approach selects patches that lie along the "skeleton" formed by connecting predicted body joints. It uses algorithms like Bresenham's line algorithm to identify patches that fall on these connecting lines.
  3. Joint-Token-based Patch Selection: This is the most novel approach. Instead of relying on an external pose estimator, it uses learnable "joint tokens" within the ViT itself. These tokens learn to identify the most informative patches by attending to them. The importance of each patch is calculated based on its contribution to these joint tokens, and only the top-scoring patches are processed further by subsequent ViT blocks. This method also refines the representation of non-selected patches using the learned joint tokens.

All three methods aim to reduce the computational burden by processing fewer patches, and they are designed to work without retraining the entire ViT model.

Datasets

The proposed methods are evaluated on six widely-used 2D human pose estimation benchmarks:

  • MPII
  • COCO
  • AI Challenger
  • CrowdPose
  • JRDB-Pose
  • OCHuman (used specifically for evaluating performance on occluded scenes)

Key Insights and Ideas

  • Local Context is Key for HPE: The paper builds on the insight that for human pose estimation, not all image patches are equally important. Patches containing body joints and their immediate surroundings are significantly more informative than background or irrelevant regions.
  • Leveraging Learnable Tokens for Selection: The joint-token-based approach is a clever way to make the patch selection adaptive and learned, rather than relying on potentially inaccurate external predictors. This allows the model to dynamically identify important regions.
  • Trade-off Management: The paper explicitly addresses the trade-off between computational efficiency and accuracy. By controlling the number of selected patches, users can tune the performance based on their specific needs.
  • ViTs Can Be Made Efficient for Dense Prediction: The work demonstrates that ViTs, despite their inherent computational cost, can be adapted for dense prediction tasks like HPE by employing intelligent patch selection strategies.

Key Results

The proposed EViTPose methods achieve significant improvements in computational efficiency:

  • Computational Complexity Reduction: Reductions in GFLOPs range from 30% to 44%.
  • Accuracy Impact: The drop in accuracy is minimal, ranging from 0% to 3.5% across various benchmarks.
  • Runtime Improvement: The Joint-Token-based Patch Selection method (EViTPose-B/JT) shows an 88% reduction in GFLOPs and a 10x increase in FPS compared to ViTPose-H.
  • Robustness: The performance of EViTPose with the first two patch selection methods remains consistent across different lightweight pose estimation backbones (LiteHRNet, MobileNetv2, ShuffleNet).

Limitations and Future Work

  • Reliance on External Estimators (for first two methods): The neighboring and skeleton patch selection methods rely on the accuracy of an off-the-shelf pose estimator. This can be a limitation in complex scenes with occlusions or motion blur, where the estimator's accuracy might be compromised.
  • Patch Filling: When selecting a subset of patches, the features for the non-selected patches are filled with zeros. While this is a practical approach, it might not be the most optimal way to represent missing information.
  • Future Work: The paper suggests that further exploration of adaptive patch selection strategies, potentially combining different approaches or refining the representation of non-selected patches, could lead to even better performance and efficiency. The authors also highlight the potential for extending these methods to other dense prediction tasks.

Summary updated

BibTeX
@misc{kinfu2023efficient,
  author = {Kaleab Alemayehu Kinfu and René Vidal},
  title = {{Efficient Vision Transformer for Human Pose Estimation via Patch Selection}},
  year = {2023},
  eprint = {2306.04225},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.04225},
}
Figure