TL;DR
This paper tackles the challenging task of document-level relation extraction by fine-tuning the powerful BERT language model. They introduce a novel two-step training process that first identifies if a relation exists between entity pairs and then predicts the specific relation, achieving improved performance over existing baselines.
What Problem Does This Paper Address?
Relation extraction (RE) is crucial for understanding information in text, with applications ranging from question answering to knowledge graph construction. Traditionally, RE has focused on identifying relationships between entities within a single sentence. However, real-world documents often express relational facts across multiple sentences, making document-level RE a significantly more complex challenge. The recent DocRED dataset was introduced to facilitate research in this area, but existing baseline models, often relying on BiLSTMs trained from scratch, struggle to capture the intricate interactions between entities spread across a document. This paper aims to establish a stronger baseline for document-level RE by leveraging pre-trained language models and proposing a more effective training strategy.
Methods
The core of this paper's approach is the application of BERT, a pre-trained transformer-based language model, to encode entire documents. Unlike previous methods that encoded documents sentence-by-sentence or used simpler recurrent architectures, BERT's ability to capture long-range dependencies and contextual information is hypothesized to be beneficial.
The authors introduce a two-step training process to address the significant class imbalance in the DocRED dataset (where most entity pairs have no relation, i.e., the "N/A" relation).
- Step 1: Relation Existence Prediction: This step simplifies the problem into a binary classification task. The model is trained to predict whether a given entity pair has any relation or not. To handle the imbalance, sub-sampling is used to balance relational and N/A pairs within each training batch.
- Step 2: Specific Relation Prediction: In this step, a new model (or the same BERT architecture) is trained only on entity pairs that are annotated with a specific relation. This allows the model to learn to distinguish between the various relation types.
For both steps, a BiLinear layer is used to predict the relation based on the encoded embeddings of the entity pair. The final prediction for a given entity pair involves first using the model from Step 1 to determine if a relation exists, and if so, then using the model from Step 2 to predict the specific relation.
Datasets
The paper primarily uses the DocRED dataset for training and evaluation. DocRED is a large-scale document-level relation extraction dataset collected through distant supervision on Wikipedia documents and Wikidata. It includes named entity recognition, entity linking, and relation annotations. The authors specifically mention using the annotated data for their experiments.
Key Insights and Ideas
- BERT as a Stronger Encoder: Pre-trained language models like BERT offer a significant advantage for document-level RE due to their ability to capture rich linguistic features and potentially common-sense knowledge, leading to improved performance over models trained from scratch.
- Two-Step Training for Imbalance: The proposed two-step training process effectively tackles the severe class imbalance in DocRED. By separating the "relation existence" problem from the "specific relation identification" problem, the model can learn more effectively.
- Bottleneck in Relation Existence: The authors observe that while identifying the specific relation (Step 2) is relatively easy (achieving over 90% accuracy), the primary challenge lies in the first step: accurately predicting whether a relation exists between an entity pair.
- Limited Interaction Modeling: The paper suggests that current models, even BERT, may struggle to capture truly complex interactions between entities that span across multiple sentences. This is inferred from experiments with a sentence-by-sentence encoding model (SentModel) that performed similarly to a full document encoder, indicating a potential lack of deep inter-sentence interaction modeling.
Key Results
- Fine-tuning BERT on the DocRED dataset resulted in an approximate 2% F1 score improvement over existing baselines.
- The two-step training process further improved performance beyond the single-step BERT fine-tuning. The paper reports a BERT-Two-Step model achieving an F1 score of 54.42 on the Dev set and 53.92 on the Test set, outperforming other baselines like CNN, LSTM, and BiLSTM.
- The accuracy for the second step (specific relation prediction) was observed to be above 90%.
Limitations and Future Work
- Complex Interaction Modeling: The authors identify that current models fail to adequately capture complex interactions among entities across sentences. They suggest this is a key area for future research in document-level RE.
- Focus on BERT: While BERT provides a strong baseline, future work could explore other advanced pre-trained models or novel architectures specifically designed for document-level understanding.
- Dataset Specifics: The performance gains are demonstrated on the DocRED dataset. Further evaluation on other document-level RE datasets would be beneficial.
Summary updated