M3: Multimodal Memory Modelling for Video Captioning

Junbo Wang, Wei Wang, Yan Huang, Liang Wang, Tieniu Tan

Abstract

The Multimodal Memory Model ($M^3$) addresses the challenges of long-term dependency and semantic misalignment in video captioning by introducing an external, shared memory buffer. By facilitating a multi-step interaction between visual and textual sequences, $M^3$ enables more precise alignment of words to visual targets, achieving state-of-the-art results on benchmark datasets like MSVD and MSR-VTT.

Introduction

Video captioning—automatically describing video clips in natural language—is a complex sequence-to-sequence challenge. Traditional approaches using Recurrent Neural Networks (RNNs) like LSTMs often struggle with two major hurdles: long-term multimodal dependency and semantic misalignment. Standard models frequently fail to maintain context over long clips or struggle to map specific words (e.g., "slicing") to the correct visual regions. While attention mechanisms have improved focus, they typically rely on the decoder's hidden state as a bottleneck, which is often insufficient for capturing rich, long-term interactions between vision and language.

The M3 Framework

The $M^3$ framework consists of three main components: a CNN-based video encoder, an LSTM-based text decoder, and the novel Multimodal Memory. Unlike standard models where vision and language only meet at the final prediction layer, $M^3$ uses the memory as a persistent "shared workspace" where both modalities influence each other throughout the entire generation process.

The M3 architecture featuring the interaction loop between the video encoder, multimodal memory, and text decoder.

The core innovation is an interaction loop that occurs for every word generated:

  1. Write (Textual): The LSTM decoder writes its current hidden state into the external memory, summarizing the linguistic context generated so far.
  2. Read (For Attention): The model reads from this updated memory to guide a temporal attention mechanism, deciding which video frames are most relevant.
  3. Write (Visual): Selected visual features are written back into the memory, updating the shared workspace with current visual information.
  4. Read (For Prediction): Finally, the LSTM reads the combined visual/textual context from the memory to predict the next word.

This memory uses content-based addressing, allowing the model to retrieve information based on similarity and perform fine-grained updates, such as erasing irrelevant details as a scene changes.

Experimental Results

The authors evaluated $M^3$ on two benchmark datasets: MSVD (1,970 clips) and MSR-VTT (10,000 clips). The model consistently outperformed existing state-of-the-art methods like SA, S2VT, and HRNE.

  • MSVD Performance: Achieved a BLEU@4 score of 52.82 and a METEOR score of 33.31 using multiple feature fusion (Inception-V3 + C3D).
  • MSR-VTT Performance: Consistently outperformed the Soft-Attention (SA) baseline across various visual features.
Qualitative comparison where M3 correctly identifies a shark in water, avoiding common misclassifications like 'dolphin'.

Qualitative analysis showed that $M^3$ is significantly better at identifying specific objects. For example, in a video of a shark, $M^3$ correctly identified the "shark" and "water," whereas standard attention models mistakenly identified a "dolphin." The model also tended to generate more descriptive sentences, such as "mixing ingredients in a bowl" instead of a generic "mixing."

Conclusion and Future Work

By utilizing memory as a persistent blackboard, $M^3$ allows for better attention guided by the entire history of a caption rather than just the previous word. While the current model relies on fixed, pre-trained CNN features, future work aims to integrate feature extraction into an end-to-end trainable system and explore more diverse visual representations to further enhance the multimodal memory structure.

Summary updated

BibTeX
@inproceedings{wang2018m,
  author = {Junbo Wang and Wei Wang and Yan Huang and Liang Wang and Tieniu Tan},
  title = {{M3: Multimodal Memory Modelling for Video Captioning}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  doi = {10.1109/cvpr.2018.00784},
}
Figure