T2SGrid: Temporal-to-Spatial Gridification for Video Temporal Grounding

Chaohong Guo, Yihan He, Yongwei Nie, Fei Ma, Xuemiao Xu, Chengjiang Long · DOI

TL;DR

T2SGrid (Temporal-to-Spatial Gridification) reformulates video temporal grounding—the task of finding a specific video clip based on a text query—as a spatial reasoning problem. By arranging sequences of video frames into 2D grids (like a comic strip), the researchers allow Vision-Large Language Models (Vision-LMMs) to leverage their powerful spatial attention mechanisms to understand time, achieving state-of-the-art results with significantly improved efficiency.

What Problem Does This Paper Address?

Video Temporal Grounding (VTG) is a "needle in a haystack" problem: given a query like "a person puts a picture on the wall," the model must find the exact start and end timestamps in a long video.

Current Vision-LMMs (like Qwen or LLaVA) are masters of spatial reasoning (understanding where things are in an image) but struggle with temporal dynamics (understanding when things happen). Existing solutions usually try to "hack" temporal awareness by:

  1. Positional Encoding (PE): Adding tags to tell the model which frame is which. This helps with order but fails at absolute timing.
  2. Textual Timestamps: Labeling every frame with text (e.g., "Frame 1", "Frame 2"). This creates a "token tax," where the model spends too much attention on text labels rather than the video itself.
  3. Visual Numbering: Overlaying numbers directly on the video, which obscures important visual details.

The authors argue that these methods treat video as a flat sequence, which doesn't play to the strengths of modern 2D Vision Transformers (ViTs).

Methods

The core innovation is Gridification. Instead of feeding frames one by one, T2SGrid processes video in "clips" represented as a single composite image.

  • Spatiotemporal Gridification: The model uses a sliding window to select a group of frames (e.g., 9 or 12 frames). These frames are arranged in a row-major order (left-to-right, top-to-bottom) into a single $M \times N$ grid.
  • Implicit Temporal Encoding: Because the frames are in a fixed grid, the 2D positional embeddings already used by the model's Vision Transformer (ViT) naturally encode the temporal order. The model "reads" the time by looking across the grid.
  • Composite Text Timestamps: To give the model a sense of "global time" without drowning it in tokens, the authors associate a single text label with the entire grid (e.g., "Frame 0 to 11") rather than labeling every individual frame.
  • Overlapping Windows: To ensure the model doesn't miss actions that happen right at the edge of a grid, the sliding windows overlap, maintaining temporal continuity.

Datasets

The researchers evaluated T2SGrid on several heavy-hitting benchmarks:

  • Charades-STA & ActivityNet Captions: The standard "gold standards" for temporal grounding.
  • VideoMME: A benchmark for long-form video understanding.
  • MVBench & VideoInstruct: Used to test general video question-answering and action recognition.

Key Insights and Ideas

  • Spatial Attention is Temporal Attention: The most striking insight is that sequential frame processing actually biases models toward recognizing static objects. By putting frames in a grid, the model’s spatial attention is forced to look at the differences between adjacent "cells," which makes it much more sensitive to motion and change.
  • The "Token Tax" Reduction: By grouping frames, the model processes fewer "images" and fewer text tokens. This makes the attention maps less sparse and more focused on the actual action.
  • Zero-Shot Power: Even without specific training, "gridifying" the input significantly boosts the performance of off-the-shelf models like GPT-4o and Qwen2-VL, proving that the limitation was the representation of the data, not the models' reasoning capacity.

Key Results

T2SGrid achieved massive performance leaps, particularly for models that previously lacked strong temporal features:

  • Qwen2-VL-7B: On the Charades-STA dataset, the mean Intersection over Union (mIoU) skyrocketed from 7.9 to 44.3 in a zero-shot setting just by using the grid layout.
  • Fine-tuning Excellence: When fine-tuned (T2SGrid-FT), the model reached an mIoU of 53.2, outperforming specialized, state-of-the-art VTG models like GroundingGPT and TimeChat.
  • Efficiency: Compared to visual numbering methods, T2SGrid reduced inference time by 34.1% while delivering better accuracy.
  • Generalization: The method improved GPT-4o’s performance on ActivityNet by over 11% mIoU, showing it works even on the world's most advanced closed-source models.

Limitations and Future Work

While T2SGrid is powerful, the authors noted a "sweet spot" for grid size. If the grid is too large (e.g., a $4 \times 4$ grid of 16 frames), performance begins to degrade. This is likely because the individual frames within the grid become too small for the model to see fine details, or the spatial complexity becomes too high.

Future work could involve adaptive gridification, where the model changes the window size or grid density based on how much action is happening in the video (e.g., high-density grids for fast-paced sports and sparse grids for slow-moving scenes).

Summary updated

BibTeX
@inproceedings{guo2026t,
  author = {Chaohong Guo and Yihan He and Yongwei Nie and Fei Ma and Xuemiao Xu and Chengjiang Long},
  title = {{T2SGrid: Temporal-to-Spatial Gridification for Video Temporal Grounding}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=hz0uj0v6d8},
}
Figure