Abstract
Dense Video Captioning (DVC) is a challenging task that requires models to both localize multiple events in a video and generate descriptive captions for each. Training such models under weak supervision—using only video-level captions without temporal timestamps—is notoriously difficult. We present ILCACM, a framework that introduces a novel Complementary Masking paradigm. By ensuring that captions generated from a masked event and its inverse (the rest of the video) are complementary, the model implicitly learns to align visual events with textual descriptions. Our method achieves state-of-the-art performance on ActivityNet Captions, YouCook2, and ViTT benchmarks, rivaling some fully-supervised approaches in accuracy and efficiency.
Introduction
Weakly-Supervised Dense Video Captioning (WSDVC) aims to train models using only sequence-level descriptions (e.g., "A man walks to the bars," "He performs a routine"). Traditionally, this has been approached through complex iterative reconstruction cycles or by relying on external, pre-trained proposal detectors to guess event boundaries. As illustrated in Figure 1, these methods are often computationally expensive and struggle to effectively align the visual "where" with the textual "what."
Methodology: The Complementary Masking Paradigm
The core innovation of ILCACM is the shift from explicit proposal searching to an implicit alignment strategy based on "part-and-whole" logic. The system utilizes a spatial-temporal encoder (CLIP + Transformer) and a GPT-2 based decoder.
Dual-Mode Captioning and Differentiable Masking
The model operates in two primary modes: Full Video Mode, which generates a global narrative, and Masked Video Mode, which focuses on specific temporal regions. To define these regions, the model predicts a center ($\mu$) and a width ($\sigma$) for each event to create a Gaussian mask. Unlike hard binary masks, these continuous functions are differentiable, allowing the model to update localization parameters directly through backpropagation.
The Complementary Constraint
This is the central mechanism of the framework. For any predicted event location, the model creates two views:
- Positive Mask ($M_i$): Focuses on the event to generate its specific caption.
- Negative Mask ($1 - M_i$): Focuses on everything except that event to generate all other captions.
If the model can successfully describe what is inside the mask and what is left outside, it has effectively isolated the event. This forces the localization and captioning heads to align implicitly. To prevent the model from predicting redundant masks, a Diversity Loss encourages the masks to cover distinct parts of the video.
Experiments and Key Results
The authors evaluated ILCACM on three key benchmarks: ActivityNet Captions, YouCook2, and ViTT. The latter two datasets provide a robust test of the model's generalization across sequential cooking steps and diverse short-form content.
- State-of-the-Art Performance: On ActivityNet Captions, ILCACM achieved a CIDEr score of 33.42 and a SODA score of 6.08, outperforming previous weakly-supervised leaders like EC-SL and PWS-DVC.
- Competitive with Full Supervision: Remarkably, the model achieved results competitive with some fully-supervised methods (such as PDVC), despite never seeing a ground-truth timestamp during training.
- Ablation Insights: Studies confirmed that soft Gaussian masks significantly outperform hard binary masks, as the latter break the end-to-end learning of event boundaries.
Conclusion
ILCACM demonstrates that implicit alignment via complementary masking is a powerful alternative to cumbersome proposal-based pipelines. By leveraging the "power of the inverse" through negative masking, the model ensures that background noise and unrelated events do not leak into specific event descriptions. While future work may explore scaling to larger vision-language backbones, ILCACM currently offers a highly efficient and effective solution for large-scale video understanding.
Implementation code is available at: https://github.com/ShipingGe/ILCACM
Summary updated