Abstract
Sequential video understanding, as an emerging video understanding task, has driven lots of researchers' attention because of its goal-oriented nature. This paper studies weakly supervised sequential video understanding where the accurate time-stamp level text-video alignment is not provided. We solve this task by borrowing ideas from CLIP. Specifically, we use a transformer to aggregate frame-level features for video representation and use a pre-trained text encoder to encode the texts corresponding to each action and the whole video, respectively. To model the correspondence between text and video, we propose a multiple granularity loss, where the video-paragraph contrastive loss enforces matching between the whole video and the complete script, and a fine-grained frame-sentence contrastive loss enforces the matching between each action and its description. As the frame-sentence correspondence is not available, we propose to use the fact that video actions happen sequentially in the temporal domain to generate pseudo frame-sentence correspondence and supervise the network training with the pseudo labels. Extensive experiments on video sequence verification and text-to-video matching show that our method outperforms baselines by a large margin, which validates the effectiveness of our proposed approach.
Introduction
Sequential videos—such as cooking tutorials, laboratory procedures, or assembly guides—are inherently goal-oriented. To understand them, a model must recognize a series of sub-actions in a specific order. The gold standard for training such models usually involves "fully supervised" data, where every sub-action has a precise start and end timestamp. However, human labeling at this level is incredibly time-consuming and expensive. While these videos often come with narrations or scripts, the text is rarely perfectly aligned with the visual action (e.g., a chef might describe a step before actually performing it).
This paper addresses the challenge of Weakly Supervised Video Representation Learning: training a model to understand the steps of a task using only a video and a list of its steps, without knowing exactly when each step occurs.
Methodology
The proposed framework, WeakSVR, builds on the foundations of Contrastive Language-Image Pre-training (CLIP), extending it to handle the temporal complexities of sequential video.
Architecture
The system utilizes a pre-trained CLIP ViT-B backbone for vision and a frozen CLIP text encoder for language. A Transformer Encoder (TE) aggregates frame-level features to capture temporal context, while the text encoder processes both individual instructional sentences and the complete paragraph script.
Multiple Granularity Contrastive Loss
The model is trained using two levels of supervision:
- Coarse-grained Loss ($L_{coarse}$): A global loss that ensures the entire video representation matches the entire paragraph description.
- Fine-grained Loss ($L_{fine}$): A local loss that attempts to match individual frames to specific sentences in the script.
Pseudo-Label Generation
Since ground-truth alignment is missing, the authors leverage the "essential hypothesis" of temporal order: if frame $A$ corresponds to step 1, then frame $A+1$ must correspond to either step 1 or a subsequent step. This temporal constraint is used to generate pseudo-labels via several methods, including Maximum-index sorting, the Viterbi Algorithm, and uniform Splitting. By using Gumbel-Softmax, the selection process becomes differentiable, allowing the network to learn from these pseudo-alignments during training.
Experiments and Results
The model was evaluated on several datasets, including COIN-SV, Diving-SV, and a newly introduced CSV-Matching benchmark for text-to-video retrieval.
Key results include:
- Sequence Verification (CSV Dataset): In the weakly supervised setting, WeakSVR achieved an AUC of 79.80%, significantly outperforming the previous state-of-the-art (CAT) at 70.63%.
- Text-to-Video Matching: On the CSV-Matching benchmark, the model achieved 65.23% AUC, beating the CLIP+Transformer baseline (62.67%) and MIL-NCE (60.02%).
- Ablation Success: Adding the fine-grained loss provided a 2.6% performance boost over using the global coarse-grained loss alone, proving that the pseudo-alignment strategy effectively captures discriminative sub-action features.
Conclusion
WeakSVR demonstrates that the inherent temporal order of tasks serves as a powerful prior for weakly supervised learning. By forcing the model to respect the sequence of the script, it can self-correct frame-sentence alignments without manual timestamps. While repetitive actions remain a limitation for linear alignment assumptions, this approach provides a scalable path forward for goal-oriented video understanding.
Summary updated