UBoCo: Unsupervised Boundary Contrastive Learning for Generic Event Boundary Detection

Hyolim Kang, Jinwoo Kim, Taehyun Kim, Seon Joo Kim · DOI

Abstract

Generic Event Boundary Detection (GEBD) is a fundamental task in video understanding that involves identifying natural transition points between semantic events. Traditional approaches often struggle because they rely on features optimized for object recognition rather than temporal transitions. We introduce UBoCo, an unsupervised framework that leverages Temporal Self-similarity Matrices (TSM) and a novel Boundary Contrastive (BoCo) loss. By using a Recursive TSM Parsing (RTP) algorithm, UBoCo effectively filters out class-specific noise and focuses on the structural rhythm of video. Remarkably, our unsupervised model outperforms previous state-of-the-art supervised methods on the Kinetics-GEBD benchmark.

The Challenge of Generic Event Boundary Detection

Humans perceive video as a continuous stream of discrete events with natural boundaries. However, most AI models process video in fixed-length snippets or focus on specific action classes. GEBD aims to bridge this gap by detecting semantic boundaries regardless of the specific action occurring.

A major hurdle in GEBD is that standard feature extractors (like ResNet-50) are typically trained for image classification. These features are often "noisy" for boundary detection because they prioritize what is in a frame over when a change occurs. Furthermore, existing solvers often fail to capture the subjective and hierarchical nature of how humans perceive event transitions.

The UBoCo Framework

The core of the UBoCo framework is the Temporal Self-similarity Matrix (TSM). A TSM is a heatmap where each coordinate $(i, j)$ represents the similarity between frame $i$ and frame $j$. This representation acts as an information bottleneck, forcing the model to ignore object-specific details and focus on the temporal structure.

The UBoCo framework architecture, illustrating the flow from video frames to boundary prediction via TSM and Recursive TSM Parsing.

The framework introduces two key innovations:

  1. Recursive TSM Parsing (RTP): A divide-and-conquer algorithm that searches for diagonal patterns in the TSM indicating similarity breaks. It recursively splits the TSM into smaller segments, mirroring the hierarchical way humans perceive events (e.g., a "tennis match" containing "serves").
  2. Boundary Contrastive (BoCo) Loss: This loss function trains the video encoder to ensure that frames within the same segment are similar, while frames across a boundary are distinctly dissimilar.

Results and the 'Sharpening' Effect

UBoCo demonstrates that unsupervised learning can be more effective than supervised learning for GEBD. On the Kinetics-GEBD benchmark, UBoCo achieved an F1 score of 70.3%, a massive improvement over the previous unsupervised leader (39.6%) and even surpassing the previous supervised state-of-the-art (62.5%).

Comparison of Temporal Self-similarity Matrices (TSM) before and after training with BoCo loss, showing the sharpening of event boundaries.

As training progresses, the TSMs become visibly "sharper." The BoCo loss acts as a lens, focusing the encoder on the specific temporal features that define a transition. When human labels are available, a supervised variant (SBoCo) further pushes performance to 78.7% F1, setting a new record.

Conclusion

UBoCo shifts the paradigm of event boundary detection from object-centric classification to temporal self-similarity. By focusing on the inherent structure of video through TSMs and contrastive learning, UBoCo provides a robust, unsupervised solution that captures the subjective nature of human event perception. Future work will explore learnable kernels and application to longer-form content.

Summary updated

BibTeX
@inproceedings{kang2022uboco,
  author = {Hyolim Kang and Jinwoo Kim and Taehyun Kim and Seon Joo Kim},
  title = {{UBoCo: Unsupervised Boundary Contrastive Learning for Generic Event Boundary Detection}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.01944},
}
Figure