[Paper Review] Span-based Joint Entity and Relation Extraction with Transformer Pre-training
SpERT is a span-based joint entity and relation extraction model that leverages BERT embeddings with lightweight reasoning, strong within-sentence negative sampling, and localized context representation to enable efficient full-span search. It achieves state-of-the-art performance, outperforming prior methods by up to 2.6% F1 score on multiple benchmarks.
We introduce SpERT, an attention model for span-based joint entity and relation extraction. Our key contribution is a light-weight reasoning on BERT embeddings, which features entity recognition and filtering, as well as relation classification with a localized, marker-free context representation. The model is trained using strong within-sentence negative samples, which are efficiently extracted in a single BERT pass. These aspects facilitate a search over all spans in the sentence. In ablation studies, we demonstrate the benefits of pre-training, strong negative sampling and localized context. Our model outperforms prior work by up to 2.6% F1 score on several datasets for joint entity and relation extraction.
Motivation & Objective
- Address the limitations of sequential labeling (e.g., BIO/BILOU) in handling overlapping entities by proposing a span-based approach.
- Improve joint entity and relation extraction by leveraging contextual representations from BERT with minimal downstream computation.
- Enable efficient, exhaustive search over all spans in a sentence through lightweight reasoning and effective negative sampling.
- Investigate the impact of pre-training, negative sampling strategy, and context representation on model performance.
- Demonstrate that a simple, shallow classifier with localized context can outperform more complex architectures in joint extraction tasks.
Proposed method
- Utilizes BERT as a contextual encoder to generate contextualized token representations in a single forward pass.
- Performs a full search over all possible spans in a sentence to identify candidate entities, enabling detection of overlapping entities.
- Applies span filtering and entity recognition via a lightweight classifier on BERT embeddings, avoiding complex sequence labeling.
- Employs a localized context representation between entity pairs for relation classification, excluding the full sentence context.
- Generates strong negative samples from the same sentence during training, extracted efficiently in a single BERT pass.
- Uses a simple, shallow classifier for both entity and relation prediction, minimizing architectural complexity while maximizing performance.
Experimental results
Research questions
- RQ1Can a span-based approach with BERT pre-training outperform sequence labeling-based methods in joint entity and relation extraction?
- RQ2How effective is within-sentence negative sampling compared to other sampling strategies in improving model generalization?
- RQ3Does a localized context representation between entity pairs improve relation classification, especially in long sentences?
- RQ4To what extent does pre-training contribute to performance gains in joint extraction compared to training from scratch?
- RQ5What are the main error patterns in span-based joint extraction, and how do they affect model reliability?
Key findings
- SpERT achieves state-of-the-art performance on multiple joint entity and relation extraction benchmarks, improving F1 scores by up to 2.6% over prior methods.
- The use of strong negative samples from the same sentence significantly improves model performance and enables efficient training with a single BERT pass.
- Localized context representation between entity pairs yields better precision than full-sentence context, particularly in longer sentences.
- Pre-training on large-scale corpora followed by fine-tuning leads to substantial performance gains, demonstrating the importance of contextual representations.
- The model successfully identifies overlapping entities—such as 'lithium toxicity' and 'theophylline poisoning'—which are challenging for BIO/BILOU-based models.
- Common error types include incorrect span predictions, false positives due to syntactic similarity, logical inferences not explicitly stated, and missing ground-truth annotations.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.