Test-Time Personalization with a Transformer for Human Pose Estimation

Yizhuo Li, Miao Hao, Zonglin Di, Nitesh B. Gundavarapu, Xiaolong Wang

TL;DR

This paper introduces Test-Time Personalization (TTP), a method to adapt a human pose estimator to a specific individual using only their unlabeled images or video frames. By using a Transformer to bridge a self-supervised reconstruction task with a supervised pose estimation task, the model can "learn" person-specific features at test time, significantly boosting accuracy without requiring new manual annotations.

What Problem Does This Paper Address?

Deep learning models for human pose estimation have become incredibly accurate, but they often struggle to generalize to "in-the-wild" scenarios involving unseen environments, unusual poses, or specific individuals whose appearance differs from the training set.

While personalizing a model for a specific user (like a professional athlete or a patient in physical therapy) would solve this, the cost of manually labeling thousands of frames for every new person is prohibitive. Existing temporal methods try to solve this using video continuity, but they fail if the frames are non-continuous or if the person's appearance changes significantly. The authors seek a way to exploit the abundance of unlabeled data (like a personal photo gallery or a long YouTube video) to adapt a generic model to a specific person automatically.

Methods

The core of the approach is a dual-task architecture trained jointly, followed by a specific adaptation phase at test time.

1. Joint Training with a Transformer Bridge

The model consists of a shared feature encoder and two heads:

  • Self-supervised Task: Based on image reconstruction. Given two frames of the same person ($I_s$ and $I_t$), the model tries to reconstruct $I_t$ by combining the appearance of $I_s$ with the pose (represented as a bottleneck of "self-supervised keypoints") of $I_t$. These keypoints are discovered automatically and don't necessarily correspond to human joints like "elbow" or "knee."
  • Supervised Task: A standard pose estimation head that predicts semantic keypoints (e.g., joints).
  • The Transformer Bridge: Instead of just sharing a backbone, the authors use a Transformer decoder to learn an affinity matrix between the self-supervised keypoints and the supervised ones. This explicitly couples the two tasks: if the self-supervised keypoints improve during test-time adaptation, the supervised pose prediction is directly pulled along with them.
The proposed pipeline showing the interaction between supervised and self-supervised tasks.

2. Test-Time Personalization (TTP)

When the model encounters a new person at test time, the supervised parts are frozen. The model then fine-tunes its encoder and self-supervised head on the new, unlabeled images using the reconstruction loss. Because the Transformer has learned how self-supervised points map to semantic joints, this fine-tuning process adapts the entire feature representation to the specific person's body proportions and appearance.

The authors propose two settings:

  • Online: The model adapts frame-by-frame as a video stream comes in.
  • Offline: The model adapts using a batch of unordered images of the person.

Datasets

The researchers evaluated TTP on three major human pose benchmarks:

  • Human 3.6M: A large-scale dataset with 3.6 million images and 3D/2D annotations.
  • Penn Action: Contains over 2,000 video sequences of people performing various sports and actions.
  • BBC Pose: A dataset focused on sign language interpreters, often used to test robustness to fast motion and occlusion.

Key Insights and Ideas

  • Functional Coupling vs. Feature Sharing: Simply sharing a backbone between two tasks isn't enough for effective test-time adaptation. The Transformer bridge creates a functional dependency where improving the "proxy" task (reconstruction) mathematically forces an improvement in the "target" task (pose estimation).
  • Beyond Continuity: Unlike many video-based pose estimators, TTP does not require consecutive frames. It can personalize using a set of random, unordered photos of the same person, making it much more flexible for real-world applications.
  • Privacy-Friendly: Because the personalization happens at test time on the local device without needing new labels, it is highly suitable for privacy-sensitive applications where user data shouldn't be uploaded to a central server for re-training.

Key Results

The method showed significant improvements across all datasets compared to generic baselines and other adaptation strategies:

  • Human 3.6M: Achieved a gain of +6.63 mPCK (mean Percentage of Correct Keypoints) in the offline scenario.
  • Penn Action: Saw an improvement of +3.75 mPCK.
  • BBC Pose: Improved accuracy by +3.82 mAcc.

Interestingly, the "Online" results showed that the model's performance generally improves the longer it watches a specific person, as it has more opportunities to refine its person-specific features.

Performance improvement over time as more frames are processed in the online scenario.

Limitations and Future Work

  • Overfitting: In the BBC Pose dataset, the authors noted that performance slightly dipped after 600 frames of fine-tuning. This suggests that if the person's pose and appearance don't change enough, the model might overfit to a specific set of frames.
  • Computational Cost: Test-time adaptation requires backpropagation during inference, which is more computationally expensive than a standard forward pass. Optimizing this for mobile or edge devices remains a challenge.
  • Single Person Constraint: The current framework is designed for single-person scenarios. Extending this to multi-person scenes where individuals might overlap or enter/leave the frame is a promising direction for future research.

Summary updated

BibTeX
@inproceedings{li2021test,
  author = {Yizhuo Li and Miao Hao and Zonglin Di and Nitesh B. 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