JumpingKnowledge
Layer aggregation that lets each node pick its own neighborhood range by combining all GNN layer outputs at the end.
Graphs and geometry · 12 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
- 124.6K
- Operations
- 12
- Framework
- PyTorch
- Recurrent
- No
- Published
- ICML 2018
- Cited by
- 1,293 (as of 18 October 2026)
- Authors
- Keyulu Xu, Chengtai Li, Yonglong Tian 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
- m1463
- Graph hash
- 2cdbb6120e08b358a9bcf79bae2dd9737bb35355a324a6bd6a052f50a67450e6
- Skeleton hash
- 4a021fa7e5acc5cc20cf2011010ee1f01245d25f7679f21e721ac329be058971
- Architecture hash
- 361458a6d0df4a4403bbdb1b5b8fb6bab1248b8eacbdf9f1bb1fa08219f5776f
- Diagram SHA-256
- 677d6d20dee04ffcad377ec972f5a251b78c4d3d72a96816561011fbf02da0f6
- 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
Jumping Knowledge Networks, or JK-Nets, address a puzzle in graph neural networks: how far a node's representation should reach into the graph depends on the local structure, so one fixed depth cannot suit every node. The motivating observation is that GCNs do best with just two layers, and deeper versions that in principle see more perform worse. The authors formalize this with the influence distribution of a node and show that for common aggregation schemes it is closely tied to a random walk distribution. In an expander-like core a random walk covers almost the whole graph within a few steps, while in tree-like parts it stays local, so the same number of layers has very different effects.
The fix is two simple architectural changes: jump connections that carry every intermediate layer's representation to the last layer, and a selective, adaptive aggregation there. If that selection is done independently per node, the model can adapt its effective neighborhood size node by node. Three layer aggregators are explored: concatenation, element-wise max-pooling and LSTM-attention. Max-pooling selects the most informative layer for each feature coordinate and introduces no extra parameters. LSTM-attention is node adaptive, shines on large complex graphs, and may overfit on small ones because of its higher complexity.
The JumpingKnowledge module traced here is the layer-aggregation step alone, combining the per-layer representations that jump to the last layer. Concatenation with shared weights is not node-adaptive, but it suits small graphs with regular structure. Combining the JK framework with GCN, GraphSAGE and GAT consistently improved those models. The paper was accepted at ICML 2018 as a long oral presentation.
Key idea. JK-Nets let every intermediate GNN layer jump to the output, where a per-node aggregator (concat, max-pool or LSTM-attention) picks the neighborhood range that suits each node.
- Jumping Knowledge
- JK-Net
- JumpingKnowledge
- JK networks
- layer aggregation
- influence distribution
- Xu Jegelka
- PyTorch Geometric
- GCN depth
- neighborhood range
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{xu2018representationlearninggraphsjumping,
title={Representation Learning on Graphs with Jumping Knowledge Networks},
author={Keyulu Xu and Chengtao Li and Yonglong Tian and Tomohiro Sonobe and Ken-ichi Kawarabayashi and Stefanie Jegelka},
year={2018},
eprint={1806.03536},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/1806.03536},
}