Temporally Grounding Natural Sentence in Video

Jingyuan Chen, Xinpeng Chen, Lin Ma, Zequn Jie, Tat-Seng Chua

Abstract

Natural Sentence Grounding in Video (NSGV) involves localizing specific temporal segments in untrimmed videos based on natural language queries. Traditional methods often rely on computationally expensive sliding windows or coarse global matching, leading to inefficiencies and loss of fine-grained detail. This paper introduces Temporal GroundNet (TGN), a single-pass architecture that utilizes a "frame-by-word" attentive interaction model. TGN achieves state-of-the-art accuracy on benchmarks like DiDeMo and ActivityNet while processing video at 1,363 frames per second, significantly outperforming previous methods in both speed and precision.

Introduction

The task of Natural Sentence Grounding in Video (NSGV) requires a system to identify the start and end timestamps of an action described by a sentence within a long, untrimmed video. For instance, given the query "A woman reels a kite back in toward herself," the model must pinpoint the exact segment where this occurs.

Existing approaches typically suffer from two primary drawbacks. First, they often employ coarse matching, projecting entire video segments and sentences into a common space, which ignores the evolving relationship between specific words and frames. Second, they rely on sliding-window mechanisms that exhaustively compare queries against thousands of overlapping candidates, creating a significant efficiency bottleneck.

Figure 1: Comparison of traditional grounding approaches (b) which use global common spaces, versus the proposed TGN approach (c) which employs frame-by-word interaction.

The Temporal GroundNet (TGN) Architecture

TGN addresses these issues through a dynamic, single-stream architecture composed of three main modules:

  • Encoder: Two separate LSTMs process video frames and sentence words independently to create contextual representations for both modalities.
  • Interactor: The core innovation is the interaction LSTM (i-LSTM). At each video frame, it uses a "frame-by-word" attention mechanism to identify which words in the sentence are most relevant to that specific moment. This allows the model to capture how the relationship between text and video evolves over time.
  • Grounder: Instead of re-scanning the video for every possible segment length, the Grounder simultaneously scores a set of $K$ temporal candidates (at different scales) that end at the current frame, enabling grounding in a single processing pass.
Figure 2: Detailed TGN architecture showing the flow from the Encoder to the Interactor (i-LSTM) and the multi-scale Grounder.

Experiments and Results

TGN was evaluated on three diverse, publicly available benchmarks: DiDeMo, TACoS, and ActivityNet Captions.

Accuracy: On the DiDeMo dataset, TGN achieved a Mean IoU of 42.97%, significantly higher than previous bests. The model's attention weights are highly interpretable; for a sentence like "forest in a waterfall," the model correctly places high attention on the word "waterfall" only during the frames where the waterfall is visible.

Efficiency: TGN demonstrates exceptional speed, processing video at 1,363 FPS on a Titan M40 GPU. This is approximately 2.4x to 4.7x faster than preceding models like CTRL (562 FPS) and MCN (286 FPS), making it highly suitable for real-time applications.

Conclusion

TGN represents a significant step forward in video grounding by combining fine-grained temporal attention with a highly efficient single-pass scoring mechanism. While the model currently relies on fixed candidate scales, future work may focus on refining boundary precision through regression and integrating feature extraction directly into the end-to-end pipeline.

Summary updated

BibTeX
@inproceedings{chen2018temporally,
  author = {Jingyuan Chen and Xinpeng Chen and Lin Ma and Zequn Jie and Tat-Seng Chua},
  title = {{Temporally Grounding Natural Sentence in Video}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1015},
}
Figure