CoLA: Weakly-Supervised Temporal Action Localization With Snippet Contrastive Learning

Can Zhang, Meng Cao, Dongming Yang, Jie Chen, Yuexian Zou

Introduction

Temporal Action Localization (TAL) is the task of identifying the start and end times of specific actions within long, untrimmed videos. While fully supervised methods achieve high accuracy, they require labor-intensive frame-level annotations. Weakly-Supervised TAL (WS-TAL) offers a more scalable alternative by using only video-level category labels during training.

However, WS-TAL faces a significant hurdle known as the "single snippet cheating issue." Most models process video snippets individually, leading to misclassifications at action boundaries. These boundary snippets are often visually ambiguous or transitional ("hard" snippets), making them indistinguishable from the background when viewed in isolation. This results in fragmented action intervals or "bleeding" boundaries where the background is mistaken for action.

Comparison of temporal action localization results. CoLA correctly identifies continuous action intervals by comparing hard boundary snippets with easy examples, whereas baselines suffer from fragmented predictions.

The CoLA Framework

To address these challenges, the authors propose CoLA (Contrastive Learning for Localizing Actions). The core philosophy of CoLA is that the model should "learn by comparing"—specifically, by refining the representations of difficult boundary snippets against clear, unambiguous examples.

Methodology

The CoLA architecture integrates contrastive learning into the standard WS-TAL pipeline through three primary components:

  1. Hard Snippet Mining: Since frame-level labels are unavailable, CoLA identifies "hard" snippets by analyzing the model's predicted "actionness" scores. By applying temporal morphological operations (dilation and erosion), the system designates snippets in the "differential areas" near predicted boundaries as hard action or hard background snippets.
  2. Easy Snippet Mining: Snippets with the highest and lowest actionness scores are selected as "easy action" and "easy background" anchors, respectively. These serve as reliable references for the contrastive objective.
  3. Snippet Contrast (SniCo) Loss: This novel loss function forces the network to pull "hard action" features closer to "easy action" features in the embedding space while pushing them away from "easy background" features. This refinement process enables the model to learn more discriminative representations for tricky boundary frames.
The CoLA framework architecture, featuring (a) feature embedding, (b) actionness modeling, (c) hard and easy snippet mining via morphological operations, and (d) training with the Snippet Contrast (SniCo) loss.

Experimental Results

CoLA was evaluated on two major benchmarks, achieving state-of-the-art (SOTA) performance for weakly-supervised methods:

  • THUMOS’14: CoLA achieved 32.2% mAP at an IoU threshold of 0.5, a substantial improvement over previous leaders like DGAM (28.8%) and TSCN (28.7%).
  • ActivityNet v1.2: The model reached an Average mAP of 26.1%, outperforming the previous best of 24.4%.

Ablation Studies confirmed the importance of the contrastive component: removing the SniCo loss caused the [email protected] on THUMOS'14 to drop from 32.2% to 24.7%, highlighting it as the primary driver of performance gains.

Discussion and Limitations

The success of CoLA demonstrates that contextual comparison acts as a powerful inductive bias for temporal localization. By focusing contrastive learning on the most error-prone zones—the boundaries—the model effectively "cleans up" its internal feature representations, creating tighter and more separable clusters of action versus background data.

Despite its strengths, CoLA has limitations. Its hard snippet mining depends on the quality of initial predictions; if the base classifier is poor at the start, the mined snippets may be noisy. Additionally, the morphological masks used for mining are fixed hyperparameters, which may not be optimal for actions of varying lengths. Future work may involve more sophisticated sampling strategies or integrating self-supervised pre-training to further enhance snippet robustness.

Summary updated

BibTeX
@inproceedings{zhang2021cola,
  author = {Can Zhang and Meng Cao and Dongming Yang and Jie Chen and Yuexian Zou},
  title = {{CoLA: Weakly-Supervised Temporal Action Localization With Snippet Contrastive Learning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01575},
}
Figure