FastRGCNConv
Graph convolution for knowledge graphs, with a separate weight per 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.
At a glance
- Task
- Graphs and geometry
- Parameters
- 1.3K
- Operations
- 28
- Framework
- PyTorch
- Recurrent
- No
- Published
- ESWC 2018
- Cited by
- 181 (as of 18 October 2026)
- Authors
- Michael Schlichtkrull, Thomas N. Kipf, Peter Bloem and others
- Source
- torch_geometric 2.6.1
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
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.
Details
- Stable ID
- m985
- Graph hash
- 199f5282a1ba7c450afbfeeefe137198ed97449d629a0ca77470cbe6eba04d4d
- Skeleton hash
- 199f5282a1ba7c450afbfeeefe137198ed97449d629a0ca77470cbe6eba04d4d
- Architecture hash
- 10ec4fb9d870dda5bcfaa25e8d8549563758c230ed007768adc7329b9a37f7fc
- Diagram SHA-256
- 8aafccfb27f45a151210adaf2261e78d6c593543adbf3734918a251c33afb517
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
R-GCN, the Relational Graph Convolutional Network, extends graph convolution to knowledge bases, where edges carry many different relation types. The paper applies it to two standard knowledge base completion tasks, link prediction and entity classification. The motivation is that even the largest knowledge graphs, such as Yago, DBPedia or Wikidata, remain incomplete.
The layer traced here, FastRGCNConv, computes the paper's propagation model: each node accumulates transformed feature vectors of its neighbours through a normalized sum. Unlike a regular GCN, the transformation is relation-specific, depending on the type and direction of the edge. A single self-connection of a special relation type is added to every node so that a node's new representation is also informed by its old one. Because the number of parameters grows rapidly with the number of relations, which can lead to overfitting on rare relations, the paper introduces two regularizations, basis decomposition and block-diagonal decomposition. Basis decomposition amounts to weight sharing across relation types, while block decomposition imposes a sparsity constraint on each relation's weight matrix.
As a stand-alone model for entity classification, R-GCN achieves state-of-the-art results on AIFB and AM. For link prediction the R-GCN acts as an encoder that accumulates evidence over multiple inference steps, and the paper reports a 29.8% improvement on FB15k-237 over a decoder-only baseline. The authors suspect that the fixed normalization constant is partly to blame for weaker results on nodes of high degree, and suggest replacing it with an attention mechanism as future work. The official code comes in two pieces, a Keras implementation for entity classification tested with keras 1.2.1 and Theano 0.9.0, and a TensorFlow 1.4 implementation for relational link prediction.
Key idea. R-GCN gives each relation type and direction its own transformation inside a graph convolution. Basis and block-diagonal decompositions keep the parameter count in check on highly multi-relational data.
- R-GCN
- RGCN
- FastRGCNConv
- Fast R-GCN
- Relational Graph Convolutional Network
- relational GCN
- knowledge graph
- knowledge base completion
- link prediction
- entity classification
- multi-relational
- DistMult
- basis decomposition
- PyTorch Geometric
- FB15k-237
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@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},
}