NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

D2-Net: Weakly-Supervised Action Localization via Discriminative Embeddings and Denoised Activations

Sanath Narayan, Hisham Cholakkal, Munawar Hayat, Fahad Shahbaz Khan, Ming-Hsuan Yang, Ling Shao · DOI

Abstract

Weakly-supervised temporal action localization (WTAL) aims to identify action boundaries in untrimmed videos using only video-level labels. However, existing methods often produce noisy temporal class activation maps (TCAMs) that struggle to distinguish foreground actions from background clutter. We propose D2-Net, which introduces a novel dual-loss formulation: a discriminative loss to separate latent embeddings and a mutual information-based denoising loss to refine temporal activations. Our approach significantly reduces false positives and achieves state-of-the-art performance on benchmarks including THUMOS14 and Charades.

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 are effective, they require expensive frame-level annotations. Weakly-supervised TAL (WTAL) mitigates this by training on video-level tags. The primary challenge in WTAL is the inherent noise in generated Temporal Class Activation Maps (TCAMs), which often leads to false positives where background segments are misclassified as actions. D2-Net addresses this by explicitly modeling foreground-background separation and denoising the resulting activations.

Methodology

D2-Net utilizes a standard I3D backbone to extract RGB and optical flow features, which are then processed through a temporal convolution network. The core innovation lies in its training objective, which combines two specialized loss terms.

D2-Net architecture overview featuring the dual-loss formulation for foreground-background separation and denoising.

Discriminative Loss ($\mathcal{L}_{Dis}$)

The discriminative loss employs a top-down attention mechanism to pull foreground and background latent embeddings apart in the feature space. To address the class imbalance typical of untrimmed videos—where background snippets far outnumber action snippets—the authors incorporate a focal loss-inspired penalty. This forces the model to prioritize learning from "hard" examples, improving the clarity of action boundaries.

Denoising Loss ($\mathcal{L}_D$)

The denoising loss uses bottom-up attention to clean TCAMs by maximizing Mutual Information (MI) between predicted activations and generated pseudo-labels. This process occurs at both intra-video (within a single video) and inter-video (across a mini-batch) levels.

To overcome the memory limitations of standard Determinant-based Mutual Information (DMI) in high-dimensional video tasks, the authors introduce pseudo-Determinant based Mutual Information (pDMI). By minimizing the condition number of the joint distribution matrix instead of calculating a full-rank determinant, pDMI enables effective denoising even with small batch sizes.

Key Results

D2-Net demonstrates significant improvements across multiple benchmarks. On THUMOS14, it achieves 36.0% mAP at IoU=0.5, a 2.3% absolute improvement over previous state-of-the-art methods. It also shows strong generalization on ActivityNet1.2 and Charades.

Qualitative comparison of TCAMs generated by different loss configurations against ground truth.

Ablation studies highlight the efficacy of the dual-loss approach. The inclusion of the denoising loss ($\mathcal{L}_D$) alongside the discriminative loss ($\mathcal{L}_{Dis}$) leads to a 28% reduction in false positives. Qualitative analysis shows that D2-Net produces much cleaner activations that closely align with ground-truth action segments compared to baseline models.

Conclusion

D2-Net effectively tackles the noise problem in weakly-supervised action localization. By combining discriminative embedding separation with a novel MI-based denoising strategy, the model achieves superior localization accuracy. While challenges remain in handling motionless pauses within actions or visually similar backgrounds, D2-Net sets a new standard for WTAL performance and provides a practical framework for MI-based optimization in memory-constrained video tasks.

Summary updated

BibTeX
@inproceedings{narayan2020d,
  author = {Sanath Narayan and Hisham Cholakkal and Munawar Hayat and Fahad Shahbaz Khan and Ming-Hsuan Yang and Ling Shao},
  title = {{D2-Net: Weakly-Supervised Action Localization via Discriminative Embeddings and Denoised Activations}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2020},
  doi = {10.1109/iccv48922.2021.01335},
}
Figure