Structured Embedding via Pairwise Relations and Long-Range Interactions in Knowledge Base

Fei Wu, Jun Song, Yi Yang, Xi Li, Zhongfei (Mark) Zhang, Yueting Zhuang

Abstract

Knowledge graphs (KGs) are critical for various AI applications but suffer from inherent incompleteness. Traditional embedding methods often focus on local triplet information, neglecting the rich structural logic embedded in multi-hop paths. This paper introduces SePLi (Structured embedding via Pairwise relations and Long-range interactions), a framework that explicitly models long-range interactions alongside direct relations. By representing relations as linear operators, SePLi captures complex structural dependencies such as transitivity and composition. Our evaluation across four benchmark datasets demonstrates that SePLi significantly outperforms state-of-the-art models, particularly in sparse data scenarios where direct links are missing.

Introduction

Knowledge graphs like Freebase or WordNet are massive but notoriously incomplete. Most current embedding methods focus on "local" information—triplets consisting of a head entity, a relation, and a tail entity (e.g., Paris, capital_of, France). While effective, these models often ignore the "long-range interactions" that define the graph's deeper structure. For instance, if a graph knows that "Alice is the mother of Bob" and "Bob is the father of Charlie," it should be able to infer that Alice is Charlie's grandmother, even if that specific link isn't explicitly recorded.

The challenge lies in the fact that modeling these multi-hop paths is computationally difficult and hard to integrate into standard vector-space embedding frameworks. Without this structural context, models struggle to generalize, particularly for entities or relations that have very few direct observations—a common issue known as the "sparsity" problem.

Methodology: The SePLi Framework

The authors propose SePLi, which treats relations not just as vectors, but as linear operators (matrices and bias vectors) that transform a head entity's embedding into a tail entity's embedding. The framework consists of four primary components:

  1. Pairwise Modeling: For a triplet $(h, r, t)$, the model learns a transformation $W_r \cdot h + b_r \approx t$. This ensures that local, direct relations are preserved in the embedding space.
  2. Long-Range Modeling: SePLi uses the Path Ranking Algorithm (PRA) to identify significant multi-hop paths between entities.
  3. Compositional Consistency: This is the core innovation. A path is a sequence of relations. SePLi expects that the composition of linear operators along a path (e.g., applying the "father" matrix twice) should yield a result similar to the direct relation's operator (e.g., the "grandfather" matrix).
  4. Joint Optimization: The model minimizes a combined objective function that balances a contrastive max-margin loss (for triplets) with a squared error loss that forces the direct relation's operator to match the "effective" operator derived from path compositions.
The SePLi framework: (a) conceptualizing paths vs. direct relations, (b) identifying paths in the input graph, and (c) the resulting structured embedding.

Experimental Evaluation

The model was evaluated on four benchmark datasets: Kinship (Alyawarra tribe family relations), UMLS (medical ontology), WordNet (lexical database), and Freebase (People domain). To test robustness, the authors created "unobserved" test sets by removing certain entities and relations to specifically measure how well the model can "fill in the blanks" using long-range structural information.

Key Results

  • Superior Performance: SePLi consistently outperformed state-of-the-art models like NTN (Neural Tensor Networks) and SE (Structured Embeddings) across all datasets.
  • Handling Sparsity: The biggest gains were seen in "unobserved" scenarios. On the Kinship dataset, SePLi achieved a Mean Average Precision (MAP) of 0.556 for unobserved entities, compared to 0.413 for a version of the model that only used local pairwise relations.
  • Knowledge Prediction: On WordNet and Freebase, SePLi achieved the highest accuracy in predicting missing facts, particularly when those facts involved relations that were sparse in the training data.

Key Insights and Structural Logic

By representing relations as matrices, the model can naturally "chain" them together, turning path-following into differentiable matrix multiplication. This acts as a powerful structural regularizer, forcing embeddings to respect global logic (like transitivity) and preventing over-fitting to local coincidences.

Furthermore, the model learns embeddings where similar relations are represented by similar transformations. In visualizations, the authors found that relations like "husband" and "brother" between different pairs of entities were arranged nearly in parallel in the vector space, demonstrating that the model captures the underlying semantic structure of the relations.

Visualization of family tree embeddings showing how entities cluster by category and relations exhibit parallel structural properties.

Conclusion and Future Work

SePLi provides a robust solution for KG completion by bridging the gap between local triplets and global graph structure. While highly effective, the model faces challenges regarding computational cost as embedding dimensions grow and path lengths increase. Future work may explore non-linear transformations for more complex relations and methods to optimize the path-finding process. Despite these trade-offs, SePLi represents a significant step forward in creating expressive and structurally consistent knowledge base embeddings.

Summary updated

BibTeX
@inproceedings{wu2015structured,
  author = {Fei Wu and Jun Song and Yi Yang and Xi Li and Zhongfei (Mark) Zhang and Yueting Zhuang},
  title = {{Structured Embedding via Pairwise Relations and Long-Range Interactions in Knowledge Base}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9391},
}
Figure