Abstract
We introduce the task of spatially localizing narrated interactions in videos. Key to our approach is the ability to learn to spatially localize interactions with self-supervision on a large corpus of videos with accompanying transcribed narrations. To achieve this goal, we propose a multilayer cross-modal attention network that enables effective optimization of a contrastive loss during training. We introduce a divided strategy that alternates between computing inter- and intra-modal attention across the visual and natural language modalities, which allows effective training via directly contrasting the two modalities' representations. We demonstrate the effectiveness of our approach by self-training on the HowTo100M instructional video dataset and evaluating on a newly collected dataset of localized described interactions in the YouCook2 dataset. We show that our approach outperforms alternative baselines, including shallow co-attention and full cross-modal attention. We also apply our approach to grounding phrases in images with weak supervision on Flickr30K and show that stacking multiple attention layers is effective and, when combined with a word-to-region loss, achieves state of the art on recall-at-one and pointing hand accuracies.
Introduction
When watching a cooking tutorial, humans instinctively know that when a chef says "add them to the tray," the word "them" refers to the onions just chopped, and the "tray" is the specific object on the right. For machines, this "spatial grounding" is incredibly difficult. Most prior research has focused on static images, but this paper tackles the harder task of Narrated Interaction Localization in video. This involves overcoming temporal noise (narrations often lag or lead the action), compositional language (understanding verbs like "cut" and pronouns like "them"), and complex scenes containing multiple moving objects and hands.
Methods
The core contribution is a new architecture called CoMMA (Contrastive Multilayer Multimodal Attention). Standard cross-modal models often fall into a "trivial solution" trap when paired with contrastive loss, finding shortcuts to lower loss without learning meaningful spatial alignments.
To prevent this, CoMMA utilizes a "divided strategy" that alternates between two types of layers:
- Inter-modal Attention (Cross-Modal): Features from one modality (e.g., video) can only aggregate features from the other (e.g., text), and vice versa.
- Intra-modal Attention (Self-Attention): Features only attend to other features within the same modality.
By stacking these alternating layers, the model is forced to find deep latent correspondences. The system is trained using a sentence-level contrastive loss (InfoNCE), encouraging the global representation of a video clip to align with its corresponding narration.
Datasets and Evaluation
The model was self-trained on a subset of HowTo100M, a massive dataset of instructional videos. To evaluate performance, the authors introduced YouCook2-Interactions, adding ~1,000 manual bounding box annotations for specific narrated interactions to the existing YouCook2 dataset. They also tested on Flickr30K for image-based phrase grounding to demonstrate versatility.
Key Results
- Superior Localization: On the YouCook2-Interactions dataset, CoMMA achieved 55.80% accuracy, significantly outperforming the "Center Prior" baseline (31.81%) and the MIL-NCE retrieval model (27.18%).
- State-of-the-Art on Images: Applied to Flickr30K, the model achieved a Recall@1 of 53.80%, setting a new state-of-the-art for weakly supervised models.
- Action-Awareness: Unlike models that focus on the most prominent object, CoMMA learns to focus on hands and the objects being manipulated, providing a better understanding of interactions.
Conclusion
CoMMA demonstrates that stacking multiple layers of alternating attention allows models to learn "spatial common sense" from unlabelled video. While currently limited to relatively coarse feature maps, this approach provides a robust foundation for future tasks like robot learning from demonstration or automated video editing.
Summary updated