Multi-level Attention-Based Neural Networks for Distant Supervised Relation Extraction

Linyi Yang, Tin Lok James Ng, Catherine Mooney, Ruihai DongAICS 2017

Introduction

Relation Extraction (RE) is a fundamental task in natural language processing, aimed at identifying semantic relationships between entity pairs in text. While supervised learning has achieved high performance, it is often bottlenecked by the requirement for large-scale, hand-labeled datasets. Distant supervision addresses this by automatically aligning knowledge bases with unstructured text. However, this method introduces significant noise, as not all sentences containing an entity pair necessarily express the target relation—a challenge known as the "wrong labeling problem."

Previous approaches have attempted to mitigate this noise using sentence-level attention mechanisms. This paper proposes a more granular solution: a multi-level attention-based neural network that filters noise at both the word and sentence levels.

Methods

The core of the proposed architecture is the BiGRU-2ATT model. It processes input sentences through a series of specialized layers designed to capture context and filter irrelevant information.

Architecture of the BiGRU-2ATT model featuring word-level and sentence-level attention mechanisms.

Architecture Components

  1. Vector Representation: The model converts words into 50-dimensional embeddings, which are then concatenated with position embeddings. These position embeddings encode the relative distance of each word from the target entities, providing crucial structural context.
  2. BiGRU Layer: A Bidirectional Gated Recurrent Unit (BiGRU) processes the word sequences. By reading text in both forward and backward directions, the BiGRU captures long-range dependencies and semantic nuances more effectively than standard unidirectional RNNs or CNNs.
  3. Word-Level Attention: This first attention tier assigns weights to individual words within a sentence. It enables the model to focus on highly informative "trigger" words (e.g., "founded," "born in") while ignoring non-contributory filler words.
  4. Sentence-Level Attention: The second tier operates on a "bag" of sentences containing the same entity pair. It dynamically weights each sentence based on its relevance to the predicted relation, effectively down-weighting noisy or irrelevant sentences that do not actually express the relation.

Experimental Setup

The model was evaluated using the Riedel Dataset, a standard benchmark for distant supervision. The dataset consists of New York Times (NYT) articles aligned with relations from Freebase, totaling 522,611 training sentences and 172,448 testing sentences across 53 relation types.

Results and Analysis

The BiGRU-2ATT model demonstrated superior performance compared to existing state-of-the-art baselines, including feature-based models and single-level attention networks.

  • Precision-Recall Performance: The model maintained higher precision across the entire range of recall compared to traditional models like Mintz and Hoffmann, as well as the popular PCNN+ATT architecture.
  • Precision at N (P@N): In the "All" sentences evaluation setting, the BiGRU-2ATT model achieved a precision of 84.0% for the top 100 extracted instances, a significant improvement over the 76.0% achieved by the BiGRU+ATT (sentence-level only) baseline.
  • Qualitative Impact: Case studies revealed that the multi-level attention mechanism successfully identifies multiple informative sentences within a bag, assigning them balanced weights rather than arbitrarily selecting a single "best" sentence.

Conclusion

By integrating word-level and sentence-level attention with bidirectional GRUs, this research provides a robust framework for handling the noise inherent in distantly supervised datasets. The results suggest that addressing noise at multiple scales is critical for high-fidelity relation extraction. Future work may explore the integration of pre-trained transformer models and methods for handling overlapping relations where entity pairs share multiple distinct labels.

Summary updated

BibTeX
@inproceedings{yang2017multi,
  author = {Linyi Yang and Tin Lok James Ng and Catherine Mooney and Ruihai Dong},
  title = {{Multi-level Attention-Based Neural Networks for Distant Supervised Relation Extraction}},
  booktitle = {AICS},
  year = {2017},
}
Figure