Weakly Supervised Temporal Adjacent Network for Language Grounding

Yuechen Wang, Jiajun Deng, Wengang Zhou, Houqiang Li

TL;DR

Temporal language grounding usually requires expensive, frame-by-frame human annotations to match text queries to specific video segments. This paper introduces WSTAN (Weakly Supervised Temporal Adjacent Network), a novel framework that accurately localizes video moments using only video-level paragraph descriptions during training. By combining a Multiple Instance Learning (MIL) approach with a self-discriminating loss and a complementary refinement branch, WSTAN achieves state-of-the-art weakly supervised performance, even rivaling some fully supervised methods.

What Problem Does This Paper Address?

Temporal Language Grounding (TLG)—also known as moment retrieval—asks an AI to find the exact start and end times of a video segment that corresponds to a specific text query (e.g., "a person is smiling in the mirror").

Historically, training these models required fully supervised datasets where humans manually annotated the exact start and end timestamps for every sentence. This is incredibly labor-intensive and prone to subjective human error. To fix this, researchers have shifted to weakly supervised TLG, where the model is only given an untrimmed video and a list of sentences describing things that happen somewhere in the video, without timestamps.

The challenge? Existing weakly supervised methods struggle with temporal precision. Because they rely on simple cross-modal similarity (matching text to video frames), they often just retrieve clips containing distinct objects but fail to capture the contextual boundaries (like actions or postures) needed to pinpoint exact start and end times.

Methods

The authors formulate the problem as a Multiple Instance Learning (MIL) task. The video is divided into clips, and a 2D map of all possible candidate moments (start/end combinations) is generated. If the video-level text matches the video, the "bag" of candidate moments is positive; the model must figure out which specific moment is the true positive.

To make this work, WSTAN introduces three major innovations:

  1. Paragraph-Level Input: Instead of feeding the model one sentence at a time during training, WSTAN concatenates all descriptions for a video into a single paragraph. This forces the model to learn a wider variety of semantics rather than taking shortcuts on easy-to-spot objects.
  2. Self-Discriminating Loss: A standard MIL classifier often highlights a blurry, overly long segment of the video. WSTAN takes the peak prediction on the 2D candidate map and generates "soft pseudo-labels" to penalize adjacent, overlapping candidates. This forces the model to be highly temporally precise.
  3. Complementary Branch: A pure classification objective tends to ignore abstract concepts (like "running" or "holding") if a distinct object (like "dog") is enough to classify the clip. WSTAN adds a second prediction head, supervised by the first branch's pseudo-labels, to explicitly "rediscover" and refine these easily ignored, semantically meaningful clips.

Datasets

The authors evaluated WSTAN on three standard benchmark datasets:

  • ActivityNet-Captions: A large-scale, open-domain dataset with long videos (averaging ~118 seconds).
  • Charades-STA: A dataset focused on indoor, everyday activities with shorter videos (averaging ~30 seconds).
  • DiDeMo: A dataset of Flickr videos trimmed to a maximum of 30 seconds. Because of how it's structured, it is evaluated as a candidate ranking problem (choosing from 21 possible moments).

Key Insights and Ideas

  • Classification vs. Localization Tension: The authors realized that training a model just to classify if a text matches a video actively harms temporal boundary prediction. The model gets "lazy" and only looks for highly distinct objects. The dual-branch design elegantly solves this: one branch focuses on classification, while the complementary branch focuses on semantic recall.
  • Paragraphs Prevent Shortcuts: By grouping all text queries into a single paragraph during training, the influence of simple, common descriptions is diluted. The model is forced to learn the semantics of every sentence to succeed, drastically improving its cross-modal alignment.
  • Soft Pseudo-labels Work: Hard pseudo-labels in weakly supervised learning often cause models to confidently learn the wrong thing. By using Intersection-over-Union (IoU) to create soft pseudo-labels, WSTAN safely bootstraps its own temporal precision without collapsing.

Key Results

WSTAN significantly outperforms previous state-of-the-art weakly supervised methods (like SCN, WSLLN, and TGA) across the board:

  • ActivityNet-Captions: Achieved 30.01% at Recall@1 (IoU=0.5), outperforming the previous best (SCN at 29.22%).
  • Charades-STA: Achieved 29.35% at Recall@1 (IoU=0.5), a massive leap over SCN's 23.58%.
  • DiDeMo: Achieved a Recall@1 of 19.40%, which impressively matches the performance of 2D-TAN, a fully supervised baseline.
  • Ablation Studies: Removing the complementary branch caused performance on strict metrics (high IoU requirements) to plummet, proving its necessity for precise boundary drawing.

Limitations and Future Work

The authors note a few limitations. First, on datasets with very short videos and few candidate clips (like DiDeMo), the 2D temporal adjacent network struggles to model context and tends to default to predicting single-clip moments. Second, while the paragraph-input strategy works great, the model's performance drops slightly when forced to train on single sentence-video pairs, indicating that their "soft matching" strategy for single queries needs refinement.

For future work, the authors suggest exploring better soft-matching strategies for single queries and applying this iterative, complementary branch refinement mechanism to other weakly supervised tasks, like spatial visual grounding and semantic segmentation.

Summary updated

BibTeX
@article{wang2022weakly,
  author = {Yuechen Wang and Jiajun Deng and Wengang Zhou and Houqiang Li},
  title = {{Weakly Supervised Temporal Adjacent Network for Language Grounding}},
  journal = {IEEE Trans. Multimedia},
  year = {2022},
  url = {https://openreview.net/forum?id=QUZ1z8kUAl},
}
Figure