Differential Encoding for Improved Representation Learning Over Graphs
Abstract
Combining the message-passing paradigm with the global attention mechanism has emerged as an effective framework for learning over graphs. The message-passing paradigm and the global attention mechanism basically generate embeddings of nodes by taking the sum of information from a node’s local neighbourhood and from the entire graph, respectively. However, this simple summation aggregation approach fails to distinguish between the information from a node itself or from the node’s neighbours. Therefore, there exists information lost at each layer of embedding generation, and this information lost could be accumulated and become more serious in deeper model layers. In this paper, we present a differential encoding method to address the issue of information lost. Instead of simply taking the sum to aggregate local or global information, we explicitly encode the difference between the information from a node itself and that from the node’s local neighbours (or from the rest of the entire graph nodes). The obtained differential encoding is then combined with the original aggregated representation to generate the updated node embedding. By combining differential encodings, the representational ability of generated node embeddings is improved, and therefore the model performance is improved. The differential encoding method is empirically evaluated on different graph tasks on seven benchmark datasets. The results show that it is a general method that improves the message-passing update and the global attention update, advancing the state-of-the-art performance for graph representation learning on these benchmark datasets.
Benchmark Results
Tested on 4 datasets 15 baseline values reported too low
Tables show presented results in global context (best 3 papers + GCN + MLP).
OGB
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | A-NLSF | 0.8149
±0.0067 | |
| 2 | differential encoding | 0.8096
±0.0029 | This paper |
| 3 | MPNN + VN + NoPE | 0.8055
±0.0038 | |
| 5 | GPS | 0.8015
±0.0033 | This paper |
| 8 | ExpC | 0.7976
±0.0072 | This paper |
| 13 | DeeperGCN | 0.7712
±0.0071 | This paper |
| 16 | GatedGCN | 0.7531
±0.0083 | |
| 19 | K-Subtree SAT | 0.7522
±0.0056 | This paper |
| 33 | GIN | 0.7037
±0.0107 best reported | best at pub: Parameterized Hypercomplex Graph Neural Networks for Graph Classification (2021) best today: Adaptive Canonicalization with Application to Invariant Anisotropic Geometric Networks (2025) Difference within reported uncertainty; not counted as underperformance. |
| 35 | GIN+virtual node | 0.7037
±0.0107 | This paper |
| 38 | GCN | 0.6857
±0.0061 best reported | best at pub: Parameterized Hypercomplex Graph Neural Networks for Graph Classification (2021) best today: Adaptive Canonicalization with Application to Invariant Anisotropic Geometric Networks (2025) Difference within reported uncertainty; not counted as underperformance. |
| 39 | GCN+virtual node | 0.6857
±0.0061 | This paper |
LRGB
| # | Model | MRR ↑ | Paper |
|---|---|---|---|
| 1 | FloydNet | 0.6143 | |
| 2 | Exphormer | 0.4737
±0.0024 | |
| 3 | Exphormer + LapPE | 0.4737
±0.0024 | |
| 5 | GPS | 0.4703
±0.0014 best reported | best at pub: Learning Long Range Dependencies on Graphs via Random Walks (ICLR 2024) |
| 8 | GatedGCN | 0.4670
±0.0004 best reported | best at pub: Learning Long Range Dependencies on Graphs via Random Walks (ICLR 2024) best today: Benchmarking Positional Encodings for GNNs and Graph Transformers (KDD 2024) |
| 15 | GINE | 0.4617
±0.0005 best reported | best at pub: Recipe for a General, Powerful, Scalable Graph Transformer (NeurIPS 2022) best today: Benchmarking Positional Encodings for GNNs and Graph Transformers (KDD 2024) |
| 16 | GIN | 0.4617
±0.0005 | |
| 28 | GCN | 0.4526
±0.0006 best reported | best at pub: Learning Long Range Dependencies on Graphs via Random Walks (ICLR 2024) best today: Benchmarking Positional Encodings for GNNs and Graph Transformers (KDD 2024) |
| 46 | differential encoding | 0.3459
±0.0005 | This paper |
| 56 | Graph Diffuser | 0.3388
±0.0011 | This paper |
| 61 | SAN+LapPE | 0.3350
±0.0003 | This paper |
| 62 | SAN+RWSE | 0.3341
±0.0006 | This paper |
| 75 | GatedGCN+RWSE | 0.3242
±0.0008 | This paper |
| 80 | Transformer+LapPE | 0.3174
±0.0020 | This paper |
| 82 | GCNII | 0.3161
±0.0004 | This paper |
GNNBenchmark
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | Schrödinger | 0.9913
±0.0004 | |
| 2 | CNN | 0.9907
±0.0007 | |
| 3 | MPNN | 0.9895
±0.0006 | |
| 10 | differential encoding | 0.9856
±0.0006 | This paper |
| 11 | GatedGCN | 0.9855
±0.0002 best reported | best at pub: RandAlign: A Parameter-Free Method for Regularizing Graph Convolutional Networks (2024) |
| 13 | Exphormer | 0.9855
±0.0004 | This paper |
| 18 | EdgeGCN | 0.9843
±0.0006 | This paper |
| 32 | GIN | 0.9833
±0.0011 best reported | best at pub: Graph-Coupled Oscillator Networks (ICML 2022) |
| 39 | TIGT | 0.9823
±0.0013 | This paper |
| 47 | EGT | 0.9817
±0.0009 | This paper |
| 56 | GRIT | 0.9811
±0.0011 | This paper |
| 59 | GPS | 0.9808
±0.0011 best reported | best at pub: Recipe for a General, Powerful, Scalable Graph Transformer (NeurIPS 2022) Difference within reported uncertainty; not counted as underperformance. |
| 70 | GatedGCN + SSFG | 0.9798
±0.0003 | This paper |
| 73 | CRaWl | 0.9794
±0.0005 | This paper |
| 75 | PNA | 0.9794
±0.0012 | This paper |
| 81 | Cy2C-GNNs | 0.9777
±0.0000 | This paper |
| 86 | GAT | 0.9755
±0.0003 best reported | best at pub: RandAlign: A Parameter-Free Method for Regularizing Graph Convolutional Networks (2024) |
| 95 | GraphSAGE | 0.9731
±0.0010 | This paper |
| 97 | SAGE | 0.9731
±0.0010 | |
| 102 | GAT + differential enc. | 0.9716
±0.0015 | This paper |
| 126 | MLP | 0.9534
±0.0014 | |
| 129 | 3WLGNN | 0.9507
±0.0096 | This paper |
| 130 | GCN + differential enc. | 0.9473
±0.0014 | This paper |
| 135 | GCN | 0.9405
±0.0005 best reported | best at pub: RandAlign: A Parameter-Free Method for Regularizing Graph Convolutional Networks (2024) |
| 137 | MoNet | 0.9111 best reported | best at pub: Graph-Coupled Oscillator Networks (ICML 2022) |
| 141 | GCNII | 0.9067
±0.0014 | This paper |
| # | Model | Accuracy ↑ | Paper |
|---|---|---|---|
| 1 | RandAlign | 0.7942
±0.0007 | |
| 2 | differential encoding | 0.7907
±0.0027 | This paper |
| 3 | PPGT | 0.7856
±0.0070 | |
| 7 | GRIT | 0.7647
±0.0088 | This paper |
| 12 | EdgeGCN | 0.7613
±0.0040 | This paper |
| 25 | Exphormer | 0.7475
±0.0019 | This paper |
| 31 | TIGT | 0.7396
±0.0036 best reported | best at pub: Topology-Informed Graph Transformer (2024) best today: Benchmarking Positional Encodings for GNNs and Graph Transformers (KDD 2024) Difference within reported uncertainty; not counted as underperformance. |
| 33 | ARGNP | 0.7390
±0.0015 | This paper |
| 38 | PNA | 0.7311
±0.0011 best reported | best at pub: From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awareness (ICLR 2021) |
| 40 | DGN | 0.7284
±0.0042 best reported | best at pub: From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awareness (ICLR 2021) Difference within reported uncertainty; not counted as underperformance. |
| 44 | GIN-AK+ | 0.7239
±0.0038 best reported | best at pub: Improving Subgraph-GNNs via Edge-Level Ego-Network Encodings (TMLR 2023) Difference within reported uncertainty; not counted as underperformance. |
| 46 | GPS | 0.7236
±0.0032 best reported | best at pub: Recipe for a General, Powerful, Scalable Graph Transformer (NeurIPS 2022) Difference within reported uncertainty; not counted as underperformance. |
| 56 | GatedGCN + SSFG | 0.7194
±0.0019 | This paper |
| 62 | GatedGCN | 0.7133
±0.0039 best reported | best at pub: Formatting Instructions for ICLR 2021 Conference Submissions (2020) |
| 80 | CRaWl | 0.6901
±0.0026 | This paper |
| 82 | EGT | 0.6870
±0.0041 | This paper |
| 90 | GAT + differential enc. | 0.6737
±0.0042 | This paper |
| 92 | GraphSAGE | 0.6690
±0.0020 best reported | best at pub: Beyond Low-pass Filtering: Graph Convolutional Networks with Automatic Filtering (2021) |
| 101 | GAT | 0.6611
±0.0098 best reported | best at pub: Formatting Instructions for ICLR 2021 Conference Submissions (2020) |
| 103 | MoNet | 0.6591
±0.0251 best reported | best at pub: SoGCN: Second-Order Graph Convolutional Networks (2021) |
| 104 | SAGE | 0.6577
±0.0031 | |
| 109 | GIN | 0.6510
±0.0050 best reported | best at pub: Beyond Low-pass Filtering: Graph Convolutional Networks with Automatic Filtering (2021) |
| 112 | Cy2C-GNNs | 0.6429
±0.0001 | This paper |
| 117 | GCN + differential enc. | 0.6202
±0.0036 | This paper |
| 123 | 3WLGNN | 0.5917
±0.0159 | This paper |
| 124 | GCN | 0.5839
±0.0073 best reported | best at pub: From Stars to Subgraphs: Uplifting Any GNN with Local Structure Awareness (ICLR 2021) |
| 126 | MLP | 0.5634
±0.0018 | |
| 128 | GCNII | 0.5608
±0.0020 | This paper |
