Neural Module Networks
Paper · 2015 · Jacob Andreas, Marcus Rohrbach, Trevor Darrell et al.
Summary
Visual question answering systems of the time usually compressed a question into one vector, either a bag of words or an LSTM encoding, and passed it with image features to a single classifier. Andreas et al. argue that questions are compositional, so the network that computes an answer should follow the question's structure. They propose neural module networks (NMNs). A semantic parser analyses each question, and its output decides which small, typed neural modules are connected into a network built for that question. Examples of modules are attention over the image and labeling of an attended region. All modules are trained together from question–answer pairs only, and each module's specialisation comes out of the shared training objective. A whole-question LSTM is added to supply priors and common sense. The authors evaluate on the VQA dataset and on a new synthetic dataset of complex questions about abstract shapes. The full model is state of the art on VQA and beats competing systems on the shapes data by up to 25% absolute. The work is an early bridge between symbolic semantic parsing and learned perception, and it points toward "programs" built from neural parts.
Key points
- VQA data and setup:
- The dataset has more than 200,000 images, three questions per image and ten answers per question.
- Training used only answers marked high confidence.
- Image features come from the conv5 layer of a 16-layer VGGNet after max-pooling, without fine-tuning.
- VQA results:
- Overall accuracy for NMN+LSTM is 54.8 on test-dev and 55.1 on test, against 53.7 and 54.1 for VIS+LSTM.
- The ablation without the question LSTM drops to 42.7.
- Per answer type:
- The model is strongest on Number (37.2) and Other (39.3).
- On Yes/No it scores 77.7, below the LSTM baseline's 78.20. The authors trace this gap to overfitting in the measure module.
- Module design: modules exchange three data types: images, unnormalized attentions and labels. Most of the interesting composition happens in attention space.
- Shapes dataset and parser quality:
- When training excluded size-6 questions (networks of 6 modules), accuracy on those questions did not drop.
- A hand check of the first 50 training parses found 80–90% of simple property questions analysed correctly.
- Harder questions tended to attract irrelevant predicates.
Interesting ideas
- I1. Give every reasoning step a typed interface (what it consumes and what it emits), so that steps can be freely chained into a different pipeline for each question, including combinations never seen in training.
- I2. Let the question's linguistic analysis decide the layout of the computation instead of using one fixed solver for all questions.
- I3. Treat soft attention as a graded version of a set denotation, so that intersecting or filtering sets becomes combining membership scores.
- I4. Test compositional generalisation by removing the deepest structures (here, 6-module questions) from training and checking whether accuracy on them holds up.
- I5. Hand-audit a small fixed sample of parser outputs to separate parse errors from reasoning errors before blaming the downstream model.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (answer): Readers could build a per-question chain of typed operators over the world of the text (find entity set → filter by state → describe or count), which keeps every step inspectable.
- I2 (tree): The UD tree of a question, such as the wh-word, its head and modifiers, could be mapped deterministically into an execution plan, making the parse itself the explanation of how the answer was found.
- I3 (world): Entity sets in the world of a text could carry graded membership, which lets vague descriptions ("the big animals") be composed without forcing early yes/no decisions.
- I4 (learn): Evaluation could hold out the longest frame chains or most nested questions as a negative control, showing whether repair rules and trained components really compose rather than memorise.
- I5 (tree): A routine check of the first N parses per new treebank or dialect conversion would show whether answer failures start in gparse or the perceptron parser rather than in later stages.
Institutions
Fields, topics and concepts
Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksComputer Vision and Pattern Recognition · 3,621 works
Cite
Cite as Jacob Andreas, Marcus Rohrbach, Trevor Darrell and Dan Klein. 2015. Neural Module Networks. arXiv:1511.02799.
@misc{andreas2015neural,
title = {{Neural Module Networks}},
author = {Jacob Andreas, Marcus Rohrbach, Trevor Darrell and Dan Klein},
year = {2015},
doi = {10.48550/arxiv.1511.02799},
eprint = {1511.02799},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.1511.02799}
}References
- J. Andreas and D. Klein. Grounding language with points and paths in continuous spaces. CoNLL, 2014. our card
- S. Antol, A. Agrawal, J. Lu, M. Mitchell, D. Batra, C. L. Zitnick, and D. Parikh. Vqa: Visual question answering. In ICCV, 2015. our card
- K. Cho, B. van Merriënboer, D. Bahdanau, and Y. Bengio. On the properties of neural machine translation: Encoder-decoder approaches. arXiv preprint arXiv:1409.1259, 2014. our card
- M.-C. De Marneffe and C. D. Manning. The Stanford typed dependencies representation. In Proceedings of the International Conference on Computational Linguistics, pages 1–8. Association for Computational Linguistics, 2008. our card
- J. L. Elman. Finding structure in time. Cognitive science, 14(2):179–211, 1990. OpenAlex ↗ · Scholar ↗
- N. FitzGerald, Y. Artzi, and L. Zettlemoyer. Learning distributions over logical forms for referring expression generation. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2013. our card
- H. Gao, J. Mao, J. Zhou, Z. Huang, L. Wang, and W. Xu. Are you talking to a machine? dataset and methods for multilingual image question answering. In NIPS, 2015. OpenAlex ↗ · Scholar ↗
- D. Geman, S. Geman, N. Hallonquist, and L. Younes. Visual turing test for computer vision systems. Proceedings of the National Academy of Sciences, 2015. OpenAlex ↗ · Scholar ↗
- R. Girshick, J. Donahue, T. Darrell, and J. Malik. Rich feature hierarchies for accurate object detection and semantic segmentation. In Computer Vision and Pattern Recognition (CVPR), 2014 IEEE Conference on, pages 580–587. IEEE, 2014. our card
- S. Hochreiter and J. Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997. OpenAlex ↗ · Scholar ↗
- M. Iyyer, J. Boyd-Graber, L. Claudino, R. Socher, and H. Daumé III. A neural network for factoid question answering over paragraphs. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, 2014. OpenAlex ↗ · Scholar ↗
- A. Karpathy and L. Fei-Fei. Deep visual-semantic alignments for generating image descriptions. In CVPR, 2015. our card
- A. Karpathy, A. Joulin, and L. Fei-Fei. Deep fragment embeddings for bidirectional image sentence mapping. In NIPS, 2014. OpenAlex ↗ · Scholar ↗
- D. Klein and C. D. Manning. Accurate unlexicalized parsing. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, pages 423–430. Association for Computational Linguistics, 2003. OpenAlex ↗ · Scholar ↗
- C. Kong, D. Lin, M. Bansal, R. Urtasun, and S. Fidler. What are you talking about? text-to-image coreference. In CVPR, pages 3558–3565. IEEE, 2014. OpenAlex ↗ · Scholar ↗
- J. Krishnamurthy and T. Kollar. Jointly learning to parse and perceive: connecting natural language to the physical world. Transactions of the Association for Computational Linguistics, 2013. our card
- Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998. OpenAlex ↗ · Scholar ↗
- P. Liang, M. I. Jordan, and D. Klein. Learning dependency-based compositional semantics. Computational Linguistics, 39(2):389–446, 2013. OpenAlex ↗ · Scholar ↗
- T.-Y. Lin, M. Maire, S. Belongie, J. Hays, P. Perona, D. Ramanan, P. Dollár, and C. L. Zitnick. Microsoft coco: Common objects in context. In Computer Vision–ECCV 2014, pages 740–755. Springer, 2014. our card
- L. Ma and Z. L. andiyyer Hang Li. Learning to answer questions from image using convolutional neural network. arXiv:1506.00333, 2015. OpenAlex ↗ · Scholar ↗
- M. Malinowski and M. Fritz. A multi-world approach to question answering about real-world scenes based on uncertain input. In NIPS, 2014. OpenAlex ↗ · Scholar ↗
- M. Malinowski, M. Rohrbach, and M. Fritz. Ask your neurons: A neural-based approach to answering questions about images. In ICCV, 12/2015 2015. OpenAlex ↗ · Scholar ↗
- C. Matuszek, N. Fitzgerald, L. Zettlemoyer, L. Bo, and D. Fox. A joint model of language and perception for grounded attribute learning. In ICML, 2012. our card
- B. Plummer, L. Wang, C. Cervantes, J. Caicedo, J. Hockenmaier, and S. Lazebnik. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In ICCV, 2015. OpenAlex ↗ · Scholar ↗
- M. Ren, R. Kiros, and R. Zemel. Image question answering: A visual semantic embedding model and a new dataset. In NIPS, 2015. OpenAlex ↗ · Scholar ↗
- M. Ren, R. Kiros, and R. S. Zemel. Image question answering: A visual semantic embedding model and a new dataset. CoRR, abs/1505.02074, 2015. OpenAlex ↗ · Scholar ↗
- K. Simonyan and A. Zisserman. Very deep convolutional networks for large-scale image recognition. CoRR, abs/1409.1556, 2014. our card
- R. Socher, J. Bauer, C. D. Manning, and A. Y. Ng. Parsing with compositional vector grammars. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, 2013. our card
- J. Weston, A. Bordes, S. Chopra, and T. Mikolov. Towards ai-complete question answering: a set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015. our card
- J. Weston, S. Chopra, and A. Bordes. Memory networks. arXiv preprint arXiv:1410.3916, 2014. OpenAlex ↗ · Scholar ↗
- K. Xu, J. Ba, R. Kiros, A. Courville, R. Salakhutdinov, R. Zemel, and Y. Bengio. Show, attend and tell: Neural image caption generation with visual attention. arXiv preprint arXiv:1502.03044, 2015. our card
- L. Yu, E. Park, A. C. Berg, and T. L. Berg. Visual madlibs: Fill in the blank image generation and question answering. arXiv:1506.00278, 2015. OpenAlex ↗ · Scholar ↗
- M. D. Zeiler. ADADELTA: An adaptive learning rate method. arXiv preprint arXiv:1212.5701, 2012. our card
This page in Markdown https://md.research.elamur.ai/free/en/papers/andreas-2015-neural-module-networks/