[Paper Review] Neural Module Networks for Reasoning over Text
The paper extends neural module networks to answer compositional questions against paragraphs of text by introducing differentiable text-and-symbol modules and auxiliary supervision, achieving strong results on a subset of the DROP dataset.
Answering compositional questions that require multiple steps of reasoning against text is challenging, especially when they involve discrete, symbolic operations. Neural module networks (NMNs) learn to parse such questions as executable programs composed of learnable modules, performing well on synthetic visual QA domains. However, we find that it is challenging to learn these models for non-synthetic questions on open-domain text, where a model needs to deal with the diversity of natural language and perform a broader range of reasoning. We extend NMNs by: (a) introducing modules that reason over a paragraph of text, performing symbolic reasoning (such as arithmetic, sorting, counting) over numbers and dates in a probabilistic and differentiable manner; and (b) proposing an unsupervised auxiliary loss to help extract arguments associated with the events in text. Additionally, we show that a limited amount of heuristically-obtained question program and intermediate module output supervision provides sufficient inductive bias for accurate learning. Our proposed model significantly outperforms state-of-the-art models on a subset of the DROP dataset that poses a variety of reasoning challenges that are covered by our modules.
Motivation & Objective
- Motivate compositional QA over open-domain text and highlight challenges with end-to-end QA supervision.
- Introduce differentiable modules for text, numbers, and dates to enable symbolic reasoning over a paragraph.
- Propose an unsupervised auxiliary loss to guide intermediate reasoning and information extraction.
- Show that limited supervised signals (question programs and module outputs) aid learning.
- Demonstrate improved performance over state-of-the-art baselines on a DROP subset with interpretable intermediate outputs.
Proposed method
- Parse questions into executable programs composed of neural modules.
- Ground modules over contextual token embeddings from question and paragraph representations (GRU or BERT).
- Define a typed, differentiable module set (find, filter, relocate, find-num, find-date, count, compare-*, time-diff, find-max-num, span) operating over Q, P, N, D, C, TD, S.
- Train via end-to-end differentiable marginal likelihood over a beam-searched set of programs.
- Introduce unsupervised auxiliary losses to encourage localized argument extraction (within a window) for find-num, find-date, relocate.
- Provide limited heuristic supervision for question programs and intermediate module outputs on a subset of data to bootstrap learning.
Experimental results
Research questions
- RQ1Can NMNs be adapted to perform multi-step, symbolic reasoning over natural language text?
- RQ2Do differentiable, probabilistic modules enable robust reasoning over numbers, dates, and spans in a paragraph?
- RQ3Does auxiliary supervision improve joint learning of the question parser and executable modules in open-domain text QA?
- RQ4How does an NMN-based approach compare to existing state-of-the-art models on DROP-derived tasks?
- RQ5What are the limitations and future directions for extending NMNs to broader DROP questions?
Key findings
- The model with GRU achieves 73.1 F1 and 69.6 EM on the pruned DROP test set, outperforming NAQANet (62.1 F1, 57.9 EM).
- With BERT representations, the model reaches 77.4 F1 and 74.0 EM, surpassing MTMSN (76.5 F1).
- Auxiliary unsupervised loss substantially improves performance (from 57.3 to 73.1 F1 for the BERT-based variant).
- Compact, heuristic training supervision for programs and intermediate outputs provides additional gains (5–10% supervision).
- The approach highlights interpretability via intermediate module outputs and enables targeted error analysis and potential transfer learning.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.