Skip to main content
QUICK REVIEW

[Paper Review] ViTPose++: Vision Transformer for Generic Body Pose Estimation

Yufei Xu, Jing Zhang|arXiv (Cornell University)|Dec 7, 2022
Human Pose and Action RecognitionComputer Science6 citations
TL;DR

This paper proposes ViTPose and ViTPose++, simple yet powerful vision transformer-based models for generic body pose estimation. By leveraging a plain, non-hierarchical vision transformer backbone with a lightweight decoder, ViTPose achieves state-of-the-art performance on MS COCO and multiple benchmarks, while ViTPose++ enables multi-task learning across diverse body types via knowledge factorization, setting new records without sacrificing speed.

ABSTRACT

In this paper, we show the surprisingly good properties of plain vision transformers for body pose estimation from various aspects, namely simplicity in model structure, scalability in model size, flexibility in training paradigm, and transferability of knowledge between models, through a simple baseline model dubbed ViTPose. Specifically, ViTPose employs the plain and non-hierarchical vision transformer as an encoder to encode features and a lightweight decoder to decode body keypoints in either a top-down or a bottom-up manner. It can be scaled up from about 20M to 1B parameters by taking advantage of the scalable model capacity and high parallelism of the vision transformer, setting a new Pareto front for throughput and performance. Besides, ViTPose is very flexible regarding the attention type, input resolution, and pre-training and fine-tuning strategy. Based on the flexibility, a novel ViTPose+ model is proposed to deal with heterogeneous body keypoint categories in different types of body pose estimation tasks via knowledge factorization, i.e., adopting task-agnostic and task-specific feed-forward networks in the transformer. We also empirically demonstrate that the knowledge of large ViTPose models can be easily transferred to small ones via a simple knowledge token. Experimental results show that our ViTPose model outperforms representative methods on the challenging MS COCO Human Keypoint Detection benchmark at both top-down and bottom-up settings. Furthermore, our ViTPose+ model achieves state-of-the-art performance simultaneously on a series of body pose estimation tasks, including MS COCO, AI Challenger, OCHuman, MPII for human keypoint detection, COCO-Wholebody for whole-body keypoint detection, as well as AP-10K and APT-36K for animal keypoint detection, without sacrificing inference speed.

Motivation & Objective

  • To investigate the potential of plain vision transformers for generic body pose estimation without task-specific architectural modifications.
  • To develop a scalable, flexible, and transferable baseline model for both top-down and bottom-up pose estimation.
  • To enable multi-task learning across heterogeneous body keypoint categories (e.g., human, animal) via knowledge factorization in a unified transformer architecture.
  • To demonstrate the effectiveness of knowledge distillation from large models to small ones using a simple knowledge token.
  • To establish a new Pareto front for throughput and accuracy in pose estimation by scaling model capacity from 20M to 1B parameters.

Proposed method

  • ViTPose employs a plain, non-hierarchical vision transformer as the encoder and a lightweight decoder with two deconvolution layers and a prediction head for heatmap regression in top-down or bottom-up pose estimation.
  • The vision transformer backbone is pre-trained using masked image modeling (e.g., MAE) to provide strong feature initialization.
  • ViTPose++ introduces task-specific and task-agnostic feed-forward networks (FFNs) within the transformer blocks to factorize knowledge across different body keypoint detection tasks.
  • Knowledge factorization in ViTPose++ is inspired by mixture-of-experts (MoE), allowing the model to learn shared and specific representations for different body types.
  • A knowledge token is used to distill knowledge from large ViTPose models to smaller ones, enabling efficient knowledge transfer.
  • The model supports flexible input resolution, attention types, and pre-training/fine-tuning strategies, enhancing adaptability across datasets.

Experimental results

Research questions

  • RQ1Can a plain vision transformer without task-specific architectural design achieve state-of-the-art performance in body pose estimation?
  • RQ2How does the scalability of vision transformers impact the trade-off between model size, throughput, and accuracy in pose estimation?
  • RQ3Can a unified transformer-based model effectively handle heterogeneous body keypoint categories (e.g., human, animal) through knowledge factorization?
  • RQ4To what extent can knowledge from large ViTPose models be transferred to smaller models using a simple knowledge token?
  • RQ5How do attention mechanisms and feature representations in ViTPose adapt to occluded or extreme poses?

Key findings

  • ViTPose-G, with 1 billion parameters, achieves a new state-of-the-art accuracy of 80.9 AP on the MS COCO test-dev set without model ensemble.
  • ViTPose++ achieves state-of-the-art performance across multiple benchmarks, including MS COCO, AI Challenger, OCHuman, MPII, COCO-Wholebody, AP-10K, and APT-36K, without compromising inference speed.
  • The model maintains high performance on heavily occluded images, with ViTPose++-B correctly inferring invisible keypoint locations based on visible body parts.
  • Visualization shows that ViTPose++ maintains consistent attention patterns on keypoint locations even when the target keypoint is masked, indicating robust relational modeling.
  • Cosine similarity analysis reveals that task-specific FFN weights in deeper layers are more distinct across tasks (e.g., human vs. animal), suggesting deeper layers are more task-specific.
  • Failure cases on extreme poses, such as skiing, are mitigated by scaling up the backbone and training on expanded datasets, demonstrating the scalability of the approach.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.