Introduction
Vision Transformers (ViTs) have significantly advanced video understanding, yet they often suffer from a "democratic" bias, treating every pixel patch with equal importance. In complex real-world scenarios—such as a person performing tasks in a cluttered room or a robotic arm moving against a busy background—this leads to the processing of substantial irrelevant noise. This paper introduces two novel strategies, PAAB and PAAT, to bake human and robotic pose priors directly into ViTs, focusing the model's attention on critical keypoints like joints or mechanical links.
Methodology: Inducing Pose-Awareness
The researchers propose two distinct "plug-and-play" strategies to create pose-aware representations using easily obtainable 2D keypoints:
- Pose-aware Attention Block (PAAB): This architectural modification restricts local attention interactions specifically to "pose tokens" (patches containing keypoints). It can be configured to operate across spatial, temporal, or spatio-temporal dimensions.
- Pose-aware Auxiliary Task (PAAT): This multi-task learning approach assigns the model an extra task during training: predicting which specific keypoints are present in each image patch. This forces the backbone layers to learn features that distinguish pose regions from the background.
An important discovery was the optimal placement of these components: PAAT is most effective at the very first layer to shape low-level representations, while PAAB works best near the end of the transformer to handle high-level, contextualized features.
Key Insights and Results
- The Role of Feed-Forward Networks (FFNs): Analysis showed that the FFNs within the transformer blocks do the heavy lifting of altering token representations to become pose-aware, rather than just the attention weights themselves.
- 2D vs. 3D Priors: The study proves that 2D keypoints are sufficient to achieve 3D-like results, making the model robust to camera angle changes (viewpoint agnosticism) without the need for expensive depth sensors or 3D skeleton data.
- Performance Gains:
- Action Recognition: On the Toyota-Smarthome dataset, PAAT achieved a new state-of-the-art, outperforming the baseline TimeSformer by 4.1% on cross-subject tasks.
- Robotic Alignment: In the Minecraft dataset, which features extreme viewpoint variation, pose-aware methods improved alignment accuracy by a staggering 21.8%.
- Efficiency: PAAT is recommended for most applications because the auxiliary task is discarded after training. This provides a performance boost at inference time with zero extra computational cost and no requirement for pose data during deployment.
Limitations and Future Work
While effective, these methods require 2D pose extraction during the training phase. Additionally, attempting to combine PAAB and PAAT in a single model was found to decrease performance, likely due to conflicting gradient updates. Future research could extend this approach to other entity-specific priors, such as using segmentation masks to help Transformers focus on specific objects in a scene.
Summary updated