Abstract
In this paper, we present a regression-based pose recognition method using cascade Transformers. One way to categorize the existing approaches in this domain is to separate them into 1). heatmap-based and 2). regression-based. In general, heatmap-based methods achieve higher accuracy but are subject to various heuristic designs (not end-to-end mostly), whereas regression-based approaches attain relatively lower accuracy but they have less intermediate non-differentiable steps. Here we utilize the encoder-decoder structure in Transformers to perform regression-based person and keypoint detection that is general-purpose and requires less heuristic design compared with the existing approaches. We demonstrate the keypoint hypothesis (query) refinement process across different self-attention layers to reveal the recursive self-attention mechanism in Transformers. In the experiments, we report competitive results for pose recognition when compared with the competing regression-based methods.
Introduction
Human pose estimation involves identifying the spatial coordinates of key joints—such as elbows, knees, and shoulders—within an image. Historically, this field has been split between heatmap-based methods, which predict probability maps for joints, and regression-based methods, which predict coordinates directly. While heatmap-based approaches currently lead in accuracy, they rely on complex, non-differentiable post-processing. Regression-based methods offer a simpler, end-to-end alternative but have traditionally struggled to match the precision of their heatmap counterparts.
The Pose Regression TRansformer (PRTR) framework addresses this accuracy gap by leveraging the attention mechanisms of Transformers to perform direct coordinate regression.
Methods: The PRTR Architecture
The PRTR architecture is built upon the DEtection TRansformer (DETR) paradigm, utilizing a Transformer encoder-decoder structure to process image features. The authors propose two primary variants:
- Two-Stage Variant: This approach uses a person-detection Transformer to identify individuals and generate bounding boxes. These regions are then cropped and passed to a dedicated keypoint-detection Transformer.
- End-to-End Variant: To achieve full differentiability, a Spatial Transformer Network (STN) is integrated. The STN crops features directly from the backbone's feature maps rather than the raw image, allowing for simultaneous optimization of the entire pipeline.
The core innovation lies in the Cascade Transformer Decoder. Instead of a single-shot prediction, the decoder uses a set of "learned queries" that act as placeholders for joints. These queries undergo recursive refinement as they pass through multiple decoder layers.
Key Insights and Recursive Refinement
The PRTR framework introduces several critical concepts to the regression-based pose estimation task:
- Attention as Bayesian Inference: Self-attention layers act as a "prior" for human body configurations (modeling spatial relationships between joints), while cross-attention provides the "likelihood" based on image features.
- Query Specialization: Internal queries naturally learn to specialize in specific body parts (e.g., the nose or ankle) without explicit supervision, demonstrating the model's ability to learn structural constraints.
- Recursive Refinement: The cascade structure allows the model to refine joint coordinates progressively. Early layers resolve the general pose, while subsequent layers focus on sub-pixel accuracy.
Results and Conclusion
PRTR establishes a new state-of-the-art for regression-based pose estimation. On the COCO test-dev benchmark, it achieved 72.1 AP, significantly outperforming previous regression leaders like PointSetNet and rivaling highly optimized heatmap-based systems like HRNet.
Ablation studies confirmed that the number of decoder layers is directly linked to accuracy, validating the effectiveness of the cascade refinement mechanism. While the model remains dependent on the strength of its CNN backbone, PRTR demonstrates that a streamlined, end-to-end regression approach can compete with the most complex traditional systems, offering a promising new direction for human pose estimation.
Summary updated