GeoDeformer: Geometric Deformable Transformer for Action Recognition

Jinhui Ye, Jiaming Zhou, Hui Xiong, Junwei LiangarXiv 2023 · DOI

Abstract

Vision Transformers (ViTs) have become a standard for video analysis, yet they often lack inherent spatial biases to handle geometric variations like camera motion, scaling, and perspective shifts. We introduce GeoDeformer, a module designed to explicitly learn and "undo" these variations. By integrating a Geometric Deformation Predictor with a differentiable warping function, GeoDeformer allows the model to dynamically normalize video content. Our method achieves state-of-the-art performance on major benchmarks, including UCF101 and HMDB51, with only a marginal increase in computational cost.

Introduction: The Geometric Blind Spot in ViTs

While ViTs excel at capturing long-range dependencies, they treat video frames as collections of patches, often failing to recognize that an action—such as "pitching a baseball"—remains semantically identical regardless of camera zoom, tilt, or panning. Traditional solutions rely on extensive data augmentation, which is computationally expensive and does not instill a fundamental understanding of geometry within the model. GeoDeformer addresses this by building geometric comprehension directly into the transformer architecture, enabling on-the-fly normalization of video features.

The GeoDeformer Architecture

The GeoDeformer block is designed to replace standard self-attention blocks in backbones like MViTv2. It operates through three primary stages:

  1. Global Information Aggregation: Standard self-attention is employed to gather a contextual "sketch" of the video, establishing relationships between disparate patches.
  2. Geometric Deformation Predictor: This component acts as the module's core logic. It processes aggregated features to predict frame-wise transformation parameters ($\theta_t$) for individual frame adjustment and cross-frame parameters ($\theta_{cls}$) to capture global temporal dynamics.
  3. Spatial-Temporal Warping: Using the predicted parameters, a differentiable warping function (trilinear interpolation) re-samples the feature map. This process effectively eliminates geometric noise, such as camera shake or inconsistent framing.
The GeoDeformer architecture integrated into a ViT backbone, highlighting the Global Attention, Deformation Predictor, and Warping stages.

The entire pipeline is end-to-end differentiable, allowing the network to learn the optimal warping strategy for action recognition tasks.

Experimental Evaluation

The effectiveness of GeoDeformer was validated on three prominent action recognition benchmarks: UCF101, HMDB51, and Mini-Kinetics-200.

Performance Gains

GeoDeformer demonstrated substantial improvements over the MViTv2-S baseline:

  • UCF101: Achieved 89.1% Top-1 accuracy (+4.1% over baseline).
  • HMDB51: Reached 73.8% (+4.8% over baseline).
  • Mini-Kinetics-200: Set a new state-of-the-art with 83.38% (+1.15% over baseline).

Furthermore, the model showed strong transferability; geometric parameters learned on HMDB51 were successfully applied to UCF101, indicating that the module learns generalizable geometric principles.

Qualitative Insights and Efficiency

A key observation is the "centering" effect: the model naturally learns to center and scale the primary actor within the frame. By normalizing the actor's position and size, the classification task for subsequent layers is significantly simplified.

Qualitative comparison showing original frames (top) versus warped frames (bottom). The GeoDeformer effectively centers the subject to simplify recognition.

Crucially, this geometric intelligence is highly efficient. The addition of the GeoDeformer module only increases computational complexity (FLOPs) by approximately 4%, making it a practical enhancement for existing ViT architectures.

Conclusion and Future Directions

GeoDeformer represents a significant step toward making Vision Transformers geometrically aware. While currently integrated with MViTv2, future work will explore its utility across other backbones like Swin Transformer or VideoMAE. Additionally, while affine transformations are effective, extending the model to handle highly non-rigid deformations remains an open area for research. Large-scale validation on datasets like Kinetics-700 is also planned to further confirm the module's scalability.

Summary updated

BibTeX
@misc{ye2023geodeformer,
  author = {Jinhui Ye and Jiaming Zhou and Hui Xiong and Junwei Liang},
  title = {{GeoDeformer: Geometric Deformable Transformer for Action Recognition}},
  year = {2023},
  eprint = {2311.17975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.17975},
}
Figure