Connecting Language and Knowledge with Heterogeneous Representations for Neural Relation Extraction

Peng Xu, Denilson Barbosa

Introduction

Knowledge Bases (KBs) like Freebase and Wikidata are vital for modern AI but suffer from perpetual incompleteness. Relation Extraction (RE) aims to fill these gaps by identifying entity relationships within raw text. While traditional RE models focus on local sentence context, Knowledge Base Embedding (KBE) models analyze global graph structures to predict missing links. Presented at NAACL-HLT 2019, HRERE (Heterogeneous REpresentations for neural Relation Extraction) bridges these two domains by jointly training language and knowledge representations within a unified framework.

Methodology

The HRERE framework integrates two distinct architectures to capture both textual and structural information simultaneously.

The HRERE architecture jointly optimizes language and knowledge representations through a unified loss function.
  1. Language Representation: A bi-directional Long Short-Term Memory (Bi-LSTM) network utilizes multi-level attention at word and sentence levels to extract informative features from text mentions.
  2. Knowledge Representation: Utilizing ComplEx, a state-of-the-art KBE model, entities and relations are represented in a complex-valued vector space, effectively capturing asymmetric relationships (e.g., "A is the father of B").

Joint Loss Optimization

The innovation of HRERE lies in its unified training objective, which combines three distinct loss functions:

  • Local Loss ($J_L$): Ensures the language model correctly predicts relations from text.
  • Global Loss ($J_G$): Ensures the KBE model accurately reflects the existing KB graph structure.
  • Dissimilarity Loss ($J_D$): Acts as a bridge, penalizing divergence between the language model's predictions and the KBE model’s structural insights. This "nudges" the language model to align with broader world knowledge.

Experimental Setup

The model was evaluated using the standard NYT dataset, created by aligning Freebase relations with New York Times articles, and a large-scale Freebase subset containing 3 million entities. To ensure rigorous testing, entity pairs from the KB that appeared in the test set were removed, preventing the model from simply memorizing known facts.

Results and Discussion

HRERE-full consistently outperformed state-of-the-art baselines, including PCNN+ATT and the Weston combination method.

Precision-Recall curves demonstrate that HRERE-full significantly outperforms existing baselines and its own ablation variants.

Key performance insights include:

  • Precision at N (P@N): At the 10% recall level, HRERE-full achieved 86.1% precision, a significant improvement over the Weston baseline (79.3%) and the base language model (81.8%).
  • Stability and Regularization: The joint learning framework proved more stable than "naive" late-fusion methods. The KB effectively acts as a regularizer, helping the model ignore noisy distant supervision labels that don't express the target relation.
  • Implicit Relation Identification: By leveraging global knowledge, HRERE can resolve ambiguities in text where relations are implied rather than explicitly stated, providing a tie-breaker for ambiguous language.

Conclusion

HRERE demonstrates that forcing agreement between language models and knowledge graph embeddings leads to more robust and accurate relation extraction. While the model currently assumes a static KB, future work may explore dynamic updates and scaling to even larger knowledge structures.

Summary updated

BibTeX
@inproceedings{xu2019connecting,
  author = {Peng Xu and Denilson Barbosa},
  title = {{Connecting Language and Knowledge with Heterogeneous Representations for Neural Relation Extraction}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1323},
}
Figure