SHERLock: Self-Supervised Hierarchical Event Representation Learning

S. Roychowdhury, Sumedh A. Sontakke, Laurent Itti, M. Sarkar, M. Aggarwal, Pinkesh Badjatiya, Nikaash Puri, Balaji Krishnamurthy · DOI

TL;DR

This paper introduces SHERLock, a self-supervised model that learns hierarchical representations of events from long-horizon videos and text, mimicking how humans naturally break down complex tasks. It achieves state-of-the-art results in unsupervised event discovery, outperforming previous methods and even rivaling supervised approaches on challenging datasets.

What Problem Does This Paper Address?

Learning to understand and represent complex, long-horizon tasks from demonstrations is a significant challenge. Humans excel at this by abstracting events into a hierarchy, where simpler actions combine to form more complex ones. Existing methods often struggle with long sequences and require expensive, heavily annotated datasets with precise timestamps for each event. This makes them impractical for many real-world scenarios where such detailed supervision is unavailable. The paper aims to bridge this gap by developing a model that can learn these hierarchical event representations in a self-supervised manner, using only the natural order of events in demonstrations.

Methods

SHERLock employs a multi-modal, hierarchical, sequence-to-sequence architecture. It takes sequences of visual frames (encoded by ResNet) and textual descriptions (encoded by BERT) as input. These modalities are processed by separate Transformer encoders to generate low-level latent event embeddings. These low-level embeddings are then further encoded by another set of Transformers to produce high-level event embeddings, creating a hierarchy.

The model is trained using a combination of loss functions:

  • Soft-DTW (Dynamic Time Warping): This loss is used to align the sequences of learned event representations (both low-level and high-level) across modalities and within the same modality. It measures the discrepancy between sequences, allowing for temporal mismatches.
  • L2 Loss: This loss aligns the textual and visual event spaces, ensuring that representations from both modalities correspond to each other.

Crucially, SHERLock does not require explicit temporal supervision (e.g., start/end timestamps for events) or alignment between video and text. It only assumes that the order of events and narration is preserved. The model also incorporates a cross-modal decoding scheme, where visual embeddings are used to reconstruct text and vice-versa, further encouraging modality-invariant representations.

Datasets

The paper evaluates SHERLock on three datasets:

  • YouCook2: A dataset of cooking demonstrations with video and textual commentary, containing event annotations.
  • Chess Openings: A dataset of chess moves, representing a structured, sequential task.
  • TutorialVQA: A dataset of tutorial videos for image editing software, with spoken instructions.

These datasets are used for training and evaluating the model's ability to discover hierarchical events and align them with ground-truth annotations.

Key Insights and Ideas

  • Human-like Hierarchy: The core idea is that humans naturally organize experiences hierarchically, and this structure is key to understanding complex tasks. SHERLock aims to replicate this by learning both low-level and high-level event representations.
  • Self-Supervision is Powerful: The model demonstrates that valuable hierarchical event representations can be learned without explicit temporal annotations, relying solely on the inherent order of events in demonstrations.
  • Multi-modality for Robustness: Combining visual and textual information leads to more robust and interpretable event representations, as the commentary can guide the discovery of event boundaries.
  • Temporal Alignment is Crucial: The use of Soft-DTW is instrumental in aligning event sequences across modalities and handling temporal variations, which is a common challenge in video understanding.

Key Results

  • SHERLock achieves state-of-the-art performance in unsupervised hierarchical event discovery, outperforming previous unsupervised baselines by a significant margin (e.g., +15.3% TW-IoU on YouCook2).
  • Its performance is comparable to heavily-supervised methods on complex visual domains.
  • The model successfully learns interpretable hierarchical events across diverse domains like cooking, chess, and image editing tutorials. For instance, it can break down "poaching an egg" into sub-events like "boiling water" and "adding egg," and in chess, it can identify specific opening variations.
  • Using commentary as a guide improves the TW-IoU score by approximately 10%, highlighting the benefit of multi-modal input.

Limitations and Future Work

  • Computational Cost: Training SHERLock can be computationally intensive due to the Transformer architecture and the Soft-DTW loss, which involves solving a dynamic programming problem. This limits the length of video sequences that can be processed.
  • Noun Grounding: The model sometimes struggles with grounding specific nouns (e.g., "lobster" vs. "patty") due to the inherent difficulty of associating abstract concepts with limited visual information.
  • Future Work: The authors suggest exploring curriculum learning, where discovered event hierarchies could be used to generate training curricula for lower-level to higher-level events. They also propose using these representations for option discovery and reinforcement learning. Further research could also focus on extending the model to handle even longer video sequences and improving noun grounding.

Summary updated

BibTeX
@inproceedings{roychowdhury2020sherlock,
  author = {S. Roychowdhury and Sumedh A. Sontakke and Laurent Itti and M. Sarkar and M. Aggarwal and Pinkesh Badjatiya and Nikaash Puri and Balaji Krishnamurthy},
  title = {{SHERLock: Self-Supervised Hierarchical Event Representation Learning}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.48550/arxiv.2010.02556},
}
Figure