TL;DR
This paper introduces a novel zero-shot framework for Spatio-Temporal Video Grounding (STVG) by unlocking the hidden localization capabilities of Multimodal Large Language Models (MLLMs). By discovering that MLLMs dynamically assign specific "grounding tokens" to track objects and optimizing these via test-time tuning, the proposed method significantly outperforms existing zero-shot methods without requiring any training data or fine-tuning.
What Problem Does This Paper Address?
Spatio-Temporal Video Grounding (STVG) is the task of localizing a target object in a video both spatially (using bounding boxes) and temporally (determining the start and end frames) based on a text query. Imagine asking an AI to find "the man in the red shirt who sits down and then turns his head"—the AI needs to co-reference the visual attributes and actions across both space and time.
Traditional approaches rely heavily on fully-supervised learning, which requires labor-intensive, frame-level annotations. While zero-shot alternatives exist, they typically rely on contrastive models like CLIP, which excel at global image-text alignment but struggle with precise localization. On the other hand, adapting powerful MLLMs to grounding usually requires extensive instruction fine-tuning, which is not only expensive but can also degrade the model's original conversation capabilities (catastrophic forgetting). This paper tackles the challenge of achieving precise STVG using off-the-shelf MLLMs completely for free, without any training or fine-tuning.
Methods
The authors propose a training-free, zero-shot framework that steers the internal attention of MLLMs using three core components:
- Decomposed Spatio-Temporal Highlighting (DSTH): MLLMs often suffer from "attention neglect" when fed complex sentences, ignoring crucial attributes or actions. To fix this, the framework uses an LLM (GPT-4o) to decouple the original query into two simpler sub-queries: an attribute sub-query (e.g., "Is there a man on the left of the man in the orange shirt in this video?") for spatial grounding, and an action sub-query (e.g., "Is there a man sits down, then turn his head in this video?") for temporal grounding.
- Logit-Guided Re-Attention (LRA): To force the MLLM to focus on the specific cues within these sub-queries, the authors introduce a test-time tuning (TTT) mechanism. They append learnable latent variables (acting as spatial/temporal prompts) to the video tokens. During inference, these prompts are optimized for a few iterations by maximizing the model's logit probability of answering "yes" versus "no" to the sub-queries. This optimization sharpens the model's internal text-to-visual attention maps.
- Temporal-Augmented Assembling (TAS): Because spatial attributes are static and should be independent of time's arrow, the spatial grounding ought to be consistent even if the video is played backward. TAS feeds both the original video frames and a temporally reversed version into the model, assembling the resulting attention maps to ensure robust, temporally consistent spatial localization.
Standard off-the-shelf object detectors and trackers (Grounding DINO and SAM 2) are used to generate candidate object tracks (tubelets), which are then scored and selected using the MLLM's optimized attention maps.
Datasets
The framework was evaluated entirely in a zero-shot setting on three standard STVG benchmarks:
- HCSTVG-v1
- HCSTVG-v2
- VidSTG (Declarative)
No new datasets or annotations were introduced.
Key Insights and Ideas
- The Discovery of "Grounding Tokens": The authors discovered that MLLMs naturally and dynamically assign specific special tokens (such as
_A,., or<|im_start|>, depending on the model's tokenizer) to handle grounding. The token that exhibits the highest visual activation consistently yields the most accurate target localization. - Attention Rectification via Logit Contrast: Instead of altering the massive weights of the MLLM, you can effectively steer where the model looks by optimizing a tiny visual prompt at test time. Forcing the model to confidently output a "yes" response naturally regularizes its internal attention mechanisms to highlight the correct visual regions.
- Divide and Conquer for Space and Time: MLLMs get overwhelmed when trying to parse spatial attributes and temporal actions simultaneously from a single complex sentence. Separating the query into distinct spatial and temporal yes/no questions dramatically simplifies the reasoning task for the model.
Key Results
Evaluated across multiple prominent MLLMs (including LLaVA-Next-Video, Qwen2-VL, ShareGPT4Video, and LLaVA-OneVision), the framework achieved new state-of-the-art (SOTA) zero-shot performance:
- HCSTVG-v1: Using LLaVA-OneVision-7B, the method achieved a mean vIoU (m_vIoU) of 24.8%, drastically outperforming the previous zero-shot SOTA (E3M at 19.1%).
- HCSTVG-v2: The framework reached 27.7% m_vIoU.
- VidSTG (Declarative): It achieved 18.0% m_vIoU.
- Surpassing Weakly-Supervised Methods: Remarkably, this completely zero-shot approach outperformed several recent weakly-supervised methods (which use video-level descriptions during training), such as CoSPaL and STPro, across multiple metrics.
Limitations and Future Work
The primary bottleneck of this approach is computational efficiency. Because the framework relies on test-time tuning—which requires performing backpropagation to update the learnable prompts for every single test video—and processes multiple frames through a large MLLM architecture, it is computationally expensive. Consequently, it struggles to scale efficiently to very long videos.
The authors note that future work will focus on incorporating token pruning and keyframe selection techniques directly into the model design to alleviate this computational burden.
Summary updated