TL;DR
This paper introduces the Entity-based Memory Network (Entity-MNN), a neural architecture for reading comprehension that shifts the focus from sentence-level storage to tracking individual entities. By maintaining and updating a "memory pool" of entity states, the model achieves superior performance on complex reasoning tasks like path-finding and positional tracking compared to traditional sentence-based memory networks.
What Problem Does This Paper Address?
Traditional Memory Networks (MNNs) represent text by storing sentence vectors in a memory pool. When a question arises, the model retrieves relevant sentences to predict an answer. However, the authors argue that sentences are "noisy" elementary units. A single long sentence might contain only a small fragment of information relevant to a question, and sentence-level representations struggle to capture the fine-grained interactions between specific actors or objects (entities) across a long narrative.
The challenge is to enable a model to "understand" text by tracking how the states of specific entities (e.g., a character's location or a sentiment) evolve over time, allowing for more sophisticated relational reasoning.
Methods
The Entity-MNN architecture is composed of four distinct modules:
- Input Module (I): Converts sentences into vectors and extracts entities (defined here as nouns and pronouns).
- Generalization Module (G): This is the core innovation. It maintains a memory pool where each entity has its own state vector. As new sentences arrive, the module updates the states of the entities contained within them. It uses an autoencoder approach: it tries to reconstruct the entire sentence vector using only the states of the entities it contains. This forces the entity vectors to absorb the relevant context from the sentence.
- Output Feature Module (O): Triggered by a question, this module iteratively searches the memory pool. It assigns scores to entities based on their relevance to the question and updates a feature vector.
- Response Module (R): Uses the final feature vector to predict the answer, either as a single word or a generated sentence.
The model utilizes Gated Recurrent Units (GRUs) and LSTMs for sequence modeling and state updates, ensuring that information can be maintained over long periods.
Datasets
The authors evaluated their model on three diverse benchmarks:
- bAbI: A toy dataset of 20 tasks designed to test specific reasoning capabilities (e.g., deduction, induction, path-finding).
- MCTest (Machine Comprehension Test): A collection of 660 stories (MC160 and MC500) written for children, featuring multiple-choice questions that require common-sense reasoning.
- Large Movie Review Dataset (IMDB): A sentiment classification task (50,000 reviews) which the authors framed as a QA problem ("What is the opinion?").
Key Insights and Ideas
- Entities as the "Core" of Text: The fundamental assumption is that text can be projected into a "world of entities." Reasoning is essentially the process of analyzing how these entities' states and relations change.
- Fine-Grained Focus: By decomposing sentences into entities, the model avoids the "noise" of irrelevant words in a sentence. If Entity A in Sentence 1 interacts with Entity B in Sentence 10, the model can link them directly through their updated states rather than trying to match two disparate sentence vectors.
- Iterative Retrieval: The Output Feature Module doesn't just look at memory once; it iteratively updates its understanding of the question by looking at related entities, similar to how a human might re-read parts of a story to find a specific detail.
Key Results
- Reasoning Breakthroughs: On the bAbI dataset, the Entity-MNN significantly outperformed previous models on the hardest tasks. For path-finding, it achieved 53% accuracy (vs. 35-36% for MNN/DMN). For positional reasoning, it reached 67% (vs. 60-65%).
- State-of-the-Art on MCTest: The model achieved an average accuracy of 76.1% on MC160 and 76.6% on MC500, outperforming previous state-of-the-art systems that relied on much richer, hand-crafted semantic features.
- Sentiment Analysis: Framed as a QA task, the model reached 97.2% accuracy on a subset of the IMDB dataset, suggesting that entity-tracking is a powerful tool even for high-level classification.
Limitations and Future Work
- Entity Dependency: The model requires entities to be annotated or extracted in advance. While the authors used a simple noun/pronoun heuristic, more complex entity resolution might be needed for real-world applications.
- Pro-drop Languages: The authors note that the model might struggle with languages like Japanese or Chinese, where pronouns (entities) are often omitted if they can be inferred from context.
- Sparse Entities: The model is less effective on texts that contain very few entities, as there are fewer "hooks" to store information.
- Future Directions: The authors plan to explore incorporating other linguistic components beyond just entities to create an even more holistic representation of text.
Summary updated