Abstract
Graph Neural Networks (GNNs) typically aggregate information from a fixed neighborhood size, which can lead to over-smoothing in dense graph regions or insufficient context in sparse ones. We introduce Jumping Knowledge (JK) Networks, an architecture that allows each node to adaptively select and combine features from different neighborhood ranges. By "jumping" intermediate representations to the final layer, JK-Nets optimize the receptive field based on local graph topology, significantly improving performance across various benchmark datasets.
Introduction
In deep learning on graphs, models like Graph Convolutional Networks (GCNs) use a neighborhood aggregation scheme where each layer aggregates features from a node's immediate neighbors. Theoretically, stacking more layers should allow the model to capture broader structural information. However, deeper GCNs often underperform compared to shallow ones.
This performance degradation occurs because real-world graphs have highly irregular structures—some parts are dense "hubs," while others are sparse branches. A fixed number of layers forces a "one size fits all" neighborhood radius. In dense areas, a few layers might aggregate the entire graph, washing out local details (over-smoothing). In sparse areas, the same number of layers might not gather enough context.
Methods: Jumping Knowledge Networks
To address the rigid neighborhood limitation, we propose Jumping Knowledge (JK) Networks. Instead of only using the output of the final layer, JK-Nets take the representations from all intermediate layers and "jump" them directly to the final layer.
At the final layer, the model combines these multi-scale representations using one of three aggregation mechanisms:
- Concatenation: Shares weights across nodes, making it less prone to overfitting on smaller, regular graphs.
- Max-pooling: Element-wise maximum across layers, adaptively selecting the most informative layer for each specific feature coordinate.
- LSTM-attention: Uses a bi-directional LSTM to compute attention scores, allowing for highly customized, node-specific weighting of different neighborhood ranges.
Key Insights: GCNs as Random Walks
A major contribution of this work is the mathematical proof linking the "influence distribution" of a $k$-layer GCN to a $k$-step random walk. This equivalence explains the over-smoothing problem: in dense subgraphs, random walks mix incredibly fast, meaning deep GCNs quickly average out local node features into a generic "global" feature.
Because random walks expand at wildly different speeds depending on local graph topology, nodes need different effective neighborhood sizes. A hub node might only need 1-2 hops of information, while a node at the edge of a long chain might need 4-5 hops. JK-Nets effectively give each node its own custom receptive field.
Experimental Results
The JK framework was evaluated on standard benchmarks including Citeseer, Cora, Reddit, and PPI (Protein-Protein Interaction). Applying the JK framework consistently improved the performance of base models like GCN, GraphSAGE, and GAT:
- Cora: While standard GCNs peak at 2 layers (88.2% accuracy), a 6-layer JK-Net with Max-pooling achieves 89.6%, proving it can leverage deeper global information without losing local signals.
- Reddit: JK connections reduced the error rate of GraphSAGE by 30%, increasing the Micro-F1 score from 0.950 to 0.965.
- PPI: The LSTM-attention mechanism boosted a 3-layer GraphSAGE's Micro-F1 score from 0.690 to 0.818, demonstrating its power on complex, diverse subgraphs.
Conclusion
JK-Nets provide a flexible architecture that adapts to the local geometry of graphs. While the LSTM-attention aggregator is powerful for large graphs, simpler aggregators like Max-pooling are preferred for smaller datasets to avoid overfitting. Future work includes exploring new layer aggregators and studying the interaction between node-wise aggregators and diverse graph topologies.
Summary updated