Learning to Discretely Compose Reasoning Module Networks for Video Captioning
Introduction
Video captioning represents a significant challenge in computer vision and natural language processing, requiring models to synthesize spatial and temporal information into coherent linguistic descriptions. While standard encoder-decoder architectures have achieved notable performance, they often operate as "black boxes," lacking transparency in how they map visual features to specific words. Furthermore, these models frequently struggle to distinguish between visual concepts (nouns/verbs) and linguistic glue (function words), leading to generic outputs. This paper introduces the Reasoning Module Network (RMN), a framework designed to decompose the captioning process into discrete, explainable reasoning steps.
The Reasoning Module Network Architecture
The RMN architecture moves away from monolithic decoders toward a modular approach. The system consists of four primary stages: Encoding, Module Reasoning, Module Selection, and Decoding.
1. Specialized Reasoning Modules
The core of the RMN lies in its three specialized "expert" modules:
- LOCATE: This module employs spatial-temporal attention mechanisms to ground nouns in specific video regions (e.g., identifying a "man" or a "basketball").
- RELATE: Designed to capture actions, this module models pairwise interactions between object regions over time to identify verbs (e.g., "shooting").
- FUNC: This module handles the generation of function words (e.g., "a", "is", "the") by relying on linguistic context and the internal state of the decoder, rather than direct visual grounding.
2. Dynamic Module Selection
At each timestep $t$, a Module Selector determines which expert should contribute to the next word. To maintain explainability, the model must make a discrete ("hard") choice. Because discrete operations are non-differentiable, the authors utilize the Gumbel-Softmax trick, allowing for end-to-end training via backpropagation. To ensure the modules specialize correctly, the selector is supervised using Part-of-Speech (POS) tags from the ground-truth captions, nudging the model to use RELATE for verbs and LOCATE for nouns.
Explainable Reasoning and Results
By forcing the model to select a specific module for each word, the RMN provides an inherent "audit trail" for its captions. This transparency allows researchers to verify if the model is truly grounding its descriptions in the visual data.
The RMN was evaluated on the MSVD and MSR-VTT benchmarks, achieving state-of-the-art results. On the MSVD dataset, it reached a CIDEr score of 94.4, while on MSR-VTT, it set a new benchmark with a score of 49.6. Qualitative analysis through word clouds confirmed that the modules successfully specialized: the LOCATE module predominantly generated nouns, while the RELATE module focused on action-oriented verbs.
Conclusion and Future Work
The Reasoning Module Network demonstrates that discrete, modular reasoning can improve both the performance and the interpretability of video captioning systems. While the current model relies on a fixed set of three modules and requires linguistic supervision on smaller datasets, it paves the way for more complex, multi-step reasoning architectures. Future research may explore expanding the module library to include attributes like color and size or developing methods for the model to learn the optimal number of modules autonomously.
Summary updated