Context-Guided Spatio-Temporal Video Grounding

Xin Gu, Heng Fan, Yan Huang, Tiejian Luo, Libo Zhang · DOI

Abstract

Spatio-Temporal Video Grounding (STVG) requires localizing a target object in both space and time based on a natural language query. Traditional approaches rely heavily on the textual query as the primary cue for localization, which often proves insufficient in complex scenes with multiple similar objects or varying lighting conditions. This paper introduces the Context-Guided STVG (CG-STVG) framework, which enhances grounding by mining discriminative "instance context" directly from the video. By incorporating refined visual guidance alongside textual queries, the model achieves state-of-the-art performance on major benchmarks, including HCSTVG and VidSTG.

Introduction

The task of Spatio-Temporal Video Grounding (STVG) involves identifying a specific object and tracking it through a sequence of bounding boxes (a "tube") based on a natural language description, such as "The boy in striped clothes raises his finger." While text provides a high-level semantic anchor, it often lacks the granularity required for precise localization in visually dense environments. If a scene contains multiple individuals fitting a similar description, or if the target's appearance changes significantly due to motion or occlusion, a short text query may fail to distinguish the target effectively.

Existing methods typically treat the text query as the sole source of truth. However, writing more detailed queries is computationally expensive and often fails to capture the subtle visual nuances of a specific instance. CG-STVG addresses this by treating the video as its own source of supplementary information, leveraging intermediate predictions to refine the model's understanding of the target's visual signature.

Methodology

The CG-STVG architecture is built upon a Transformer-based encoder-decoder framework. The core innovation lies in the iterative refinement of "instance context" across the decoder stages. The framework introduces two primary modules to facilitate this:

Instance Context Generation (ICG)

The ICG module extracts visual features—encompassing both appearance and motion—from the regions the model currently identifies as the target. Using RoIAlign, the module "mines" these features from multimodal feature maps. This allows the model to ask: "What does the object I have found so far actually look like, and how can that help me find it in the rest of the video?"

Instance Context Refinement (ICR)

To ensure the mined features are relevant and not merely background noise or distractors, the ICR module employs a two-level filtering process:

  1. Temporal Refinement: This sub-module uses the temporal query to calculate confidence scores for each frame, discarding features from irrelevant time windows.
  2. Spatial Refinement: This measures the quality of features from a spatial perspective to suppress irrelevant visual information and focus on the most discriminative parts of the target instance.

These modules are deployed at each stage of the Transformer decoder. The instance context learned in one stage acts as a guide for the next, progressively sharpening the model's target-awareness.

Experimental Results

The CG-STVG framework was evaluated on three primary benchmarks: HCSTVG-v1, HCSTVG-v2, and VidSTG. The model established new state-of-the-art (SOTA) records across all tested datasets:

  • HCSTVG-v1: The model achieved 52.8% m_tIoU and 38.4% m_vIoU, significantly outperforming previous leading models such as STCAT and CSDVL.
  • HCSTVG-v2: Performance reached 60.0% m_tIoU, representing a substantial improvement over the baseline.
  • VidSTG: The model showed consistent gains across both declarative and interrogative query types, demonstrating the robustness of visual guidance across different linguistic structures.

Qualitative analysis indicates that while baseline models often lose the target during occlusions or when distractors appear, CG-STVG remains locked onto the target's specific visual signature, resulting in more accurate and stable bounding box tubes.

Discussion and Insights

Internal Mining vs. External Augmentation

A key strength of CG-STVG is its ability to generate "visual hints" without requiring additional human-annotated data or external datasets. By extracting context from its own intermediate predictions, the model becomes self-correcting.

The Role of Visual Granularity

The authors argue that visual cues provide a level of detail that text cannot match. By feeding visual context back into the spatial decoding blocks, the model can account for specific textures, shapes, and motion patterns unique to the target instance.

Selective Guidance and Temporal Boundaries

An important finding of this research is that while instance context is highly effective for spatial localization (finding the box), it can be counterproductive for temporal localization (finding start/end times) if applied indiscriminately. The authors observed that applying visual context to the temporal branch caused "boundary blur." Consequently, the guidance is strategically applied primarily to the spatial decoding blocks to maintain precise temporal boundaries defined by the text.

Conclusion

CG-STVG demonstrates that visual context is a powerful supplement to natural language queries in video grounding tasks. By mining and refining instance-specific features from the video itself, the model achieves superior localization accuracy. Future work will likely focus on bridging the gap between spatial visual context and temporal event boundaries to further refine the start and end points of grounded actions in complex video sequences.

Summary updated

BibTeX
@misc{gu2024context,
  author = {Xin Gu and Heng Fan and Yan Huang and Tiejian Luo and Libo Zhang},
  title = {{Context-Guided Spatio-Temporal Video Grounding}},
  year = {2024},
  eprint = {2401.01578},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.01578},
}
Figure