Cascaded Mutual Modulation for Visual Reasoning

Yiqun Yao, Jiaming Xu, Feng Wang, Bo Xu

Abstract

Visual reasoning is a special visual question answering problem that is multi-step and compositional by nature, and also requires intensive text-vision interactions. We propose CMM: Cascaded Mutual Modulation as a novel end-to-end visual reasoning model. CMM includes a multi-step comprehension process for both question and image. In each step, we use a Feature-wise Linear Modulation (FiLM) technique to enable textual/visual pipeline to mutually control each other. Experiments show that CMM significantly outperforms most related models, and reach state-of-the-arts on two visual reasoning benchmarks: CLEVR and NLVR, collected from both synthetic and natural languages. Ablation studies confirm that both our multistep framework and our visual-guided language modulation are critical to the task.

Introduction

Visual Question Answering (VQA) has evolved from simple attribute identification to complex visual reasoning. While standard VQA might ask about the color of an object, visual reasoning tasks like those in the CLEVR dataset require multi-step logical deductions, such as: "Is there a big brown object of the same shape as the green thing?"

Traditional approaches often treat this as a unidirectional process where the question guides the visual processing. However, this "language-guides-vision" paradigm fails to capture the iterative nature of human reasoning, where visual cues often refine our understanding of the question itself. CMM addresses this by creating a reciprocal, multi-step dialogue between the two modalities.

Comparison between previous one-way modulation and the proposed mutual modulation framework.

The Cascaded Mutual Modulation (CMM) Framework

CMM introduces a reciprocal dialogue between visual and textual modalities. Instead of a single static representation, both the visual features ($V$) and the question vector ($q$) are iteratively updated over $N$ steps.

Multi-Step Mutual Interaction

The core of the CMM architecture is the cascaded interaction step. In each step $i$, the model performs two primary modulations:

  1. Visual Modulation ($q \to V$): The question vector from the previous step ($q_{i-1}$) generates parameters ($\gamma, \beta$) via a Multi-Layer Perceptron (MLP). These parameters are used in a Feature-wise Linear Modulation (FiLM) layer within a Residual Block to transform the visual features $V_{i-1}$ into $V_i$.
  2. Language Modulation ($V \to q$): In a novel "mutual" step, the newly updated visual features $V_i$ are used to generate modulation parameters for the language features. This allows the visual context to focus the model's attention on specific parts of the question.
The internal structure of a single step in the Cascaded Mutual Modulation process, showing the interaction between visual and language modules.

Visual-Guided Attention

Following language modulation, a visual-guided attention mechanism performs a weighted summation over the word sequences. This produces a refined question vector $q_i$, which serves as the input for the next reasoning step. This iterative refinement allows the model to "re-read" the question in light of what it has discovered in the image.

Experimental Evaluation

The CMM model was evaluated on two challenging benchmarks:

  • CLEVR: A synthetic dataset testing logical reasoning across shapes, colors, and spatial relations. CMM achieved a state-of-the-art accuracy of 99.0% (ensemble), significantly outperforming the original FiLM (97.7%). Notably, CMM showed superior performance in "Counting" and "Comparison" tasks, suggesting that iterative refinement helps maintain complex numeric logic.
  • NLVR (Natural Language for Visual Reasoning): This dataset uses human-posed natural language. CMM reached 69.9% accuracy, a substantial improvement over previous models like NMN (66.1%).

Ablation studies highlighted that removing the language modulation component leads to a significant performance drop, proving that the bidirectional flow of information is essential for high-level visual reasoning.

Conclusion

Cascaded Mutual Modulation (CMM) demonstrates that visual reasoning benefits significantly from a symmetric interaction between vision and language. By allowing the image to modulate the question representation, CMM achieves superior performance on both synthetic and natural language benchmarks. Future work will explore the application of this mutual modulation architecture to more diverse, open-domain visual reasoning tasks.

Summary updated

BibTeX
@inproceedings{yao2018cascaded,
  author = {Yiqun Yao and Jiaming Xu and Feng Wang and Bo Xu},
  title = {{Cascaded Mutual Modulation for Visual Reasoning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  url = {https://openreview.net/forum?id=SJVoszz_bB},
}
Figure