Effective Deep Memory Networks for Distant Supervised Relation Extraction

Xiaocheng Feng, Jiang Guo, Bing Qin, Ting Liu, Yongjie Liu

Abstract

Relation extraction (RE) is a critical task in natural language processing, often hindered by the high cost of manual data labeling. Distant supervision offers a scalable alternative by aligning knowledge bases with raw text, but it introduces significant noise through incorrect labeling. This paper proposes a Deep Memory Network (DMN) that leverages dual attention mechanisms—word-level and relation-level—to mitigate this noise. By treating entity pairs as queries to iteratively refine context importance and modeling dependencies between relations, the DMN achieves state-of-the-art performance on the NYT10 benchmark, demonstrating superior precision and recall compared to existing neural and feature-based models.

Introduction

Relation Extraction involves identifying the semantic relationship between two entities in a sentence (e.g., recognizing that "Barack Obama" and "United States" are linked by the relation BornIn). To scale this task, researchers utilize distant supervision, which automatically generates training data by aligning existing knowledge bases (like Freebase) with raw text.

However, distant supervision is inherently noisy. If a database indicates Obama was born in the US, it may incorrectly label every sentence containing both entities as a BornIn example, even if the sentence is irrelevant (e.g., "Obama flew to the United States"). Furthermore, traditional models often treat relations as independent, ignoring semantic overlaps where one relation might imply another. This paper introduces a Deep Memory Network (DMN) designed to filter out such noise and capture hidden relational dependencies.

Methodology: Deep Memory Networks

The proposed DMN architecture consists of two primary components designed to handle noise at different granularities:

  1. Word-Level Memory Network: This component treats the entity pair as a "query" to attend to context words. Using multiple "hops" (iterative computational layers), the model refines which words are most relevant to the relationship. For instance, in the sentence "Obama was born in the US," the word "born" receives high attention as a strong relational signal.
  2. Relation-Level Memory Network: Operating on a "bag" of sentences for a specific entity pair, this network employs two layers of selective attention. First, it weights individual sentences to down-weight noisy instances. Second, it introduces a novel layer for selective attention over relations, allowing the model to learn dependencies between different relations and use evidence from one to help infer another.
The DMN architecture featuring word-level and sentence-level memory networks.

The final representation combines these memory outputs with standard Convolutional Neural Network (CNN) feature maps to produce a robust relational embedding.

Experimental Evaluation

The model was evaluated on the NYT10 dataset, a standard benchmark comprising New York Times articles (2005–2007) aligned with Freebase. The dataset includes approximately 112,000 training sentences and 152,000 testing sentences across 26 distinct relations.

Results and Discussion

The DMN model consistently outperformed both traditional feature-based methods (e.g., Mintz, MIML) and modern neural baselines (e.g., PCNN, ATT).

  • Precision-Recall Performance: The DMN maintained higher precision across nearly the entire recall range, showing particular strength in high-confidence zones. As shown in the PR curve, the "Memory" model (DMN) provides a significant lift over the previous state-of-the-art attention-based models (ATT).
  • Precision at N (P@N): The DMN achieved a Precision@100 of 0.89, compared to 0.86 for the best previous neural attention model and 0.77 for traditional logistic regression.
  • Ablation Insights: Studies revealed that multiple hops are essential; while a single pass catches surface keywords, 6 hops allow the model to capture abstract semantic evidence. However, performance degrades beyond 6 hops due to the vanishing gradient problem.
Precision-Recall curves comparing the DMN (Memory) against various baseline models.

Conclusion

By integrating word-level and relation-level attention within a memory network framework, this research successfully addresses the "wrong labeling" problem in distant supervision. The DMN's ability to treat entities as queries and model relation interdependence marks a significant advancement in automated fact extraction. Future work may explore more complex memory update functions or the integration of external linguistic knowledge, such as dependency trees, to further refine the model's accuracy.

Summary updated

BibTeX
@inproceedings{feng2017effective,
  author = {Xiaocheng Feng and Jiang Guo and Bing Qin and Ting Liu and Yongjie Liu},
  title = {{Effective Deep Memory Networks for Distant Supervised Relation Extraction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  doi = {10.24963/ijcai.2017/559},
}
Figure