Memory Enhanced Embedding Learning for Cross-Modal Video-Text Retrieval

Rui Zhao, Kecheng Zheng, Zheng-Jun Zha, Hongtao Xie, Jiebo LuoarXiv 2021

Abstract

Cross-modal video-text retrieval is a fundamental task in computer vision and natural language processing. Traditional approaches often suffer from two primary limitations: a restricted "receptive field" during mini-batch training and an inability to effectively model the one-to-many relationship between a video and its multiple diverse captions. This paper introduces Memory Enhanced Embedding Learning (MEEL), a framework that utilizes momentum-updated memory banks to store global negative samples and a text-center module to unify diverse descriptions. Evaluated on MSR-VTT and VATEX benchmarks, MEEL demonstrates significant performance improvements over existing state-of-the-art models.

Introduction

The goal of cross-modal retrieval is to establish a shared embedding space where semantically related videos and text descriptions are positioned closely. While significant progress has been made, current training paradigms face two critical bottlenecks. First, the standard triplet ranking loss typically operates within a small mini-batch, ignoring the vast majority of negative samples in the dataset. This results in a "local" view that limits the model's discriminative power. Second, datasets like MSR-VTT provide multiple captions per video, each potentially highlighting different visual cues. Standard models often treat these captions as independent instances, failing to exploit their collective semantic relationship to the underlying video.

The One-to-Many Mapping Challenge

As shown in the figure below, a single animated sequence can be described in various ways, ranging from "a cartoon child is sleeping" to "a shooting star passes by a child's window." These descriptions are complementary rather than redundant, yet standard retrieval models struggle to link them to a single visual concept.

Example of a single video clip associated with multiple diverse textual descriptions.

The MEEL Framework

To address these issues, the authors propose the Memory Enhanced Embedding Learning (MEEL) framework. MEEL augments standard encoder architectures with three key components designed for global negative mining and caption bridging.

Overview of the Memory Enhanced Embedding Learning (MEEL) architecture.
  1. Cross-Modal Memory Module: This module maintains two external memory banks—one for video and one for text—that store embeddings from previous training iterations. By enqueuing new embeddings and dequeuing old ones, the model can compare current queries against a "global" set of negatives, significantly expanding its receptive field beyond the current mini-batch.
  2. Momentum Encoder: To ensure the stability of stored embeddings, MEEL employs momentum-updated encoders. These encoders are moving averages of the primary training weights, preventing the "mismatch" that occurs when comparing fresh query embeddings against stale memory bank entries.
  3. Text Center Memory Module: This module specifically targets the one-to-many mapping problem. It learns a "center" representation for all captions associated with a specific video. By minimizing the variance between individual captions and this learned center, the model bridges diverse descriptions into a more robust, unified visual concept.

Experimental Evaluation

The MEEL framework was integrated into existing models like DualEncoding and VSE++ and tested on the MSR-VTT and VATEX datasets.

  • MSR-VTT: On this benchmark (10,000 clips, 20 captions each), DualEncoding with MEEL achieved a Recall@1 (R@1) of 8.3 for Text-to-Video (T2V) and 15.5 for Video-to-Text (V2T). This represents a substantial relative gain over the baseline model.
  • VATEX: Similar improvements were observed on the larger VATEX dataset, with R@1 scores reaching 25.4 (T2V) and 35.5 (V2T).

Ablation studies confirmed that both global negative mining via memory banks and the text-centering mechanism contribute significantly to the overall performance. The "Sum of Recalls" metric on MSR-VTT improved from 148.6 to 163.9 when all MEEL components were utilized.

Conclusion

Memory Enhanced Embedding Learning (MEEL) effectively addresses the limitations of local mini-batch training and the complexity of one-to-many video-text mappings. By leveraging momentum-updated memory banks and a text-center module, the framework provides a more comprehensive and stable learning signal. Future work may explore the application of these memory-enhanced techniques to broader multi-modal tasks such as video captioning and visual question answering.

Summary updated

BibTeX
@misc{zhao2021memory,
  author = {Rui Zhao and Kecheng Zheng and Zheng-Jun Zha and Hongtao Xie and Jiebo Luo},
  title = {{Memory Enhanced Embedding Learning for Cross-Modal Video-Text Retrieval}},
  year = {2021},
  eprint = {2103.15686},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.15686},
}
Figure