Context-Aware Biaffine Localizing Network for Temporal Sentence Grounding

Daizong Liu, Xiaoye Qu, Jianfeng Dong, Pan Zhou, Yu Cheng, Wei Wei, Zichuan Xu, Yulai Xie

Abstract

Temporal Sentence Grounding (TSG) aims to localize specific activities in untrimmed videos based on natural language queries. Traditional methods often suffer from "timestamp confusion" or fail to distinguish between visually similar actions due to a lack of context. This paper presents the Context-aware Biaffine Localizing Network (CBLN), which jointly models start and end boundaries using a biaffine mechanism. By integrating multi-scale local and global contexts, CBLN effectively captures both fine-grained boundary details and long-range temporal dependencies. Evaluations on ActivityNet Captions, TACoS, and Charades-STA demonstrate that CBLN achieves state-of-the-art performance while maintaining computational efficiency.

Introduction

Temporal Sentence Grounding (TSG) involves identifying the start and end timestamps of an activity described by a natural language query within an untrimmed video. This task is challenging due to two primary issues in existing literature: proposal-based methods are often computationally heavy and limited by proposal quality, while regression-based methods frequently treat boundaries independently, leading to logical inconsistencies where a predicted end precedes a start.

Furthermore, contextual ambiguity—such as distinguishing between repeated actions—requires both local precision and global awareness. For instance, a query like "the woman pulls on a rowing machine for a second time" requires the model to understand the global temporal structure of the video to identify which specific instance is being requested.

Overview of the TSG task and the importance of local and global context in resolving ambiguity.

The CBLN Architecture

The Context-aware Biaffine Localizing Network (CBLN) addresses these challenges by shifting from independent boundary regression to a joint scoring strategy. The architecture consists of several key modules:

  1. Feature Extraction and Multi-Modal Self-Attention (MMSA): Visual and textual features are extracted and then fused using MMSA. This ensures that the video representation is "query-guided," focusing on visual elements relevant to the specific natural language description.
  2. Multi-Context Biaffine Localization (MCBL): This module enriches frame representations by aggregating local context (adjacent frames for boundary precision) and global context (the entire video for temporal reasoning).
  3. Biaffine Localization: Inspired by dependency parsing in NLP, the model employs a biaffine mechanism to generate a scoring matrix for all possible $(i, j)$ start-end pairs simultaneously. This joint modeling ensures that the predicted segment is logically sound.
The complete CBLN pipeline, featuring the multi-modal feature extractor and the multi-context biaffine localization modules.

Experimental Results

CBLN was evaluated on three major benchmarks: ActivityNet Captions, TACoS, and Charades-STA.

  • ActivityNet Captions: Achieved a significant improvement in R@1 (IoU=0.7) at 27.60%, compared to the previous state-of-the-art of 24.36%.
  • TACoS: On this challenging dataset featuring long videos with similar cooking actions, CBLN reached 27.65% R@1 (IoU=0.5), outperforming 2D-TAN.
  • Efficiency: Despite scoring all pairs, CBLN is more efficient than some proposal-based competitors, using less memory and providing higher accuracy.

Ablation studies confirmed that both local and global context modules are essential; removing either leads to a measurable performance drop, proving that both "fine-grained" and "big-picture" views are necessary for the task.

Conclusion

CBLN demonstrates that joint boundary modeling via a biaffine mechanism, combined with multi-scale contextual awareness, significantly advances the state of the art in temporal sentence grounding. By effectively addressing the "second time" problem through global context and refining boundaries with local context, the model provides a robust solution for complex video-language tasks. Future work may explore end-to-end training with visual backbones and more sophisticated linguistic modeling for complex queries.

Summary updated

BibTeX
@inproceedings{liu2021context,
  author = {Daizong Liu and Xiaoye Qu and Jianfeng Dong and Pan Zhou and Yu Cheng and Wei Wei and Zichuan Xu and Yulai Xie},
  title = {{Context-Aware Biaffine Localizing Network for Temporal Sentence Grounding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.01108},
}
Figure