Abstract
This paper introduces Att-BLSTM, a neural network architecture that combines Bidirectional Long Short-Term Memory (BLSTM) with an attention mechanism to classify semantic relations between entities in a sentence. By automatically learning which words are most important for a given relation, the model achieves state-of-the-art performance (84.0% F1-score) on the SemEval-2010 benchmark using only raw word vectors, eliminating the need for expensive handcrafted features or external NLP tools.
Introduction
Relation classification is the task of identifying the semantic connection between two entities (nominals) in a sentence. For example, in the sentence "Flowers are carried into the chapel," a system should identify an Entity-Destination relation between "Flowers" and "chapel."
Historically, this task relied on "feature engineering"—manually designing features based on WordNet, part-of-speech tags, or dependency parsers. This approach has two major flaws: error propagation from upstream NLP tools and the high cost of manual feature design, which often fails to generalize. While early deep learning models like CNNs or standard RNNs reduced the need for manual features, they struggled to capture long-distance dependencies or identify which specific words in a long sentence actually "triggered" the relation.
Methodology
The authors propose the Att-BLSTM model, which consists of five distinct layers designed to capture both local and global context while highlighting relevant tokens.
- Input Layer: Receives the raw sentence. Entities are marked with position indicators (e.g., $\langle e1 \rangle$, $\langle /e1 \rangle$).
- Embedding Layer: Maps each word into a low-dimensional dense vector. Position indicators are treated as tokens.
- LSTM Layer (Bidirectional): Uses a BLSTM to capture information from both the past (left-to-right) and the future (right-to-left) context.
- Attention Layer: The core innovation. Instead of using only the final hidden state, the model learns a weight for every word. It creates a sentence-level representation by taking a weighted sum of all word features, allowing the model to "attend" to the most informative words regardless of position.
- Output Layer: A Softmax classifier that predicts the relation category.
Experimental Setup
The model was evaluated on the SemEval-2010 Task 8 dataset, which contains 10,717 annotated examples (8,000 training, 2,717 testing). The task is to classify pairs of nominals into 9 directed relation types (e.g., Cause-Effect, Component-Whole) or an "Other" class. Performance is measured using the macro-averaged F1-score.
Results and Discussion
The Att-BLSTM model achieved an F1-score of 84.0% on the SemEval-2010 Task 8 dataset.
Key findings include:
- Attention Replaces Parsers: Learned attention mechanisms can identify decisive words automatically from raw text, making systems simpler and more robust than those using dependency paths.
- Simplicity and Power: Using only word vectors and position indicators, Att-BLSTM outperforms models that incorporate POS tags, NER, or external linguistic knowledge.
- Ablation Study: Adding the attention mechanism to a standard BLSTM improved the F1-score from 82.7% to 84.0% (using GloVe 100d vectors), confirming that not all words contribute equally to relation classification.
Conclusion
Att-BLSTM demonstrates that combining bidirectional LSTMs with attention mechanisms provides a powerful, feature-light approach to relation classification. While the model currently uses static embeddings (GloVe/Turian), future work could explore advanced contextual embeddings. Additionally, investigating the model's performance on noisier, distantly supervised data and its computational efficiency relative to CNNs remains an area for further study.
Summary updated