Enhancing Video Transformers for Action Understanding with VLM-aided Training

Hui Lu, Hu Jian, Ronald Poppe, Albert Ali SalaharXiv 2024 · DOI

Action recognition in video is a notoriously difficult task. While Vision Transformers (ViTs) have become the gold standard for extracting spatio-temporal patterns, they often struggle to generalize across different environments or datasets. They are excellent at spotting motion but sometimes "miss the forest for the trees," failing to grasp the broader semantic context of an action.

A new framework, Four-tiered Prompts (FTP), addresses this by leveraging the "world knowledge" of Large Visual Language Models (VLMs) like GPT-4 to supervise the training of video models. This approach results in state-of-the-art performance without the massive computational overhead of running a VLM during inference.

The Semantic Gap in Video Understanding

Current video understanding models face a trade-off. ViTs are efficient at processing temporal dynamics but often overfit to specific datasets, leading to poor generalization. Conversely, VLMs possess incredible general knowledge but are computationally expensive and typically struggle with long video sequences.

The core issue is that ViTs lack "semantic richness." A standard model might learn to associate a specific pixel movement with the label "squat," but it doesn't necessarily understand the components of that movement (bending knees) or the context (a gym). The FTP framework bridges this gap by using VLMs as a "teacher" during the training phase.

The Four-tiered Prompts (FTP) Framework

The FTP framework operates by extracting rich, multi-faceted textual descriptions of video actions across four distinct tiers:

  1. Action Category: Identifying the primary action (e.g., "Moving objects").
  2. Action Components: Describing specific movements (e.g., "bend at hips and knees").
  3. Action Description: A detailed, chronological account of the action.
  4. Context Information: Details about the environment and objects (e.g., "indoor gym with weight racks").

By aligning Vision Transformer embeddings with these semantic "hints" via contrastive learning (InfoNCE loss), the model develops a more robust understanding of video. This forces the ViT to "look" for context and components it might otherwise ignore.

Architecture and Training Strategy

The FTP framework is implemented in two stages. In Stage 1 (Visual-Text Alignment), the ViT’s visual encoder is trained to align its features with text embeddings generated from the four prompts. In Stage 2 (Model Fine-tuning), the VLM and text encoders are discarded, and the model is fine-tuned on specific action recognition datasets.

Overview of the FTP architecture (a) and the detailed structure of the feature processor (b).

As shown in the architecture diagram, the visual encoder produces a feature map $m$. This map is processed by four lightweight "Feature Processors"—one for each prompt tier—which are then integrated to form a semantically enriched feature map $f$ for the final classifier. Crucially, the VLM is only used during training; at inference, the model remains a standard, efficient ViT.

Experimental Results

The FTP framework was evaluated across several benchmarks, including Kinetics-400/600, Something-Something V2 (SSV2), and AVA V2.2.

  • State-of-the-Art Performance: On Kinetics-400, FTP achieved a top-1 accuracy of 94.3%, surpassing previous leaders like VideoMAEv2. On the motion-centric SSV2, it reached 83.4%.
  • Efficiency: The "FTP-UniFormerV2-B/16" model outperformed the massive "InternVideo" model while using only about 10.5% of the parameters, demonstrating the power of semantic supervision for creating efficient yet powerful models.
  • Spatio-temporal Localization: On the AVA V2.2 dataset, FTP achieved 46.2 mAP, a significant improvement over the previous SOTA of 43.3.

Conclusion

The FTP framework demonstrates that action recognition is as much a semantic problem as it is a visual one. By forcing models to "explain" the context and components of an action during training, they learn features that are far more transferable and robust. This synergy between the temporal processing of ViTs and the semantic breadth of VLMs sets a new standard for video understanding.

Summary updated

BibTeX
@misc{lu2024enhancing,
  author = {Hui Lu and Hu Jian and Ronald Poppe and Albert Ali Salah},
  title = {{Enhancing Video Transformers for Action Understanding with VLM-aided Training}},
  year = {2024},
  eprint = {2403.16128},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.16128},
}
Figure