Tagging before Alignment: Integrating Multi-Modal Tags for Video-Text Retrieval

Yizhen Chen, Jie Wang, Lijian Lin, Zhongang Qi, Jin Ma, Ying Shan

Introduction

Video-text retrieval aims to match video content with natural language descriptions, a task complicated by the inherent "semantic gap" between raw visual pixels and abstract linguistic tokens. While image-text models like CLIP have seen success, video introduces additional dimensions such as temporal dynamics and multi-modal signals (audio, motion). Traditional approaches either treat videos as sequences of independent frames or attempt "brute force" fusion of modalities, often failing to establish strong semantic links.

To address this, researchers from Tencent proposed TABLE (TAgging Before aLignmEnt) at AAAI-23. The core innovation involves extracting explicit multi-modal tags—representing objects, actions, and audio keywords—to serve as "semantic anchors" that bridge the gap between video and text.

The TABLE Framework

The TABLE framework operates on the principle that discrete semantic tags are more easily aligned with text than raw high-dimensional visual features. By converting various video modalities into a unified tag representation, the model creates a common ground for alignment.

Overview of the TABLE framework showing the extraction of multi-modal tags (objects, actions, audio) to act as semantic anchors for alignment with text descriptions.

Multi-Modal Tag Mining

The system utilizes a suite of pretrained "expert" models to label video content:

  • Visual Entities: YOLOv5 and Open Image models identify objects and people (e.g., "woman," "bottle").
  • Scene Context: A ViT-based classifier identifies the environment (e.g., "kitchen").
  • Action/Motion: An S3D network extracts temporal action tags (e.g., "marinating").
  • Audio/Speech: Automatic Speech Recognition (ASR) converts spoken words into text keywords.

Model Architecture and Training

The TABLE architecture consists of three primary encoders and a specialized cross-modal transformer designed to leverage the extracted tags.

Detailed architecture of the TABLE model, highlighting the Visual, Tag, and Text Encoders, and the Tag-guiding Cross-Modal Encoder.
  1. Encoders: Separate modules process visual frames, extracted tags, and the text query. The Tag Encoder and Text Encoder are partly shared to ensure semantic consistency.
  2. Tag-Guiding (TG) Cross-Modal Encoder: This component jointly encodes visual features and tag embeddings. The tags act as anchors, guiding the model's attention toward relevant frames and spatial regions.
  3. Joint Cross-Modal Encoder: A shared transformer layer further integrates the multi-modal representations for final alignment.

Training Objectives

The model is optimized using three complementary loss functions:

  • Contrastive Loss: Aligns the joint [video+tag] representation with the text embedding in a shared space.
  • Video-Text Matching (VTM): A binary classification task that predicts whether a specific video-tag pair matches a given caption, utilizing hard negative mining for robustness.
  • Masked Language Modeling (MLM): Encourages the model to reconstruct masked words in a caption by leveraging the context provided by the video and its tags.

Experimental Results

TABLE was evaluated on four major benchmarks: MSR-VTT, MSVD, LSMDC, and DiDeMo. It achieved state-of-the-art (SOTA) performance across all datasets.

  • MSR-VTT: Achieved a Recall@1 (R@1) of 52.3% for text-to-video retrieval, a significant jump over previous leaders like CAMoE (48.8%).
  • MSVD: Reached 52.3% R@1, outperforming the previous best by 2.5%.
  • DiDeMo: Showed a massive improvement, reaching 49.1% R@1 (compared to the previous 43.8%), proving that explicit tagging is especially helpful for longer, more complex paragraph-style descriptions.

Key Insights

  • Tags as Semantic Anchors: Tags provide a unified linguistic representation. While a person-detector's visual features and a microphone's audio features are natively incompatible, the word "man" as a tag is directly comparable to the word "man" in a query.
  • Complementary Modalities: Ablation studies confirmed that each tag type contributes to performance. Audio tags often capture technical terms or names not visually apparent, while motion tags help distinguish between visually similar actions like "walking" and "running."
  • Attention Guidance: Visualizations indicate that tags successfully guide the model to focus on "key frames"—for instance, prioritizing frames that clearly show a car over those focusing on interior details.

Conclusion

The TABLE framework demonstrates that "tagging before alignment" is a powerful paradigm for video-text retrieval. By using multi-modal tags as semantic bridges, the model overcomes the limitations of raw feature fusion and achieves superior alignment. While the approach depends on the quality of external expert models and incurs preprocessing overhead, its performance gains establish a new standard for the field.

Summary updated

BibTeX
@inproceedings{chen2023tagging,
  author = {Yizhen Chen and Jie Wang and Lijian Lin and Zhongang Qi and Jin Ma and Ying Shan},
  title = {{Tagging before Alignment: Integrating Multi-Modal Tags for Video-Text Retrieval}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25113},
}
Figure