Abstract
Temporal language grounding is the task of localizing a specific video segment that corresponds to a natural language query. While existing anchor-based methods provide a foundation for this task, they often lack the precision required to identify exact start and end points, primarily due to a lack of boundary awareness. We propose Contextual Boundary-aware Prediction (CBP), an end-to-end framework designed to improve grounding precision. CBP leverages a self-attention mechanism for contextual integration and a dedicated boundary submodule to refine temporal anchors. Our approach achieves state-of-the-art results on TACoS, Charades-STA, and ActivityNet Captions, showing significant improvements at high Intersection-over-Union (IoU) thresholds.
Introduction
Temporal language grounding involves finding the part of a video that matches a textual description, such as "find the part where the cat jumps off the sofa." This task is critical for video search and automated editing. Existing approaches typically fall into two categories: sliding window methods and anchor-based methods.
Sliding window methods are computationally expensive and often fail to capture the exact boundaries of an action. Anchor-based methods predict scores for predefined segments (anchors) of various lengths. However, these models often struggle with precision. During training, any segment with a high overlap with the ground truth is labeled as a positive sample. At inference, this makes it difficult for the model to distinguish the optimal segment from several overlapping "good enough" candidates, as illustrated in Figure 1.
The authors argue that current models lack "boundary awareness"—the specific ability to recognize transitions that signal the start or end of a semantic event.
Methodology
The CBP framework is an end-to-end model consisting of three primary components designed to improve localization precision through contextual awareness and boundary detection.
1. Query-Video Interaction Module
This module uses a Match-LSTM backbone to fuse linguistic features from the text query with visual features from video frames. This process highlights relevant video segments based on the query's content.
2. Contextual Integration Module
Boundaries are rarely defined by a single frame. CBP employs a self-attention mechanism that allows each time step to perceive its neighboring frames. By modeling the relationship between an action and its surrounding context (e.g., the transition from standing still to running), the model can more accurately identify the start and end points of an activity.
3. Localization Module
The localization module features two parallel sub-branches:
- Anchor Submodule: Predicts confidence scores for $K$ different anchor durations at each time step.
- Boundary Submodule: Predicts the probability that a specific time step represents a semantic boundary (start or end point).
Boundary-Modulated Prediction
At inference, the model performs Local Boundary Score Fusion. The final score for a candidate segment is the sum of its anchor score and the boundary scores at its predicted start and end times. This modulation pushes the model to select segments that align perfectly with detected semantic boundaries, rather than just selecting the highest-scoring overlapping anchor.
Experiments and Results
CBP was evaluated on three major public datasets: TACoS (cooking videos), Charades-STA (indoor activities), and ActivityNet Captions (diverse large-scale content).
CBP outperformed previous state-of-the-art (SOTA) methods across all datasets, with the most significant gains observed at high-precision thresholds (R@1, IoU=0.7):
- TACoS: Achieved 19.10%, a major improvement over the previous best of ~11.88%.
- ActivityNet Captions: Reached 17.80%, outperforming the previous SOTA (TripNet) by nearly 4%.
- Charades-STA: Reached 18.87%, surpassing the previous best of 15.80%.
Ablation studies confirmed that both the Boundary Submodule and the Contextual Integration Module are essential to these performance gains.
Conclusion
By explicitly modeling boundaries and integrating contextual information via self-attention, the CBP framework significantly improves the precision of temporal language grounding. While the model occasionally produces false positives in datasets with highly overlapping actions like Charades-STA, its ability to refine anchors through boundary modulation represents a significant step forward. Future work will focus on handling dense, overlapping actions and long-range dependencies in extended video sequences.
Summary updated