Manuscript Offprint

arXiv:2608.28192

Locate Anything in Videos: Rethinking Efficient Generative Spatio-Temporal Video Grounding

Hanoona Rasheed, Haania Siddiqui, Ming-Hsuan Yang, Fahad Shahbaz Khan, Salman Khan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hanoona Rasheed1^{1}, Haania Siddiqui1^{1}, Ming-Hsuan Yang2^{2}, Fahad Shahbaz Khan1,3^{1,3}, Salman Khan1,3^{1,3}

1^{1}Mohamed bin Zayed University of Artificial Intelligence, 2^{2}University of California, Merced, 3^{3}Apertix

Spatio-temporal video grounding (STVG) requires models to identify when a referred event occurs and localize the target entity throughout that interval. Existing multimodal large language models typically serialize dense localization trajectories autoregressively, causing decoding latency to grow with tube length and allowing localization errors to propagate across time. We introduce Parallel Tube Decoding (PTD), a generative formulation that decomposes grounding into a temporal block followed by time-conditioned spatial blocks decoded simultaneously. This removes both token-level and trajectory-level dependencies, reducing the sequential decoding depth to a fixed 1+11+1 rounds, independent of tube length. To enable parallel spatial generation, we introduce Decoupled Block Attention, which preserves access to shared video-query context while eliminating cross-box dependencies, together with localization-aware policy optimization for temporal boundaries and spatial geometry. On VidSTG, PTD reduces Tube Completion Latency by 79×79\times and increases spatial decoding throughput by 92×92\times over standard autoregressive decoding, while also improving grounding accuracy. With a compact 4B backbone, our model performs favorably well on VidSTG and HC-STVG, and generalizes zero-shot to temporal grounding, grounded VideoQA, and referring video object tracking. Our results show parallel tube generation is an efficient and effective alternative to autoregressive localization in videos.

Website https://mbzuai-oryx.github.io/parallel-tube-decoding/

Code https://github.com/mbzuai-oryx/ParallelTubeDecoding

Spatio-temporal Video Grounding

Referring Expression: "Vendor who hands over the sandwich"

Response: temporal segment + bbox for each time index

Figure

1 Unquantized Token Decoding

Multiple tokens per coordinate

Latency

31.6 s

BPS

0.5

Rounds

Many

Temporal Segment

<time>

3

.

0

,

9

.

0

</time>

Many

rounds

Spatial Segment

3

.

0

<box>

4

8

,

2

7

1

,

...

</box>

repeated for T time indices

Many

rounds

2 Quantized Token Decoding

One token per coordinate

Latency

9.1 s

BPS

1.5

Rounds

4 + 7T

Temporal Segment

<time> <ts> <t> <t> </time>

4 tokens for

time segment

Spatial Segment

<ts> <box>

<48>

<271>

<162>

<516>

</box>

7 tokens per time index repeated for T time indices

4 Rounds

7xT

rounds

3 Sequential Block Decoding

Within-box parallel decoding

Latency

1.0 s

BPS

8.8

Rounds

1 + T

Temporal Segment

<time> <ts> <t> </time>

1

round

Spatial Segment

<ts> <box> <x1> <y1> <x2> <y2> </box>

...

<t> <box> <x1> <y1> <x2> <y2> </box>

T

rounds

4 Parallel Tube Decoding (Ours)

All boxes generated in parallel

Latency

0.4 s

BPS

45.9

Rounds

1 + 1

Temporal Segment

<time> <ts> <t> </time>

1

round

Spatial Segment

<ts> <box> <x1> <y1> <x2> <y2> </box>

...

<t> <box> <x1> <y1> <x2> <y2> </box>

1

round

Unquantized text token

Temporal localization token

Bounding box coordinate token

Temporal block

Spatial block

Efficiency Gains

Latency (↓): 31.6s → 0.4s

79x lower

BPS (↑): 0.5 → 45.9

92x higher

Figure 1 Autoregressive localization vs. Parallel Tube Decoding. Given a video and a referring expression, STVG predicts when the event occurs and the bounding box of the referred entity throughout that interval. We compare four decoding paradigms. Unquantized Token Decoding generates textual localization values autoregressively, while Quantized Token Decoding reduces representation overhead with discrete temporal and spatial tokens. Sequential Block Decoding further removes within-block dependencies but remains sequential across the tube. In contrast, our Parallel Tube Decoding (PTD) generates all time-conditioned spatial blocks in parallel after temporal localization, reducing the sequential decoding depth to 1+11+1. Compared with standard Unquantized Token Decoding, PTD achieves 79×79\times lower Tube Completion Latency and 92×92\times higher spatial decoding throughput, measured as Boxes Per Second (BPS), while simultaneously improving spatio-temporal grounding accuracy.

1 Introduction

Real-world video understanding requires interpreting natural-language queries about entities and events unfolding across space and time. Spatio-temporal video grounding (STVG) formalizes this by identifying when a queried event occurs and localizing the referred entity throughout that interval [65, 50, 58]. Accurate and efficient spatio-temporal localization is becoming increasingly important as video-language models are deployed for long-video search [55, 46, 28], evidence-grounded question answering [9, 8, 38, 44], language-guided tracking [14, 60, 5, 39], and embodied interaction [31, 66, 12]. Since the query may identify the target through its attributes, actions, or relations rather than a category name, the model must reason over the video to find the intended target, making multimodal large language models (MLLMs) a natural foundation [3, 33, 53].

However, STVG remains challenging because temporal and spatial localization involve different sources of ambiguity. Temporally, the target may remain visible before and after the event, while the event itself may be brief or have ambiguous boundaries. Spatially, the target may undergo motion, occlusion, scale and appearance changes, or interference from nearby distractors [65, 50, 58, 22]. The output structure amplifies this. Unlike temporal grounding, which predicts a start and an end, or image grounding, which predicts a single region, STVG emits a bounding box at every grounded time step. In MLLMs, serializing this tube into an autoregressive coordinate sequence makes decoding depth and latency grow with tube length.

Because of this cost, many MLLM-based methods offload spatial localization to prediction heads, external detectors, spatial decoders, or detection-and-tracking pipelines [53, 20, 51, 63]; those that keep the tube inside the native token interface stay unified [24] but inherit the scaling cost of decoding. The cost can be attacked at the token level, as Figure 1 shows. Unquantized Token Decoding writes timestamps and coordinates as text, so a single value may be split into multiple tokens and require several dependent predictions. Quantized Token Decoding maps each value to a single token and substantially reduces this representation overhead [11, 29, 54, 6]. However, it still generates the tokens that describe a bounding box one by one. Inspired by the box-aligned multi-token formulation of [54], we adapt the block decoding to STVG, referring to this formulation as Sequential Block Decoding. Here, each temporal interval or bounding box is predicted as a single joint block. This removes dependencies within a localization unit but not across them. As a result, the tube is still decoded autoregressively box by box, so decoding depth grows with the tube length.

Removing dependencies inside a box does not remove the dependency between boxes, and this is costly in two ways for STVG. First, it sets a decoding depth that grows linearly with tube length, and secondly, it hurts accuracy: conditioning each box on an expanding history of generated coordinates lets an early error propagate along the trajectory and shifts the model's attention toward its own output and away from the visual evidence (Figure 4b and c). Neither cost is inherent to the STVG task, since the correct box at a time step is determined by the query and the visual content at that step, not by the boxes emitted before it.

To address these challenges, we introduce Parallel Tube Decoding (PTD), a generative paradigm for efficient and accurate spatio-temporal video grounding. Our key idea is to decompose tube generation into a temporal block that identifies the queried event and a set of time-conditioned spatial blocks, one per temporal position, that are predicted in parallel across the interval. Tube generation therefore takes two decoding rounds, one temporal and one spatial, regardless of tube length. To enable this while preserving the model's native autoregressive capability, we jointly train complementary next-token and multi-token formulations and introduce Decoupled Block Attention, which lets every spatial block access the shared video-query context while blocking dependencies on other predicted boxes. We further add localization-aware policy optimization, improving temporal boundaries and box geometry through complementary spatio-temporal rewards.

The main contributions of this work are:

• Decoding formulation. We study four decoding strategies for generative STVG and introduce Parallel Tube Decoding, reducing tube generation from 4+7T4+7T rounds under Quantized Token Decoding and 1+T1+T under Sequential Block Decoding to just two rounds, independent of the number of boxes (Sec. 3.1).

• Attention mechanism. We enable PTD through Decoupled Block Attention, which removes cross-box dependencies while preserving shared multimodal evidence, keeping each box grounded in the visual content at its own temporal position (Sec. 3.2).

• Localization-aware optimization. Policy optimization with complementary temporal and spatial rewards directly improves event boundaries and bounding-box geometry (Sec. 3.4).

• Efficiency and generalization. PTD cuts Tube Completion Latency by 79×79\times and raises spatial decoding throughput by 92×92\times over unquantized token decoding while improving localization quality (Sec. 4.2). With a 4B backbone it reaches state-of-the-art or competitive STVG performance (Sec. 4.3) and generalizes zero-shot to temporal grounding, evidence-grounded VideoQA, and referring video object tracking (Sec. 4.4).

References (60)