Disentangled Representation Learning for Text-Video Retrieval

Qiang Wang, Yanhao Zhang, Yun Zheng, Pan Pan, Xian-Sheng HuaarXiv 2022 · DOI

Introduction

Text-Video Retrieval (TVR) is the task of finding the most relevant video given a natural language query. The core challenge lies in the "asymmetry" between modalities: a video is a sequence of dynamic frames, while a sentence is a hierarchical structure of words. Current state-of-the-art methods typically follow one of two paths: the Single-Vector Approach, which is fast but loses fine-grained details through over-abstraction, or the Heavy Interaction Approach, which uses massive Cross-Transformers that are accurate but too slow for real-world, large-scale deployment.

Researchers from Alibaba’s DAMO Academy have developed a "middle way": a disentangled framework that is fine-grained enough to catch local context but lightweight enough for production. This approach is built on two core assumptions regarding the relationship between text and video: the importance of local context and the necessity of a semantic hierarchy.

The two core assumptions driving the framework: Local Context (matching specific words to video segments) and Semantic Hierarchy (capturing multi-view descriptions).

Methodology

The proposed framework consists of two main components designed to address the limitations of existing retrieval models.

1. Weighted Token-wise Interaction (WTI)

Instead of calculating a single global similarity score, WTI examines the "dense correlation" between every word token and every video frame.

  • Token-wise Matching: The model calculates a similarity matrix between all sentence tokens and video frames. Using a max operation, it finds the best matching frame for each word, allowing it to focus on local segments even if the rest of the video is irrelevant.
  • Learned Weighting: Not all words or frames are equally important. The model employs a lightweight MLP to assign weights to tokens (e.g., giving "jumping" more weight than "the").
The lightweight MLP architecture used to calculate token weights within the WTI module.

2. Channel DeCorrelation Regularization (CDCR)

To ensure the model learns a robust "hierarchical" representation, the authors introduced CDCR, a regularization term inspired by self-supervised learning techniques like Barlow Twins. CDCR minimizes redundancy between different channels of the embedding vectors. By forcing different channels to represent non-overlapping information, the model better handles complex, multi-view descriptions of the same video, preventing "channel competition" where multiple dimensions represent the same semantic feature.

Experimental Results

The model was evaluated on six diverse TVR benchmarks, including MSR-VTT, MSVD, VATEX, LSMDC, ActivityNet, and DiDeMo. The proposed method significantly outperformed the previous state-of-the-art (CLIP4Clip) across the board:

  • VATEX: Achieved a massive +7.9% R@1 improvement.
  • DiDeMo: Saw a +6.5% R@1 jump.
  • MSR-VTT: Improved R@1 by +2.9%.

Beyond accuracy, the framework is remarkably efficient. While more complex than a simple dot product, WTI is orders of magnitude faster than Cross-Transformers. For indexing 1 million documents, WTI takes approximately 565ms, compared to over 80,000ms for a standard Cross-Transformer approach.

Conclusion and Future Work

By building basic "matching priors" into the architecture rather than relying solely on parameter-heavy models, the authors achieved faster convergence and superior accuracy. While the approach requires more storage for token-level embeddings compared to single-vector methods, the performance gains and retrieval speed make it a compelling solution for modern TVR systems. Future work will explore more efficient ways to compress these token-wise representations for billion-scale retrieval tasks.

Summary updated

BibTeX
@misc{wang2022disentangled,
  author = {Qiang Wang and Yanhao Zhang and Yun Zheng and Pan Pan and Xian-Sheng Hua},
  title = {{Disentangled Representation Learning for Text-Video Retrieval}},
  year = {2022},
  eprint = {2203.07111},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.07111},
}
Figure