Skip to main content
QUICK REVIEW

[Paper Review] Efficient Graph Similarity Computation with Alignment Regularization

Wei Zhuo, Guang Tan|arXiv (Cornell University)|Jun 21, 2024
Advanced Graph Neural NetworksComputer Science5 citations
TL;DR

ERIC introduces Alignment Regularization (AReg) to train a GNN encoder that learns graph alignment for GED estimation, enabling faster inference by removing cross-graph matching during testing, and combines a multi-scale GED discriminator for improved accuracy.

ABSTRACT

We consider the graph similarity computation (GSC) task based on graph edit distance (GED) estimation. State-of-the-art methods treat GSC as a learning-based prediction task using Graph Neural Networks (GNNs). To capture fine-grained interactions between pair-wise graphs, these methods mostly contain a node-level matching module in the end-to-end learning pipeline, which causes high computational costs in both the training and inference stages. We show that the expensive node-to-node matching module is not necessary for GSC, and high-quality learning can be attained with a simple yet powerful regularization technique, which we call the Alignment Regularization (AReg). In the training stage, the AReg term imposes a node-graph correspondence constraint on the GNN encoder. In the inference stage, the graph-level representations learned by the GNN encoder are directly used to compute the similarity score without using AReg again to speed up inference. We further propose a multi-scale GED discriminator to enhance the expressive ability of the learned representations. Extensive experiments on real-world datasets demonstrate the effectiveness, efficiency and transferability of our approach.

Motivation & Objective

  • Motivate efficient graph similarity computation (GSC) via GED estimation and address high cost of node-to-node matching in end-to-end GNN-based GSC models.
  • Propose Alignment Regularization (AReg) to enforce node-graph alignment during training without requiring cross-graph matching at inference.
  • Introduce a multi-scale GED discriminator to enhance representation expressiveness for GED prediction.
  • Demonstrate that the learned graph-level representations enable fast inference without the matching module.
  • Show empirical evidence of state-of-the-art performance, efficiency, and transferability across real-world datasets.

Proposed method

  • Formulate GED as an optimal alignment problem and derive necessary conditions under the best permutation to guide representation learning.
  • Define AReg as a regularization term using a GIN-based encoder and a permutation-invariant readout (DeepSets) to encourage alignment-aware embeddings.
  • Use a shared GNN encoder for both graphs in a pair and apply AReg at multiple layers (multi-scale) to capture node-level and graph-level alignment signals.
  • Employ a multi-scale GED discriminator consisting of: (i) a Neural Tensor Network (NTN) with decomposed weights to model cross-graph interactions, and (ii) an additional exponential Minkowski (ell-2) distance discriminator; final score is a weighted combo of both.
  • Train the GED predictor with a regression loss against true GED-derived similarity, augmented by the AReg loss; during inference, drop the AReg component and compute similarity from the learned graph representations directly.
  • Provide complexity analysis showing training time includes GIN and discriminator costs, while inference is faster since cross-graph interactions are not computed at test time.
Figure 1 : Illustration of separating the matching model from the end-to-end GSC framework to achieve a fast model (right side). In the fast model, the dotted arrow means the matching model does not participate in the similarity computation in the inference stage.
Figure 1 : Illustration of separating the matching model from the end-to-end GSC framework to achieve a fast model (right side). In the fast model, the dotted arrow means the matching model does not participate in the similarity computation in the inference stage.

Experimental results

Research questions

  • RQ1Can Alignment Regularization enable accurate GED-based graph similarity estimation without expensive cross-graph node matching at inference time?
  • RQ2Does combining a multi-scale GED discriminator with AReg improve discriminability and prediction accuracy over single-discriminator or no-regularization baselines?
  • RQ3How well does ERIC transfer AReg benefits when applied to other GSC models?
  • RQ4What is the computational efficiency gain of ERIC during inference compared with state-of-the-art baselines?
  • RQ5How sensitive is ERIC to the choice of distance/discriminator types and the Minkowski parameter p?

Key findings

  • ERIC achieves state-of-the-art performance on multiple GSC benchmarks (AIDS700, LINUX, IMDB, NCI109) across MSE, rank correlations (rho, tau), and top-k precision.
  • AReg improves performance; removing it degrades MSE, rho, tau, and p@k metrics across datasets.
  • Both NTN-based and ell-2 distance discriminators contribute to performance; removing either reduces effectiveness, with NTN providing larger gains.
  • Inference time of ERIC is significantly faster than all baselines because the cross-graph matching is not used during testing, while maintaining or improving accuracy.
  • AReg demonstrates transferability by improving SimGNN and EGSC when integrated via their loss functions, indicating model-agnostic utility.
  • Visualization and ablation studies show ERIC’s encoder learns node-to-graph alignment cues that correlate with GED, supporting the alignment-based regularization rationale.
Figure 2 : The optimal edit path with 3 edit operations to transform $G_{i}$ to $G_{j}$ . As a result, $\mathrm{GED}(G_{i},G_{j})=3$ .
Figure 2 : The optimal edit path with 3 edit operations to transform $G_{i}$ to $G_{j}$ . As a result, $\mathrm{GED}(G_{i},G_{j})=3$ .

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.