MEMEN: Multi-layer Embedding with Memory Networks for Machine Comprehension

Boyuan Pan, Hao Li, Zhou Zhao, Bin Cao, Deng Cai, Xiaofei HearXiv 2017

Abstract

Machine Reading Comprehension (MRC) requires models to capture both fine-grained linguistic features and complex relationships between questions and passages. We present MEMEN (Multi-layer Embedding with Memory Networks), a framework that enriches word representations with syntactic and entity information while utilizing a "full-orientation" attention mechanism. MEMEN achieves state-of-the-art results on the TriviaQA dataset and competitive performance on SQuAD, demonstrating significant training efficiency compared to models using complex self-matching layers.

Introduction

Machine Comprehension (MC) involves teaching computers to read a passage and answer related questions. Despite advancements in deep learning, existing models face two primary challenges:

  1. Shallow Encoding: Most models rely solely on word-level and character-level embeddings, neglecting crucial linguistic context provided by Part-of-Speech (POS) and Named Entity Recognition (NER) tags.
  2. Inflexible Attention: Current mechanisms often oscillate between 1D attention (which loses detail) and 2D attention (which can be noisy due to stop words).

MEMEN addresses these gaps through a multi-layered approach to embedding and a hierarchical attention strategy.

Methodology

The MEMEN architecture consists of three core innovations designed to deepen the model's understanding of text.

The MEMEN architecture overview, illustrating the Multi-Layer Embedding, Memory Networks of Full-Orientation Matching, and the Prediction Layer.

Multi-layer Embedding

Beyond standard vectors, MEMEN utilizes the Skip-gram model to train specific embeddings for POS and NER tags. By treating these tags as sequential data, the model learns to cluster similar grammatical and entity types within the vector space, providing richer contextual signals.

Full-Orientation Matching

This hierarchical attention layer combines three matching strategies:

  • Integral Query Matching: Relates the entire question to each passage word.
  • Query-Based Similarity: Establishes a word-to-word alignment matrix.
  • Context-Based Similarity: Identifies the most representative query words for the given context.

Multi-hop Memory Network

The model employs a multi-hop approach, typically iterating through the data three times. This allows the network to refine its focus on pivotal information. A pointer network then predicts the start and end indices of the answer span.

Experimental Results

MEMEN was evaluated on the SQuAD v1.1 and TriviaQA benchmarks.

Performance comparison of MEMEN against baseline models on the TriviaQA dataset across Wiki and Web domains.

Performance and Efficiency

On the TriviaQA dataset, MEMEN reached scores as high as 53.27% Exact Match (EM) and 57.64% F1 score, significantly outperforming baselines like BiDAF. On SQuAD, it achieved 75.37% EM and 82.66% F1. Notably, MEMEN is highly efficient; it trains in approximately 5 hours on a single GPU, whereas models utilizing self-matching layers often require over 20 hours.

Key Insights

  • Linguistic Features: Ablation studies confirmed that POS and NER embeddings significantly boost performance, with POS tags providing a particularly strong signal.
  • Optimal Iteration: Performance peaks at three memory hops; further iterations lead to overfitting.
  • Attention Impact: Removing the "Full-Orientation" components resulted in a 10% performance drop, highlighting the importance of the multi-angle attention approach.

Conclusion

MEMEN demonstrates that combining multi-layer linguistic embeddings with iterative memory hops and hierarchical attention significantly improves machine comprehension. Future work will explore generative methods for answer synthesis and improved sentence ranking for long-form document processing.

Summary updated

BibTeX
@misc{pan2017memen,
  author = {Boyuan Pan and Hao Li and Zhou Zhao and Bin Cao and Deng Cai and Xiaofei He},
  title = {{MEMEN: Multi-layer Embedding with Memory Networks for Machine Comprehension}},
  year = {2017},
  eprint = {1707.09098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.09098},
}
Figure