[Paper Review] Compositional Attention Networks for Interpretability in Natural Language Question Answering
This paper proposes a modified MAC network for interpretable natural language question answering, leveraging compositional attention and iterative reasoning to trace step-by-step logic. It achieves high data efficiency and interpretability on bAbI tasks, with attention distributions revealing granular reasoning paths.
MAC Net is a compositional attention network designed for Visual Question Answering. We propose a modified MAC net architecture for Natural Language Question Answering. Question Answering typically requires Language Understanding and multi-step Reasoning. MAC net's unique architecture - the separation between memory and control, facilitates data-driven iterative reasoning. This makes it an ideal candidate for solving tasks that involve logical reasoning. Our experiments with 20 bAbI tasks demonstrate the value of MAC net as a data-efficient and interpretable architecture for Natural Language Question Answering. The transparent nature of MAC net provides a highly granular view of the reasoning steps taken by the network in answering a query.
Motivation & Objective
- To enhance interpretability in neural question answering by making reasoning steps transparent through attention tracking.
- To adapt the Visual Question Answering MAC Net architecture for natural language reasoning tasks.
- To evaluate the model’s performance and interpretability on the bAbI dataset, emphasizing data efficiency and reasoning transparency.
- To investigate the impact of architectural components on model performance and reasoning fidelity.
Proposed method
- Adapts the MAC Net architecture—originally for visual question answering—by replacing visual features with contextual embeddings from LSTMs for text.
- Uses a control unit to generate attention queries iteratively, enabling multi-step reasoning by conditioning on prior reasoning steps.
- Employs a read unit that combines story representations with attention over query keywords to retrieve relevant evidence step-by-step.
- Introduces a memory mechanism that retains and updates reasoning states across steps, allowing dynamic, iterative inference.
- Uses attention distributions over both the story and query to visualize and interpret each reasoning step.
- Applies graph reasoning by combining control words with previous memory states via weighted attention, improving reasoning coherence.
Experimental results
Research questions
- RQ1Can the MAC Net architecture, originally designed for visual question answering, be effectively adapted for natural language question answering with comparable interpretability?
- RQ2How does the model’s performance vary with the number of reasoning steps, and what is the optimal depth for reasoning in bAbI tasks?
- RQ3To what extent do architectural components such as shared vs. separate LSTMs, memory access, and graph reasoning affect model accuracy and interpretability?
- RQ4How well does the model generalize when trained on reduced data subsets, and what is the data efficiency of the proposed architecture?
Key findings
- The model achieved 79.4% accuracy when trained on just 10% of the bAbI dataset, demonstrating strong data efficiency.
- Performance peaked at 2 reasoning steps, with further steps causing degradation, indicating that most bAbI tasks require only short reasoning chains.
- Removing access to previous memory in the control unit caused a steep drop in performance, highlighting the importance of memory retention for reasoning.
- Ablation studies showed that using separate LSTMs for story and question encoding reduced accuracy by 1%, indicating minimal benefit from shared encoding.
- The model’s attention distributions provided a granular, interpretable view of reasoning steps, such as focusing on 'What is Jessica?' then 'What are mice afraid of?' in sequence.
- Re-reading the story at each step improved information integration, as shown by attention patterns that combined contextually relevant facts across steps.
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.