Papers › Template based Graph Neural Network with Optimal Transport Distances
Template based Graph Neural Network with Optimal Transport Distances
Cédric Vincent-Cuaz, Rémi Flamary, Marco Corneli, Titouan Vayer, Nicolas Courty
Current Graph Neural Networks (GNN) architectures generally rely on two important components: node features embedding through message passing, and aggregation with a specialized form of pooling. The structural (or topological) information is implicitly taken into account in these two steps. We propose in this work a novel point of view, which places distances to some learnable graph templates at the core of the graph representation. This distance embedding is constructed thanks to an optimal transport distance: the Fused Gromov-Wasserstein (FGW) distance, which encodes simultaneously feature and structure dissimilarities by solving a soft graph-matching problem. We postulate that the vector of FGW distances to a set of template graphs has a strong discriminative power, which is then fed to a non-linear classifier for final predictions. Distance embedding can be seen as a new layer, and can leverage on existing message passing techniques to promote sensible feature representations. Interestingly enough, in our work the optimal set of template graphs is also learnt in an end-to-end fashion by differentiating through this layer. After describing the corresponding learning procedure, we empirically validate our claim on several synthetic and real life graph classification datasets, where our method is competitive or surpasses kernel and GNN state-of-the-art approaches. We complete our experiments by an ablation study and a sensitivity analysis to parameters.
In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.
Code
Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.
Code Syntology ran Syntology
Not run by Syntology. Nothing on this page verifies that the listed code works.
Tasks
Results from the paper archive 2025-07-28
| Task | Dataset | Model | Metric | Value | Rank at snapshot | Leaderboard | Report |
|---|---|---|---|---|---|---|---|
| Graph Classification | COLLAB | TFGW ADJ (L=2) | Accuracy | 84.3% | #2 of 39 | Archive leaderboard | report |
| Graph Classification | ENZYMES | TFGW SP (L=2) | Accuracy | 75.1 | #6 of 54 | Archive leaderboard | report |
| Graph Classification | IMDb-B | TFGW ADJ (L=2) | Accuracy | 78.3% | #12 of 51 | Archive leaderboard | report |
| Graph Classification | IMDb-M | TFGW ADJ (L=2) | Accuracy | 56.8% | #2 of 36 | Archive leaderboard | report |
| Graph Classification | MUTAG | TFGW ADJ (L=2) | Accuracy | 96.4% | #3 of 74 | Archive leaderboard | report |
| Graph Classification | NCI1 | TFGW ADJ (L=2) | Accuracy | 88.1% | #1 of 69 | Archive leaderboard | report |
| Graph Classification | PROTEINS | TFGW ADJ (L=2) | Accuracy | 82.9 | #3 of 103 | Archive leaderboard | report |
| Graph Classification | PTC | TFGW ADJ (L=2) | Accuracy | 72.4% | #11 of 37 | Archive leaderboard | report |
Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.
Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections