Abstract
Extracting relations from text via distant supervision (DS) is a common approach for knowledge base population but is plagued by noisy instances and the challenge of overlapping relations. We present the Regularized Attentive Capsule Network (RA-CapNet), a novel architecture that combines multi-head attention with capsule networks. By employing a relation-specific query and a disagreement regularization term, RA-CapNet forces different attention heads to focus on distinct semantic features, enabling the extraction of multiple relations from a single sentence. Evaluation on the NYT-10 and NYT-18 benchmarks demonstrates significant improvements over existing state-of-the-art models.
Introduction
Distant supervision (DS) automatically generates training data by aligning knowledge bases with text. However, this method introduces two major issues: low-quality, noisy instances and the "overlapped relation" problem, where two entities share multiple relationships within one sentence. Traditional models using max-pooling often fail to distinguish these overlapping signals. We address these challenges by introducing RA-CapNet, which leverages the strengths of capsule networks in preserving multi-faceted feature information.
Methodology
The RA-CapNet architecture consists of several specialized layers designed to filter noise and capture diverse relational signals.
Feature Encoding and Relation Query Attention
The model first uses a Bidirectional LSTM (BLSTM) to encode word context. To focus on relevant relational information, we implement a Relation Query Multi-Head Attention mechanism. Unlike standard self-attention, we use the vector subtraction of the two target entities ($Entity A - Entity B$) as the attention query. This "semantic compass" helps the model identify words that specifically describe the link between the entities.
Multi-Head Capsules and Disagreement Regularization
Each attention head's output is treated as a low-level capsule. To prevent different heads from converging on the same dominant pattern, we introduce Disagreement Regularization. This penalty term in the loss function discourages similarity between capsules, forcing the model to attend to different parts of the sentence. This is crucial for identifying secondary relations that might otherwise be overshadowed.
Dynamic Routing
Finally, low-level capsules are routed to high-level relation capsules via dynamic routing. A sliding-margin loss is employed to handle the multi-label nature of the task, allowing the model to predict multiple relations simultaneously.
Experimental Results
We evaluated RA-CapNet on the standard NYT-10 dataset and the larger, more complex NYT-18 dataset.
Performance Comparison
RA-CapNet significantly outperforms previous models like PCNN, BGRU+ATT, and QARE+ATT. On NYT-10, it achieved an Area Under the Curve (AUC) of 0.526, compared to the previous best of 0.428. On the more challenging NYT-18 dataset, the AUC reached 0.780.
Qualitative Analysis
Case studies confirm that RA-CapNet is uniquely capable of identifying overlapping relations. For instance, in sentences describing a city as both a "capital" and "contained within" a province, RA-CapNet successfully extracts both labels, whereas baseline models typically only identify the most prominent one.
Conclusion
RA-CapNet addresses the core limitations of distant supervision in relation extraction. By combining entity-aware attention with regularized capsule networks, the model effectively filters noise and disentangles overlapping relations. Future work will explore alternative regularization strategies and the integration of these components into transformer-based models like BERT.
Summary updated