Generalizing Tensor Decomposition for N-ary Relational Knowledge Bases

Yu Liu, Quanming Yao, Yong Li · DOI

Introduction

Most modern Knowledge Bases (KBs), such as Google’s Knowledge Graph, represent facts as binary triplets: (head entity, relation, tail entity). However, real-world information is often inherently $n$-ary. For instance, a "purchase" involves a buyer, a seller, and a product (3-ary), while a "sports award" might involve a player, a team, an award, and a season (4-ary).

Predicting missing links in these complex $n$-ary KBs is a significant challenge. Existing methods typically fall into two categories: translational/neural models, which often lack the mathematical expressiveness to represent any possible relation, or standard tensor decomposition methods. While successful for binary relations, extending tensor decomposition to $n$-ary relations usually leads to a "parameter explosion." For a relation of arity $n$, a standard Tucker decomposition requires a core tensor that grows exponentially ($d^n$), making it computationally prohibitive for large-scale data.

The GETD Framework

To address these limitations, we introduce GETD (Generalized Tensor Decomposition), a framework that brings the power of tensor decomposition to $n$-ary knowledge bases while maintaining parameter efficiency. GETD utilizes a two-layered approach to model interactions:

  1. The Outer Layer (Tucker): It treats $n$-ary link prediction as a tensor completion problem, using a core tensor to model the interactions between the embeddings of the relation and all $n$ entities.
  2. The Inner Layer (Tensor Ring): To solve the exponential complexity of the Tucker core tensor, GETD applies Tensor Ring (TR) decomposition. Instead of storing one massive high-order tensor, it represents that tensor as a circular sequence of small, 3rd-order "latent" tensors.
The GETD framework: Tucker decomposition models the outer interactions, while Tensor Ring decomposition compresses the core tensor to avoid parameter explosion.

This architecture ensures "full expressiveness," meaning GETD can theoretically represent any possible KB. Furthermore, the Tensor Ring structure acts as a natural regularizer, capturing essential latent interactions without memorizing noise, which is a common pitfall in high-arity modeling.

Experimental Evaluation

GETD was evaluated on several benchmarks, including WikiPeople ($n$-ary facts from Wikidata), JF17K (high-quality $n$-ary data from Freebase), and standard binary benchmarks like WN18 and FB15k.

Key Results

  • Significant Performance Gains: GETD outperformed previous state-of-the-art $n$-ary models (like NaLP and RAE) by over 15% across various metrics. On the JF17K-3 dataset, GETD improved the Mean Reciprocal Rank (MRR) by 0.22 and Hits@1 by 55%.
  • Efficiency and Scalability: By using Tensor Rings to compress the Tucker core, GETD reduces complexity from exponential ($d^n$) to linear relative to the number of entities. This makes $n$-ary modeling practical for large-scale datasets.
Performance and parameter efficiency: GETD maintains high MRR while requiring significantly fewer parameters than n-TuckER as embedding dimensionality increases.
  • Robustness: The model demonstrated high stability against overfitting compared to direct $n$-ary extensions of models like TuckER. Training is efficient; for example, the large WikiPeople-3 dataset can be trained in approximately one hour on a single GPU.

Conclusion and Future Work

GETD represents a true generalization of tensor decomposition for knowledge bases. It matches or exceeds the performance of state-of-the-art binary models while providing a scalable solution for $n$-ary relations. Future work includes addressing hyperparameter sensitivity regarding the TR-ranks and incorporating external metadata, such as logical rules or entity types, to further enhance predictive power. Additionally, exploring Automated Machine Learning (AutoML) to optimize scoring functions for specific datasets remains a promising direction.

Summary updated

BibTeX
@inproceedings{liu2020generalizing,
  author = {Yu Liu and Quanming Yao and Yong Li},
  title = {{Generalizing Tensor Decomposition for N-ary Relational Knowledge Bases}},
  booktitle = {The Web Conference},
  year = {2020},
  doi = {10.1145/3366423.3380188},
}
Figure