SandHouse
Pages and contents

Neural Module Networks

Field
Value
⋮⋮
Authors
Andreas, Rohrbach, et. al.
⋮⋮
Year
2017
⋮⋮
Link / arXiv
https://arxiv.org/pdf/1511.02799
⋮⋮
My relevance (1-5)
4
⋮⋮
Tags
#object #module #composition

Problem

The authors seek to address the compositional nature of visual question and answering by introducing an architecture which compose collections of jointly-trained neural “modules” into deep networks for question answering. Our approach decomposes questions into their linguistic substructures, and uses these structures to dynamically instantiate modular networks (with reusable components for recognizing dogs, classifying colors, etc.)

Method

The network first analyzes each question with a semantic parser, and uses this analysis to determine the basic computational units (attention, classification, etc.) needed to answer the question, as well as the relationships between the modules. Depending on the underlying structure, messages passed between modules may be raw image features, attentions, or classification decisions; each module is determined by its input and output types. Importantly, all modules in an NMN are independent and composable, which allows the computation to be different for each problem instance, and possibly unobserved during training.

A model is fully specified by a collection of modules {m}, each with associated parameters θm and a network layout predictor P which maps from strings to networks. Given a question w and an image x, the model instantiates a network P(w) and passes in image x to produce a distribution over labels.

[image: Screenshot_2026-08-19_at_12.49.23 PM.png]