Accurate Text-Enhanced Knowledge Graph Representation Learning

Bo An, Bo Chen, Xianpei Han, Le Sun

Abstract

Knowledge Graph (KG) representation learning typically assigns static vectors to entities and relations, overlooking the semantic shifts that occur in different contexts. This paper introduces a text-enhanced representation learning method that employs a mutual attention mechanism between entity descriptions and relation mentions. By generating triple-specific embeddings, the proposed framework significantly improves performance on link prediction and triple classification tasks across standard benchmarks like WN18 and FB15k.

Introduction

Knowledge Graphs (KGs) such as Freebase and WordNet are foundational for many AI applications, storing facts as triples of (head entity, relation, tail entity). Traditional models like TransE or ComplEx map these components into a continuous vector space. However, these static mappings suffer from two primary limitations: relation ambiguity and entity multi-facetedness.

Illustration of relation ambiguity and entity multi-facetedness in knowledge graph triples.

As shown in the figure above, a relation like parentOf can imply "father" or "mother" depending on the entities involved. Similarly, an entity like "Barack Obama" has multiple facets (e.g., politician, author, son) that are relevant in different triples. Existing text-enhanced models often fail to capture these context-dependent shifts because they treat text as a static bag-of-words or simple average, often incorporating irrelevant noise.

Methodology: The Mutual Attention Framework

The authors propose a framework that dynamically blends structural KG information with textual representations to create "triple-specific" embeddings.

Text Extraction and Encoding

For a given triple, the model retrieves entity descriptions from the KG and searches a text corpus (such as Wikipedia) for "relation mentions"—sentences where both the head and tail entities appear together. These sequences are processed using Bidirectional Long Short-Term Memory (BiLSTM) networks to capture semantic dependencies.

Mutual Attention Mechanism

The core innovation is a two-way attention bridge that filters textual noise by focusing on contextually relevant information:

  • Relation-to-Entity Attention: The relation mention guides the model to attend to relevant words in the entity description (e.g., focusing on "family" when the relation is parentOf).
  • Entity-to-Relation Attention: Entity descriptions help the model identify the most descriptive words within the relation mention sentence.
The proposed framework architecture featuring BiLSTM encoding and the mutual attention mechanism.

Hybrid Representation

The final representation of an entity or relation is a weighted combination of its structural embedding (learned from graph topology) and its new textual embedding. This allows the model to effectively "morph" the representation to fit the specific fact being evaluated.

Experimental Results

The model was evaluated on four gold-standard benchmarks: WN11, WN18, FB13, and FB15k, using a 2016 Wikipedia dump for textual data.

On the FB15k dataset, the proposed text-enhanced model (AATE_E) achieved a Hit@10 of 76.1%, a substantial improvement over the base TransE model's 47.1%. When integrated with the state-of-the-art ComplEx model, it reached a Hit@10 of 88.0%.

Triple Classification

The model consistently outperformed previous text-enhanced baselines like DKRL and TEKE. For instance, on WN11, it achieved 88.0% accuracy, surpassing both the base ComplEx (86.2%) and other hybrid models. Analysis indicates that the model is particularly effective at handling "N-to-N" relations, where ambiguity is highest.

Conclusion

This research demonstrates that context-dependent embeddings are crucial for accurate knowledge graph representation. By using a mutual attention mechanism to bridge structural and textual data, the model effectively filters noise and disambiguates complex relationships. Future work may involve integrating formal logic rules and optimizing the computational efficiency of the sequential encoding process.

Summary updated

BibTeX
@inproceedings{an2018accurate,
  author = {Bo An and Bo Chen and Xianpei Han and Le Sun},
  title = {{Accurate Text-Enhanced Knowledge Graph Representation Learning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2018},
  doi = {10.18653/v1/n18-1068},
}
Figure