Duality-Induced Regularizer for Tensor Factorization Based Knowledge Graph Completion

Zhanqiu Zhang, Jianyu Cai, Jie Wang

Knowledge Graph Completion (KGC) is a critical task in AI that involves predicting missing links within massive networks of facts, typically represented as subject-relation-object triplets. Researchers from USTC have introduced DURA (DUality-induced RegulArizer), a novel regularization technique that significantly boosts the performance of tensor factorization models in KGC by preventing overfitting and inducing beneficial sparsity.

The Overfitting Challenge in KGC

There are two primary schools of thought when it comes to modeling Knowledge Graphs:

  1. Distance-Based (DB) Models: These models (e.g., TransE) measure how "close" a head entity is to a tail entity after a relational transformation. They are robust but often struggle to capture complex relations, such as one-to-many mappings.
  2. Tensor Factorization Based (TFB) Models: These models treat the Knowledge Graph as a giant 3D tensor and decompose it. While theoretically more expressive and capable of handling complex relations, they suffer from severe overfitting.

Existing regularizers for TFB models, such as the standard Frobenius norm or the Tensor Nuclear Norm (N3), are either ineffective for certain architectures (like RESCAL) or too specific to others (like CP decomposition). The field has lacked a "universal" regularizer that is both highly effective and widely applicable across different TFB architectures.

The Solution: Mathematical Duality

The core innovation behind DURA is the concept of Duality. The authors observed that for every TFB model (the primal), there is a corresponding DB model (the dual) hidden within its mathematical structure.

This can be seen by expanding the squared Euclidean distance used in DB models:

$$ \| \mathbf{h}_i \mathbf{R}_j - \mathbf{t}_k \|^2_2 = \| \mathbf{h}_i \mathbf{R}_j \|^2_2 + \| \mathbf{t}_k \|^2_2 - 2\text{Re}(\langle \mathbf{h}_i \mathbf{R}_j, \mathbf{t}_k \rangle) $$

The "cross-term" (the inner product) is exactly the score function of a TFB model. The remaining squared terms—$\| \mathbf{h}_i \mathbf{R}_j \|^2_2$ and $\| \mathbf{t}_k \|^2_2$—form the basis of the DURA regularizer.

In practice, DURA is implemented in a weighted fashion, penalizing the norms of the transformed head entities and the tail entities. This forces the TFB model to behave more like a distance-based model during training, effectively "anchoring" the embeddings and preventing them from growing arbitrarily large to fit the training data.

Visualizing the Impact: Semantics and Vector Space

A major insight from the paper is how TFB models handle semantics in the vector space. Without regularization, TFB models can assign high scores to entities even if their embeddings are wildly different (e.g., orthogonal), as long as they project onto the same line.

A KGC problem and the vector space without regularization.

As shown above, entities with similar semantics (like "lions" and "tigers" both being "mammals") might end up scattered in the embedding space. DURA fixes this by forcing semantically similar entities to have similar embeddings, which significantly aids the model's ability to generalize to unseen data.

The vector space with DURA.

Key Results and Insights

The authors evaluated DURA on three standard KGC benchmarks: WN18RR (prone to overfitting), FB15k-237 (tests expressiveness), and YAGO3-10 (large-scale). DURA consistently improved performance across all tested models (CP, ComplEx, RESCAL) and datasets.

  • Reviving RESCAL: RESCAL, one of the earliest KGC models, was largely abandoned for smaller datasets because it overfit so easily. With DURA, RESCAL becomes a state-of-the-art contender again, achieving an 8.4% improvement in Hits@10 on WN18RR compared to its vanilla version.
  • Outperforming DB Models: On FB15k-237, ComplEx-DURA and RESCAL-DURA outperformed popular distance-based models like RotatE and HAKE.
  • Sparsity as a Side Effect: DURA naturally pushes many embedding dimensions toward zero. The authors found they could set up to 70% of the embedding entries to zero with minimal loss in accuracy—a massive advantage for storing large KGs on limited hardware.
  • Theoretical Foundation: The authors proved that for diagonal relation matrices, DURA provides an upper bound to the tensor nuclear 2-norm, offering a solid theoretical explanation for its success.

Limitations and Future Work

While DURA is highly effective, it introduces new hyperparameters ($\lambda, \lambda_1, \lambda_2$) for weighting the different parts of the regularizer, requiring additional tuning. Furthermore, the current formulation is specifically designed for tensor factorization models. Future work may explore extending these duality principles to other model categories, such as Graph Attention Networks (GATs).

Summary updated

BibTeX
@inproceedings{zhang2020duality,
  author = {Zhanqiu Zhang and Jianyu Cai and Jie Wang},
  title = {{Duality-Induced Regularizer for Tensor Factorization Based Knowledge Graph Completion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=Xc4WlX1WCv9},
}
Figure