Skip to main content
Back

GlobAlign Beats Graph Matching Baselines by 26% With 10x Speedup

GlobAlign replaces local GNN embeddings with global self-attention, cutting graph alignment error by up to 20% while making the efficient variant 10x faster than OT-based rivals

Pro

Paper, Full Access
  • New paradigm: GlobAlign replaces local GNN embeddings with global self-attention (Transformers) for unsupervised graph node matching.
  • Up to 20% accuracy gain over the best prior methods across five real-world graph datasets.
  • 10x speedup: GlobAlign-E reduces OT's cubic O(n³) complexity to quadratic O(n²d) via sparse relation matrices, matching embedding-based speed.
  • Robust to noise: Even with 50% of edges removed, GlobAlign beats noise-free baselines on two datasets.
  • Scales where others fail: All three OT baselines time out (>3 hrs) on the 34K-node Physics dataset; GlobAlign-E completes it.
  • Code coming soon: Source code will be released after peer review; paper available at arxiv.org/abs/2603.08526.

Matching nodes across two different graphs -- say, linking the same researcher's profile on two academic platforms, or identifying the same protein across two species -- is a deceptively hard problem. A new paper from Beijing Jiaotong University and Peking University argues that every major approach to this problem has been making the same architectural mistake, and proposes a fix that delivers up to a 20% accuracy jump alongside a 10x speedup.

The problem nobody noticed

The graph alignment problem aims to predict node correspondence between two attributed graphs based on their topological structure and node features. In the unsupervised setting, you get no labeled pairs to train on -- the model has to figure out which node in graph A corresponds to which node in graph B entirely on its own.

Two families of deep learning methods have dominated this space. Embedding-based methods first obtain node embeddings through graph neural networks (GNNs), then deem two nodes matched if their embeddings are sufficiently close, as determined by a metric such as cosine similarity. The second family, optimal transport (OT)-based methods, treat graphs as probability distributions embedded in a metric space and exploit the Gromov-Wasserstein distance to reformulate graph alignment as an optimal transport problem.

The authors noticed that both families share a hidden flaw: the alignment procedure is decomposed into a local representation phase and a following alignment phase. The alignment phase is global in nature, but the local representation phase relies on GNNs with local receptive fields, local propagation, or simply adjacency information. In other words, every existing method builds local node summaries and then tries to do a global matching -- a fundamental mismatch the authors call the "local representation, global alignment" paradigm.

Why does this matter? Consider two matched nodes that happen to sit far apart in their respective graphs. A GNN with 2-hop receptive field will build their embeddings from entirely non-overlapping neighborhoods, making the matched pair look more different than unmatched pairs nearby. These models struggle to capture long-range node dependencies and those beyond the explicit graph structure. OT-based methods suffer the same issue: their relation matrices, which encode how similar every node is to every other node within a graph, are also built from local propagation, so nodes more than K hops apart contribute nothing to each other's representation.

A new paradigm: global in, global out

The paper's core contribution is reframing the problem. Instead of local representation followed by global alignment, the authors propose "global representation and alignment" -- use a mechanism that sees the whole graph when building each node's embedding, then feed those globally-informed embeddings into the OT solver.

To implement this, they introduce GlobAlign (and its faster sibling GlobAlign-E). GlobAlign leverages the self-attention mechanism to derive node representations encoded with global graph information, facilitating the relationship modeling between arbitrary node pairs. Concretely, a Transformer encoder (not a GNN) processes every node in the graph simultaneously, so each node's embedding is a weighted mixture of all other nodes' features -- long-range dependencies are captured by design.

GlobAlign architecture: self-attention module feeds into hierarchical cross-graph transport cost, producing an optimal transport alignment matrix

On top of the global embeddings, the model builds a hierarchical cross-graph transport cost with two complementary terms:

  • Gromov-Wasserstein Distance (GWD) cost -- measures structural similarity between node pairs across graphs. It asks: "if node A and node B are similar within their own graph, are their counterparts in the other graph also similar?" This term is powerful but expensive at O(n³).
  • Wasserstein Distance (WD) cost -- directly compares node embeddings across graphs using cosine similarity. Cheaper at O(n²d) and acts as a regularizer on the GWD term.

These two components interact in a complementary manner to improve model performance, and GlobAlign is optimized with the well-defined OT-based objective.

Closing the efficiency gap

The full GlobAlign model still carries O(n³) complexity from the GWD term -- the same as existing OT methods. That's where GlobAlign-E comes in. GlobAlign-E bridges the time complexity gap between representative embedding and OT-based methods, retaining comparable accuracy to GlobAlign but reducing the cubic time complexity of OT-based solutions.

The trick is sparsification. The relation matrices used in the GWD computation are made sparse by keeping only the top-k most relevant node pairs per node, selected using two signals: Personalized PageRank (a graph-structure-aware relevance score) and cosine feature similarity. With sparse matrices, the expensive triple matrix multiplication in GWD drops from O(n³) to O(nm), where m is the number of edges. Since real-world graphs are typically sparse, GlobAlign-E achieves identical asymptotic complexity to the state-of-the-art embedding-based methods. The global information is still preserved through the WD term, so accuracy barely suffers.

The full optimization loop alternates between two steps: updating the Transformer's parameters to minimize the transport cost, and updating the transport matrix T using the Sinkhorn algorithm (an efficient iterative solver for OT problems). This continues until convergence.

Benchmarks: the numbers are striking

The paper tests on five datasets spanning social networks, co-author graphs, and movie recommendation networks, ranging from ~1K to ~34K nodes per graph. Baselines include seven methods: a kNN baseline, three embedding-based methods (GAlign, WAlign, GTCAlign), and three OT-based methods (GWD, SLOTAlign, UHOT-GM).

On the Douban dataset, the proposed methods achieve notable improvements of 26.62% and 24.19% compared to GTCAlign, the best baseline, respectively. On the DBLP dataset, the proposed approaches outperform the state-of-the-art method by 11.55% and 7.18%, respectively.

When the number of nodes reaches 10⁴, as in the DBLP dataset, UHOT-GM first fails to complete the experiment within the three-hour limit. As the dataset size continues to grow, other OT-based methods, GWD and SLOTAlign, also fail to complete the experiment in a reasonable time. GlobAlign-E handles all five datasets, including the 34K-node Physics graph where all OT baselines time out.

Robustness is another highlight. On the ACM-DBLP and Allmv-Imdb datasets, even when 50% of the edges are perturbed, GlobAlign surpasses the performance of GAlign and SLOTAlign under noise-free conditions. This makes sense: a model that sees the whole graph is less thrown off by missing or noisy edges than one relying on local neighborhoods.

Where it fits and where it falls short

GlobAlign is most useful when:

  • You need to match nodes across two graphs from different domains (cross-domain social networks, protein interaction networks across species, academic profiles across platforms)
  • You have no labeled node pairs to supervise the alignment
  • Graphs have structural inconsistencies -- matched nodes don't necessarily sit in similar local neighborhoods
  • Scale matters: GlobAlign-E can handle tens of thousands of nodes where OT methods time out

The main limitation is the self-attention module itself. The authors conjecture that it is non-trivial to apply the idea of global representation to embedding-based approaches -- substituting GNNs with Transformers for representative embedding-based methods leads to inferior performance, possibly due to their lack of well-defined objective in the unsupervised setting. The global attention also means the model's memory footprint scales quadratically with node count (the attention matrix is n×n), which will become a bottleneck for very large graphs even if the time complexity is managed.

Availability

The source code and data will be made publicly available after the peer review process. The paper is available now on arXiv. For practitioners working on entity resolution, knowledge graph alignment, or cross-network user identification, the efficiency gains from GlobAlign-E make this a compelling alternative to existing OT pipelines -- especially when graphs are large enough that cubic-complexity solvers become impractical.