
DGL-RelGraphConv
Graphs and geometry165 ops1.3K params
Graph convolution for knowledge graphs, with a separate transformation for every relation type and direction.
Graphs and geometry · 28 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
About this model's family
Relational Graph Convolutional Networks, R-GCNs, are graph convolutions developed specifically for the highly multi-relational data of realistic knowledge bases, where edges carry many different relation types. The paper applies them to two standard knowledge base completion tasks: link prediction, recovering missing subject-predicate-object triples, and entity classification, recovering missing entity attributes.
The layer accumulates transformed feature vectors of neighbouring nodes through a normalized sum, and unlike a regular GCN it uses relation-specific transformations that depend on the type and direction of each edge. A single self-connection of a special relation type is added to every node so that its own previous representation also feeds the update. With many relations the parameter count grows quickly, so the paper regularizes the per-relation weights with basis decomposition and block-diagonal decomposition.
For link prediction the R-GCN acts as an encoder in front of a DistMult decoder, and on FB15k-237 this beats the DistMult baseline by a large margin of 29.8%. For entity classification on four RDF datasets the model achieves state-of-the-art results on AIFB and AM. The original code came in two pieces: a Keras-based implementation for semi-supervised node classification and a separate repository for the link prediction task.
One of the three members traced here is actually a different model, the Relational Graph Attention Network, which extends non-relational graph attention mechanisms to incorporate relational information. Its authors found that it performs worse than anticipated, with only some configurations marginally beneficial for modelling molecular properties.
Key idea. R-GCNs extend graph convolution to multi-relational graphs by introducing relation-specific transformations that depend on the type and direction of each edge. Used as an encoder over a DistMult decoder, the model yields a 29.8% improvement on FB15k-237 link prediction over the decoder-only baseline.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{schlichtkrull2017modelingrelationaldatagraph,
title={Modeling Relational Data with Graph Convolutional Networks},
author={Michael Schlichtkrull and Thomas N. Kipf and Peter Bloem and Rianne van den Berg and Ivan Titov and Max Welling},
year={2017},
eprint={1703.06103},
archivePrefix={arXiv},
primaryClass={stat.ML},
url={https://arxiv.org/abs/1703.06103},
}