Introduction
Video grounding aims to localize specific moments in an untrimmed video based on a natural language query, such as "The lady puts contact lenses in her eyes." Traditional approaches are often divided into top-down models, which rank thousands of candidate proposals and rely on Non-Maximum Suppression (NMS), and bottom-up models, which predict frame-level boundaries but lack temporal context. Both methods typically require manual heuristics and post-processing that cannot be optimized during training.
GTR (video Grounding with TRansformer) addresses these limitations by reformulating video grounding as a set prediction task. It is the first end-to-end Transformer-based model for this task, eliminating the need for complex post-processing while achieving superior accuracy and efficiency.
Methods and Architecture
GTR adopts a Transformer-based encoder-decoder architecture inspired by DETR. The pipeline consists of four main stages:
- Cubic Embedding: Instead of 2D image sequences, GTR uses a 3D "cubic" embedding layer to extract spatio-temporal tokens directly from raw video. This captures motion and temporal correlations from the start.
- Dual Encoders: Separate Transformer encoders process visual and textual tokens independently to build rich contextual representations.
- Cross-Modal Decoder: A novel Multi-head Cross-Modal Attention (MCMA) module fuses video and language features. The authors found that Stepwise Fusion—cascaded reasoning across modalities—yielded the best performance.
- Many-to-One Matching Loss: GTR uses a bipartite matching loss that forces the model to select the single best prediction slot, effectively performing internal NMS.
Key Insights
The researchers identified several critical design choices:
- Temporal Overlap: Allowing "cubes" in the embedding layer to overlap in time significantly improves performance by capturing frame transitions.
- Decoder Depth and Expansion: Deeper decoders are more effective than wider ones. Furthermore, an "expanding" strategy—increasing the number of attention heads in deeper layers—refines temporal boundaries more accurately.
- Efficiency: GTR-Base contains approximately 26M parameters, significantly fewer than the 93M in the 2D-TAN model, yet it delivers better performance.
Key Results
GTR sets new benchmarks for both efficiency and accuracy across datasets like ActivityNet Captions, Charades-STA, and TACoS.
On the challenging TACoS dataset, GTR-Huge achieves a 4.9% absolute improvement in R@1 (IoU=0.5) while running 5x faster than the previous state-of-the-art (2D-TAN) in terms of Queries Per Second (QPS). Crucially, GTR requires no NMS or thresholding; the raw Transformer output is the final prediction.
Conclusion and Future Work
GTR demonstrates the power of end-to-end Transformer architectures for video grounding. Future work includes extending the model to weakly-supervised settings (learning without precise timestamps) and spatio-temporal grounding (identifying both when and where an action occurs).
Summary updated