PACE: Predictive and Contrastive Embedding for Unsupervised Action Segmentation

Jiahao Wang, Jie Qin, Yunhong Wang, Annan Li

Introduction

Unsupervised Action Segmentation (UAS) aims to partition long, untrimmed videos into semantically meaningful action segments without the need for manual frame-by-frame annotations. This task is inherently challenging due to the high variability in action duration and visual appearance. Traditional approaches typically fall into two categories: clustering-based methods, which often suffer from over-segmentation by ignoring temporal flow, and prediction-based methods, which are prone to overfitting and struggle with long-term context.

To address these limitations, the PACE (Predictive And Contrastive Embedding) framework proposes a unified approach that leverages both the temporal predictability of video sequences and the semantic consistency of local clips.

The PACE Framework

The core of PACE is an auto-regressive Transformer encoder designed to capture long-range dependencies more effectively than traditional Recurrent Neural Networks (RNNs). The framework is trained using two complementary self-supervised objectives:

  1. Predictive Embedding: The model learns to forecast high-level representations of future frames. Since human actions are generally structured and predictable, a sudden spike in prediction error serves as a reliable indicator of an action boundary.
  2. Contrastive Embedding: Using a contrastive loss (InfoNCE), the model pulls temporally adjacent clips closer in the embedding space while pushing non-adjacent clips further apart. This ensures that frames within the same action segment share a consistent semantic representation.
The PACE architecture, illustrating the encoding process, the dual training objectives (Predictive and Contrastive Embedding), and the test-stage boundary detection pipeline.

During the inference phase, PACE fuses the prediction error and embedding similarity into a single signal. Action boundaries are then identified by detecting local extrema (peaks) in this fused signal, providing a robust mechanism for segmenting the video.

Overcoming Traditional Limitations

By combining these two objectives, PACE mitigates the weaknesses of prior methods. Clustering-based methods (a) often produce fragmented results because they lack temporal constraints. Prediction-based methods (b) can miss boundaries due to error propagation. PACE (c) achieves a "cleaner" segmentation that closely aligns with the Ground Truth (GT) by balancing local consistency with global predictability.

Conceptual comparison showing how PACE (c) improves upon clustering-based (a) and prediction-based (b) methods to produce segmentation results closer to the ground truth (GT).

Experimental Evaluation

The authors evaluated PACE on three benchmark datasets: Breakfast (cooking activities), 50Salads (long-duration salad preparation), and YouTube Instructions (YTI).

Key Results:

  • Breakfast Dataset: PACE achieved a 66.1% F1-score, representing a massive leap from the previous state-of-the-art (SSCAP) at 39.2%.
  • 50Salads: The model reached a 54.5% F1-score, significantly outperforming the previous best of 34.4% (ASAL).
  • Qualitative Performance: Visualizations confirm that PACE generates stable action segments, avoiding the "noisy" over-segmentation common in earlier unsupervised frameworks.

Conclusion

PACE represents a significant advancement in unsupervised action segmentation. By unifying predictive and contrastive learning within a Transformer-based architecture, it effectively captures both the boundaries and the internal consistency of actions. While the model currently requires a predefined number of action categories, its superior performance across diverse datasets suggests that these learned embeddings could be highly valuable for downstream tasks like automated video summarization and captioning.

Summary updated

BibTeX
@inproceedings{wang2022pace,
  author = {Jiahao Wang and Jie Qin and Yunhong Wang and Annan Li},
  title = {{PACE: Predictive and Contrastive Embedding for Unsupervised Action Segmentation}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/198},
}
Figure