Learning with Noise: Enhance Distantly Supervised Relation Extraction with Dynamic Transition Matrix

Bingfeng Luo, Yansong Feng, Zheng Wang, Zhanxing Zhu, Songfang Huang, Rui Yan, Dongyan Zhao · DOI

Abstract

Distant supervision significantly reduces human efforts in building training data for many classification tasks. While promising, this technique often introduces noise to the generated training data, which can severely affect the model performance. In this paper, we take a deep look at the application of distant supervision in relation extraction. We show that the dynamic transition matrix can effectively characterize the noise in the training data built by distant supervision. The transition matrix can be effectively trained using a novel curriculum learning based method without any direct supervision about the noise. We thoroughly evaluate our approach under a wide range of extraction scenarios. Experimental results show that our approach consistently improves the extraction results and outperforms the state-of-the-art in various evaluation scenarios.

Introduction

Relation Extraction (RE) aims to identify semantic relationships between entities in text, such as identifying that "Elon Musk was born in Pretoria" implies the relationship born_in(Elon Musk, Pretoria). To scale training, researchers often employ Distant Supervision (DS), which automatically labels sentences containing entity pairs found in a Knowledge Base. However, this process is inherently noisy; for instance, a sentence discussing Donald Trump's work in New York might be incorrectly labeled with a born_in relationship simply because the database contains that fact. These false positives degrade model performance, and traditional denoising methods often fail to capture the complex, context-dependent nature of linguistic noise.

Methodology

To address these challenges, the proposed framework explicitly models noise within a neural network using two primary components, as illustrated in the architecture below:

The model architecture features an encoder followed by parallel prediction and noise modeling branches, which are combined via a transformation layer to match observed noisy distributions.
  1. Dynamic Transition Matrix ($T$): Unlike global noise models, this approach generates a unique transition matrix for every input instance. This matrix $T$ represents the probability that a true relation $i$ is mistakenly labeled as relation $j$. The model produces a "clean" prediction ($p$), which is transformed by $T$ into an "observed" noisy distribution ($o$). During training, the model optimizes to match $o$ with the noisy DS labels; during inference, only the clean prediction $p$ is used.
  2. Curriculum Learning: To effectively learn noise patterns without clean supervision, the authors employ a two-phase strategy. Initially, the model focuses solely on the prediction branch. In the second phase, the transition matrix is gradually introduced, allowing the model to "explain away" discrepancies between its internal predictions and the noisy labels as modeled noise.
  3. Trace Regularization: To prevent the model from over-relying on the noise branch, trace regularization is applied. By encouraging a larger trace, the model is nudged to keep the transition matrix close to an Identity Matrix, effectively forcing it to trust labels that appear more reliable.

Experimental Evaluation

The approach was evaluated on two datasets: TIMERE, a new dataset utilizing time-related relations from Wikidata where temporal precision serves as a reliability heuristic, and ENTITYRE (NYT), a standard benchmark aligned with Freebase relations.

Key Results

Experimental results demonstrate that the dynamic transition matrix consistently outperforms global noise models and state-of-the-art baselines. On the ENTITYRE benchmark, the model utilizing attention and the transition matrix (att_TM) achieved a Precision@Recall 10 of 67.24%.

Precision-Recall curves demonstrating that the proposed transition matrix (TM) variants significantly outperform baseline models and global transition matrix (GTM) approaches across different aggregation methods.

As shown in Figure 3, the inclusion of the Transition Matrix (TM) provides a clear performance boost over standard PR models. The dynamic nature of the matrix allows the model to adapt to specific sentence contexts, which is particularly effective for "noisy" relations. For example, in a case study on the time_of_spacecraft_landing relation, the model achieved a 9.09% F1 improvement by successfully filtering out sentences that mentioned spacecraft without specifying landing times.

Conclusion

This work demonstrates that noise in distantly supervised data is context-dependent and can be effectively managed through dynamic transition matrices and curriculum learning. While the method introduces some computational overhead and presents challenges for bag-level curriculum learning, its success in RE suggests potential applications in other noise-prone NLP tasks like sentiment analysis and named entity recognition.

Summary updated

BibTeX
@inproceedings{luo2017learning,
  author = {Bingfeng Luo and Yansong Feng and Zheng Wang and Zhanxing Zhu and Songfang Huang and Rui Yan and Dongyan Zhao},
  title = {{Learning with Noise: Enhance Distantly Supervised Relation Extraction with Dynamic Transition Matrix}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2017},
  doi = {10.18653/v1/p17-1040},
}
Figure