Abstract
Progress in "slot filling"—the task of automatically populating knowledge bases from unstructured text—has historically been hampered by architectural limitations and a lack of high-quality supervised data. This paper introduces a novel position-aware attention mechanism for Long Short-Term Memory (LSTM) networks and presents TACRED, a large-scale supervised dataset for relation extraction. By explicitly modeling the relative distance between words and target entities, the proposed model achieves a significant 4.5% absolute improvement in F1 score on the competitive TAC KBP benchmark.
Introduction: The Challenge of Slot Filling
Relation Extraction (RE) is the process of identifying semantic relationships between entities in a sentence. For instance, given the sentence "Steve Jobs co-founded Apple," an RE system should identify the org:founded_by relation. When applied at scale to build or update knowledge graphs, this task is known as Slot Filling.
Despite its importance, two major obstacles have limited performance:
- Architectural Limitations: Standard neural architectures like CNNs and LSTMs often struggle with the complex, long-form sentences typical of news text. They lack a mechanism to prioritize words based on their proximity or relevance to the specific subject and object entities.
- Data Scarcity: High-quality, human-annotated datasets were previously small. Many researchers turned to "distant supervision," which uses existing databases to automatically label text. However, this method introduces significant noise, leading to unreliable model training.
Methods: Position-Aware Attention
To address these limitations, the authors propose a neural sequence model that enhances a standard LSTM with a position-aware attention mechanism.
The model incorporates several key components:
- Position Embeddings: For every word, the model calculates its relative distance to the subject and object entities. These distances are mapped to learned embeddings, providing the model with structural cues.
- Global Context: The final state of the LSTM serves as a "summary vector" ($q$), capturing the overall semantic meaning of the sentence.
- Attention Layer: Unlike standard attention, which relies solely on hidden states, this mechanism calculates weights by combining the word's hidden state, the sentence summary vector, and the position embeddings. This allows the model to focus on words that are both semantically relevant and strategically located near the entities of interest.
- Entity Masking: To ensure the model learns general relational patterns rather than memorizing specific entity names, names are replaced with their types (e.g.,
[PERSON]-SUBJ).
The TACRED Dataset
A core contribution of this work is the introduction of the TAC Relation Extraction Dataset (TACRED).
- Scale: With 119,474 examples, it is over ten times larger than previous supervised datasets like SemEval-2010.
- Source: The data is derived from news and web text used in the annual TAC KBP challenges (2009–2014).
- Complexity: It covers 42 relation types and includes a "no_relation" category (comprising 78.7% of the data) to reflect the difficulty of real-world extraction tasks.
Key Results and Insights
The position-aware model demonstrates superior performance and robustness. On the TACRED test set, it achieved an F1 score of 65.4%, outperforming standard LSTMs (61.5%) and CNNs (59.2%). When integrated into the state-of-the-art Stanford slot-filling pipeline, the model raised the overall system F1 score from 22.2% to 26.7%.
A critical insight from the ablation studies is the model's robustness to sentence length. While all models see a performance drop as sentences grow longer, the position-aware LSTM maintains a significant lead over CNNs, which are constrained by a more "local" view of the text. This confirms that explicitly modeling position helps the network ignore "distractor" phrases in complex sentences.
Conclusion
This work highlights that for relation extraction, "where" a word is located is often as important as "what" the word is. By combining a position-aware attention mechanism with a large-scale, high-quality supervised dataset, the authors have set a new state-of-the-art for slot filling. Future work will likely focus on closing the recall gap and developing end-to-end systems to reduce error propagation from earlier pipeline stages like Named Entity Recognition.
Summary updated