BiC-Net: Learning Efficient Spatio-temporal Relation for Text-Video Retrieval

Ning Han, Yawen Zeng, Chuhao Shi, Guangyi Xiao, Hao Chen, Jingjing Chen

TL;DR

This paper introduces BiC-Net, a novel framework for text-video retrieval that effectively combines global video features with fine-grained spatio-temporal relationships between objects. By leveraging a bi-branch architecture with a specialized Spatio-Temporal Residual Transformer (SRT), BiC-Net significantly improves the ability to distinguish videos with similar visual content but different underlying interactions, achieving state-of-the-art results on several benchmarks.

What Problem Does This Paper Address?

The task of text-video retrieval aims to find relevant videos given a textual query. While existing methods often rely on aggregated global video features or handcrafted graph-based local relations, they struggle to capture the nuanced spatio-temporal interactions between objects within a video. This limitation leads to poor performance when videos share similar visual components but differ in how those components interact, resulting in false positives. For example, a query about "a woman breaking bacon and laying it on tomatoes" might incorrectly match a video where a woman is simply laying tomatoes on leaves, if the model only focuses on the presence of "woman," "bacon," and "tomatoes" without understanding the action. This paper addresses the need for a more sophisticated approach that can effectively model these fine-grained spatio-temporal relationships to improve retrieval accuracy.

Methods

BiC-Net employs a bi-branch architecture to process videos:

  • Global Video Embedding: This branch uses standard 2D and 3D CNNs to extract appearance and motion features, which are then processed by a multi-layer transformer to capture global temporal information.
  • Local Relation Embedding: This branch focuses on fine-grained spatio-temporal relationships. It first uses Faster R-CNN to detect region proposals (objects) within frames. These proposals are then fed into a novel Spatio-Temporal Residual Transformer (SRT). The SRT is designed to learn local spatial relationships within frames and temporal relationships across frames, incorporating residual connections to enhance feature propagation.
  • Text Embedding: A pre-trained BERT model is used to encode the textual query.
  • Joint Embedding Learning: Finally, the global video features, local relation features, and text features are aligned in two separate embedding spaces. The similarity scores from these two spaces are combined using a weighted sum and a hinge-based triplet ranking loss to optimize the model for cross-modal retrieval.

The SRT itself is a key innovation, building upon transformer blocks with specific residual connections to effectively model spatio-temporal interactions at a local level.

Datasets

The paper evaluates BiC-Net on three widely-used datasets for text-video retrieval:

  • MSR-VTT: This is a large-scale dataset with 10,000 YouTube video clips, each paired with 20 text descriptions. The authors use different training/testing splits, including 1k-A (training-9k) and 1k-B.
  • MSVD: This dataset contains 1,970 YouTube video clips, each with around 40 descriptions.
  • YouCook2: This dataset comprises 2,000 cooking videos with 14,000 video clips, each described by a textual sentence.

No new datasets were introduced in this paper.

Key Insights and Ideas

  • Complementarity of Global and Local Features: The paper strongly emphasizes that both global video understanding and fine-grained spatio-temporal relational understanding are crucial and complementary for effective text-video retrieval. Removing either component significantly degrades performance.
  • The Power of Spatio-Temporal Relations: The core insight is that simply identifying objects and basic actions is insufficient. Understanding how objects interact over time (e.g., "cutting open a crab" vs. "taking meat out") is key to distinguishing similar-looking videos and achieving accurate retrieval.
  • SRT as an Effective Relation Learner: The proposed Spatio-Temporal Residual Transformer (SRT) demonstrates a novel and effective way to learn these complex local spatio-temporal relations without relying on handcrafted graph structures, which are often brittle and computationally expensive.
  • Bi-Branch Architecture for Comprehensive Representation: The bi-branch approach allows the model to capture diverse aspects of video content, leading to a more robust and discriminative video representation.

Key Results

  • State-of-the-Art Performance: BiC-Net achieves state-of-the-art results on the MSR-VTT dataset, notably reaching 39.4% R@1 and 86.7% R@10 for text-to-video retrieval on the 1k-A test set (training-9k).
  • Significant Improvement over Baselines: BiC-Net consistently outperforms various baseline methods, including RNN-based, multimodal fusion, GCN-based, and transformer-based approaches, across all tested datasets and metrics.
  • Effectiveness of SRT Variants: Ablation studies show that the proposed SRT architecture, particularly with its residual connections, significantly improves performance compared to simpler variants (Spatial-SRT, Temporal-SRT) and a non-residual transformer (Non-SRT).
  • Qualitative Success: Qualitative examples demonstrate BiC-Net's ability to correctly retrieve videos based on complex spatio-temporal relationships, outperforming a variant that only uses global features. Attention map visualizations also highlight the model's focus on semantically relevant object interactions.

Limitations and Future Work

  • Computational Burden: The authors acknowledge that transformer-based models, especially for processing long videos with complex local relations, can incur a significant computational burden.
  • Future Work: The paper suggests that computational optimization of the multi-layer spatio-temporal transformer is a promising direction for future research.

Summary updated

BibTeX
@article{han2024bic,
  author = {Ning Han and Yawen Zeng and Chuhao Shi and Guangyi Xiao and Hao Chen and Jingjing Chen},
  title = {{BiC-Net: Learning Efficient Spatio-temporal Relation for Text-Video Retrieval}},
  journal = {ACM Trans. Multim. Comput. Commun. Appl.},
  year = {2024},
  doi = {10.1145/3627103},
}
Figure