Abstract
Distant supervision (DS) is a widely used technique for generating large-scale training data for Relation Extraction (RE) by aligning knowledge bases with unstructured text. However, this process inherently introduces label noise, where sentences are incorrectly associated with relations or falsely labeled as having no relation. This paper proposes Self-Ensemble Filtering (SEF), a novel framework that leverages a student-teacher architecture to identify and filter noisy samples during training. By maintaining a teacher model as an exponential moving average (EMA) of the student, the framework provides a stable and robust mechanism for noise detection. Experimental results on the New York Times dataset demonstrate that SEF consistently improves the performance of various state-of-the-art neural models, achieving significant gains in F1 scores.
Introduction
Relation Extraction (RE) is a fundamental task in Natural Language Processing aimed at identifying semantic relationships between entities in text. For instance, given the sentence "Barack Obama was born in Hawaii," an RE model should identify the birth_place relationship between "Barack Obama" and "Hawaii." Training effective RE models requires large amounts of labeled data, which is expensive to obtain manually. Distant Supervision (DS) addresses this by automatically labeling corpora using existing Knowledge Bases (KBs). The core assumption is that if two entities have a known relationship in a KB, any sentence containing both entities expresses that relationship.
The Challenge of Label Noise
While DS allows for the creation of massive datasets, its underlying assumption is frequently violated, leading to significant label noise. This noise typically takes two forms:
- Positive Noisy Samples: A sentence mentions two entities with a known KB relation, but the text does not actually express that relation (e.g., "Obama visited Hawaii" labeled as
birth_place). - Negative Noisy Samples: A sentence expresses a relation that is missing from the KB, resulting in an incorrect
Nonelabel.
These incorrect labels confuse neural models, limiting their ability to generalize and leading to poor performance, particularly in terms of precision and recall.
Proposed Method: Self-Ensemble Filtering (SEF)
The authors introduce Self-Ensemble Filtering (SEF), a framework designed to clean the training data dynamically. SEF is inspired by the "Mean Teacher" paradigm used in semi-supervised learning. The framework consists of two models: a Student and a Teacher.
The Student model is trained using standard backpropagation. The Teacher model's weights are updated as an Exponential Moving Average (EMA) of the Student's weights. This makes the Teacher a "self-ensemble" that is more stable and less likely to overfit to individual noisy samples compared to the rapidly changing Student.
The training process involves a Consistency Loss, which encourages the Student's predictions to align with the Teacher's. More importantly, SEF implements a Filtering Loop: at the end of each epoch, the Teacher evaluates the entire training set. Samples identified as noisy—based on the Teacher's confidence—are removed from the training set for the subsequent epoch. A "Dynamic Recovery" mechanism allows previously filtered samples to be reintroduced if the model's confidence in them increases later in training, preventing the permanent loss of potentially useful data.
Experimental Evaluation
The SEF framework was evaluated using the New York Times (NYT) dataset, a benchmark for distantly supervised RE. The training set contains approximately 335,000 instances across 24 valid relations and a None class. Evaluation was performed on a manually annotated "clean" test set of 1,450 instances. The framework was applied to four diverse neural architectures: CNN, PCNN (Piecewise CNN), Entity Attention (EA), and Bi-GRU Word Attention (BGWA).
Key Results and Insights
The experimental results show that SEF provides consistent performance improvements across all tested models:
- Consistent F1 Gains: Every model saw an absolute improvement in F1 score ranging from 1.1% to 2.3%.
- Recall Improvement: The most significant gains were observed in recall. By filtering out contradictory noisy samples, the models became much better at identifying valid relations they had previously missed.
- Efficiency: Unlike traditional ensembles that require training multiple independent models, the EMA-based Teacher adds negligible computational overhead during training.
- Superiority over Standard Ensembles: SEF outperformed a traditional ensemble of five models. For the BGWA architecture, SEF achieved a 2.6% higher F1 score than the standard ensemble approach.
Conclusion
Self-Ensemble Filtering offers a robust and efficient solution to the label noise problem in distant supervision. By using a stable Teacher model to judge the quality of training samples, SEF allows neural models to learn from cleaner data, leading to substantial improvements in relation extraction performance. Future work may extend this approach to document-level extraction and explore ways to reduce the computational cost of full-dataset prediction passes.
Summary updated