Introduction
Video captioning aims to automatically generate natural language descriptions for video sequences. While traditional encoder-decoder frameworks have made significant strides, they often suffer from a "short-sighted" perspective. When generating a word, these models typically only consider the visual features of the current video. However, a single word can represent a wide array of visual contexts. For instance, the action "pouring" looks very different when it involves milk in a bowl versus gasoline in a car or sauce on pasta.
Standard models struggle to capture this "full-spectrum" visual meaning, often leading to generic or inaccurate descriptions when the specific visual input is ambiguous. The Memory-Attended Recurrent Network (MARN) addresses this by introducing a global memory module that stores representative visual contexts for every word in the vocabulary.
Methodology: The MARN Architecture
The MARN framework enhances the standard encoder-decoder setup with a specialized memory structure and a dual-decoder system.
1. Dual-Stream Encoder
To capture both spatial and temporal information, MARN utilizes a dual-stream encoder. It extracts 2D spatial features using ResNet-101 and 3D temporal features via ResNeXt-101. This ensures the model understands both the objects present and the dynamics of their movement.
2. Memory Structure
The core innovation is the Memory Structure. For each word in the vocabulary, the model maintains a memory key containing:
- Visual Context: A representative feature vector derived from the "top-k" most relevant frames across the entire training dataset where that word appears.
- Word Embedding: The semantic representation of the word.
- Auxiliary Features: Additional metadata such as video categories.
3. Dual-Decoder System
The decoding process involves two components:
- Basis Decoder: A standard attention-based GRU that focuses on the visual features of the current video.
- Attended Memory Decoder: This module queries the global memory bank to calculate a relevance score. It effectively compares the current video's state against the "prototypes" stored in memory, asking if the current scene aligns with how a specific word has been visually represented across the whole dataset.
4. Attention-Coherent (AC) Loss
To improve the temporal consistency of the model's focus, the authors introduced the Attention-Coherent (AC) Loss. This loss function encourages the visual attention weights to transition smoothly between adjacent frames, mimicking the persistence of human vision and preventing erratic "flickering" of attention.
Experimental Results
MARN was evaluated on the MSR-VTT and MSVD benchmarks, achieving state-of-the-art performance at the time of its release.
- MSR-VTT: The model achieved a CIDEr score of 47.1, outperforming contemporary models like PickNet.
- MSVD: MARN reached a CIDEr score of 92.2, a substantial improvement over the previous best of 80.3.
Ablation studies confirmed the effectiveness of the individual components. The memory module alone contributed to a 1.1% to 1.8% increase in CIDEr scores, while the AC Loss provided further gains. Qualitatively, MARN demonstrated a superior ability to identify specific actions, such as "spreading butter," where baseline models often defaulted to more generic terms like "slicing bread."
Conclusion
By integrating a global memory of visual-linguistic correlations, the Memory-Attended Recurrent Network moves beyond instance-specific captioning toward a more robust, prototype-based understanding. This approach allows the model to leverage dataset-wide knowledge to resolve ambiguities in individual videos, resulting in more precise and human-like descriptions. Future work may explore end-to-end memory updates and the integration of reinforcement learning to further enhance performance.
Summary updated