Distance Encoding: Design Provably More Powerful Neural Networks for Graph Representation Learning
Not on the map. Why?
Abstract (arXiv)
Learning representations of sets of nodes in a graph is crucial for applications ranging from node-role discovery to link prediction and molecule classification. Graph Neural Networks (GNNs) have achieved great success in graph representation learning. However, expressive power of GNNs is limited by the 1-Weisfeiler-Lehman (WL) test and thus GNNs generate identical representations for graph substructures that may in fact be very different. More powerful GNNs, proposed recently by mimicking higher-order-WL tests, only focus on representing entire graphs and they are computationally inefficient as they cannot utilize sparsity of the underlying graph. Here we propose and mathematically analyze a general class of structure-related features, termed Distance Encoding (DE). DE assists GNNs in representing any set of nodes, while providing strictly more expressive power than the 1-WL test. DE captures the distance between the node set whose representation is to be learned and each node in the graph. To capture the distance DE can apply various graph-distance measures such as shortest path distance or generalized PageRank scores. We propose two ways for GNNs to use DEs (1) as extra node features, and (2) as controllers of message aggregation in GNNs. Both approaches can utilize the sparse structure of the underlying graph, which leads to computational efficiency and scalability. We also prove that DE can distinguish node sets embedded in almost all regular graphs where traditional GNNs always fail. We evaluate DE on three tasks over six real networks: structural role prediction, link prediction, and triangle prediction. Results show that our models outperform GNNs without DE by up-to 15% in accuracy and AUROC. Furthermore, our models also significantly outperform other state-of-the-art methods especially designed for the above tasks.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). First posted on arXiv 31 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 2; 2023: 4; 2024: 2; 2025: 0; 2026: 1.
9 papers.
- 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivitycited by 119
- 2023A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Testscited by 64
- 2024Beyond Weisfeiler-Lehman: A Quantitative Framework for GNN Expressivenesscited by 38
- 2023Facilitating Graph Neural Networks with Random Walk on Simplicial Complexescited by 14
- 2022Unsupervised Network Embedding Beyond Homophilycited by 7
- 2022Simplifying Node Classification on Heterophilous Graphs with Compatible Label Propagationcited by 7
- 2024From Graphs to Hypergraphs: Hypergraph Projection and its Remediationcited by 6
- 2023Weisfeiler and Leman Go Measurement Modeling: Probing the Validity of the WL Testcited by 0
- 2026Bridging Distance and Spectral Positional Encodings via Anchor-Based Diffusion Geometry Approximationcited by 0
- 2026Bridging Distance and Spectral Positional Encodings via Anchor-Based Diffusion Geometry Approximation8 Jan 2026
- 2024From Graphs to Hypergraphs: Hypergraph Projection and its Remediation16 Jan 2024
- 2024Beyond Weisfeiler-Lehman: A Quantitative Framework for GNN Expressiveness16 Jan 2024
- 2023Facilitating Graph Neural Networks with Random Walk on Simplicial Complexes30 Oct 2023
- 2023Weisfeiler and Leman Go Measurement Modeling: Probing the Validity of the WL Test11 Jul 2023
- 2023A Complete Expressiveness Hierarchy for Subgraph GNNs via Subgraph Weisfeiler-Lehman Tests14 Feb 2023
- 2023Rethinking the Expressive Power of GNNs via Graph Biconnectivity23 Jan 2023
- 2022Simplifying Node Classification on Heterophilous Graphs with Compatible Label Propagation19 May 2022
- 2022Unsupervised Network Embedding Beyond Homophily21 Mar 2022