Test-Time Personalization with a Transformer for Human Pose Estimation

Yizhuo Li, Miao Hao, Zonglin Di, Nitesh Bharadwaj Gundavarapu, Xiaolong Wang

The Challenge of "Static" Pose Estimation

Standard human pose estimation models are typically "static"—trained on massive datasets and then frozen. While they perform well on average, they often struggle with "out-of-distribution" scenarios, such as a specific person’s unique body proportions, unusual clothing, or specific environmental occlusions.

The ideal solution would be to fine-tune the model for every new person it encounters. However, manual labeling for every new environment is expensive and slow. Existing "Test-Time Adaptation" (TTA) methods often use generic self-supervised tasks (like predicting image rotation) that aren't directly tied to the geometry of the human body. The core challenge is: How can we adapt a model to a specific person at test time using only unlabeled data, in a way that directly improves pose accuracy?

Overview of the Test-Time Personalization framework

To address this, researchers have introduced a method to "personalize" human pose estimation models during inference without requiring any manual labels. By bridging a supervised pose task with a self-supervised image reconstruction task, the model can fine-tune itself on unlabeled video frames of a specific person, significantly improving accuracy.

The Test-Time Personalization (TTP) Framework

The authors propose a framework called Test-Time Personalization (TTP). The architecture consists of three main components:

  1. The Self-Supervised Task: The model learns to reconstruct a "target" image by combining the appearance of one frame with the pose (represented as a set of bottleneck keypoints) of another frame. This forces the model to discover structural keypoints without any human labels.
  2. The Supervised Task: A standard head predicts semantic keypoints (elbow, knee, etc.) using ground-truth labels during the initial training phase.
  3. The Transformer Bridge: This is the core innovation. Instead of just sharing a feature backbone, the authors use a Transformer to learn an affinity matrix between the self-supervised keypoints and the supervised semantic keypoints.
Detailed architecture showing the Transformer bridging the supervised and self-supervised tasks

How it Works in Practice: During training, the model is optimized on diverse datasets using both supervised and self-supervised losses. The Transformer learns how the "discovered" self-supervised points relate to "real" human joints.

During test-time (personalization), when the model sees a new person, it freezes the supervised parts and the Transformer. It then fine-tunes its encoder and self-supervised head using only the reconstruction loss on the new, unlabeled frames. Because the Transformer has linked the two tasks, the improvements the model makes in "discovering" the person's structure via self-supervision automatically flow through to the supervised pose predictions during inference.

Key Insights

  • Coupling is Key: Simply sharing a backbone between two tasks (multi-task learning) isn't enough for effective test-time adaptation. By using a Transformer to explicitly map the relationship between self-supervised and supervised keypoints, the authors ensure that "learning the person" via reconstruction directly translates to "finding the joints."
  • No Continuity Required: Unlike many video-based pose estimators that require consecutive frames to calculate motion, TTP works on unordered sets of images. As long as the images feature the same person, the model can adapt.
  • Privacy-Preserving Adaptation: Because personalization happens at test time on the user's device without needing new labels, it offers a path toward high-performance models that don't require uploading sensitive user data to a central server for retraining.

Datasets and Results

The researchers evaluated their method on three major benchmarks: Human 3.6M (a large-scale dataset for 2D pose estimation), Penn Action (over 2,000 video sequences of sports and exercise), and BBC Pose (focused on sign language interpreters with fast-moving upper-body poses).

The TTP method showed consistent improvements across all datasets compared to a "static" baseline:

  • Human 3.6M: Improved mean Percentage of Correct Keypoints (mPCK) from 85.42 to 92.05 (a +6.63 gain).
  • Penn Action: Improved mPCK from 85.23 to 88.98.
  • BBC Pose: Improved mean Accuracy (mAcc) from 88.69 to 92.51.

Furthermore, the model works in both "online" mode (adapting frame-by-frame as a video plays) and "offline" mode (shuffling all available frames of a person). Performance generally increases as the model sees more frames of the same person.

Limitations and Future Work

While promising, the approach has a few limitations. On datasets with very little visual change (like BBC Pose, where the background and camera angle are fixed), the model can eventually overfit to the specific frames, leading to a slight drop in performance after several hundred iterations.

Additionally, fine-tuning a model during inference introduces computational overhead. While suitable for personal devices in theory, real-time performance on mobile hardware might still be a hurdle. Finally, the current method is designed for single-person personalization; adapting this to multi-person scenarios with overlapping individuals remains an open challenge.

Summary updated

BibTeX
@inproceedings{li2021test,
  author = {Yizhuo Li and Miao Hao and Zonglin Di and Nitesh Bharadwaj Gundavarapu and Xiaolong Wang},
  title = {{Test-Time Personalization with a Transformer for Human Pose Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=cwSkaedP-wz},
}
Figure