Abstract
In this paper, we consider a novel task, Spatio-Temporal Video Grounding for Multi-Form Sentences (STVG). Given an untrimmed video and a declarative/interrogative sentence depicting an object, STVG aims to localize the spatio-temporal tube of the queried object. STVG has two challenging settings: (1) We need to localize spatio-temporal object tubes from untrimmed videos, where the object may only exist in a very small segment of the video; (2) We deal with multi-form sentences, including the declarative sentences with explicit objects and interrogative sentences with unknown objects. Existing methods cannot tackle the STVG task due to the ineffective tube pre-generation and the lack of object relationship modeling. Thus, we then propose a novel Spatio-Temporal Graph Reasoning Network (STGRN) for this task. First, we build a spatio-temporal region graph to capture the region relationships with temporal object dynamics, which involves the implicit and explicit spatial subgraphs in each frame and the temporal dynamic subgraph across frames. We then incorporate textual clues into the graph and develop the multi-step cross-modal graph reasoning. Next, we introduce a spatio-temporal localizer with a dynamic selection method to directly retrieve the spatio-temporal tubes without tube pre-generation. Moreover, we contribute a large-scale video grounding dataset VidSTG based on video relation dataset VidOR. The extensive experiments demonstrate the effectiveness of our method.
1. Introduction to STVG
Visual grounding—identifying an object described in text—is well-established for static images. However, extending this to video introduces significant complexity. The task of Spatio-Temporal Video Grounding (STVG) requires localizing an object's full trajectory (a "tube") within an untrimmed video based on a natural language query.
This introduces two major hurdles:
- Untrimmed Complexity: The target object might only appear for a brief segment of a long video. Models must find the precise start and end times.
- Multi-Form Queries: Queries can be declarative ("The boy in the red hat") or interrogative ("What is the boy catching?"). In interrogative cases, the object's identity is unknown, requiring the model to rely on relationships between entities rather than just appearance.
2. Spatio-Temporal Graph Reasoning Network (STGRN)
To address these challenges, we propose the Spatio-Temporal Graph Reasoning Network (STGRN). Unlike existing methods that rely on inefficient "tube pre-generation," STGRN builds a comprehensive graph of the video and reasons through it using the text query.
2.1 Spatio-Temporal Region Graph
The model represents a video as a graph where nodes are region proposals, connected by three types of edges:
- Implicit Spatial: Connects all regions within a single frame for general context.
- Explicit Spatial: Uses a pre-trained relation classifier to label specific interactions like "holding" or "sitting on."
- Temporal Dynamic: Connects regions across adjacent frames based on appearance and location overlap to capture motion.
2.2 Cross-Modal Reasoning and Localization
The text query is fused into the graph, and multiple steps of graph convolution allow information to flow from known entities to the queried object.
Finally, a dual-head localizer predicts the temporal segment and spatial bounding boxes. To ensure trajectory smoothness, a Viterbi-based dynamic selection method optimizes the final path by balancing model confidence with physical continuity.
3. The VidSTG Dataset
We introduce VidSTG, the largest dataset for this task, built upon the VidOR (Video Relation) dataset. It contains 99,943 sentences (44,808 declarative and 55,135 interrogative) across 79 object categories, providing full spatio-temporal annotations for untrimmed videos.
4. Experimental Results
STGRN sets a new state-of-the-art on the VidSTG benchmark:
- Declarative Grounding: Achieves 19.75% m_vIoU, significantly outperforming combined baselines (14.45%).
- Interrogative Grounding: Achieves 18.32% m_vIoU, compared to the baseline's 13.36%.
Ablation studies confirm that the Explicit Spatial Graph provides the most significant boost for interrogative queries, proving that relationship modeling is key to understanding unknown objects.
5. Conclusion
STGRN demonstrates that graph-based reasoning over spatial and temporal dynamics is a powerful approach for video grounding. While a performance gap remains for interrogative queries, our work provides a robust framework and a large-scale dataset to drive future research in complex spatio-temporal reasoning.
Summary updated