TL;DR
This paper introduces a self-supervised approach to spatially localize complex interactions in instructional videos (e.g., "cut the onions") using only transcribed narrations. By proposing a novel Contrastive Multilayer Multimodal Attention (CoMMA) module that alternates between inter-modal and intra-modal attention, the researchers demonstrate how to train deep grounding models without manual bounding box labels, achieving state-of-the-art results on both video and image benchmarks.
What Problem Does This Paper Address?
Instructional videos are a goldmine for AI training because they feature a natural "voice-over" describing actions. However, while the audio tells us what is happening and roughly when, it doesn't explicitly state where in the frame the action occurs.
Existing "phrase grounding" research typically focuses on static images and simple noun phrases (e.g., "a blue ball"). In contrast, narrated interaction localization is much harder. It involves:
- Compositional Language: Sentences like "cut the onions and add them to the tray" involve multiple objects and sequential actions.
- Ambiguity: There might be multiple onions on a counter; the system must identify which one is currently being "cut."
- Weak Supervision: We don't have bounding boxes for training—only the raw video and the text transcript.
The core technical challenge is that standard joint-attention models, when used with contrastive learning, often find "trivial" solutions. They "leak" information between text and video features during the attention step, making the final contrastive task too easy and failing to learn meaningful spatial alignments.
Methods
The authors propose the CoMMA (Contrastive Multilayer Multimodal Attention) module. Its architecture is designed to allow deep interaction between modalities while preventing the "cheating" mentioned above.
- Alternating Attention Layers: Instead of a single "full-attention" block, CoMMA uses a stack of two distinct types of layers:
- Inter-modal (Cross-modal) Attention: Features from one modality (e.g., text) act as queries to select and aggregate features from the other modality (e.g., video). Crucially, it does not mix features from the same modality.
- Intra-modal (Self-attention): This allows the model to aggregate context within a single modality (e.g., understanding how "them" relates to "onions" in the sentence).
- Sentence-level Contrastive Loss: The model is trained using an InfoNCE loss that encourages the aggregated representation of a video clip to be similar to its corresponding narration and dissimilar to others.
- Attention Rollout: During inference, the system uses "attention rollout"—recursively multiplying attention weights across all layers—to produce a final spatial heatmap that indicates where the described interaction is happening.
Datasets
- HowTo100M: Used for large-scale self-supervised pre-training (specifically a subset of ~250,000 clips filtered to match relevant cooking vocabulary).
- YouCook2-Interactions: A newly introduced benchmark created by the authors. It contains ~1,000 video segments from the YouCook2 validation set, manually annotated with bounding boxes for full narrated interactions to evaluate localization accuracy.
- YouCook2-BB: Used to evaluate the model's ability to localize single objects.
- Flickr30K: Used to test if the method generalizes to weakly supervised phrase grounding in static images.
Key Insights and Ideas
- Depth is Critical: Unlike many prior works that use shallow "co-attention," this paper shows that stacking multiple attention layers significantly improves localization. The deeper the network, the better it aligns complex linguistic structures with visual regions.
- Global vs. Local Alignment: For videos, a sentence-level loss (matching the whole sentence to the clip) performs much better than a word-level loss. The authors hypothesize this is because video narrations are temporally "noisy"—the word "cut" might not happen at the exact millisecond the knife moves, but the overall sentence matches the overall clip.
- Preventing Feature Leakage: By using binary masks to strictly separate inter- and intra-modal attention, the model is forced to find genuine correspondences between the two modalities to satisfy the contrastive loss, rather than just mixing the features together.
Key Results
- Interaction Localization: On the new YouCook2-Interactions dataset, CoMMA achieved 55.80% accuracy, significantly outperforming the "Center Prior" baseline (31.81%) and standard "MIL-NCE" retrieval models (27.18%).
- Object Localization: Even though it was trained on full sentences, CoMMA outperformed specialized object-grounding baselines (like NAFAE) on the YouCook2-BB dataset (59.25% vs 46.95%).
- Image Grounding: When applied to the Flickr30K image benchmark, the model achieved state-of-the-art results in "Recall@1" (53.80%) and "Pointing Accuracy" (76.78%) when combined with existing word-to-region losses.
Limitations and Future Work
- Memory Constraints: The authors noted that stacking more than two CoMMA modules was difficult due to high memory requirements. This forced a trade-off between model depth and batch size (which is vital for contrastive learning).
- Temporal Alignment: While the model handles spatial localization well, it still relies on roughly pre-segmented video clips. Future work could integrate temporal boundary detection to find exactly when an interaction starts and ends.
- Complex Reasoning: While better than baselines, the model can still struggle with very long-range dependencies or highly cluttered scenes where multiple similar actions are occurring simultaneously.
Summary updated