Abstract
Relation Extraction (RE) typically involves identifying entities and determining their semantic relationships. Traditional token-level approaches, often relying on sequence tagging schemes like BILOU, struggle with overlapping entities and error propagation between sub-tasks. We propose a span-level model that treats every possible sequence of words as a potential entity, enabling simultaneous entity detection and relation classification. By leveraging contextual embeddings and span-head attention, our model achieves a new state-of-the-art F1 score of 62.83 on the ACE2005 benchmark, demonstrating significant improvements in recall and robustness against nested entities.
Introduction
Relation Extraction is a fundamental task in Information Extraction, requiring the identification of entities (e.g., "Washington, D.C.") and their relationships (e.g., "capital of"). Historically, models have approached this at the token level, tagging individual words to mark entity boundaries. However, this paradigm faces three major flaws: the inability to handle overlapping entities (the "Overlap Problem"), difficulty in extracting features for multi-word phrases, and cascading errors where failures in entity detection doom subsequent relation extraction.
Methodology
Our proposed model shifts the unit of analysis from individual tokens to text spans. The architecture follows a three-step process:
- Span Representation Generation: The model generates a vector for every possible span by combining contextual embeddings (ELMo, Senna, and character-level CNNs) processed through a bi-directional LSTM, a span-head attention mechanism to identify the most important word in a span, and learned span width features.
- Entity Mention Detection (EMD): A Multi-Layer Perceptron (MLP) evaluates each span independently to assign an entity type. This independence allows the model to naturally detect overlapping or nested spans.
- Relation Extraction (RE): For every pair of detected entities, the model classifies their relationship using an MLP that takes the concatenated representations of both spans and their element-wise product.
To maintain computational efficiency, we prune the search space by only considering spans within a single sentence and limiting the maximum span length to $L=10$ tokens.
Experimental Results
We evaluated the model on the ACE2005 dataset, which includes seven entity types and six relation types across 511 documents. The span-level approach demonstrated a significant performance leap over previous token-level joint models.
As shown in the results, our model achieved a new state-of-the-art (SOTA) F1 score of 62.83 for Relation Extraction, outperforming the previous best of 60.49. In Entity Mention Detection, the model achieved a competitive F1 of 85.98, notably reaching a high recall of 86.10. This suggests that the span-level approach is particularly effective at "finding" entities that sequential taggers often overlook.
Discussion and Conclusion
The primary advantage of this model lies in its parallelism; by modeling spans independently, it avoids the cascading error trap inherent in sequential models. Furthermore, our analysis of span pruning (Figure 2) shows that while considering all spans is theoretically expensive, a simple length limit of 10 tokens covers over 99.9% of entities while making the model 40x more memory-efficient.
Future work will address current limitations, such as the 10-token span cap which may not suffice for legal or medical domains, and extending the model to handle n-ary relations involving more than two entities.
Summary updated