# Bridging Graph Worlds: Neural Approximation of Gromov-Wasserstein Distances

*Dong Qiao, Chris Ding, Jicong Fan*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151656) · [OpenReview](https://openreview.net/forum?id=Z1aNhxbf76) · [Open on the map](../papers.html#p151656)

Category: [Graphs, OOD Detection & Medical Imaging](../pcat/7.md) › [Hypergraph and Graph Diffusion Generation](../pgroup/512.md) · Type: new method · Keywords: graph comparison, Gromov-Wasserstein distance, neural approximation, graph isomorphism, maximum mean discrepancy

Areas: [Graph Learning](../areas/graph-learning.md) › Graph Analysis Methods › Graph Optimization and Structure

## Summary
NeuralGW provides a neural approximation of the Gromov-Wasserstein distance, enabling fast graph comparison via a graph isomorphism network, transformer, and MLP.

## Explained to a 5-year-old
Graphs are like drawings that show how things are connected. It is hard to tell how similar two drawings are when they are big. The researchers wanted to make a faster way to compare these drawings. They built a computer program that learns to guess the similarity quickly. It looks at each part of the drawings and compares them using simple rules. After learning, it can tell how close the drawings are in just a moment.

## Explained to a 5-year-old, longer
Graphs are like pictures that show how things are linked together. Sometimes you want to know if two pictures look similar, but doing that can take a long time. The researchers wanted to make a faster way to compare these pictures. They built a computer brain that can learn how to guess the similarity between pictures. First, the brain turns each picture into a set of simple numbers that represent its parts. It uses two small helpers: one that understands the shape of each part, and another that can look at many parts at once. Then it measures how far apart these numbers are using a few easy rules. After many practice examples, the brain knows how to give a single number that says how close the pictures are. Once it is trained, it can compare new pictures almost instantly. This makes it possible to compare big graphs quickly, which is useful for many kinds of data. The researchers also proved that the brain’s guesses will work well on new data it has never seen. In the end, they showed that this fast method works better than the old slow method on real-world examples.

## For a technical reader
The paper introduces NeuralGW, a neural network that approximates the Gromov-Wasserstein distance between graphs. It encodes node embeddings using a graph isomorphism network and a transformer, then computes multiple maximum mean discrepancy values with different kernels. These values are concatenated and passed through a multilayer perceptron to produce a single scalar estimate of the GW distance. After training, the model can compare two graphs in milliseconds, making it suitable for large-scale graph analysis. The authors provide a generalization guarantee and demonstrate superior speed and accuracy over traditional GW solvers on real-world datasets.

## Problem
Computing the Gromov-Wasserstein distance between graphs is a fundamental but computationally expensive task due to a complex non-convex optimization, especially for large graphs. This makes efficient graph comparison challenging in many applications.

## Method
The approach represents nodes of two graphs as sets of vectors using a graph isomorphism network and a transformer, treats these as discrete distributions, computes multiple maximum mean discrepancy values with different kernels, and passes the resulting vector through a multilayer perceptron to predict the GW distance. This neural architecture is trained to approximate the GW distance and provides fast inference after training.

## Contributions
Provides a neural approximation for fast graph comparison, a theoretical guarantee of generalization, and empirical validation on real-world datasets against baselines.

## Practical relevance
Enables rapid graph comparison for applications in biology, social networks, and other domains where efficient structural analysis is needed.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151656)
