Abstract
Weakly Supervised Temporal Sentence Grounding (WSTSG) aims to localize specific video segments corresponding to a text query using only video-level annotations. Traditional contrastive learning approaches in WSTSG treat all non-target videos in a dataset as negative samples, which inadvertently introduces false negatives when semantically similar videos are present. This paper introduces Positive Sample Mining (PSM), a framework that identifies and leverages semantically similar videos as positive signals. By incorporating PSM-guided contrastive and rank losses, the model learns to pull similar samples closer while pushing dissimilar ones away. Experimental results on Charades-STA, ActivityNet Captions, and NExT-GQA demonstrate that PSM achieves state-of-the-art performance with minimal computational overhead.
Introduction
Temporal Sentence Grounding (TSG) is a critical task in video understanding, requiring the identification of precise start and end timestamps for actions described in natural language. While fully supervised methods are effective, they rely on expensive, manual frame-level annotations. Weakly Supervised (WSTSG) methods mitigate this by learning from video-level text-video pairs.
However, a significant bottleneck in current WSTSG models is their reliance on a simplistic contrastive learning paradigm. These models typically pull a matching text-video pair together in the feature space while pushing it away from all other videos in the training set. This approach fails to account for the fact that large datasets often contain multiple videos depicting the same or highly similar actions. Treating these semantically related samples as negatives confuses the optimization process and wastes valuable supervisory information.
Methodology
The proposed Positive Sample Mining (PSM) framework addresses the false negative problem by actively identifying "friends" within the training set. The method consists of three primary components:
1. Mining Positive Samples
To avoid the high computational cost of raw video matching, PSM uses text as a semantic bridge. Before training, a pre-trained text encoder (SentenceTransformer) extracts features for all queries. For any given anchor video, the system identifies the top-$k$ most similar queries to form a similar subset, while the remaining queries constitute the dissimilar subset.
2. PSM-Guided Contrastive Loss
Unlike standard contrastive losses that push all other samples away, this loss function is designed to pull the anchor video's predicted proposal closer to the mined similar subset. Simultaneously, it maintains the push against the dissimilar subset, ensuring a more nuanced and accurate semantic alignment.
3. PSM-Guided Rank Loss
To refine temporal boundaries, the model must distinguish the target action from background noise within the same video. The rank loss ensures that the mined similar samples are closer to the anchor proposal (the predicted correct segment) than they are to negative intra-video proposals (background segments).
Experimental Results
The authors evaluated PSM across several standard benchmarks, showing consistent improvements over existing state-of-the-art (SOTA) methods:
- Charades-STA: PSM achieved a 54.36% R@1 (IoU=0.5), outperforming the previous SOTA by 2.87%.
- ActivityNet Captions: The model reached 60.81% R@1 (IoU=0.5), a 1.52% improvement over previous methods.
- Grounded VideoQA (NExT-GQA): Integrating PSM with the FrozenBiLM model improved grounding accuracy (mIoP) by 1.7% and overall QA accuracy by 0.7%, demonstrating that better temporal grounding directly enhances downstream reasoning tasks.
Crucially, the retrieval step for mining positive samples is highly efficient, accounting for less than 1% of total training time due to its reliance on optimized vectorized operations.
Discussion and Conclusion
PSM demonstrates that acknowledging the inherent semantic similarities within a dataset provides a richer, more discriminative supervision signal for WSTSG. By using text queries to bridge the gap between videos, the framework avoids the computational pitfalls of raw video retrieval while significantly reducing the impact of false negatives.
While highly effective, the current iteration of PSM relies on global sentence semantics, which can be less effective for complex, multi-event queries. Future research may focus on decomposing these complex queries into sub-events to allow for more granular positive sample mining. Overall, PSM represents a significant step forward in making weakly supervised video understanding more robust and accurate.
Summary updated