NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Multi-Stage Memory Augmented Neural Network for Machine Reading Comprehension

Seunghak Yu, Sathish Reddy Indurthi, Seohyun Back, Haejun LeeQA @ ACL 2018

TL;DR

This paper introduces MAMCN, a novel memory-augmented neural network designed to tackle the challenge of reading comprehension over long documents. By incorporating an external memory module, MAMCN effectively captures long-range dependencies, achieving state-of-the-art results on challenging datasets like QUASAR-T and TriviaQA, and performing competitively on paragraph-level tasks like SQuAD.

What Problem Does This Paper Address?

Machine Reading Comprehension (MRC) aims to enable computers to understand text and answer questions based on it. While recent deep learning models have shown impressive performance, they often struggle with long documents. Real-world documents are typically lengthy, containing irrelevant information and not always guaranteeing the presence of an answer within a single paragraph. Existing models, often trained on shorter, more focused datasets like SQuAD, fail to generalize well to these longer, more realistic scenarios because they cannot effectively capture dependencies that span across many paragraphs or even pages. This limitation hinders their practical application in scenarios requiring understanding of extensive texts.

Methods

The core innovation of this paper is the Memory Augmented Machine Comprehension Network (MAMCN). MAMCN builds upon existing MRC architectures but crucially integrates an external memory component, inspired by Neural Turing Machines and Differentiable Neural Computers.

Here's a breakdown of the key components:

  • Word/Character Embeddings: Each word is represented by a combination of word-level embeddings (like GloVe) and character-level embeddings (learned via convolutions) to capture both semantic similarity and sub-word information, handling out-of-vocabulary words.
  • Contextual Embedding: A bi-directional GRU (Gated Recurrent Unit) is used to generate contextual representations for each word in the question and document, capturing sequential information.
  • Co-attention: This mechanism allows the model to attend to relevant parts of the question when processing the document, and vice-versa. It computes attention weights between question and document words to create question-aware representations of the document.
  • Memory Controller: This is the heart of MAMCN. It acts as an external memory unit that can read from and write to a memory matrix. This decouples the memory capacity from the model's parameters, allowing it to store and retrieve information over long sequences. The controller uses a two-layer BiGRU and employs content-based addressing for reading and writing, inspired by DNC.
  • Prediction Layer: The output from the memory controller is fed into a final prediction layer (another bi-directional GRU) to predict the start and end positions of the answer span.

The novelty lies in the integration of a sophisticated memory controller specifically designed to handle the long-range dependencies inherent in document-level MRC tasks, moving beyond previous applications of memory networks to simpler datasets.

Datasets

The paper evaluates MAMCN on three prominent datasets:

  • SQuAD (Stanford Question Answering Dataset): A widely used dataset for paragraph-level reading comprehension.
  • QUASAR-T (Question Answering by Search and Reading): A dataset designed to be more realistic, featuring factoid questions and longer documents.
  • TriviaQA: Another challenging dataset with question-answer pairs collected from trivia and quiz websites, using Wikipedia articles and web search results as evidence. TriviaQA documents are significantly longer than SQuAD, and the data is often distantly supervised, meaning the answer might not be explicitly present or easily identifiable.

The paper notes that for TriviaQA, documents were truncated to 1200 words for training and 2000 for testing, still representing substantial lengths compared to SQuAD.

Key Insights and Ideas

  • Memory is Crucial for Long Documents: The most significant insight is that external memory mechanisms are not just beneficial but essential for achieving high performance on tasks involving long documents. MAMCN's success on QUASAR-T and TriviaQA directly demonstrates this.
  • Decoupling Memory from Parameters: The use of a memory controller, inspired by DNC, allows the model to scale its memory capacity independently of its core network size, a key advantage for handling varying document lengths.
  • Compatibility with Existing Techniques: The paper shows that MAMCN can be further enhanced by incorporating techniques like ELMo embeddings and self-attention, indicating its modularity and compatibility with state-of-the-art advancements.
  • Addressing Real-World Complexity: By performing well on datasets like TriviaQA, which mimic real-world data scarcity and noise, MAMCN shows promise for practical applications beyond curated academic benchmarks.

Key Results

MAMCN achieved state-of-the-art results on several benchmarks:

  • QUASAR-T: Achieved 68.13 EM and 70.32 F1 for short documents and 63.44 EM and 65.19 F1 for long documents, outperforming previous approaches.
  • TriviaQA:
    • Web domain: 81.01 EM and 84.12 F1 (Verified), and 66.82 EM and 71.91 F1 (Full).
  • Wikipedia domain: 70.21 EM and 75.49 F1 (Verified), and 64.41 EM and 69.60 F1 (Full). These results are noted as being achieved without additional feature augmentation or self-attention mechanisms, highlighting the core contribution of the memory component.

  • SQuAD: While not its primary focus, MAMCN also performed competitively on SQuAD, achieving 77.44 EM and 85.13 F1 with ELMo, and 79.69 EM and 86.73 F1 when augmented with a densely connected embedding block and ELMo. This demonstrates its versatility across different document lengths.

Limitations and Future Work

  • Scalability of Memory Heads: The authors acknowledge that the current implementation of read/write heads might not scale efficiently to extremely large external memory sizes.
  • Reasoning over Multiple Documents: The current framework is designed for single documents. Future work could involve extending MAMCN to reason over multiple documents simultaneously.
  • Computational Cost: While memory augmentation is effective, it can introduce computational overhead. Further optimization might be needed for real-time applications.

Summary updated

BibTeX
@inproceedings{yu2018multi,
  author = {Seunghak Yu and Sathish Reddy Indurthi and Seohyun Back and Haejun Lee},
  title = {{A Multi-Stage Memory Augmented Neural Network for Machine Reading Comprehension}},
  booktitle = {QA @ ACL},
  year = {2018},
  doi = {10.18653/v1/w18-2603},
}
Figure