Abstract
In this report, we present the ReLER@ZJU-Alibaba submission to the Ego4D Natural Language Queries (NLQ) Challenge in CVPR 2022. Given a video clip and a text query, the goal of this challenge is to locate a temporal moment of the video clip where the answer to the query can be obtained. To tackle this task, we propose a multi-scale cross-modal transformer and a video frame-level contrastive loss to fully uncover the correlation between language queries and video clips. Besides, we propose two data augmentation strategies to increase the diversity of training samples. The experimental results demonstrate the effectiveness of our method. The final submission ranked first on the leaderboard.
Introduction
The Ego4D Natural Language Queries (NLQ) task is a "needle in a haystack" problem for egocentric video understanding. Given a long video clip (averaging 7.5 minutes) and a text query (e.g., "Where did I leave my keys?"), the model must pinpoint the exact start and end times of the answer, which usually lasts less than 5 seconds.
Two primary hurdles define this task:
- Temporal Imbalance: The target moment often represents less than 1% of the total video duration.
- Data Scarcity: While the dataset contains over 10,000 query-video pairs, they are derived from only about 1,200 unique videos. This limited diversity makes it easy for models to overfit to specific backgrounds rather than learning the relationship between text and action.
Methodology
Multi-scale Cross-modal Transformer
To ensure deep interaction between modalities, we moved away from standard self-attention in favor of a cross-attention mechanism. This architecture forces the video stream to attend specifically to linguistic features and vice versa at every layer. Additionally, we adopted a "split-and-concat" strategy to process the video at multiple scales, allowing the model to capture both fine-grained actions and broader temporal context.
Video Frame-level Contrastive Loss
To help the model distinguish the relevant "needle" from the background "haystack," we introduced a frame-level contrastive loss. This objective encourages the model to maximize the similarity between the text query and video frames within the answer span, while minimizing similarity with frames outside that span.
Advanced Data Augmentation
To prevent overfitting on the limited number of unique video environments, we introduced two novel strategies:
- Variable-length Sliding Window (SW): This involves randomly sampling different windows of the video that still contain the ground-truth answer, creating diverse temporal "views" of the same event.
- Video Splicing (VS): A "cut-and-paste" method where a positive clip (containing an answer) is inserted into a "null" video clip. This forces the model to identify the relevant action regardless of the surrounding background cues.
Experiments and Results
We utilized SlowFast, Omnivore, and CLIP visual encoders to represent video frames. Our proposed method, "Ours-full," significantly outperformed existing state-of-the-art models on the Ego4D validation set, achieving an R@1 (IoU=0.3) of 10.79%, nearly doubling the performance of the VSLNet baseline (5.45%).
Ablation studies highlighted that while each component contributed to the success, the combination of SW and VS data augmentations provided a massive boost, increasing the R@1 score by over 2% compared to the base model. Our final ensemble model reached 12.89% R@1 on the test set, securing 1st place in the Ego4D NLQ Challenge 2022.
Conclusion
The ReLER@ZJU-Alibaba submission demonstrates that explicit cross-modal interaction and background-invariant data augmentation are critical for long-form egocentric video understanding. While the model excels at identifying the single best match (R@1), future work will focus on refining the ranking of multiple candidate spans to improve performance on broader metrics like R@5.
Summary updated