Do You Remember? Dense Video Captioning with Cross-Modal Memory Retrieval

Minkuk Kim, Hyeon Bae Kim, Jinyoung Moon, Jinwoo Choi, Seong Tae Kim

Abstract

Dense Video Captioning (DVC) requires models to both localize events in time and describe them semantically. Traditional approaches often rely on massive pre-training to bridge the gap between raw pixels and high-level descriptions. This paper introduces $CM^2$ (Cross-Modal Memory-based Dense Video Captioning), a framework that mimics human "cued recall" by leveraging an external memory bank of text descriptions. By retrieving relevant semantic clues based on visual input, $CM^2$ achieves state-of-the-art performance on standard benchmarks without the need for extreme-scale video pre-training.

Introduction

The primary challenge in DVC is the semantic poverty of raw visual data. While humans can watch a scene and draw upon past experiences to describe it fluently, AI models typically operate in a vacuum, relying solely on the current video frames. To compensate, previous state-of-the-art models have scaled up training to millions of narrated videos—a computationally expensive and data-intensive path.

The authors of $CM^2$ propose an alternative: retrieval-augmented video understanding. Instead of memorizing everything during pre-training, the model is given an external "memory" to consult during inference. This approach allows the model to find "semantic clues" from similar past events to guide its current descriptions.

The $CM^2$ framework mimics human cued recall by querying an external memory bank of text descriptions to enhance video captioning.

The $CM^2$ Framework

The $CM^2$ architecture consists of three primary components designed to integrate visual and textual information effectively.

1. Memory Construction and Retrieval

The model builds an external memory bank using text captions from the training dataset. These captions are encoded into a shared feature space using CLIP (Contrastive Language-Image Pre-training), ensuring alignment between visual and textual modalities. During processing, the input video is divided into temporal anchors. For each anchor, the model queries the memory bank to retrieve the $K$ most semantically similar text descriptions, which serve as "semantic clues."

2. Versatile Encoder-Decoder

The core of the model is a specialized Transformer architecture:

  • Versatile Encoder: This module uses a weight-shared structure to process both visual features and the retrieved text features. Weight sharing encourages the model to project both modalities into a unified semantic space, facilitating efficient cross-modal correlation.
  • Versatile Decoder: Unlike standard decoders, this component features decoupled Visual Cross-Attention and Textual Cross-Attention layers. This separation is crucial: visual data is used primarily for temporal localization (the "when"), while textual clues provide the vocabulary and structure for semantic description (the "what").
Detailed architecture of $CM^2$, showing the (a) Overall Architecture, (b) Memory Read module for retrieval, and (c) the Versatile Encoder-Decoder Module.

Experimental Results

The $CM^2$ model was evaluated on two major benchmarks: ActivityNet Captions and YouCook2.

  • State-of-the-Art Performance: On ActivityNet Captions, $CM^2$ achieved a CIDEr score of 33.01, significantly outperforming the previous CLIP-based state-of-the-art (PDVC) at 29.97. Similar gains were observed on YouCook2 (31.66 vs. 29.69).
  • Efficiency: Notably, $CM^2$ outperforms models trained on 15 million videos while using a fraction of the training data, demonstrating that architectural intelligence can be more effective than brute-force scaling.
  • Localization Accuracy: The inclusion of semantic text clues also improved the F1 score for event localization, suggesting that knowing what is happening helps the model better define when it starts and ends.
  • Oracle Potential: In experiments where the model was provided with ground-truth captions for retrieval, CIDEr scores on YouCook2 reached 183.95. This indicates that the framework's performance ceiling is tied directly to the quality of the retrieval mechanism.

Conclusion

$CM^2$ demonstrates that external memory retrieval is a powerful tool for dense video captioning. By decoupling localization and description tasks and leveraging text as a semantic prior, the model achieves high accuracy with greater data efficiency. Future work may focus on improving paragraph-level coherence across multiple segments and exploring "open-book" retrieval from massive, general-purpose text corpora.

Summary updated

BibTeX
@inproceedings{kim2024do,
  author = {Minkuk Kim and Hyeon Bae Kim and Jinyoung Moon and Jinwoo Choi and Seong Tae Kim},
  title = {{Do You Remember? Dense Video Captioning with Cross-Modal Memory Retrieval}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure