atlas

Research map / Graph learning / Graph algorithms and clustering

GRAIL: Graph Edit Distance and Node Alignment using LLM-Generated Code

ICML 2025 · Graph learning › Graph algorithms and clustering · approach: Graph distance and retrieval · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Grail uses Gemini-1.5 Pro with FunSearch-style evolutionary prompt tuning to generate programs that output node-weight matrices for bipartite matching, yielding a GED upper bound without ground-truth GED supervision.

Problem

Approximating graph edit distance (GED), an NP-hard and APX-hard problem, with methods that are accurate, interpretable, cross-domain generalizable, and do not require expensive NP-hard ground-truth GED labels.

Approach

Instead of training a neural network to predict GED, an LLM evolves programs that compute node-similarity weight matrices; each program yields a bipartite node mapping whose edit cost is a polynomial-time upper bound on GED. A greedy submodular selection picks a budget of b programs, and the objective (sum of upper bounds on training pairs) serves as the loss, eliminating the need for ground-truth

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
train on a mixture of graph pairs from multiple datasets instead of dataset-specific trainingGRAIL · AIDSRMSE: 0.57 -> 0.64Hurt
train on a mixture of graph pairs from multiple datasets instead of dataset-specific trainingGRAIL · LinuxRMSE: 0.13 -> 0.11Helped
train on a mixture of graph pairs from multiple datasets instead of dataset-specific trainingGRAIL · IMDBRMSE: 0.55 -> 0.53Helped
train on a mixture of graph pairs from multiple datasets instead of dataset-specific trainingGRAIL · ogbg-molhivRMSE: 2.96* -> 2.96No clear effect
train on a mixture of graph pairs from multiple datasets instead of dataset-specific trainingGRAIL · ogbg-code2RMSE: 4.22 -> 4.10Helped
train on a mixture of graph pairs from multiple datasets instead of dataset-specific trainingGRAIL · ogbg-molpcbaRMSE: 3.18 -> 3.40Hurt
select the top-b programs using individual upper bounds rather than greedy submodular optimization (ablation)GRAIL · AIDSRMSEHurt
increase the number of programs per LLM response beyond 2 (ablation)GRAIL · multiple datasetsquality metricsNo clear effect
increase the function budget to approximately 15 mappings (ablation)GRAIL · multiple datasetsupper boundHelped
use GRAIL-Mix programs rather than GRAIL programs across datasetsGRAIL · multiple datasetsRMSEMixed
use GRAIL-Mix rather than GEDGNNGED approximation on the IMDB case study · IMDB case studyGED: 20 -> 4Helped
train on one dataset and evaluate on other datasets rather than matching train and test datasetsGRAIL · inter-domain datasetsRMSENo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: AIDS Linux IMDB ogbg-molhiv ogbg-molpcba ogbg-code2 ogbg-ppa

Benchmarks: AIDS Linux IMDB ogbg-molhiv ogbg-code2 ogbg-molpcba

Metrics: RMSE Exact Match Ratio

Baselines: Greed GedGNN ERIC GraphEdX H2MN Adj-IP Node LP-GED-F2 Branch-Tight Compact-MIP IPFP

Builds on: FunSearch Neighbor-biased mapper MIP-F2

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy