End-to-End Trainable Multi-Instance Pose Estimation with Transformers

Lucas Stoffl, Maxime Vidal, Alexander MathisarXiv 2021

Abstract

POET (POse Estimation Transformer) introduces a novel approach to multi-instance pose estimation by treating it as a direct set prediction task. By integrating a CNN backbone with a transformer encoder-decoder, POET achieves an end-to-end trainable architecture that eliminates traditional multi-stage pipelines and complex post-processing. A key advantage of this method is its constant inference speed, which remains invariant to the number of individuals in the scene.

Introduction

Traditional multi-instance human pose estimation typically follows one of two paradigms: top-down or bottom-up. Top-down methods detect bounding boxes and then estimate poses for each crop, leading to computational costs that scale linearly with the number of people. Bottom-up methods detect all keypoints and group them, which often requires non-differentiable, hand-crafted post-processing like Part Affinity Fields. POET addresses the need for a unified, differentiable architecture capable of reasoning about multiple individuals and their spatial relationships in a single pass.

Methodology

The POET architecture is inspired by the Detection Transformer (DETR) and consists of four main components:

  1. CNN Backbone: A standard ResNet extracts low-resolution feature maps from the input image.
  2. Transformer Encoder-Decoder: The encoder processes image features globally, while the decoder uses learned "object queries" to generate specific person predictions.
  3. Pose Representation: Instead of heatmaps, POET regresses a vector for each person containing the center of mass $(x_c, y_c)$, relative offsets $(\Delta x_i, \Delta y_i)$ for 17 keypoints, and visibility scores.
  4. Bipartite Matching Loss: The model employs the Hungarian algorithm during training to uniquely match predicted poses to ground-truth poses, enabling a global loss function.
Overview of the POET architecture, pose representation, and end-to-end training process.

Experimental Results

The model was evaluated on the COCO Keypoint Detection benchmark and the MacaquePose dataset.

Performance and Speed

POET-R50 achieved a competitive 53.6 AP on COCO test-dev, showing particular strength in detecting large humans ($AP_L$ of 68.1). Crucially, POET's inference time is nearly constant regardless of the number of people in the image, as it predicts a fixed set of slots in parallel. This offers a significant speed advantage over top-down methods in crowded scenes.

Comparison of inference speed (FPS) versus the number of people per image for various pose estimation methods.

Transfer Learning

On the MacaquePose dataset, POET achieved an AP of 75.5 when pre-trained on COCO. This demonstrates the model's ability to generalize learned spatial representations across different species, even with limited animal-specific training data.

Discussion and Conclusion

POET simplifies the pose estimation pipeline by removing hand-crafted components like Non-Maximum Suppression (NMS) or grouping heuristics. By leveraging the global context reasoning of transformers, the model effectively distinguishes between individuals and refines body part locations.

However, the current architecture faces challenges with small and medium-sized objects due to the large downsampling stride of the CNN backbone. Future work will explore integrating Deformable Transformers to handle multi-scale features and applying the architecture to video-based pose tracking to leverage temporal consistency.

Summary updated

BibTeX
@misc{stoffl2021end,
  author = {Lucas Stoffl and Maxime Vidal and Alexander Mathis},
  title = {{End-to-End Trainable Multi-Instance Pose Estimation with Transformers}},
  year = {2021},
  eprint = {2103.12115},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.12115},
}
Figure