Weakly-Supervised Action Localization with Expectation-Maximization Multi-Instance Learning

Zhekun Luo, Devin Guillory, Baifeng Shi, Wei Ke, Fang Wan, Trevor Darrell, Huijuan Xu

Abstract

Weakly-supervised action localization (WSAL) aims to identify action boundaries in videos using only video-level labels. Current attention-based Multi-Instance Learning (MIL) methods often suffer from the "completeness problem"—focusing only on the most discriminative frames—and violate fundamental MIL assumptions regarding negative bags. We propose a novel Expectation-Maximization (EM) framework that treats key instance selection as a latent variable. By alternating between generating hard pseudo-labels (E-step) and optimizing classification (M-step), our model achieves state-of-the-art performance on THUMOS14 and ActivityNet1.2 while significantly improving training efficiency.

Introduction

Action localization is a critical task in video understanding, traditionally requiring dense, frame-level annotations. To reduce labeling costs, weakly-supervised approaches leverage video-level tags. Most recent WSAL methods utilize attention-based MIL, where attention weights identify relevant clips. However, these models often fail to capture the full duration of an action, focusing instead on sparse, highly discriminative segments—a phenomenon known as the "completeness problem."

Conceptual overview of the EM-MIL framework.

Furthermore, current models often incorrectly apply attention to negative videos, which contradicts the MIL principle that negative bags contain only negative instances. By assigning varying weights to background clips, these models receive a noisy training signal that hinders localization accuracy.

Methodology: The EM-MIL Framework

We address these issues by formulating WSAL as an Expectation-Maximization problem. We introduce an assignment branch ($q_\phi$) to explicitly model the selection of key instances and a classification branch ($p_\theta$) to predict action categories.

Architecture

The model processes both RGB and optical flow features through I3D extractors. These features are fed into two parallel branches:

  1. Key Instance Assignment ($q_\phi$): Predicts the probability that a clip is a "key instance" of an action.
  2. Classification ($p_\theta$): Predicts the action class for each clip.
Detailed architecture of the EM-MIL framework.

The EM Procedure

Training alternates between two primary steps:

  • E-Step (Expectation): Using the current classification scores from $p_\theta$, we generate hard pseudo-labels $\hat{z}_t$ for each clip. Clips exceeding a dynamic threshold for the ground-truth class are labeled as key instances (1), while others are labeled as background (0). These pseudo-labels serve as targets to train the assignment branch $q_\phi$.
  • M-Step (Maximization): The assignment branch provides pseudo-labels $\hat{y}_{t,c}$ to supervise the classification branch $p_\theta$. This step ensures that negative videos are treated as purely negative, providing a cleaner training signal.

Key Insights

Hard vs. Soft Attention

A core contribution of this work is the shift from "soft" attention weights to "hard" pseudo-labels. Soft attention often collapses onto the most obvious frames too quickly. By using threshold-based hard assignment and starting with a broad assumption (initially labeling many clips as positive), the model maintains high recall. This "shrinkage" strategy allows the model to capture the full duration of an action, from preparation to aftermath.

Aligning with MIL Theory

Standard MIL assumes that in a negative bag, every instance is negative. Previous attention models often assigned varying weights to clips in negative videos, essentially trying to find "important" background clips. Our EM-MIL framework adheres strictly to MIL theory by treating all clips in negative videos as uniformly negative, which significantly reduces noise during training.

Experimental Results

We evaluated our framework on the THUMOS14 and ActivityNet1.2 benchmarks.

Performance

On THUMOS14, our model achieved a mean Average Precision (mAP) of 30.5% at a tIoU threshold of 0.5, representing a 3% improvement over previous state-of-the-art methods using identical features. Notably, performance gains were more pronounced at higher overlap thresholds (0.6 and 0.7), demonstrating superior localization accuracy and more complete action boundaries. On ActivityNet1.2, the model reached 37.4% [email protected], outperforming existing published results.

Efficiency

The EM-MIL framework is remarkably efficient. Training on THUMOS14 for 65 epochs takes approximately 65 seconds on two TITAN RTX GPUs. This speed is orders of magnitude faster than iterative refinement methods that require multiple forward-backward passes per epoch.

Discussion and Conclusion

While the EM-MIL framework effectively addresses the completeness problem, its "shrinkage" approach can sometimes lead to slight overestimation of action boundaries, potentially including frames immediately adjacent to the action. Additionally, while it excels at high-precision localization, performance at very low tIoU thresholds is slightly lower than some specialized competitors. Future work will focus on incorporating temporal dependencies between clips to further refine the EM process.

In summary, by aligning weakly-supervised learning with formal MIL theory through an EM framework, we provide a robust, accurate, and highly efficient solution for action localization.

Summary updated

BibTeX
@inproceedings{luo2020weakly,
  author = {Zhekun Luo and Devin Guillory and Baifeng Shi and Wei Ke and Fang Wan and Trevor Darrell and Huijuan Xu},
  title = {{Weakly-Supervised Action Localization with Expectation-Maximization Multi-Instance Learning}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58526-6\_43},
}
Figure