Abstract
Sentence-level relation extraction (RE) aims at identifying the relationship between two entities in a sentence. Many efforts have been devoted to this problem, while the best performing methods are still far from perfect. In this paper, we revisit two problems that affect the performance of existing RE models, namely entity representation and noisy or ill-defined labels. Our improved RE baseline, incorporated with entity representations with typed markers, achieves an F1 of 74.6% on TACRED, significantly outperforms previous SOTA methods. Furthermore, the presented new baseline achieves an F1 of 91.1% on the refined Re-TACRED dataset, demonstrating that the pretrained language models (PLMs) achieve high performance on this task. We release our code to the community for future research.
Introduction
Relation Extraction (RE) is a fundamental task in natural language processing, focused on identifying semantic relationships between entities within a sentence. Despite the advent of powerful Pretrained Language Models (PLMs) like BERT and RoBERTa, progress in RE has appeared to plateau. This research identifies two primary factors for this stagnation: inadequate entity representation and significant noise in existing benchmarks.
Existing models often struggle to integrate "side information"—such as entity types (e.g., Person, Organization) and precise spans—without sacrificing the context of the entity names. Furthermore, popular datasets like TACRED contain significant noise, with approximately 6.6% incorrect or ill-defined labels in the test set, creating an artificial ceiling for model performance.
Methods: Typed Entity Markers
The core contribution of this work is the "Typed Entity Marker (punct)" technique. Unlike previous approaches that replaced entity names with types (Entity Masking) or used new special tokens (e.g., [SUBJ-PERSON]), this method wraps entities in standard punctuation markers that include their Named Entity Recognition (NER) types.
For example:
- Subject:
@ * person * Bill Gates @ - Object:
# ^ organization ^ Microsoft #
Using punctuation is advantageous because PLMs like RoBERTa are sensitive to randomly initialized special tokens. By utilizing characters the model already "understands," it can better leverage its pretrained knowledge to identify entity boundaries and types while maintaining the semantic context of the entity names.
The architecture extracts the hidden states of these markers from the PLM's final layer, concatenates them, and processes them through a simple linear layer and softmax classifier.
Experimental Results
The improved baseline was evaluated across three benchmarks: the original TACRED, the relabeled TACREV, and the thoroughly refined Re-TACRED.
As shown in the performance comparison above, the RoBERTa-Large model with typed markers achieved state-of-the-art results:
- TACRED: 74.6% $F_1$, surpassing the previous SOTA (LUKE) by nearly 2%.
- TACREV: 83.2% $F_1$.
- Re-TACRED: 91.1% $F_1$.
The significant jump in performance on Re-TACRED suggests that the perceived plateau in RE was largely due to data quality. When noise is removed, PLMs demonstrate a much higher capability for the task than previously thought.
Analysis and Conclusion
The study reveals that keeping entity names (rather than masking them) is crucial for generalization, particularly for unseen entities. However, the performance gain from typed markers is less pronounced on the cleaner Re-TACRED dataset compared to the original TACRED. This suggests that in noisy environments, models may use entity types as a heuristic when the context is ambiguous.
In conclusion, achieving state-of-the-art RE performance does not require complex architectural modifications or external knowledge. By optimizing entity representation and ensuring data quality, simple PLM-based baselines can achieve exceptional results. Future work will explore the application of these techniques to document-level relation extraction.
Summary updated