All models

FastRGCNConv-net

Graph convolution for knowledge graphs, with a separate transformation for every relation type and direction.

Graphs and geometry · 28 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (34 KB)

Open in a new tab

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

Family
R-GCN
Parameters
6.2K
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
License
MIT
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m986
Graph hash
f0cb6e724d83263c365dedca3589157019d6c952f0a916522beea4da24c57df8
Skeleton hash
199f5282a1ba7c450afbfeeefe137198ed97449d629a0ca77470cbe6eba04d4d
Architecture hash
984a3855be3c455152b728e1afe4c986d5d84b6790e8418df1a3ea2005d30056
Diagram SHA-256
c713704e51539ead36b0cb7d758ac06cdeb8c2c10835cd4de5a4be08fe6721dc
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

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.

  • R-GCN
  • RGCN
  • RGCNConv
  • FastRGCNConv
  • Relational Graph Convolutional Network
  • Modeling Relational Data with Graph Convolutional Networks
  • RGAT
  • RGATConv
  • Relational Graph Attention Networks
  • knowledge graph
  • link prediction
  • entity classification
  • FB15k-237
  • AIFB

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}, 
}