[Paper Review] Linguistic Knowledge as Memory for Recurrent Neural Networks
This paper proposes MAGE-RNN, a memory-augmented RNN framework that integrates symbolic linguistic knowledge—such as coreference and hypernymy relations—into recurrent networks via typed, long-range edges. By decomposing the resulting graph into directed acyclic subgraphs and learning separate representations per edge type, MAGE-RNN enables explicit, structured memory access, achieving state-of-the-art results on CNN, bAbi, and LAMBADA benchmarks, including solving 15/20 bAbi tasks with only 1,000 training examples per task.
Training recurrent neural networks to model long term dependencies is difficult. Hence, we propose to use external linguistic knowledge as an explicit signal to inform the model which memories it should utilize. Specifically, external knowledge is used to augment a sequence with typed edges between arbitrarily distant elements, and the resulting graph is decomposed into directed acyclic subgraphs. We introduce a model that encodes such graphs as explicit memory in recurrent neural networks, and use it to model coreference relations in text. We apply our model to several text comprehension tasks and achieve new state-of-the-art results on all considered benchmarks, including CNN, bAbi, and LAMBADA. On the bAbi QA tasks, our model solves 15 out of the 20 tasks with only 1000 training examples per task. Analysis of the learned representations further demonstrates the ability of our model to encode fine-grained entity information across a document.
Motivation & Objective
- To address the challenge of modeling long-range dependencies in sequential data, especially when training data is limited.
- To improve text comprehension by incorporating symbolic linguistic knowledge—such as coreference and hypernymy—into recurrent neural networks.
- To design a memory-augmented RNN architecture that explicitly uses external knowledge to guide memory access, rather than relying solely on data-driven attention or memory mechanisms.
- To achieve superior performance on benchmark text comprehension tasks, particularly in low-data regimes.
- To demonstrate that structured linguistic knowledge can serve as an effective inductive bias for sequence modeling, even when the model is trained end-to-end.
Proposed method
- Augment the input sequence with typed, long-range edges representing linguistic relations (e.g., coreference, hypernymy), transforming the sequence into a graph with cycles.
- Decompose the resulting graph into two directed acyclic graphs (DAGs) using the original sequence order as a topological ordering, enabling efficient, single-pass computation.
- Introduce MAGE-RNN, a framework that maintains separate hidden states and memory representations for each edge type at every node, enabling type-specific information propagation.
- Implement a GRU-based variant, MAGE-GRU, which replaces standard GRU units in existing models with MAGE-GRU units to integrate linguistic memory into sequence models.
- Parameterize the model to learn distinct representations for propagation along each edge type, allowing the network to selectively attend to relevant distant elements via symbolic signals.
- Use coreference resolution tools to extract entity mentions and link them via edges, then integrate these links into the RNN as explicit memory signals.
Experimental results
Research questions
- RQ1Can symbolic linguistic knowledge such as coreference and hypernymy be effectively used to guide memory access in RNNs?
- RQ2Does incorporating structured linguistic relations as typed edges improve long-range dependency modeling in low-data settings?
- RQ3Can a memory-augmented RNN framework that treats linguistic relations as explicit memory signals outperform standard RNNs and attention-based models on text comprehension tasks?
- RQ4How does the model’s performance scale with limited training data, particularly when external knowledge is used?
- RQ5To what extent can MAGE-RNN encode fine-grained entity-level information across long documents?
Key findings
- MAGE-RNN achieves state-of-the-art performance on the CNN dataset, improving test accuracy to 0.786 with MAGE-GRU (32) and 0.792 with MAGE-GRU (16), surpassing previous SOTA by 0.7%.
- On the bAbi QA tasks, the model solves 15 out of 20 tasks using only 1,000 training examples per task, demonstrating strong generalization in low-data regimes.
- The MAGE-GRU model improves the BiGRU baseline on CNN by 2.5 percentage points (from 0.704 to 0.729 on the test set), even without additional data.
- The model outperforms both vanilla GRU and a baseline that injects coreference IDs as one-hot features, showing the superiority of explicit memory over feature injection.
- Analysis of learned representations confirms that MAGE-RNN effectively encodes fine-grained entity information across documents, enabling accurate coreference resolution.
- The framework generalizes well: replacing GRU units in BiDAF with MAGE-GRUs leads to consistent improvements, confirming its compatibility and effectiveness across architectures.
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.