On Pursuit of Designing Multi-modal Transformer for Video Grounding

Meng Cao, Long Chen, Mike Zheng Shou, Can Zhang, Yuexian Zou

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:

  1. 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.
  2. Dual Encoders: Separate Transformer encoders process visual and textual tokens independently to build rich contextual representations.
  3. 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.
  4. 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.
The GTR architecture overview, showing the pipeline from cubic video embedding and sentence embedding through dual encoders to the cross-modal decoder and prediction heads.

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.

Performance comparison on the TACoS dataset, highlighting that GTR-Huge is 5x faster and 4.9% more accurate (R@1, IoU=0.5) than the previous state-of-the-art 2D-TAN.

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

BibTeX
@inproceedings{cao2021pursuit,
  author = {Meng Cao and Long Chen and Mike Zheng Shou and Can Zhang and Yuexian Zou},
  title = {{On Pursuit of Designing Multi-modal Transformer for Video Grounding}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2021},
  doi = {10.18653/v1/2021.emnlp-main.773},
}
Figure