InnerProductDecoder
Parameter-free graph decoder: edge probability is the sigmoid of the dot product of two node embeddings.
Graphs and geometry · 7 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
- Operations
- 7
- Framework
- PyTorch
- Recurrent
- No
- Published
- NIPS 2016 Workshop on Bayesian Deep Learning
- Cited by
- 1,785 (as of 18 October 2026)
- Authors
- Thomas N. Kipf, Max Welling
- 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
- m1433
- Graph hash
- cbb67d7a50c76e8d8bce496db99e5ae657bde70abda37a6fcbe7870819a92280
- Skeleton hash
- cbb67d7a50c76e8d8bce496db99e5ae657bde70abda37a6fcbe7870819a92280
- Architecture hash
- ed2193fd341c4265b3a09984ba0d1cf43d92558e9513d11e09d49f4592dddb4a
- Diagram SHA-256
- 192a509fc4076ea75fe0493b224f0680d241bc4dc3ce3264a84bc524ff47c855
- 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
The InnerProductDecoder is the decoder half of a graph autoencoder: it decodes latent node variables into edge probabilities for given node pairs. It comes from the Variational Graph Auto-Encoders paper, whose generative model is given by an inner product between latent variables. In the non-probabilistic GAE variant, the reconstructed adjacency matrix is simply sigma of Z Z-transpose, with Z coming out of a GCN. The sigma here is the logistic sigmoid function, so every pair score lands between zero and one.
The paper introduces the variational graph auto-encoder (VGAE), a framework for unsupervised learning on graph-structured data based on the variational auto-encoder (VAE). The authors demonstrate it with a graph convolutional network (GCN) encoder and a simple inner product decoder. That pairing achieves competitive results on a link prediction task in citation networks. What sets it apart from most earlier unsupervised graph models is that it can naturally incorporate node features, which significantly improves predictive performance.
The paper itself flags a tension in the design: a Gaussian prior is potentially a poor choice next to an inner product decoder, because the decoder tries to push embeddings away from the zero-center. Even so, VGAE reached higher predictive performance than GAE on both Cora and Citeseer. All experiments used a 32-dim hidden layer and 16-dim latent variables, trained for 200 iterations with Adam at a learning rate of 0.01.
In PyTorch Geometric the decoder has two entry points: a per-edge forward for given node pairs and a forward_all that decodes a probabilistic dense adjacency matrix. The official code is a TensorFlow implementation of the (Variational) Graph Auto-Encoder model.
Key idea. A simple inner product decoder paired with a graph convolutional network (GCN) encoder gives an unsupervised graph autoencoder for link prediction. Unlike most earlier unsupervised graph models, it can naturally incorporate node features, which significantly improves predictive performance.
- InnerProductDecoder
- inner product decoder
- GAE
- VGAE
- graph auto-encoder
- variational graph auto-encoder
- Variational Graph Auto-Encoders
- link prediction
- adjacency reconstruction
- node embeddings
- PyTorch Geometric
- torch_geometric
- Cora
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{kipf2016variationalgraphautoencoders,
title={Variational Graph Auto-Encoders},
author={Thomas N. Kipf and Max Welling},
year={2016},
eprint={1611.07308},
archivePrefix={arXiv},
primaryClass={stat.ML},
url={https://arxiv.org/abs/1611.07308},
}