Abstract
Knowledge Graph Completion (KGC) is a critical task in link prediction, yet state-of-the-art models often suffer from overfitting due to the high dimensionality of their parameter spaces. We present the Equivariance Regularizer (ER), a novel, model-agnostic regularization framework designed to enforce logical consistency within the embedding space. By leveraging the principles of proximity and dissimilarity equivariance, ER ensures that semantically similar entities maintain consistent behavior when subjected to the same relations. Our evaluation across standard benchmarks—WN18RR, FB15K-237, and YAGO3-10—demonstrates that ER significantly enhances the performance of both distance-based and tensor factorization-based models, notably elevating the classic RESCAL model to state-of-the-art performance levels.
Introduction
Knowledge Graphs (KGs), such as Freebase, WordNet, and YAGO, serve as the backbone for numerous downstream applications, including recommendation systems and semantic search. These graphs represent information as triples $(h, r, t)$, where a relation $r$ connects a head entity $h$ to a tail entity $t$. However, KGs are inherently incomplete. The task of Knowledge Graph Completion (KGC) aims to predict missing links by learning low-dimensional representations of entities and relations.
Existing KGC architectures generally fall into two categories: Distance-Based (DB) models, which interpret relations as geometric translations, and Tensor Factorization-Based (TFB) models, which treat the KG as a 3D adjacency tensor. While powerful, these models are prone to overfitting because their relation matrices often contain millions of parameters, allowing them to memorize training data rather than generalize semantic patterns. Traditional regularization techniques, such as the L2 norm, often fail to capture the underlying logical structure of the data. To address this, we introduce the Equivariance Regularizer (ER).
The Equivariance Regularizer (ER)
ER shifts the focus of regularization from the parametric space (the magnitude of weights) to the semantic space (the interactions between entities). It is built upon two core principles of logical consistency:
- Proximity Equivariance: This principle posits that if two entities are semantically similar (e.g., "London" and "Paris"), applying the same relation (e.g., "capital_of") should result in tail entities that are also semantically close in the embedding space (e.g., "United Kingdom" and "France").
- Dissimilarity Equivariance: Conversely, if two entities are distinct (e.g., "London" and "The Mississippi River"), the entities they link to via the same relation should remain distinct in the embedding space.
Theoretical Foundation
Mathematically, ER provides a bridge between geometric intuition and tensor algebra. The authors demonstrate that these equivariance constraints effectively implement Tensor Nuclear Norms (specifically the 2-norm and 3-norm). Unlike standard regularizers that treat parameters in isolation, ER captures the latent interactions between entities, forcing the model to respect the categorical structure of the graph even when explicit entity types are not provided.
Experimental Setup
We evaluated the efficacy of ER using three gold-standard benchmarks:
- WN18RR: A subset of WordNet focusing on lexical relations, designed to test a model's ability to handle hierarchical and symmetric relations.
- FB15K-237: A refined version of Freebase with redundant inverse relations removed, presenting a more rigorous challenge for link prediction.
- YAGO3-10: A large-scale dataset derived from Wikipedia and WordNet, containing entities with high relational density.
ER was integrated into several base architectures, including RESCAL, ComplEx, and RotatE, to test its model-agnostic properties.
Key Results and Discussion
The Resurgence of RESCAL
One of the most significant findings is the performance of the RESCAL model when equipped with ER. Historically, RESCAL—a classic TFB model—has been considered prone to extreme overfitting due to its large relation matrices. However, with the application of ER, RESCAL achieved a Mean Reciprocal Rank (MRR) of 0.499 on the WN18RR dataset, a substantial increase from its baseline of 0.455. This result allowed the decade-old architecture to outperform many modern, more complex models, suggesting that many "obsolete" models were simply limited by inadequate regularization.
Comparative Performance
ER consistently outperformed other specialized regularizers, such as DURA and the Tensor N3 norm, across all tested datasets. By enforcing semantic consistency, ER-equipped models (e.g., ComplEx-ER and RotatE-ER) either established new state-of-the-art benchmarks or significantly narrowed the gap with leading specialized architectures.
Model Agnosticism and Practicality
Because ER is a "plug-and-play" regularizer rather than a new architecture, it is highly practical for existing machine learning pipelines. It does not require explicit entity labels; instead, it uses the distance between entity embeddings as a proxy for similarity, making it applicable to any graph-structured data.
Limitations and Future Work
While ER offers significant performance gains, it introduces additional hyperparameters, specifically the similarity threshold ($\epsilon$) and the regularization weight ($\lambda$). While these can be optimized via grid search, they increase the complexity of the training phase. Furthermore, while the current implementation focuses on first-order equivariance, future research could explore higher-order equivariance—examining chains of relations—to capture even deeper semantic dependencies within the graph. Finally, the computational cost of calculating pairwise similarities in extremely large-scale graphs remains an area for further optimization.
Conclusion
The Equivariance Regularizer (ER) represents a significant advancement in the regularization of Knowledge Graph Completion models. By moving beyond simple weight decay and enforcing logical, semantic consistency, ER enables models to learn the underlying patterns of a knowledge graph more effectively. The dramatic improvement in models like RESCAL underscores the importance of semantic-aware regularization in the pursuit of robust and generalizable link prediction.
Summary updated