Unsupervised Hierarchical Concept Learning

Sumegh Roychowdhury, Sumedh A. Sontakke, Nikaash Puri, Mausoom Sarkar, Milan Aggarwal, Pinkesh Badjatiya, Balaji Krishnamurthy, Laurent Itti

Abstract

Discovering concepts (or temporal abstractions) in an unsupervised manner from demonstration data in the absence of an environment is an important problem. Organizing these discovered concepts hierarchically at different levels of abstraction is useful in discovering patterns, building ontologies, and generating tutorials from demonstration data. However, recent work to discover such concepts without access to any environment does not discover relationships (or a hierarchy) between these discovered concepts. In this paper, we present a Transformer-based concept abstraction architecture SHERLock (also referred to as UNHCLE) that extracts a hierarchy of concepts in an unsupervised way from demonstration data. We empirically demonstrate how SHERLock discovers meaningful hierarchies using datasets from Chess and Cooking domains. Finally, we show how SHERLock learns meaningful language labels for concepts by using demonstration data augmented with natural language for cooking and chess.

Introduction

Humans have a remarkable ability to perceive the world hierarchically. When we watch someone perform a complex task, like making an omelet, we do not just see a stream of pixels; we see high-level goals ("making breakfast") composed of mid-level events ("cracking eggs," "frying") which are themselves built from low-level motions.

Conceptual overview of hierarchical event discovery.

Replicating this hierarchical perception in AI systems is challenging. Most current "event representation" models require massive, hand-labeled datasets where humans have painstakingly marked the exact start and end times of every sub-action. This is expensive and often fails on "long-horizon" tasks. Furthermore, many existing unsupervised methods only work in active environments (like a robot in a simulator), making them unusable for passive data like YouTube tutorials. SHERLock (Self-supervised Hierarchical Event Representation Learning) addresses these gaps by learning to decompose complex, long-duration videos into a meaningful hierarchy of events without requiring manual timestamps.

The SHERLock Architecture

SHERLock is an end-to-end trainable Seq2Seq framework designed to handle multi-modal data. It leverages two primary levels of abstraction to model temporal sequences.

Detailed SHERLock architecture showing the multi-modal alignment and hierarchical latent space.

Hierarchical Latent Space

The model employs two levels of Transformers. The first level encodes raw data—extracted via ResNet for video or BERT for text—into low-level latent events ($z^L$). A second Transformer then aggregates these into high-level event embeddings ($z^H$). This structure allows the model to capture both fine-grained motions and broader task logic, which "flat" models typically miss.

Multi-modal Alignment and Soft-DTW

A key innovation is the "hierarchy swapping" mechanism. During training, the model uses visual embeddings to reconstruct corresponding text and vice versa. This forces the visual and textual representations into a shared semantic space where words and images share the same meaning. To handle the lack of fixed timestamps, SHERLock utilizes Soft-Dynamic Time Warping (Soft-DTW) as a loss function. Soft-DTW enables the network to compare sequences of different lengths and speeds, finding optimal alignments between predicted and actual data in a differentiable manner.

Experimental Evaluation

The framework was evaluated across three distinct domains to prove its versatility:

  1. YouCook2: A large-scale cooking dataset featuring 89 different recipes.
  2. Chess Openings: A dataset of move sequences (e.g., French Defense) to test logical hierarchies.
  3. TutorialVQA: A collection of tutorial videos for image editing software, focusing on UI interactions.

To measure performance, the authors introduced a new metric, Time-warped IoU (TW-IoU), which measures how well discovered events overlap with ground-truth human annotations while accounting for temporal shifts.

Key Results and Insights

SHERLock demonstrates a significant leap in unsupervised event discovery. On the YouCook2 dataset, it achieved a TW-IoU of 47.44, vastly outperforming the previous state-of-the-art unsupervised baseline, which scored only 14.47. Remarkably, SHERLock's unsupervised results are close to heavily supervised baselines (53.12), despite having zero access to temporal labels during training.

The Power of Hierarchy

The researchers found that hierarchy is essential for long-horizon tasks. Adding just one extra layer of abstraction (high-level vs. low-level) led to a massive jump in how well the discovered events aligned with human intuition. Furthermore, while SHERLock can learn from video alone, adding textual commentary improves the precision of event boundaries by about 10%, as language provides a structural "hint" for the visual data.

Semantic Clustering and Robustness

Latent space analysis revealed that the model naturally groups similar actions (like "frying" or "seasoning") together without explicit supervision. Additionally, the model's performance remains stable even when video is downsampled, suggesting it learns the underlying concept of the event rather than just tracking frame-to-frame motion.

Conclusion and Future Work

SHERLock provides a robust framework for unsupervised hierarchical concept learning from passive demonstration data. While the $O(N^2)$ complexity of Soft-DTW currently limits the model to sequences of around 200 frames, it opens new avenues for automated tutorial generation and robot skill discovery. Future research will focus on improving fine-grained object grounding and scaling the architecture for even longer video sequences.

Summary updated

BibTeX
@inproceedings{roychowdhury2020unsupervised,
  author = {Sumegh Roychowdhury and Sumedh A. Sontakke and Nikaash Puri and Mausoom Sarkar and Milan Aggarwal and Pinkesh Badjatiya and Balaji Krishnamurthy and Laurent Itti},
  title = {{Unsupervised Hierarchical Concept Learning}},
  booktitle = {ICPR},
  year = {2020},
  doi = {10.48550/arxiv.2010.02556},
}
Figure