Multi-Level Structured Self-Attentions for Distantly Supervised Relation Extraction

Jinhua Du, Jingguang Han, Andy Way, Dadong WanEMNLP 2018

Introduction

Relation Extraction (RE) is a fundamental task in natural language processing, aimed at identifying semantic relationships between entity pairs within text (e.g., recognizing that "Steve Jobs" and "Apple" share a founder_of relationship). To scale these models, researchers often rely on Distant Supervision (DS), which automatically labels raw text by aligning it with existing knowledge bases.

However, DS is inherently noisy. A sentence like "I flew from Paris to France" might be incorrectly labeled with a capital_of relation simply because a knowledge base contains that fact. To mitigate this "mislabeling problem," Multi-Instance Learning (MIL) is employed, where sentences are grouped into "bags" based on entity pairs. While standard models use 1-D attention vectors to select relevant sentences from these bags, this paper argues that such mechanisms are too shallow to capture the multi-faceted nature of language.

Methods: The MLSSA Framework

The authors propose Multi-Level Structured Self-Attention (MLSSA), a model that replaces traditional 1-D attention vectors with 2-D matrices at two critical levels of the architecture. This allows the model to focus on multiple semantic "aspects" simultaneously.

The MLSSA-ATT-2 architecture featuring word-level and sentence-level structured attention layers.

1. Structured Word-Level Attention

Instead of a single weight vector for words in a sentence, MLSSA learns a 2-D matrix. Each row in this matrix represents a different semantic aspect. To prevent these rows from converging on the same words, the authors introduce a penalization term (Frobenius norm) that encourages orthogonality, forcing the different attention "heads" to remain mathematically distinct.

2. Structured Sentence-Level Attention

When evaluating a bag of multiple sentences, the model again utilizes a 2-D matrix. This structured approach allows the model to identify and aggregate multiple valid instances that might express the same relation in different ways, rather than being forced to pick a single "best" sentence.

The underlying architecture uses a Bidirectional LSTM (BiLSTM) to process word embeddings and capture contextual dependencies before the attention layers are applied.

Experimental Setup

The model was evaluated on two primary benchmarks:

  • NYT Corpus: A large-scale dataset for distantly supervised RE with over 580,000 sentences.
  • DBpedia Portuguese (PT): A smaller dataset used to evaluate the model's robustness across different languages and data scales.

Key Results

MLSSA consistently outperformed state-of-the-art baselines, including PCNN+ATT and BiGRU+ATT. The structured attention mechanism proved particularly effective at filtering noise and capturing diverse evidence within sentence bags.

Precision-Recall curves on the NYT dataset comparing MLSSA variants against standard baselines.
  • Precision-Recall Performance: As shown in the PR curves, MLSSA models maintain significantly higher precision across almost all recall levels on the NYT dataset.
  • P@N (Precision at N): In the "All" setting (utilizing all sentences in a bag), MLSSA-2 achieved a mean precision of 82.8%, surpassing the strongest BiGRU baseline (76.6%).
  • Cross-Lingual Robustness: On the PT-Manual test set, MLSSA-2 reached a Macro F1 of 69.6%, demonstrating its effectiveness even in lower-resource or different language contexts.

Conclusion

The core insight of this work is that language is multi-dimensional; a 1-D attention vector acts like a spotlight, whereas a 2-D matrix acts like a floodlight. By forcing diversity through orthogonality and applying structured attention at both the word and sentence levels, MLSSA effectively "harvests" valid information from noisy, distantly supervised data. Future work may involve transitioning from BiLSTMs to purely attention-based architectures like Transformers to further improve computational efficiency.

Summary updated

BibTeX
@inproceedings{du2018multi,
  author = {Jinhua Du and Jingguang Han and Andy Way and Dadong Wan},
  title = {{Multi-Level Structured Self-Attentions for Distantly Supervised Relation Extraction}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1245},
}
Figure