Abstract
We consider the task of knowledge graph link prediction. Given a question consisting of a source entity and a relation (e.g., Shakespeare and BornIn), the objective is to predict the most likely answer entity (e.g., England). Recent approaches tackle this problem by learning entity and relation embeddings. However, they often constrain the relationship between these embeddings to be additive (i.e., the embeddings are concatenated and then processed by a sequence of linear functions and element-wise non-linearities). We show that this type of interaction significantly limits representational power. For example, such models cannot handle cases where a different projection of the source entity is used for each relation. We propose to use contextual parameter generation to address this limitation. More specifically, we treat relations as the context in which source entities are processed to produce predictions, by using relation embeddings to generate the parameters of a model operating over source entity embeddings. This allows models to represent more complex interactions between entities and relations. We apply our method on two existing link prediction methods, including the current state-of-the-art, resulting in significant performance gains and establishing a new state-of-the-art for this task. These gains are achieved while also reducing convergence time by up to 28 times.
Introduction
Knowledge Graphs (KGs) represent facts as triples $(s, r, o)$, where $s$ is a source entity, $r$ is a relation, and $o$ is an object or target entity. Link prediction involves inferring missing triples, such as $(Shakespeare, BornIn, ?)$. Modern approaches typically learn low-dimensional embeddings for entities and relations. However, most existing models, such as ConvE or TransE, rely on additive interactions where entity and relation embeddings are concatenated or summed before being processed by linear and non-linear layers.
The Representational Bottleneck
The authors demonstrate that additive interactions significantly limit a model's representational power. Specifically, these models struggle with scenarios requiring a "mixture of experts" approach, where different relations necessitate entirely different projections of the source entity.
In the toy example shown above, additive models cannot solve even a simple four-fact graph regardless of their parameter count. This limitation stems from the fixed way the source entity is transformed across different relations when using simple concatenation.
Proposed Method: Contextual Parameter Generation
To overcome these limitations, the researchers propose CoPER (Contextual Parameter Generation for Knowledge Graph Link Prediction). Instead of treating the relation as a simple input vector, CoPER uses the relation embedding to dynamically generate the parameters of the neural network that processes the source entity.
As illustrated in the architectural comparison, the proposed approach introduces a Parameter Generator. This generator takes a relation embedding and outputs weights for a prediction function $f$. This function $f$ then operates on the source entity embedding to produce a probability distribution over target entities. This shift from additive to multiplicative interaction allows the model to represent complex "if-then" logic and specialized transformations.
Generator Variants
The authors explored three ways to generate these parameters:
- Lookup Table: Stores unique weights for every relation (powerful but memory-intensive).
- Linear Projection: Generates weights via a linear transformation, facilitating information sharing between similar relations.
- Multi-Layer Perceptron (MLP): Uses non-linear transformations for weight generation.
Experimental Results
The CoPER framework was integrated into two distinct models: ConvE (a single-hop convolutional model) and MINERVA (a multi-hop reinforcement learning model). Evaluations across five benchmarks (UMLS, Kinship, WN18RR, FB15k-237, and NELL-995) yielded significant improvements:
- New State-of-the-Art: CoPER-ConvE established new SOTA results, notably achieving a +9.41% increase in Hits@1 on the Kinship dataset.
- Accelerated Convergence: The increased expressivity allowed models to learn much faster. On the WN18RR dataset, CoPER-ConvE converged 28.6 times faster than the baseline ConvE.
- Efficiency: By using linear or MLP generators, the model can share information between relations, allowing it to scale to large datasets like NELL-995 while maintaining performance gains.
Conclusion
Contextual Parameter Generation provides a powerful mechanism for modeling complex interactions in Knowledge Graphs. By treating relations as the context for entity processing rather than just additional input, CoPER achieves superior accuracy and dramatically faster training times, offering a robust framework for future graph representation learning.
Summary updated