[Paper Review] Video + CLIP Baseline for Ego4D Long-term Action Anticipation
This paper proposes a Video + CLIP baseline for long-term action anticipation on the Ego4D dataset by fusing features from a pre-trained CLIP model and a Slowfast video encoder. By using cross-attention to aggregate CLIP embeddings with temporal context from text prompts, the method achieves state-of-the-art performance, outperforming the original baseline with a 0.7125 edit distance (verb) and 0.747 (noun) at Z=20, K=5 on the validation set.
In this report, we introduce our adaptation of image-text models for long-term action anticipation. Our Video + CLIP framework makes use of a large-scale pre-trained paired image-text model: CLIP and a video encoder Slowfast network. The CLIP embedding provides fine-grained understanding of objects relevant for an action whereas the slowfast network is responsible for modeling temporal information within a video clip of few frames. We show that the features obtained from both encoders are complementary to each other, thus outperforming the baseline on Ego4D for the task of long-term action anticipation. Our code is available at github.com/srijandas07/clip_baseline_LTA_Ego4d.
Motivation & Objective
- To improve long-term action anticipation in egocentric video by leveraging pre-trained image-text models like CLIP.
- To address the limitation of CLIP in modeling temporal reasoning for verb prediction, despite strong frame-level understanding.
- To explore complementary fusion of CLIP's fine-grained visual understanding with Slowfast's temporal modeling for improved action anticipation.
- To validate that attention-based aggregation of CLIP features outperforms mean-pooling and naive concatenation with text embeddings.
Proposed method
- Extract CLIP image embeddings from each frame in a video clip using a pre-trained ViT-B/16 encoder without fine-tuning.
- Generate text embeddings via CLIP's text encoder using prompt templates for top nouns, verbs, scenarios, and places from the Ego4D dataset.
- Fuse CLIP image and text embeddings using a multi-head cross-attention mechanism, where text prompts act as queries and image features as keys/values.
- Concatenate the CLIP attention-aggregated descriptor with Slowfast network features (2048 + 512 dimensions) for clip-level representation.
- Use a 6-layer transformer aggregation module and a decoder network, following the baseline framework from Ego4D for sequence prediction.
- Train the aggregation and decoder heads end-to-end on 8 A5000 GPUs with a batch size of 64 for 30 epochs using a base LR of 0.0001.
Experimental results
Research questions
- RQ1Can pre-trained CLIP features improve long-term action anticipation when fused with video-specific temporal encoders?
- RQ2Does attention-based temporal aggregation of CLIP features outperform simple mean-pooling in video-level representation learning?
- RQ3How effective is CLIP in predicting verbs versus nouns in egocentric video, given its lack of temporal modeling?
- RQ4Does concatenating CLIP text embeddings with image features provide additional benefit beyond the image features alone?
- RQ5Can a hybrid CLIP + Slowfast architecture outperform the original Ego4D baseline in long-term action anticipation?
Key findings
- The CLIP attention variant achieved the best performance with an edit distance of 0.7125 (verb) and 0.747 (noun), outperforming the original baseline (0.745, 0.779).
- The CLIP image-only baseline (L2) performed worse than the original baseline, indicating that naive CLIP features lack temporal reasoning for verb prediction.
- Adding CLIP text embeddings to CLIP image features (L3) did not improve performance, suggesting no complementary gain from explicit text feature concatenation.
- The CLIP attention mechanism effectively learned to weight relevant frames based on the text prompt, leading to superior temporal aggregation.
- The fusion of CLIP and Slowfast features provided complementary information, with CLIP enhancing frame-level understanding and Slowfast capturing motion patterns.
- The method ranked second in the Ego4D Challenge for Long-Term Action Anticipation at CVPR 2022, validating its effectiveness on the test set.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.