GNN: Two Prototype Sets to boost GNN Performance
Organizations: Amazon, India
Abstract
Message Passing Graph Neural Networks (MP-GNNs) have garnered attention for addressing various industry challenges, such as user recommendation and fraud detection. However, they face two major hurdles: (1) heavy reliance on local context, often lacking information about the global context or graph-level features, and (2) assumption of strong homophily among connected nodes, struggling with noisy local neighborhoods. To tackle these, we introduce GNN, a plug-and-play technique leveraging prototypes to optimize message passing, enhancing the performance of the base GNN model. Our approach views the prototypes in two ways: (1) as universally accessible neighbors for all nodes, enriching global context, and (2) aligning messages to clustered prototypes, offering a denoising effect. We demonstrate the extensibility of our proposed method to all message-passing GNNs and conduct extensive experiments across 18 datasets, including proprietary e-commerce datasets and open-source datasets, on node recommendation and node classification tasks. Results show that GNN outperforms production models in e-commerce and achieves the top average rank on open-source datasets, establishing it as a leading approach. Qualitative analysis supports the value of global context and noise mitigation in the local neighborhood in enhancing performance.
Figures & tables
| Criterion | DPGNN | HP-GMN | ProtoGNN | GNN |
|---|---|---|---|---|
| GNN-based | ✓ | ✗ | ✓ | ✓ |
| No Pre-training | ✓ | ✗ | ✗ | ✓ |
| Class independent | ✗ | ✓ | ✗ | ✓ |
| Task-agnostic | ✗ | ✗ | ✗ | ✓ |
| Notation | Description |
|---|---|
| undirected graph without self-loops | |
| , | set of nodes, number of nodes |
| set of edges | |
| adjacency matrix | |
| initial node feature matrix | |
| Number of learnable prototypes |
| Section | Question | Answer (Yes/No) |
| RQ1 | Does the GNN model outperform baseline methods on node recommendation tasks? | Yes |
| Does the GNN model achieve superior performance on node classification tasks? | Yes | |
| Does the GNN model scale effectively to large-scale graphs? | Yes | |
| Does GNN drastically increase training time? | No | |
| Are the performance improvements of GNN statistically significant over the backbone GNN? | Yes | |
| RQ2 | Does incorporating neighborhood prototypes ( ) enhance the model’s performance? | Yes |
| Dataset | Model | Hits@1 | Hits@3 | Hits@5 | Hits@10 | MRR@10 |
|---|---|---|---|---|---|---|
| E-comm1 | GCN | 3.77x | 3.81x | 3.81x | 3.81x | 3.79x |
| GNN | 3.93x | 3.95x | 3.96x | 3.96x | 3.94x | |
| E-comm2 | GCN | 0.285x | 0.753x | 1.056x | 1.531x | 0.613x |
| GNN | 0.333x | 0.782x | 1.090x | 1.568x | 0.657x |
| Cornell | Wisconsin | Texas | Film | Chameleon | Squirrel | Cora | CiteSeer | Avg. Rank | |
|---|---|---|---|---|---|---|---|---|---|
| 0.30 | 0.21 | 0.11 | 0.22 | 0.23 | 0.22 | 0.81 | 0.74 | ||
| MLP | 91.30 0.70 | 93.87 3.33 | 92.26 0.71 | 38.58 0.25 | 46.72 0.46 | 31.28 0.27 | 76.44 0.30 | 76.25 0.28 | 11.0 |
| GAT [ 50 ] | 76.00 1.01 | 71.01 4.66 | 78.87 0.86 | 35.98 0.23 | 63.9 0.46 | 42.72 0.33 | 76.70 0.42 | 67.20 0.46 | 13.6 |
| GPRGNN [ 8 ] | 91.36 0.70 | 93.75 2.37 | 92.92 0.61 | 39.30 0.27 | 67.48 0.40 | 49.93 0.53 | 79.51 0.36 | 67.63 0.38 | 8.4 |
| H2GCN [ 64 ] | 86.23 4.71 | 87.5 1.77 | 85.90 3.53 | 38.85 1.17 | 52.30 0.48 | 30.39 1.22 | 87.52 0.61 | 79.97 0.69 | 10.8 |
| GCN+JK [ 20 ] | 66.56 13.82 | 62.50 15.75 | 80.66 1.91 | 32.72 2.62 | 64.68 2.85 | 53.40 1.90 | 86.90 1.51 | 73.77 1.85 | 13.1 |
| Penn94 | pokec | arXiv-year | snap-patents | genius | twitch-gamers | Avg. Rank | |
| 0.47 | 0.44 | 0.22 | 0.07 | 0.61 | 0.54 | ||
| MLP | 10.5 | ||||||
| GCN | 7.8 | ||||||
| GAT | 9.3 | ||||||
| MixHop | 5.2 | ||||||
| GCNII | 6.8 |
| Model | Penn94 | pokec | arXiv-year | snap-patents | genius | twitch-gamers |
|---|---|---|---|---|---|---|
| ACM-GNN | 1.52 | 2.51 | 1.02 | 3.43 | 1.19 | 1.23 |
| GNN | 2.02 | 2.92 | 1.32 | 3.72 | 1.46 | 1.84 |
| Model Components | Cornell | Wisconsin | Texas | Film | Chameleon | Squirrel | Cora | CiteSeer | ||
| Models | Acc Std | Acc Std | Acc Std | Acc Std | Acc Std | Acc Std | Acc Std | Acc Std | ||
| GCN w/ | ✗ | ✗ | 82.30 2.82 | 72.50 3.71 | 82.62 4.82 | 35.52 0.77 | 64.38 2.44 | 45.25 2.07 | 87.88 0.81 | 81.39 1.21 |
| ✓ | ✗ | 84.26 3.45 | 78.25 4.75 | 83.61 3.20 | 36.45 1.29 | 64.49 2.56 | 45.37 1.76 | 89.16 1.01 | 80.46 2.12 | |
| ✓ | ✓ | 84.10 2.84 | 78.38 4.61 | 83.44 3.47 | 36.81 0.94 | 64.22 2.37 | 45.37 1.37 | 89.97 0.89 | 80.72 1.57 | |
| SGC w/ | ✗ | ✗ | 70.98 8.39 | 70.38 2.85 | 83.28 5.43 | 25.26 1.18 | 51.53 1.52 | 31.89 1.85 | 76.60 2.62 | 79.02 1.74 |
| ✓ | ✗ | 78.20 4.02 | 72.75 4.99 | 83.93 2.72 | 32.63 2.24 | 53.81 1.70 | 37.69 1.58 | 80.11 2.87 | 78.99 1.60 | |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Type | Dataset | # Nodes | # Edges | # Feat. | # C | |
| Small | Texas | 183 | 309 | 1,703 | 5 | .11 |
| Wisconsin | 251 | 499 | 1,703 | 5 | .21 | |
| Cornell | 183 | 295 | 1,703 | 5 | .30 | |
| Film | 7,600 | 29,926 | 931 | 5 | .22 | |
| Chameleon | 2,277 | 36,101 | 2,325 | 5 | .23 | |
| Squirrel | 5,201 | 216,933 | 2,089 | 5 | .22 |
| Texas | Wisconsin | Cornell | Film | Squirrel | Chameleon | Cora | Citeseer | Avg. Rank | |
|---|---|---|---|---|---|---|---|---|---|
| 0.11 | 0.21 | 0.30 | 0.22 | 0.22 | 0.23 | 0.81 | 0.74 | ||
| MLP | 12.4 | ||||||||
| GCN [ 20 ] | 13.0 | ||||||||
| GAT [ 50 ] | 13.4 | ||||||||
| H 2 GCN [ 64 ] | 9.0 | ||||||||
| WRGAT [ 45 ] | 8.3 |