NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Knowledge Graph Completion with Adaptive Sparse Transfer Matrix

Guoliang Ji, Kang Liu, Shizhu He, Jun Zhao

Abstract

Knowledge Graphs (KGs) are fundamental to modern information retrieval and reasoning systems, yet they remain significantly incomplete. While embedding-based models have become the standard for predicting missing links, traditional approaches often employ a "one-size-fits-all" parameterization that ignores the structural nuances of real-world data. This paper introduces TranSparse, a novel framework that utilizes adaptive sparse transfer matrices to model relations. By dynamically adjusting the degree of sparsity based on the complexity and frequency of relations, TranSparse effectively addresses the dual challenges of heterogeneity and imbalance, delivering superior performance across standard benchmarks.

1. Introduction: The Challenges of Real-World KGs

Knowledge Graph completion involves representing entities and relations in a continuous vector space to predict unobserved facts. However, existing models like TransE, TransH, and TransR struggle with two pervasive characteristics of large-scale KGs:

  1. Heterogeneity: Relations vary wildly in complexity. Some link only a handful of entity pairs, while others connect tens of thousands. Fixed-parameter models tend to overfit simple relations and underfit complex ones.
  2. Imbalance: Many relations are inherently asymmetric. For instance, a "gender" relation may connect millions of distinct "head" entities (people) to only two "tail" entities (male/female). Standard models that treat head and tail entities with identical complexity fail to capture this lopsidedness efficiently.
Heterogeneity and Imbalance in the FB15k dataset.

2. The TranSparse Framework

TranSparse moves beyond dense transfer matrices by introducing adaptive sparsity. The core idea is that the capacity of the model—specifically the number of parameters in the transfer matrix—should be proportional to the complexity of the relation it represents.

2.1 Adaptive Sparsity

The sparse degree ($\theta$) of a relation's matrix is determined by the number of entities or entity pairs associated with it. Relations with high connectivity receive denser matrices (more parameters), while sparse relations are represented by highly sparse matrices. This acts as a natural regularizer, preventing noise from dominating simple relations.

2.2 Model Variants

The framework introduces two primary versions of the model:

  • TranSparse(share): A single sparse matrix is learned for each relation and shared by both head and tail entities. Sparsity is calculated based on the total number of entity pairs for that relation.
  • TranSparse(separate): Two distinct sparse matrices are learned—one for the head and one for the tail. This variant is specifically designed to handle the imbalance problem by allowing the model to allocate different levels of complexity to the head and tail sides of a relation.

3. Sparse Patterns and Optimization

The framework explores two types of sparse matrix configurations: Structured patterns, where non-zero entries are concentrated along the diagonal, and Unstructured patterns, where non-zero entries are distributed randomly.

Comparison of Structured and Unstructured sparse matrix patterns.

Empirical results suggest that unstructured patterns generally perform better. This is likely because random distribution allows for more flexible interactions between different dimensions of the entity vectors, whereas structured patterns impose rigid constraints that may not align with the underlying data geometry.

4. Experimental Results

TranSparse was evaluated on benchmark datasets including WordNet (WN11, WN18) and Freebase (FB13, FB15k).

  • Link Prediction: On the FB15k dataset, TranSparse(separate) achieved a Hits@10 (Filter) of 79.9%, significantly outperforming TransD (77.3%) and the original TransE (47.1%).
  • Triplet Classification: The model reached an accuracy of 86.8% on WN11 and 88.5% on FB15k, setting new state-of-the-art marks at the time of publication.

5. Conclusion

TranSparse demonstrates that adaptive sparsity is a powerful tool for knowledge graph embedding. By matching model capacity to data complexity, it overcomes the limitations of previous dense and fixed-rank models. The success of the "separate" variant highlights the importance of modeling relational imbalance, while the performance of unstructured patterns suggests that flexibility in parameter distribution is key to capturing the rich semantics of large-scale knowledge bases.

Summary updated

BibTeX
@inproceedings{ji2016knowledge,
  author = {Guoliang Ji and Kang Liu and Shizhu He and Jun Zhao},
  title = {{Knowledge Graph Completion with Adaptive Sparse Transfer Matrix}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2016},
  doi = {10.1609/aaai.v30i1.10089},
}
Figure