Finding ReMO (Related Memory Object): A Simple Neural Architecture for Text based Reasoning

Jihyung Moon, Hyochang Yang, Sungzoon ChoarXiv 2018 · OpenReview

Abstract

To solve the text-based question and answering task that requires relational reasoning, it is necessary to memorize a large amount of information and find out the question relevant information from the memory. Most approaches were based on external memory and four components proposed by Memory Network. The distinctive component among them was the way of finding the necessary information and it contributes to the performance. Recently, a simple but powerful neural network module for reasoning called Relation Network (RN) has been introduced. We analyzed RN from the view of Memory Network, and realized that its MLP component is able to reveal the complicate relation between question and object pair. Motivated from it, we introduce RMN which uses MLP to find out relevant information on Memory Network architecture. It shows new state-of-the-art results in jointly trained bAbI-10k story-based question answering tasks and bAbI dialog-based question answering tasks.

Introduction

Logical reasoning in Natural Language Processing (NLP) involves two primary challenges: maintaining a sequence of facts and identifying the specific subset of facts that support an answer. Existing architectures typically struggle with one of these. Memory Networks (MemNNs) excel at storage but often use shallow mathematical operations, like dot products, to determine relevance. Conversely, Relation Networks (RNs) employ powerful Multi-Layer Perceptrons (MLPs) for pairwise comparisons but suffer from a "combinatorial explosion" of noise when processing long stories.

The Relation Memory Network (RMN) bridges this gap by combining the structured memory of MemNNs with the deep relational matching capabilities of MLPs, creating a scalable yet sophisticated reasoning engine.

Methodology: The RMN Architecture

RMN is structured around four functional components designed to optimize information retrieval and reasoning:

  1. Embedding: Sentences and questions are transformed into vector representations using LSTMs or position encoding.
  2. Attention (The "ReMO" Component): Unlike traditional models that use dot products, RMN utilizes an MLP ($g_\theta$) to compare the question with each memory object. This allows the model to learn non-linear, high-dimensional relationships between the query and the facts.
  3. Updating and Forgetting: For multi-step reasoning, RMN employs a "hops" approach. It introduces a unique update rule where a fact is partially "erased" from memory after being used in a reasoning step ($m^{t+1} = (1 - \alpha)m^t$). This prevents the model from redundantly focusing on the same information and forces it to progress through a logical chain.
  4. Reasoning: A final MLP ($f_\phi$) processes the retrieved information alongside the original question to generate the answer.
The RMN architecture illustrating the multi-hop attention and memory update mechanism.

Experimental Results

The model was rigorously tested on the bAbI story-based QA (10k) and bAbI dialog benchmarks.

bAbI Story Tasks

RMN set a new benchmark on the bAbI-10k dataset with a mean error of just 1.2%. It demonstrated significant improvements in tasks where previous models like MemN2N and DMN+ struggled, such as Task 17 (Positional Reasoning).

Performance comparison across 20 bAbI tasks, showing RMN achieving the lowest mean error.

Ablation and Dialog Performance

Ablation studies confirmed that the MLP-based attention is the critical driver of performance; replacing it with a standard inner product caused the error rate to spike from 1.2% to 29.4%. In dialog tasks, RMN outperformed existing models in both standard and Out-of-Vocabulary (OOV) scenarios, particularly in tasks requiring precise mapping between user input and database fields.

Discussion and Conclusion

RMN demonstrates that deep relational matching can be efficiently integrated into memory-based architectures. By focusing on the relationship between the question and memory objects rather than all-to-all pairwise relations, RMN maintains stability across long sequences.

While highly effective, the model still faces challenges with Task 3 (Three Supporting Facts), where temporal nuances (e.g., "before") can lead to errors. Future work will explore applying RMN's relational logic to Visual Question Answering (VQA), leveraging its ability to reason over sets of objects extracted from images.

Summary updated

Abstract

To solve the text-based question and answering task that requires relational reasoning, it is necessary to memorize a large amount of information and find out the question relevant information from the memory. Most approaches were based on external memory and four components proposed by Memory Network. The distinctive component among them was the way of finding the necessary information and it contributes to the performance. Recently, a simple but powerful neural network module for reasoning called Relation Network (RN) has been introduced. We analyzed RN from the view of Memory Network, and realized that its MLP component is able to reveal the complicate relation between question and object pair. Motivated from it, we introduce which uses MLP to find out relevant information on Memory Network architecture. It shows new state-of-the-art results in jointly trained bAbI-10k story-based question answering tasks and bAbI dialog-based question answering tasks.
BibTeX
@misc{moon2018finding,
  author = {Jihyung Moon and Hyochang Yang and Sungzoon Cho},
  title = {{Finding ReMO (Related Memory Object): A Simple Neural Architecture for Text based Reasoning}},
  year = {2018},
  eprint = {1801.08459},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1801.08459},
}
Figure