Papers
Topics
Authors
Recent
Search
2000 character limit reached

Video Action Transformer Network (VATN)

Updated 9 February 2026
  • The paper introduces VATN, which integrates Transformer-based attention with a two-stage Faster R-CNN pipeline to aggregate features from spatiotemporal context.
  • VATN employs an I3D trunk for feature extraction and a high-resolution Transformer head that uses multi-head attention for contextual reasoning and precise action localization.
  • Experiments on the AVA benchmark show that VATN achieves 24.93 mAP, outperforming prior models and demonstrating effective emergent tracking and focus on key human regions.

The Video Action Transformer Network (VATN) is a model for spatiotemporal human action recognition and localization in video, integrating the Transformer attention mechanism with region-based video understanding. Developed as an Action Transformer, VATN adapts Transformer architectures to aggregate features from spatiotemporal context specifically centered around person proposals, enabling recognition and localization using only raw RGB video frames and supervised by bounding boxes and class labels. VATN advances the state-of-the-art on the Atomic Visual Actions (AVA) benchmark with significant gains over previous models using a Faster R-CNN-style pipeline (Girdhar et al., 2018).

1. Model Architecture and Overall Pipeline

VATN employs a two-stage Faster R-CNN-style pipeline for temporal action localization in video:

  1. Trunk Network: The input is a TT-frame RGB clip of spatial resolution H×WH\times W (T=64T=64, H=W=400H=W=400), centered on a key-frame. Feature extraction uses the I3D (Inflated 3D ConvNet) trunk up to the Mixed_4f block, pretrained on Kinetics-400. The output feature tensor has reduced temporal and spatial resolution:

T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.

The central temporal slice (t=T/2t=T'/2) is input to the Region Proposal Network (RPN).

  1. Region Proposal Network (RPN): The RPN identifies RR person proposals in the central frame, ranked by objectness; at full scale, R=300R=300 is used.
  2. Head Networks:
    • I3D-Head (Baseline): Proposals are extended across time to form tubes, and spatiotemporal RoIPooling yields T×7×7T'\times 7\times 7 features. These are processed by the remaining I3D layers (Mixed_5a–5c), followed by linear classification and bounding-box regression.
    • Action Transformer Head (VATN): Proposals use only the central frame for each query, with the full (T,H,W)(T', H', W') feature volume providing the keys and values for the Transformer. Multi-head, multi-layer attention aggregates contextual information for human action classification and localization.
  3. Outputs: For each proposal, the network produces multi-label classification scores (via sigmoid cross-entropy) for H×WH\times W0 AVA classes, alongside class-agnostic bounding-box regression (smooth-L1).

2. Transformer-Based Attention Mechanism

The core of the VATN head is the Transformer attention block, designed for contextual reasoning in video. For each proposal H×WH\times W1:

  • Input Variables:
    • Query: H×WH\times W2
    • Keys: H×WH\times W3
    • Values: H×WH\times W4
  • Attention Computation:

H×WH\times W5

H×WH\times W6

H×WH\times W7

Multi-head attention utilizes learned projections H×WH\times W8, H×WH\times W9:

T=64T=640

T=64T=641

  • Layering: Each Transformer unit applies multi-head attention, followed by add & layer normalization, a position-wise 2-layer MLP with ReLU, dropout, and normalization:

T=64T=642

T=64T=643

T=64T=644

Stacking T=64T=645 such layers with T=64T=646 heads enriches the query vector for subsequent prediction.

3. High-Resolution, Class-Agnostic Query Encoding

VATN's query representation for each proposal is constructed via a HighRes Query Preprocessor (QPr):

  1. Extract a T=64T=647 RoIPooled feature from the central frame.
  2. Apply a T=64T=648 convolution to reduce depth to T=64T=649 channels.
  3. Flatten the H=W=400H=W=4000 spatial grid to a vector of length H=W=400H=W=4001.
  4. Use a learned linear layer to obtain a H=W=400H=W=4002-dimensional query vector for the Transformer.

Each H=W=400H=W=4003 remains class-agnostic, representing the individual only. The model is compelled, via classification supervision alone, to learn body parts, track individuals, and focus on semantically important regions (hands, faces, and objects) across space-time, without instance- or part-level supervision.

4. Spatiotemporal Positional Encoding

To mitigate the permutation invariance of the Transformer, VATN incorporates explicit position information:

For each feature cell H=W=400H=W=4004, the system computes normalized coordinates:

H=W=400H=W=4005

Spatial and temporal positions are separately embedded via 2-layer MLPs:

H=W=400H=W=4006

The concatenated positional embedding H=W=400H=W=4007 is appended to each feature cell, giving:

H=W=400H=W=4008

Keys and values for the Transformer are derived via linear projection from this augmented feature map, and queries inherit spatial cues accordingly.

5. Loss Formulation

VATN uses the following multi-task loss for each proposal H=W=400H=W=4009:

T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.0

where T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.1 are logits, T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.2, and T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.3 is sigmoid.

  • Bounding-Box Regression:

T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.4

Only positive proposals contribute to regression loss.

  • Combined Loss:

T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.5

with T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.6 in practice.

6. Training Procedures and Hyperparameters

  • Initialization: I3D trunk pre-trained on Kinetics-400; all new layers initialized randomly. BatchNorm in I3D is frozen.
  • Data Augmentation: Random horizontal flip and spatial crop to T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.7 to counteract overfitting.
  • Optimization: Synchronized SGD over 10 GPUs (effective batch size 30), initial learning rate 0.01 (warmup to 0.1, then cosine annealing over 500k iterations). Some experiments use shorter schedules (300k) with ground-truth boxes.
  • Transformer Configuration: T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.8, dropout rate 0.3, typically 2 heads T=T/4,H=H/16,W=W/16,Dtrunk1024.T' = T/4,\quad H' = H/16,\quad W' = W/16,\quad D_{\text{trunk}} \approx 1024.9 3 layers.
  • Proposals: t=T/2t=T'/20 (full-scale), t=T/2t=T'/21 for ablation.

7. Performance and Ablation Results

Quantitative Outcomes on AVA (v2.1)

Head/Setting Action Classification mAP Localization mAP (IoU ≥ 0.5)
I3D Head (GT boxes, 64 prop) 23.4 92.9
Transformer LowRes 29.1 77.5
Transformer HighRes 27.6 87.7
I3D Head (RPN, 300 prop) 20.5
Transformer HighRes (RPN) 24.4
Combined (reg/cls) 24.9

Test set performance: VATN achieves 24.93 mAP (test), outperforming prior best ensemble-free RGB+flow results (21.08 mAP) by 3.8 points.

Ablation Studies

  • Regression: Switching from class-agnostic to class-specific regression reduces mAP (21.3 → 19.2).
  • Data Augmentation: Removing augmentation lowers mAP (21.3 → 16.6).
  • Pretraining: Training from scratch (no Kinetics) yields 19.1 mAP (vs. 21.3 with pretraining).
  • Depth/Width Trade-off (GT boxes): Best results are with 6 layers × 2 heads (29.1 mAP).

Emergent Tracking and Context

Without explicit supervision, the action transformer head learns to:

  • Track individuals over frames by clustering body pixel attentions.
  • Distinguish between nearby people as instance-specific keys emerge.
  • Emphasize hands, faces, and manipulated objects in its attention, supporting fine-grained action classification.

These properties emerge from repeated attention of each query over the full spatiotemporal feature volume, combined with only final action classification supervision; tracking and body-part segmentation are not directly supervised (Girdhar et al., 2018).

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Video Action Transformer Network (VATN).