Abstract
We propose Anticipative Video Transformer (AVT), an end-to-end attention-based video modeling architecture that attends to the previously observed video in order to anticipate future actions. We train the model jointly to predict the next action in a video sequence, while also learning frame feature encoders that are predictive of successive future frames' features. Compared to existing temporal aggregation strategies, AVT has the advantage of both maintaining the sequential progression of observed actions while still capturing long-range dependencies--both critical for the anticipation task. Through extensive experiments, we show that AVT obtains the best reported performance on four popular action anticipation benchmarks: EpicKitchens-55, EpicKitchens-100, EGTEA Gaze+, and 50-Salads; and it wins first place in the EpicKitchens-100 CVPR'21 challenge.
Introduction
While AI has become remarkably proficient at action recognition—identifying what is happening in a video right now—action anticipation remains a significant hurdle. Recognition can often rely on static context; for instance, a plate and fork usually imply "eating." Anticipation, however, requires understanding the sequential logic of human behavior: one does not "eat" until they have "chopped," "cooked," and "served."
Existing methods often rely on recurrent neural networks (like LSTMs), which struggle with long-range dependencies, or simple temporal aggregation, which loses the vital sequential order of events. The Anticipative Video Transformer (AVT) bridges this gap with a model that respects the "arrow of time" while capturing complex, long-term relationships in video data.
Methods
AVT introduces a two-stage, purely attention-based pipeline designed to process video sequences similarly to how Large Language Models (LLMs) treat text.
The architecture consists of two main components:
- Backbone (AVT-b): Based on the Vision Transformer (ViT), this stage processes individual frames or short clips into feature embeddings. It uses spatial attention to focus on relevant parts of a frame, such as hands or active objects.
- Head (AVT-h): This is a Causal Transformer Decoder, inspired by generative models like GPT-2. It uses "causal masking," ensuring that the prediction for any given time step only depends on previous frames, never on the future.
The model is trained using a multi-task objective including Next-Action Prediction, Feature Anticipation (predicting visual features of the next frame), and Intermediate Action Classification to reinforce its understanding of the action sequence.
Key Insights
By applying causal masking to continuous video features, AVT demonstrates that the transformer's ability to model sequences translates powerfully to the visual domain.
- Spontaneous Spatial Awareness: Without explicit supervision (like bounding boxes), the model's spatial attention naturally learns to "lock onto" hands and active objects. This suggests the model internally identifies the most informative cues for future actions.
- Predictive Features as a Signal: Training the model to predict the features of the next frame acts as a powerful regularizer, forcing the model to build a representation of how visual scenes typically unfold over time.
- Long-Term Rollouts: Because of its causal nature, AVT can be used autoregressively. Predictions can be fed back into the model to "hallucinate" a sequence of future actions (e.g., "wash spoon" → "wash hand" → "dry hand").
Results
AVT demonstrated superior performance across four diverse benchmarks: EpicKitchens-100, EpicKitchens-55, EGTEA Gaze+, and 50-Salads.
- Challenge Winner: It secured 1st place in the EpicKitchens-100 Action Anticipation challenge at CVPR'21.
- Benchmark SOTA: On the 50-Salads dataset, it outperformed previous RNN and attention-based methods by a massive 7.3% absolute improvement in top-1 accuracy.
- Tail Class Performance: AVT showed significant gains in "tail classes" (rare actions), suggesting its predictive training makes it robust in few-shot scenarios.
- Efficiency: Despite its complexity, the anticipative training adds only about 1% to the runtime compared to a naive model.
Conclusion
AVT represents a significant step forward in action anticipation by leveraging the strengths of transformers for sequential video modeling. While it excels at predicting the next action, long-term autoregressive rollouts can eventually drift. Future work includes using AVT for self-supervised representation learning on unlabeled video and exploring more complex loss functions for feature prediction.
Summary updated