All models

PyKEEN-ConvE

A knowledge graph link predictor that applies 2D convolutions to reshaped entity and relation embeddings.

Graphs and geometry · 33 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 (41 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

Parameters
2.1M
Operations
33
Framework
PyTorch
Recurrent
No
Published
AAAI 2018
Cited by
30 (as of 21 October 2026)
Authors
Tim Dettmers, Pasquale Minervini, Pontus Stenetorp, Sebastian Riedel
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
m2314
Graph hash
ce20192bf5c752c29cb5167534628f34f9ade1f31dc0f29a6c3dc7a48489c222
Skeleton hash
a8b4c4f2fc597c81eff1a88deccd5f4db13b909f6fa63d50c12160c9111516e7
Architecture hash
5ecdd8d1a871354bfc08c082603bb7564ed3ca7a133a96d9c8956b874822e728
Diagram SHA-256
ebabe5bda0ac31c07f2cbd9242470e2d165479b64f7ec969f88355174a93225a
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

ConvE is a link prediction model for knowledge graphs: given facts stored as relationships between entities, it predicts which relationships are missing. The paper argues that earlier work favored shallow, fast models that learn less expressive features than deep, multi-layer ones, and introduces ConvE as a multi-layer convolutional network for the task.

The entity and relation embeddings are reshaped into 2D and concatenated, the result goes through a convolutional layer, and the feature maps are flattened, projected to the embedding dimension and matched with candidate object embeddings. The paper describes the model as a single convolution layer, a projection layer to the embedding dimension, and an inner product layer. It also develops 1-N scoring, in which one subject and relation pair is scored against all entities at once, and reports that this speeds up training three-fold and evaluation by 300x.

The paper reports that ConvE is parameter efficient, giving the same performance as DistMult and R-GCN with 8x and 17x fewer parameters. It also examines test set leakage in the WN18 and FB15k datasets, where inverse relations from the training set appear in the test set, and finds that a simple rule-based model could match the best reported results on both. In response the authors created WN18RR, a version of WN18 that cannot easily be completed using a single rule. The model on this page is the PyKEEN implementation, pykeen.models.ConvE.

Key idea. ConvE applies 2D convolutions over reshaped entity and relation embeddings to predict missing links in knowledge graphs, matching DistMult and R-GCN with 8x and 17x fewer parameters.

  • conve
  • convolutional 2d knowledge graph embeddings
  • knowledge graph embedding
  • link prediction
  • knowledge graph completion
  • pykeen conve
  • 2d convolution over embeddings
  • wn18rr

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{dettmers2018convolutional2dknowledgegraph,
      title={Convolutional 2D Knowledge Graph Embeddings}, 
      author={Tim Dettmers and Pasquale Minervini and Pontus Stenetorp and Sebastian Riedel},
      year={2018},
      eprint={1707.01476},
      archivePrefix={arXiv},
      primaryClass={cs.LG},
      url={https://arxiv.org/abs/1707.01476}, 
}