Knowledge Graph Completion by Intermediate Variables Regularization

Changyi Xiao, Yixin Cao

Knowledge graphs (KGs) are the backbone of modern AI, powering everything from search engines to recommendation systems. However, KGs are notoriously incomplete. Filling in those gaps—a task known as Knowledge Graph Completion (KGC)—usually involves treating the graph as a giant 3D tensor and predicting missing entries.

While Tensor Decomposition-Based (TDB) models are incredibly powerful at this task, they have a significant weakness: they overfit easily. A paper from researchers at Fudan University, titled "Knowledge Graph Completion by Intermediate Variables Regularization," introduces a clever way to keep these models in check by looking at what happens during the calculation, rather than just at the final result.

TL;DR

The authors propose Intermediate Variables Regularization (IVR), a novel method to prevent overfitting in tensor-based knowledge graph models. By minimizing the norms of intermediate variables produced during the scoring process, IVR encourages the model to learn highly correlated entity-relation structures, significantly outperforming standard regularization techniques across major benchmarks.

The Overfitting Problem in KGC

In KGC, facts are represented as triplets: (head entity, relation, tail entity). If we view the entire KG as a 3D block (a tensor), the vast majority of it is empty. TDB models like DistMult, ComplEx, or TuckER attempt to "factorize" this block into smaller embedding matrices.

The challenge is that these models are highly expressive. While excellent at fitting known data, they often memorize noise instead of learning the graph's underlying logic. Standard fixes involve "regularizing" the model—usually by penalizing the size (norm) of the final entity and relation embeddings. However, the authors argue that simply shrinking the final embeddings is a blunt instrument that ignores the complex interactions happening inside the model's mathematical engine.

Methods: A Look Inside the Math Engine

The researchers first derive a General Form that unifies almost all popular TDB models into a single mathematical framework. This allows them to propose a regularization method that works universally.

Tensor unfolding along different modes

The core innovation is Intermediate Variables Regularization (IVR). Instead of just penalizing the input embeddings ($H, R, T$), IVR penalizes the intermediate products created during the tensor multiplication and unfolding processes.

Why does this work?

The authors provide a rigorous theoretical proof showing that IVR acts as an upper bound for the overlapped trace norm. In the world of tensors, the trace norm is a proxy for "rank." By minimizing this, IVR forces the model to find a "low-rank" solution. In a knowledge graph, a low-rank solution implies that entities and relations are highly correlated (e.g., recognizing that "parent of" is the inverse of "child of"). By encouraging these correlations, the model generalizes much better to unseen data.

Key Insights and Ideas

  • One Regularizer to Rule Them All: Unlike previous state-of-the-art regularizers (like N3 or DURA) which only worked for specific models like CP decomposition, IVR is derived from a general form. This makes it applicable to nearly any TDB model, including the powerful TuckER.
  • The Path Matters: The paper highlights that there are multiple ways to compute a tensor product. IVR considers all these "computational paths," ensuring that the intermediate state of the model remains constrained regardless of how the math is executed.
  • Correlation is the Cure: The crucial link is between intermediate variables and the overlapped trace norm. By penalizing these variables, the model isn't just made "smaller"; it is forced to find the structural symmetries (like transitivity and inversion) inherent in KGs.

Key Results

The authors evaluated IVR on gold-standard KGC benchmarks, including WN18RR (lexical relations), FB15k-237 (world knowledge), and YAGO3-10. The results are impressive across the board.

Performance comparison of KGC models

When applied to various models, IVR consistently outperformed standard baselines and previous regularization benchmarks like DURA and N3.

  • On WN18RR, the TuckER-IVR model achieved a massive boost, reaching an MRR (Mean Reciprocal Rank) of 0.501, compared to just 0.446 for the standard TuckER model.
  • Across all tested models (CP, ComplEx, SimplE, ANALOGY, QuatE, and TuckER), the addition of IVR yielded the highest MRR and Hit@10 scores on nearly every dataset.
  • On a smaller Kinship dataset, the authors empirically proved that IVR successfully reduced the overlapped trace norm by nearly 65% compared to the baseline, confirming their theoretical derivation.

Limitations and Future Work

While IVR is highly effective, it does introduce more hyperparameters ($\lambda$ coefficients) that need to be tuned. Although the authors simplified this by grouping them, finding the optimal settings for a new dataset still requires some effort.

Looking ahead, the authors suggest that this "intermediate variable" philosophy could be extended beyond tensor models to translation-based models or even neural network-based KGC. They also aim to explore how IVR might perform in general tensor completion tasks outside the realm of knowledge graphs, such as image recovery or signal processing.

Check out the code: The implementation is available on GitHub at https://github.com/changyi7231/IVR.

Summary updated

BibTeX
@inproceedings{xiao2024knowledge,
  author = {Changyi Xiao and Yixin Cao},
  title = {{Knowledge Graph Completion by Intermediate Variables Regularization}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=d226uyWYUo},
}
Figure