Learning to Complete Knowledge Graphs with Deep Sequential Models

Lingbing Guo, Qingheng Zhang, Wei Hu, Zequn Sun, Yuzhong Qu

Abstract

Knowledge Graphs (KGs) are essential for modern AI applications but often suffer from incompleteness. This paper introduces Deep Sequential Knowledge Graph (DSKG), a framework that treats factual triples—represented as (head, relation, tail)—as short sequences. By leveraging multi-layer Recurrent Neural Networks (RNNs), specifically Long Short-Term Memory (LSTM) networks, DSKG achieves state-of-the-art performance in link prediction and introduces novel tasks such as full triple prediction from a single entity.

Introduction

Knowledge Graphs like DBpedia and Freebase underpin search engines and recommendation systems. However, their utility is limited by missing data. The task of KG completion involves predicting missing components of a triple, typically the tail ($t$) given a head ($h$) and a relation ($r$).

Traditional "translational" models, such as TransE, model triples geometrically ($h + r \approx t$). While computationally efficient, these models struggle with non-linear, complex relationships like one-to-many mappings. DSKG addresses these limitations by treating the triple as a sequence where information is refined through successive layers of an RNN, allowing for a more nuanced probabilistic understanding of graph structures.

Methodology: The DSKG Framework

The core innovation of DSKG is the application of multi-layer LSTMs to the components of a triple. Instead of static vector arithmetic, the model processes elements sequentially, refining a hidden state that captures the underlying semantics of the relationship. To enhance robustness and bidirectional prediction, the authors incorporate reversed relations (e.g., adding $(t, r^{-1}, h)$ for every $(h, r, t)$), which also accelerates training convergence.

Architectural Variants

The authors propose three distinct strategies for structuring the deep sequential model to handle the differing characteristics of entities and relations:

  1. Joint: This architecture reuses the same RNN cells across different layers for both entities and relations, following standard practices in Natural Language Processing.
  2. Respective: This variant employs independent RNN cells for entities and relations, acknowledging that these data types reside in different semantic spaces.
  3. Cascade: This model links the final state of the entity processing layer directly into the start of the relation layer, forcing the model to consolidate entity information before incorporating the relation.
The three proposed DSKG architectures: Joint, Respective, and Cascade.

Experimental Setup and Results

DSKG was evaluated against gold-standard benchmarks: FB15K (a complex subset of Freebase with 1,345 relations) and WN18 (a WordNet subset with 18 relations). The evaluation went beyond standard link prediction to include Relation Prediction (predicting $r$ from $h$) and Triple Prediction (predicting both $r$ and $t$ from $h$).

Key Findings

  • Superior Performance: DSKG consistently outperformed established models. On FB15K, it achieved a Filtered Hits@10 of 89.9%, nearly doubling the 47.1% achieved by TransE.
  • Handling Complexity: The model excelled in "Many-to-Many" (M:N) relationship categories. Unlike margin-based models that attempt to map all correct answers to a single geometric point, DSKG’s probability-based approach naturally accommodates multiple valid tails for a single head-relation pair.
  • Generative Capabilities: The Cascade version of DSKG demonstrated remarkable generative power. On WN18, it achieved a 99.1% representation precision, effectively reconstructing entire facts starting from only a single entity.
  • The Impact of Depth: Comparative analysis showed that multi-layer models (DSKG) significantly outperformed single-layer variants (BSKG), particularly on the more complex FB15K dataset, proving that depth is critical for capturing intricate graph patterns.

Conclusion and Future Work

By reframing Knowledge Graph completion as a sequence modeling task, DSKG provides a powerful alternative to geometric embedding methods. Its ability to handle complex relationships and generate entire triples opens new avenues for KG enrichment. Future research directions include integrating attention mechanisms to focus on relevant graph neighborhoods and incorporating external textual data, such as Wikipedia descriptions, to further enhance entity and relation representations.

Summary updated

BibTeX
@article{guo2019learning,
  author = {Lingbing Guo and Qingheng Zhang and Wei Hu and Zequn Sun and Yuzhong Qu},
  title = {{Learning to Complete Knowledge Graphs with Deep Sequential Models}},
  journal = {Data Intell.},
  year = {2019},
  doi = {10.1162/dint\_a\_00016},
}
Figure