Distantly Supervised Relation Extraction with Sentence Reconstruction and Knowledge Base Priors

Fenia Christopoulou, Makoto Miwa, Sophia Ananiadou

Abstract

Distantly supervised relation extraction (DSRE) is a powerful technique for scaling relation extraction without manual annotation, yet it is plagued by noisy labels. This paper presents a novel multi-task learning framework that addresses this noise by aligning sentence representations with structured knowledge. The approach integrates a Variational Autoencoder (VAE) for sentence reconstruction and utilizes Knowledge Base (KB) embeddings as informative priors for the latent space. Evaluations on the NYT10 and WIKIDISTANT benchmarks show that this method significantly improves extraction performance, achieving a substantial boost in Area Under the Curve (AUC) and demonstrating robustness against noisy data.

Introduction

Relation extraction (RE) is the task of identifying semantic relationships between entities in text. Distant Supervision (DS) has emerged as a popular solution for training RE models by automatically labeling sentences that contain entity pairs found in a Knowledge Base (KB). For instance, if a KB contains the triple (Steve Jobs, founded, Apple), DS assumes any sentence mentioning both "Steve Jobs" and "Apple" expresses the "founded" relation.

However, this assumption often fails, leading to significant noise. A sentence might mention both entities in a context unrelated to the target relation (e.g., "Steve Jobs liked Apple products"). While previous research has focused on attention mechanisms to mitigate this noise, this work proposes a different strategy: representation alignment. The goal is to ensure that the latent representation of a sentence expressing a relation is mathematically consistent with the structured representation of that relation in the KB.

Methodology

The proposed framework utilizes a joint model architecture built upon a shared BiLSTM encoder. The model processes a "bag" of sentences—all sentences containing a specific entity pair—to predict the underlying relation.

The Reconstruction Branch (VAE)

To ensure that latent representations capture core semantic meaning, the model incorporates a Variational Autoencoder (VAE). Each sentence is encoded into a latent code ($z$), from which a decoder attempts to reconstruct the original sentence. This reconstruction task acts as a powerful regularizer, forcing the model to retain informative features in the latent space. Joint training involves minimizing both the task loss and the reconstruction loss.

The Classification Branch

Simultaneously, the model employs a selective attention mechanism over the bag of sentences. This allows the model to weigh sentences that are more likely to express the target relation more heavily when forming the final bag representation for classification.

Knowledge Base Priors

The core innovation lies in the use of KB-guided priors. Traditional VAEs typically regularize the latent space toward a standard Normal distribution $\mathcal{N}(0, I)$. In contrast, this model uses priors derived from a link prediction model (TransE) trained on the KB. For a given entity pair $(h, t)$, the prior distribution for the latent code is shifted toward the difference between their KB embeddings ($e_h - e_t$). This probabilistic approach "warps" the sentence representation space to align with the structured logic of the KB.

The multi-task learning framework architecture, illustrating the shared encoder, the VAE-based reconstruction branch, and the attention-based classification branch.

Experimental Setup

The model was rigorously evaluated on two benchmarks:

  1. NYT10: A filtered version of the New York Times dataset containing 520,000 instances, designed to prevent the model from simply memorizing training pairs by removing overlaps between training and testing pairs.
  2. WIKIDISTANT: A large-scale dataset based on Wikidata, featuring 454 distinct relation categories and providing a more diverse testbed for the approach.

Key Results

The integration of sentence reconstruction and KB priors yielded significant performance gains. On the NYT10 dataset, the full model achieved an AUC of 42.89, a marked improvement over the baseline (34.94) and the widely used PCNN-ATT model (32.66). The reconstruction task alone provided a 3.6 percentage point boost in AUC.

Precision-Recall curves on the NYT10 dataset. The proposed model using KB-guided priors ($\mathcal{N}(\mu, I)$) significantly outperforms the baseline and other state-of-the-art methods like PCNN-ATT and DISTRE.

Notably, the model performed competitively with large-scale pre-trained models. Despite not using a Transformer-based architecture like BERT, the approach surpassed DISTRE (a GPT-2 based model) in the high-precision/low-recall range, highlighting the effectiveness of structured knowledge injection.

Discussion and Limitations

Analysis of the model's latent space via t-SNE visualizations confirmed that sentence representations successfully cluster according to KB logic. By inspecting VAE reconstructions, the authors showed that the model focuses on "relation-heavy" words (like "born in" or "league") when guided by KB priors.

However, several challenges remain. The model struggles with "opposite" relations (e.g., has part vs. part of) because the current prior does not strictly enforce argument order. Additionally, the quality of reconstructed sentences is often poor, frequently producing ungrammatical text or repeating tokens like "the UNK." Finally, the effectiveness of the KB priors is limited by the coverage of the KB; on the WIKIDISTANT dataset, lower entity coverage (72%) reduced the impact of the priors.

Conclusion

This work demonstrates that forcing sentence representations to align with structured knowledge through reconstruction and KB-guided priors is a highly effective strategy for distantly supervised relation extraction. By bridging the gap between unstructured text and structured facts, the model achieves state-of-the-art performance without the need for massive pre-trained language models. Future work will explore integrating this framework with models like BERT to further refine the massive internal representations of modern language models.

Summary updated

BibTeX
@inproceedings{christopoulou2021distantly,
  author = {Fenia Christopoulou and Makoto Miwa and Sophia Ananiadou},
  title = {{Distantly Supervised Relation Extraction with Sentence Reconstruction and Knowledge Base Priors}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2021},
  doi = {10.18653/v1/2021.naacl-main.2},
}
Figure