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

Hypernetwork Knowledge Graph Embeddings

Ivana Balazevic, Carl Allen, Timothy M. Hospedales

Introduction

Knowledge graphs (KGs), such as Freebase, WordNet, and YAGO, serve as the backbone for many modern AI applications by representing world knowledge as a collection of triples: (subject entity, relation, object entity). Despite their scale, these graphs are inherently incomplete. The task of link prediction—inferring missing facts based on existing ones—is therefore a critical area of research.

Early approaches to link prediction relied on shallow, linear tensor factorization models like RESCAL or DistMult. While computationally efficient, these models often lack the expressiveness required to capture complex, non-linear interactions within the data. To address this, recent state-of-the-art models like ConvE introduced convolutional neural networks (CNNs). However, ConvE relies on reshaping 1D embeddings into 2D matrices to apply standard computer vision filters, a process that lacks a strong theoretical justification in the context of vector embeddings. This paper introduces HypER (Hypernetwork Knowledge Graph Embeddings), a model that leverages hypernetworks to provide a more principled and effective convolutional architecture for link prediction.

The HypER Framework

The core innovation of HypER is the use of a hypernetwork—a secondary network that generates the weights for a primary network. In the context of knowledge graphs, HypER uses the relation embedding to dynamically generate relation-specific 1D convolutional filters.

Architecture Overview

The HypER process follows three primary steps:

  1. Filter Generation: The relation embedding is passed through a fully connected layer (the hypernetwork). This layer outputs a set of 1D convolutional filters tailored specifically to that relation.
  2. Convolutional Interaction: These generated filters are convolved across the 1D subject entity embedding. Unlike previous models, HypER does not require arbitrary 2D reshaping, allowing the entity and relation to interact in their natural vector space.
  3. Scoring and Prediction: The resulting feature map is flattened and projected through a weight matrix, followed by a ReLU activation. To determine the most likely object entity, the model uses a "1-N scoring" technique, where the final vector is scored against all possible object entities in the vocabulary via a dot product.

This architecture ensures that the interaction between entities and relations is both non-linear and highly expressive, while maintaining a more intuitive structure than 2D convolutional models.

Theoretical Insights: Demystifying Convolutions

A significant contribution of this work is the theoretical demystification of why convolutions work for knowledge graphs. The authors argue that the success of models like ConvE and HypER is not due to the extraction of spatial patterns (as in image processing), but rather because convolution acts as a highly regularized form of tensor factorization.

By using shared weights and sparse connectivity, convolutions restrict the ways in which embedding dimensions interact. This provides a form of parameter tying that prevents overfitting, which is a common pitfall for traditional factorization models. The authors mathematically demonstrate that HypER can be viewed as a sparse tensor factorization model, effectively bridging the gap between classical algebraic methods and modern deep learning.

Experimental Evaluation

The authors evaluated HypER against five standard benchmarks: FB15k, WN18, FB15k-237, WN18RR, and YAGO3-10. The latter datasets (FB15k-237 and WN18RR) are particularly challenging as they remove inverse relations to prevent simple data leakage.

Key Results

  • Superior Performance: HypER consistently outperformed ConvE and other baselines across nearly all metrics. On the WN18RR dataset, HypER achieved a Mean Reciprocal Rank (MRR) of 0.465, significantly higher than ConvE's 0.431.
  • Parameter Efficiency: By generating filters directly from relation embeddings, HypER is more compact than its predecessors. On FB15k-237, HypER utilized 4.3M parameters compared to the 5.1M required by ConvE.
  • Dimensionality: Ablation studies confirmed that 1D convolutions are sufficient for capturing embedding interactions. The model achieved peak performance using very small filter sizes (e.g., 1x9), suggesting that local interactions between embedding dimensions are highly informative.

Discussion and Limitations

While HypER shows clear advantages in accuracy and efficiency, the authors noted some sensitivities. The model's performance on Mean Rank (MR) was occasionally lower than competitors, suggesting that while it ranks most true triples very highly (high Hits@K), it may occasionally rank a triple very poorly, leading to outlier sensitivity in the MR metric. Additionally, the effectiveness of label smoothing was found to be highly dependent on the specific dataset used.

Conclusion

HypER represents a step forward in making deep learning for knowledge graphs more principled. By replacing arbitrary 2D convolutions with a hypernetwork-based 1D approach, the model achieves state-of-the-art results with greater parameter efficiency. Furthermore, the insight that convolutions serve as regularized tensor factorization provides a new lens through which to view and design future knowledge graph embedding models.

Summary updated

BibTeX
@inproceedings{balazevic2018hypernetwork,
  author = {Ivana Balazevic and Carl Allen and Timothy M. Hospedales},
  title = {{Hypernetwork Knowledge Graph Embeddings}},
  booktitle = {ICANN (Workshop)},
  year = {2018},
  doi = {10.1007/978-3-030-30493-5\_52},
}
Figure