Enhancing Graph Neural Networks with Quantum Computed Encodings

Slimane Thabet, Romain Fouilland, Mehdi Djellabi, Igor Sokolov, Sachin Kasture, L. Henry, L. Henriet

Main figure for Enhancing Graph Neural Networks with Quantum Computed Encodings

Abstract

Transformers are increasingly employed for graph data, demonstrating competitive performance in diverse tasks. To incorporate graph information into these models, it is essential to enhance node and edge features with positional encodings. In this work, we propose novel families of positional encodings tailored for graph transformers. These encodings leverage the long-range correlations inherent in quantum systems, which arise from mapping the topology of a graph onto interactions between qubits in a quantum computer. Our inspiration stems from the recent advancements in quantum processing units, which offer computational capabilities beyond the reach of classical hardware. We prove that some of these quantum features are theoretically more expressive for certain graphs than the commonly used relative random walk probabilities. Empirically, we show that the performance of state-of-the-art models can be improved on standard benchmarks and large-scale datasets by computing tractable versions of quantum features. Our findings highlight the potential of leveraging quantum computing capabilities to potentially enhance the performance of transformers in handling graph data.

Benchmark Results

Tested on 6 datasets 11 baseline values reported too low

Tables show presented results in global context (best 3 papers + GCN + MLP).

Classic

#ModelMAE ↓Paper
1
TIGT
0.0140 ±0.0010
2
FloydNet
0.0160
3
GSSC
0.0190 ±0.0010
11
GRIT
0.0230 ±0.0010
This paper
13
GRIT 2-QiQRW
0.0230 ±0.0020
This paper
19
SignNet
0.0240 ±0.0030
This paper
25
GRIT 1-CQRW
0.0250 ±0.0030
This paper
22
Graphormer
actual #22 vs paper #56 34 places worse
0.0250
best reported
actual #22 vs paper #56 34 places worse
paper 0.0520 ±0.0050
paper 0.0520 ±0.0050 Δ today 0.0270
23
Graphormer-GD
0.0250 ±0.0040
This paper
29
Graphormer-URPE
0.0280 ±0.0020
This paper
69
GIN
0.0880 ±0.0020
This paper
78
GAT
actual #78 vs paper #78
0.1110 ±0.0020
actual #78 vs paper #78
paper 0.1110 ±0.0020
paper 0.1110 ±0.0020 Δ at pub 0.3650
79
GCN
actual #79 vs paper #79
0.1130 ±0.0020
actual #79 vs paper #79
paper 0.1130 ±0.0020
paper 0.1130 ±0.0020 Δ at pub 0.2940
80
GraphSAGE
actual #80 vs paper #80
0.1260 ±0.0030
actual #80 vs paper #80
paper 0.1260 ±0.0030
paper 0.1260 ±0.0030 Δ at pub 0.3490

OGB

#ModelMAE ↓Paper
1
DeMol
0.0603
2
TGT-At
0.0671
3
TGT-At (+RDKit)
0.0683
17
GRIT 2-QiQRW
0.0838
This paper
19
GRIT (our run)
0.0842
This paper
22
GPS-medium
0.0858
This paper
31
Graphormer
0.0864
This paper
53
GRIT 1-CQRW
0.0947
This paper
64
GIN
0.1195
This paper
65
GCN
actual #65 vs paper #65
0.1195
actual #65 vs paper #65
paper 0.1195
paper 0.1195 Δ at pub 0.0184

GNNBenchmark

#ModelAccuracy ↑Paper
1
Schrödinger
0.9913 ±0.0004
2
CNN
0.9907 ±0.0007
3
MPNN
0.9895 ±0.0006
11
GatedGCN
actual #11 vs paper #90 79 places worse
0.9855 ±0.0002
best reported
actual #11 vs paper #90 79 places worse
paper 0.9734 ±0.0014
32
GIN
actual #32 vs paper #110 78 places worse
0.9833 ±0.0011
best reported
actual #32 vs paper #110 78 places worse
paper 0.9648 ±0.0025
best at pub: Graph-Coupled Oscillator Networks (ICML 2022)
paper 0.9648 ±0.0025 Δ at pub 0.0075 Δ today 0.0184
42
GRIT 2-QiQRW
0.9820 ±0.0005
This paper
47
EGT
0.9817 ±0.0009
This paper
48
GRIT (our run)
0.9816 ±0.0005
This paper
57
GRIT 1-CQRW
0.9811 ±0.0011
This paper
59
GPS
actual #59 vs paper #61 2 places worse
0.9808 ±0.0011
best reported
actual #59 vs paper #61 2 places worse
paper 0.9805 ±0.0013

Difference within reported uncertainty; not counted as underperformance.

paper 0.9805 ±0.0013 Δ today 0.0003
86
GAT
actual #86 vs paper #121 35 places worse
0.9755 ±0.0003
best reported
actual #86 vs paper #121 35 places worse
paper 0.9554 ±0.0021
95
GraphSAGE
0.9731 ±0.0010
126
MLP
0.9534 ±0.0014
135
GCN
actual #135 vs paper #138 3 places worse
0.9405 ±0.0005
best reported
actual #135 vs paper #138 3 places worse
paper 0.9071 ±0.0022
paper 0.9071 ±0.0022 Δ at pub 0.0198 Δ today 0.0335
#ModelAccuracy ↑Paper
1
RandAlign
0.7942 ±0.0007
2
differential encoding
0.7907 ±0.0027
3
PPGT
0.7856 ±0.0070
7
GRIT
0.7647 ±0.0088
This paper
8
GRIT 2-QiQRW
0.7644 ±0.0107
This paper
11
GRIT 1-CQRW
0.7635 ±0.0070
This paper
40
DGN
actual #40 vs paper #40
0.7284 ±0.0042
best reported
actual #40 vs paper #40
paper 0.7284 ±0.0042

Difference within reported uncertainty; not counted as underperformance.

paper 0.7284 ±0.0042 Δ at pub 0.0000
44
GIN-AK+
actual #44 vs paper #50 6 places worse
0.7239 ±0.0038
best reported
actual #44 vs paper #50 6 places worse
paper 0.7219 ±0.0013

Difference within reported uncertainty; not counted as underperformance.

paper 0.7219 ±0.0013 Δ today 0.0020
46
GPS
actual #46 vs paper #49 3 places worse
0.7236 ±0.0032
best reported
actual #46 vs paper #49 3 places worse
paper 0.7230 ±0.0036

Difference within reported uncertainty; not counted as underperformance.

paper 0.7230 ±0.0036 Δ today 0.0006
62
GatedGCN
actual #62 vs paper #90 28 places worse
0.7133 ±0.0039
best reported
actual #62 vs paper #90 28 places worse
paper 0.6731 ±0.0031
paper 0.6731 ±0.0031 Δ at pub 0.0402
82
EGT
0.6870 ±0.0041
This paper
92
GraphSAGE
0.6690 ±0.0020
101
GAT
actual #101 vs paper #112 11 places worse
0.6611 ±0.0098
best reported
actual #101 vs paper #112 11 places worse
paper 0.6422 ±0.0046
paper 0.6422 ±0.0046 Δ at pub 0.0189
109
GIN
actual #109 vs paper #129 20 places worse
0.6510 ±0.0050
best reported
actual #109 vs paper #129 20 places worse
paper 0.5525 ±0.0153
paper 0.5525 ±0.0153 Δ at pub 0.0985
124
GCN
actual #124 vs paper #128 4 places worse
0.5839 ±0.0073
best reported
actual #124 vs paper #128 4 places worse
paper 0.5571 ±0.0038
paper 0.5571 ±0.0038 Δ at pub 0.0268
126
MLP
0.5634 ±0.0018
#ModelAccuracy ↑Paper
1
GRPE-Small
0.8159 ±0.0019
2
TANGO-GPS
0.8011 ±0.0014
3
GRIT
0.8003 ±0.0028
This paper
4
GRIT 2-QiQRW
0.7978 ±0.0017
This paper
6
EGT
0.7923 ±0.0035
This paper
7
GRIT 1-CQRW
0.7890 ±0.0011
This paper
22
GPS
0.7802 ±0.0018
This paper
23
K-Subgraph SAT
0.7786 ±0.0010
This paper
50
SAN
0.7669 ±0.0065
This paper
54
GatedGCN
actual #54 vs paper #62 8 places worse
0.7608 ±0.0020
best reported
actual #54 vs paper #62 8 places worse
paper 0.7384 ±0.0033
paper 0.7384 ±0.0033 Δ at pub 0.0224
67
GAT
0.7059 ±0.0045
This paper
70
GCN
actual #70 vs paper #71 1 place worse
0.6903 ±0.0137
best reported
actual #70 vs paper #71 1 place worse
paper 0.6850 ±0.0098

Difference within reported uncertainty; not counted as underperformance.

paper 0.6850 ±0.0098 Δ today 0.0053
79
GIN
0.6472 ±0.0155
This paper
80
GraphSAGE
0.6388 ±0.0011
114
MLP
0.2097 ±0.0000
#ModelAccuracy ↑Paper
1
DeepGraph (48)
0.9066 ±0.0006
2
GRIT (our run)
0.9041 ±0.0023
This paper
3
GRIT 2-QiQRW
0.9016 ±0.0045
This paper
7
GRIT 1-CQRW
0.8720 ±0.0004
This paper
19
GIN-AK+
0.8685 ±0.0006
This paper
21
K-Subgraph SAT
0.8685 ±0.0004
This paper
24
EGT
0.8682 ±0.0002
This paper
50
GPS
0.8669 ±0.0006
This paper
51
DGN
0.8668 ±0.0003
This paper
58
SAN
0.8658 ±0.0004
This paper
66
GatedGCN
actual #66 vs paper #91 25 places worse
0.8651 ±0.0008
best reported
actual #66 vs paper #91 25 places worse
paper 0.8557 ±0.0009
best at pub: IJCAI--23 Formatting Instructions (IJCAI 2023)
paper 0.8557 ±0.0009 Δ at pub 0.0094
88
GCN
actual #88 vs paper #116 28 places worse
0.8561 ±0.0003
best reported
actual #88 vs paper #116 28 places worse
paper 0.7189 ±0.0033
best at pub: GNNBenchmark (JMLR 2023)
paper 0.7189 ±0.0033 Δ at pub 0.1361 Δ today 0.1372
89
GIN
actual #89 vs paper #94 5 places worse
0.8559 ±0.0001
best reported
actual #89 vs paper #94 5 places worse
paper 0.8539 ±0.0014
best at pub: Factorizable Graph Convolutional Networks (NeurIPS 2020)
best today: GNNBenchmark (JMLR 2023)

Difference within reported uncertainty; not counted as underperformance.

paper 0.8539 ±0.0014 Δ at pub 0.0020 Δ today 0.0020
107
GAT
0.7827 ±0.0019
This paper
123
MLP
0.5052
124
GraphSAGE
0.5052 ±0.0000
SOTA performance (not significantly different from the best) Baseline / comparison (this paper) Global context (other papers) Best at pub — reported result worse than the best known when published (best reported in green) Best at pub — reported value improved over the best known when published Best today — OK at publication; today's leaderboard best is elsewhere