Multi-Scale Self-Contrastive Learning with Hard Negative Mining for Weakly-Supervised Query-based Video Grounding

Shentong Mo, Daizong Liu, Wei HuarXiv 2022 · DOI

Introduction

Query-based video grounding aims to localize the start and end timestamps of specific activities in untrimmed videos based on natural language descriptions. While fully supervised models achieve high accuracy, they rely on expensive, manually-annotated segment labels. Weakly-supervised methods, which only require video-level labels (knowing a sentence occurs somewhere in the video), offer better scalability but often struggle with precision.

Existing weakly-supervised approaches typically rely on "segment proposals"—pre-defined video chunks that the model ranks. This approach suffers from computational redundancy and the "boundary problem," where frames immediately preceding or following an action are difficult to distinguish from the action itself. To overcome these limitations, this paper introduces Multi-Scale Self-Contrastive Learning (MSCL).

Methodology

The MSCL framework shifts away from coarse segment proposals toward a fine-grained, frame-by-frame analysis combined with a robust contrastive learning strategy.

The MSCL architecture overview, illustrating the multi-modal encoding, frame-wise matching score prediction, and the multi-scale self-contrastive learning modules.

1. Multi-Modal Encoding and Frame-wise Matching

The system utilizes a C3D network for visual features and GloVe embeddings for text. A video-query attention mechanism aligns these modalities to understand the relationship between specific words and visual cues. Unlike proposal-based methods, MSCL predicts a matching score and a "contribution weight" for every single frame, allowing for significantly more precise boundary detection.

2. Multi-Scale Self-Contrastive Learning

The core of the framework is a self-contrastive learning module that operates at two scales:

  • Frame-scale Mining: The model identifies frames with high scores that lie outside the target segment (such as boundary frames) and treats them as "hard negatives" to sharpen its discrimination.
  • Segment-scale Mining: It compares the best-predicted segment against other parts of the video to ensure global consistency.

3. Iterative Coarse-to-Fine Strategy

MSCL employs an iterative training process with dynamic thresholding. Initially, the model learns to distinguish "easy" negatives. As training progresses, it automatically adjusts its thresholds to hunt for more subtle differences between frames, effectively suppressing hard negatives that look similar to the target but are contextually incorrect.

Qualitative results showing the evolution of frame-wise scores across training epochs. As the model iterates, it successfully suppresses hard negatives and refines the localization boundaries.

Experimental Results

The model was evaluated on two major benchmarks: Charades-STA (indoor activities) and ActivityNet-Caption (diverse outdoor activities). MSCL significantly outperformed previous state-of-the-art (SOTA) weakly-supervised methods:

  • Charades-STA: MSCL achieved 43.15% R@1 (IoU=0.5), a substantial improvement over the previous SOTA of 33.21%.
  • ActivityNet-Caption: The model reached 38.23% R@1 (IoU=0.5), outperforming the previous best by nearly 7 percentage points.

Ablation studies confirmed that both frame-scale and segment-scale mining are essential for these performance gains.

Conclusion

By replacing redundant segment proposals with dense frame-wise scoring and an iterative hard negative mining strategy, MSCL sets a new standard for weakly-supervised video grounding. While the model currently relies on pre-trained features like C3D, future work could involve end-to-end training with modern vision-language backbones to further enhance localization accuracy.

Summary updated

BibTeX
@misc{mo2022multi,
  author = {Shentong Mo and Daizong Liu and Wei Hu},
  title = {{Multi-Scale Self-Contrastive Learning with Hard Negative Mining for Weakly-Supervised Query-based Video Grounding}},
  year = {2022},
  eprint = {2203.03838},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.03838},
}
Figure