Actionness Inconsistency-Guided Contrastive Learning for Weakly-Supervised Temporal Action Localization

Zhilin Li, Zilei Wang, Qinying LiuAAAI 2023

TL;DR

This paper introduces AICL, a novel approach for weakly-supervised temporal action localization that leverages inconsistencies between two specialized branches (class-aware and class-agnostic) to improve action detection. By using consistent segments to guide the learning of ambiguous, inconsistent segments through contrastive learning, AICL achieves state-of-the-art performance on challenging benchmarks.

What Problem Does This Paper Address?

Temporal action localization (TAL) aims to pinpoint the start and end times of actions within videos. While fully supervised methods achieve high accuracy, they require expensive, frame-level annotations. Weakly-supervised temporal action localization (WTAL) offers a more practical alternative by training with only video-level labels (i.e., knowing that an action occurred, but not when). However, this weak supervision leads to noisy predictions and challenges in accurately segmenting actions. Existing WTAL methods often use a two-branch architecture: a class-aware branch that learns category-specific features and a class-agnostic branch that captures general action cues. The ideal scenario is for these branches to agree on action regions. This paper highlights a critical issue: these branches often disagree, particularly in ambiguous segments that are difficult to classify. These disagreements, stemming from scene-related or action-related errors, hinder accurate localization. The paper's core problem is how to effectively leverage these disagreements to improve the model's understanding of ambiguous segments.

Methods

The proposed method, Actionness Inconsistency-guided Contrastive Learning (AICL), builds upon a two-branch architecture (class-aware and class-agnostic) and introduces several key innovations:

  • Identifying Consistent and Inconsistent Segments: AICL first defines "consistent" segments where both branches agree on action/background predictions and "inconsistent" segments where they disagree. These inconsistent segments are further categorized into "inconsistent action" (IA) and "inconsistent background" (IB) based on their activation scores.
  • Contrastive Learning for Ambiguous Segments: The core idea is to use the reliable, consistent segments (Class-Aware Action - CA, Class-Aware Background - CB) as anchors to refine the representations of the ambiguous inconsistent segments (IA, IB). AICL constructs contrastive learning pairs, for example, treating consistent action segments (CA) as positive examples for inconsistent action segments (IA) and consistent background segments (CB) as negative examples. This helps the model learn more discriminative features for these challenging regions.
  • Action Consistency Constraint: To prevent the two branches from diverging too much during training (which would lead to a lack of consistent segments for contrastive learning), AICL introduces an "action consistency constraint." This constraint encourages the predictions of the class-aware and class-agnostic branches to remain similar, ensuring a sufficient supply of consistent segments.
  • Multimodal Consistency Constraint: To further improve the robustness of the class-agnostic branch, a multimodal consistency constraint is added. This encourages consistency between the RGB and optical flow streams within the class-agnostic branch, acting as a form of soft pseudo-labeling.

The overall training objective is a combination of the action loss (La), class-agnostic loss (Lca), contrastive loss (Lc), multimodal consistency loss (Lmc), and action consistency loss (Lac).

Datasets

The paper evaluates AICL on three widely-used benchmarks for temporal action localization:

  • THUMOS14: A challenging dataset with 20 action classes.
  • ActivityNet v1.2: A larger dataset with 100 action classes.
  • ActivityNet v1.3: An even larger dataset with 200 action classes.

The authors do not introduce any new datasets.

Key Insights and Ideas

  • Inconsistency is Informative: The paper's central insight is that the disagreements between the class-aware and class-agnostic branches, often seen as a failure, are actually valuable signals. These inconsistencies highlight ambiguous regions that are crucial for improving localization accuracy.
  • Leveraging Reliable for Unreliable: The strategy of using well-defined, consistent segments to guide the learning of poorly-defined, inconsistent segments is a powerful transfer learning approach within the WTAL framework.
  • Balancing Divergence and Consistency: The action consistency constraint is a clever mechanism to ensure that the two branches don't diverge so much that they lose the ability to provide useful consistent samples for contrastive learning. This highlights the delicate balance needed in multi-branch architectures.
  • Multimodal Synergy: The multimodal consistency constraint demonstrates the benefit of encouraging different feature modalities (RGB and optical flow) to learn from each other, especially within the more general class-agnostic branch.

Key Results

AICL achieves state-of-the-art performance on the THUMOS14, ActivityNet v1.2, and ActivityNet v1.3 datasets.

  • THUMOS14: AICL outperforms previous methods, particularly in lower IoU thresholds, showing a significant improvement of about 2% in the low IoU range. It achieves an average mAP of 46.4% at IoU 0.1-0.7.
  • ActivityNet v1.2 & v1.3: AICL demonstrates substantial improvements over existing methods, significantly outperforming them on these datasets. For example, on ActivityNet v1.2, AICL achieves an average mAP of 29.9% (IoU 0.5-0.95), and on ActivityNet v1.3, it achieves 27.6%.
  • Ablation Studies: The paper shows that each proposed component (action loss, class-agnostic loss, contrastive loss, multimodal consistency, and action consistency) contributes positively to the overall performance. The accuracy of the action-background binary classification for the derived segments (Abin and Abin) also improves significantly with AICL.
  • Qualitative Results: Visualizations show that AICL effectively mitigates scene-related errors in the class-aware branch and label-category-independent action activation in the class-agnostic branch, leading to more accurate action localization.

Limitations and Future Work

  • Reliance on Two Branches: The method's effectiveness is tied to the performance of its two-branch architecture. If one branch is fundamentally flawed, it could negatively impact the entire system.
  • Hyperparameter Tuning: The paper mentions several hyperparameters (γ, k, q, τ) that require careful tuning, which can be a common challenge in complex deep learning models.
  • Future Work: While not explicitly detailed, the success of AICL suggests future work could explore more sophisticated ways to define and leverage inconsistencies, potentially across more than two branches or by incorporating temporal context more deeply into the contrastive learning process. The paper also implicitly suggests that further improvements in feature extraction could further boost performance.

Summary updated

BibTeX
@inproceedings{li2023actionness,
  author = {Zhilin Li and Zilei Wang and Qinying Liu},
  title = {{Actionness Inconsistency-Guided Contrastive Learning for Weakly-Supervised Temporal Action Localization}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  url = {https://openreview.net/forum?id=RHFiAPl-w-},
}
Figure