TL;DR
This paper introduces Att-CapNet, a novel relation extraction framework that uses capsule networks to identify multiple, overlapping relations between entities in a single sentence. By replacing traditional max-pooling with an attention-based routing algorithm and a dynamic sliding-margin loss, the model significantly outperforms standard convolutional and recurrent neural networks on multi-label relation extraction tasks.
What Problem Does This Paper Address?
Relation extraction (RE) is the task of identifying semantic relationships between pairs of entities in text (e.g., recognizing that "[Arthur Lee] was born in [Memphis]" implies a person/place_birth relation). While traditional deep learning models excel when a sentence contains exactly one relation, they struggle in real-world scenarios where an entity pair expresses multiple, overlapping relations simultaneously.
For example, consider the sentence: "Arthur Lee, the leader of Love, died on Thursday in Memphis." This single sentence expresses both person/place_death and person/place_lived for the entity pair [Arthur Lee, Memphis].
Standard neural network architectures (like CNNs and RNNs) typically compress sentence features into a single high-level vector using max-pooling or word-level attention. This "squashing" effect makes it incredibly difficult to preserve distinct, discrete clues for multiple relations. Furthermore, handling the "no relation" (NA) class becomes problematic when multiple valid labels exist.
Methods
To capture these discrete and overlapping features, the authors propose Att-CapNet, which structures relation extraction into three main layers:
- Feature Extraction Layer: The sentence is tokenized and mapped to a combination of word embeddings and position embeddings (the relative distance of each word to the target entities). A Bidirectional LSTM (Bi-LSTM) or CNN processes this sequence to capture global context and generate low-level semantic features.
- Feature Clustering Layer (The Core Innovation): Instead of pooling these features into one vector, the model scatters them into a set of low-level capsules. It then uses a novel Attention-based Routing Algorithm to cluster these low-level capsules into high-level relation capsules. Unlike standard dynamic routing (which treats all tokens equally), this algorithm computes attention weights based on the target entity features, forcing the network to focus on the most relevant words for that specific entity pair.
- Relation Predicting Layer: The length of each high-level capsule represents the probability of a specific relation. To handle multi-label classification and the NA class effectively, the authors introduce a Sliding-Margin Loss. Instead of using a fixed threshold, the model automatically learns a dynamic baseline boundary ($B$). If a relation capsule's length exceeds $B$, that relation is predicted; if no capsules exceed $B$, the model outputs "no relation".
Datasets
The model was evaluated on two widely used benchmarks:
- NYT-10: A large dataset generated via distant supervision by aligning Freebase relations with New York Times articles. It contains 566,190 training sentences and explicitly includes a high volume of multi-labeled sentences (45,693), making it the primary testbed for this approach.
- SemEval-2010 Task 8: A cleaner, human-annotated dataset containing 8,000 training sentences across 19 relation classes. While it does not contain multi-labeled sentences, it serves to demonstrate the model's strong generalization capabilities on standard single-label relation extraction.
Key Insights and Ideas
- Capsules for Overlapping Concepts: Capsule networks are uniquely suited for multi-label tasks because their activation is vector-based rather than scalar-based. Multiple high-level capsules can fire independently, allowing the network to say "Relation A is present with property X, and Relation B is also present with property Y."
- Entity-Steered Routing: Standard capsule routing can get distracted by noisy or irrelevant words in long sentences. By modulating the routing coefficients with entity-guided attention, the model ensures that the clustering process is directly relevant to the entity pair under consideration.
- The Sliding Margin: Treating "No Relation" (NA) as just another class label fails because NA doesn't have a consistent feature prototype. The sliding-margin loss elegantly reframes NA as the absence of any strong relation signal, using a learnable threshold to separate signal from noise.
Key Results
On the multi-label heavy NYT-10 dataset, the RNN-based Att-CapNet achieved a substantial performance boost over competitive baselines, raising the F1-score to 41.6% (a absolute improvement of at least 3.2% over previous state-of-the-art models like Zhou et al., 2016).
When isolating a test subset of 500 explicitly multi-labeled sentences, Att-CapNet demonstrated its true strength by achieving an F1-score of 91.8%, significantly outperforming traditional max-pooling and word-level attention mechanisms which struggle to recall more than one relation per sentence.
On the single-label SemEval-2010 Task 8 dataset, the model also achieved state-of-the-art performance with an F1-score of 84.5%, proving that the capsule architecture doesn't sacrifice standard classification accuracy to achieve its multi-label prowess.
Limitations and Future Work
While the paper demonstrates clear empirical gains, capsule networks are historically more computationally expensive than standard pooling operations due to the iterative nature of the routing algorithm (the authors use 3 routing iterations). The authors do not deeply analyze the training or inference latency overhead introduced by Att-CapNet.
For future work, the authors suggest generalizing this attentive capsule clustering mechanism to other NLP tasks characterized by highly overlapping and discrete features, such as machine reading comprehension.
Summary updated