Breaking Rank Bottlenecks in Knowledge Graph Completion

Samy Badreddine, Emile van Krieken, Luciano SerafiniarXiv 2025 · DOI

Abstract

Knowledge Graph Embedding (KGE) models typically employ a linear output layer to score entities, creating a "rank bottleneck" when the embedding dimension is significantly smaller than the number of entities. This paper proposes KGE-MoS, a Mixture of Softmaxes output layer that introduces non-linearity to overcome these mathematical limitations. KGE-MoS improves link prediction and probabilistic modeling on large-scale graphs, demonstrating that model expressivity can be increased efficiently without scaling entity embedding sizes.

Introduction: The Rank Bottleneck

In Knowledge Graph Completion (KGC), models predict missing links, such as (ibuprofen, treats, ?). Most state-of-the-art models use a decoder where a query vector $h$ is multiplied by an entity embedding matrix $E$. However, a fundamental mathematical limitation arises: the embedding dimension $d$ (often 100–1000) is much smaller than the number of entities $|E|$ (often $10^5$–$10^9$).

This creates a rank bottleneck. Because the output is a linear transformation from a low-dimensional space, the model is physically incapable of representing certain rankings or probability distributions. As shown in the figure below, the model must produce scores that correctly rank entities, sign them as true/false, and form valid probability distributions—tasks that are constrained by the rank of the underlying transformation.

The rank bottleneck: a model must produce scores that correctly rank entities, sign them as true/false, and form valid probability distributions.

Theoretical Bounds and KGE-MoS

The authors prove that for a model to perfectly represent the signs and rankings of a graph, the embedding dimension $d$ must scale with the graph's connectivity. They derive a sufficient bound of $d = 2c + 1$, where $c$ is the maximum out-degree of any node-relation pair. This implies that dense "hub" nodes require significantly higher rank to model accurately than sparse regions of the graph.

To break this bottleneck without the massive memory cost of increasing $d$ for all entities, the authors introduce KGE-MoS (Mixture of Softmaxes). Inspired by advances in natural language processing, KGE-MoS replaces the standard single softmax with a weighted average of $K$ different softmax distributions.

Geometric interpretation of the rank bottleneck. Low-dimensional embeddings (left) map to a restricted subspace of logits (middle), which in turn limits the set of representable probability distributions (right).

The "Magic" of KGE-MoS lies in its ability to break the linear relationship between the hidden state and the output logits. In a standard KGE model, the probability of an entity is proportional to $\exp(h^\top e)$. In KGE-MoS, the probability is a mixture: $P(o|s,r) = \sum_{k=1}^K \pi_k(s,r) \cdot \text{softmax}(h_k(s,r)^\top E)$. Here, $\pi_k$ are mixture weights and $h_k$ are context vectors, both derived from the query. This formulation allows the model to approximate complex distributions that a single linear layer cannot reach, effectively bypassing the rank constraints.

Empirical Evaluation

The researchers evaluated KGE-MoS on several large-scale benchmarks, including FB15k-237, Hetionet, and ogbl-biokg.

Key Results:

  • Performance Gains: KGE-MoS consistently improved Mean Reciprocal Rank (MRR) and Negative Log-Likelihood (NLL). On the dense ogbl-biokg dataset, DistMult-MoS improved MRR from 0.801 to 0.837.
  • Parameter Efficiency: A KGE-MoS model with $d=200$ often outperformed standard models with $d=1000$. By adding parameters to the query encoder rather than the entity matrix, the model scales better to graphs with millions of entities.
  • Increased Rank: Empirical measurements showed that while standard models are capped at rank $d+1$, KGE-MoS models reached much higher ranks, even achieving full rank on the FB15k-237 test set.

Conclusion

KGE-MoS provides a scalable solution to the rank bottleneck in large-scale knowledge graphs. While it introduces a slight increase in training time (1.7x to 2.7x), the gains in expressivity and accuracy make it a powerful tool for modeling dense, complex relational data. Future work includes exploring more efficient projection layers and tighter average-case theoretical bounds.

Summary updated

BibTeX
@misc{badreddine2025breaking,
  author = {Samy Badreddine and Emile van Krieken and Luciano Serafini},
  title = {{Breaking Rank Bottlenecks in Knowledge Graph Completion}},
  year = {2025},
  eprint = {2506.22271},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.22271},
}
Figure