TL;DR
This paper introduces a method for multi-instance text-video retrieval that disentangles video and text into semantic roles—specifically nouns and verbs. By applying self-attention to contextualize video features within these roles and optimizing via multiple triplet losses, the authors achieved 3rd place in the nDCG category of the EPIC-KITCHENS-100 Retrieval Challenge 2022, demonstrating superior performance in capturing semantic similarity.
What Problem Does This Paper Address?
In cross-modal retrieval, the goal is to find the most relevant video for a text query (text-to-video) or the best caption for a video segment (video-to-text). While traditional methods map both modalities into a single joint embedding space, this often fails to capture the nuance of what is happening (the action/verb) versus what it is happening to (the object/noun).
Recent state-of-the-art methods like JPoSE have tried using separate embedding spaces for nouns and verbs. However, these methods often treat these components in isolation, ignoring the contextual interactions between them. Furthermore, while parsing text into parts of speech is straightforward, mapping raw video features into distinct "action" and "object" levels remains a significant challenge in computer vision.
Methods
The authors build upon the JPoSE baseline, introducing a more sophisticated way to handle video features. Their pipeline, illustrated in Figure 1, follows these steps:
- Semantic Parsing: Text captions are parsed into noun ($t_i^1$) and verb ($t_i^2$) components using the spaCy toolkit.
- Feature Extraction: Video features are extracted using a Temporal Binding Network (TBN), providing RGB, flow, and audio data.
- Contextualization via Self-Attention: Unlike the baseline, which uses simple linear layers, this method passes video features through a self-attention layer. This allows the model to exploit contextual relationships within the visual data before mapping them to the noun and verb embedding spaces.
- Multi-Space Embedding: The model projects both modalities into joint noun and verb spaces.
- Loss Functions: The system is trained using a combination of four triplet losses: two cross-modal losses (aligning video to text and vice versa) and two within-modal losses (ensuring related videos or related texts stay close to each other).
Datasets
The researchers evaluated their approach on the EPIC-KITCHENS-100 dataset. This is a massive collection of unscripted egocentric (first-person) videos of daily kitchen activities.
- Scale: 67,217 training pairs and 9,668 test pairs.
- Features: They utilized pre-extracted TBN features (1024-dimensional vectors) and Word2Vec embeddings for text.
Key Insights and Ideas
- Semantic Similarity vs. Binary Relevance: The authors found a trade-off between two major metrics. Their method excelled at nDCG (normalized Discounted Cumulative Gain), which rewards models for ranking semantically similar items highly, even if they aren't an exact match. However, it slightly lagged in mAP (mean Average Precision), which treats relevance as a binary "hit or miss."
- Video Context Matters More Than Text Context: Interestingly, the authors noted that applying self-attention to textual features actually decreased performance by 2-3%. This suggests that for short captions, the semantic roles are already distinct enough, whereas video features benefit significantly from the additional contextual processing.
- Pooling Strategies: Mean-pooling over time proved superior to max-pooling for this task, likely because it preserves a more holistic representation of the action segment.
Key Results
The method was benchmarked against several strong baselines, including MI-MM, JPoSE, and DCRL.
As shown in the tables above, the proposed method outperformed all baselines in nDCG, achieving an average score of 55.33. In the 2022 challenge rankings (Figure 3), the team placed 3rd for nDCG and 4th for mAP.
Limitations and Future Work
While the self-attention mechanism improved semantic alignment, the authors acknowledged the drop in mAP compared to the DCRL baseline. They also noted that simply increasing the batch size or embedding dimensions led to a performance decrease of 1-2%, suggesting the model is sensitive to hyperparameter tuning.
For future work, the authors plan to:
- Explore more sophisticated fusion methods to combine video features.
- Incorporate domain-specific features, such as explicit hand-object interaction modeling, which is particularly relevant for the egocentric videos in EPIC-KITCHENS.
Summary updated